Viraj Jasani created PHOENIX-7662:
-------------------------------------

             Summary: BSON Condition Function contains()
                 Key: PHOENIX-7662
                 URL: https://issues.apache.org/jira/browse/PHOENIX-7662
             Project: Phoenix
          Issue Type: New Feature
            Reporter: Viraj Jasani


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() to help evaluate whether value of the given field 
key contains a particular value.

contains(fieldKey, val) => here, fieldKey represents field key's path in the 
given BSON document. val represents value which needs to be compared.

The function evaluation returns true if the value of the field contains the 
specified value. The field can be:
 * A string that contains a particular substring
 * A set that contains a particular element within the set
 * A list that contains a particular element within the list



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to