virajjasani opened a new pull request, #2214: URL: https://github.com/apache/phoenix/pull/2214
Jira: PHOENIX-7585 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 PR is to provide a new internal function (similar to field_exists(), field_not_exists() etc) within BSON_CONDITION_EXPRESSION() 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(fieldKey, substr) => here, fieldKey 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. The function should only support BsonString and BsonBinary types for prefix search. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@phoenix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org