Viraj Jasani created PHOENIX-7585:
-------------------------------------

             Summary: New BSON Condition function begins_with()
                 Key: PHOENIX-7585
                 URL: https://issues.apache.org/jira/browse/PHOENIX-7585
             Project: Phoenix
          Issue Type: Improvement
            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 (similar to 
field_exists(), field_not_exists() etc) within BSON_CONDITION_EXPRESSION() 
function such that it can identify whether the value of the given document 
field of type BsonString or BsonBinary has prefix value as the constant 
provided in the second argument.

 

begins_with(path, substr) => here, path represents path in the given BSON 
document. substr represents value which needs to be compared as the prefix 
value of path field from the document.



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

Reply via email to