[ 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, which should be one of the following: * S – String * SS – String set * N – Number * NS – Number set * B – Binary * BS – Binary set * BOOL – Boolean * NULL – Null * L – List * M – Map 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 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. > 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, which should be one of the following: > * S – String > * SS – String set > * N – Number > * NS – Number set > * B – Binary > * BS – Binary set > * BOOL – Boolean > * NULL – Null > * L – List > * M – Map > -- This message was sent by Atlassian Jira (v8.20.10#820010)