Palash Chauhan created PHOENIX-7663:
---------------------------------------
Summary: BSON Condition Functions field_type() and size()
Key: PHOENIX-7663
URL: https://issues.apache.org/jira/browse/PHOENIX-7663
Project: Phoenix
Issue Type: Improvement
Reporter: Palash Chauhan
Assignee: Palash Chauhan
Fix For: 5.3.0
PHOENIX-7463 provides us with the ability to generate and evaluate AST
(Abstract Syntax Tree) for the BSON condition expression evaluation for it's
SQL type expressions.
The purpose of this Jira is to provide 2 new internal functions for
BSON_CONDITION_EXPRESSION():
# *field_type(fieldKey, type)* => here, fieldKey is a path in the given BSON
document. type represents one of the following data types {}. This function
evaluates to true if the attribute at the specified fieldKey is of the given
data type.
# *size(fieldKey)* => This function returns the a number that represents the
size of the attribute at the given fieldKey in the BSON document. For String,
it is the length of the string. For Binary, this is the number of bytes. For
Sets, Lists and Maps, this is the number of elements.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)