[ https://issues.apache.org/jira/browse/PHOENIX-7663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Palash Chauhan updated PHOENIX-7663: ------------------------------------ Description: 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 a new internal function 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. was: 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. Summary: BSON Condition Function field_type() (was: BSON Condition Functions field_type() and size()) > BSON Condition Function field_type() > ------------------------------------ > > Key: PHOENIX-7663 > URL: https://issues.apache.org/jira/browse/PHOENIX-7663 > Project: Phoenix > Issue Type: Improvement > Reporter: Palash Chauhan > Assignee: Palash Chauhan > Priority: Major > 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 a new internal function 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. -- This message was sent by Atlassian Jira (v8.20.10#820010)