kishoreg opened a new pull request #3727: Matches support in pql URL: https://github.com/apache/incubator-pinot/pull/3727 The first step towards supporting search analytics functionality in Pinot. syntax <colName> MATCHES ($queryString, $queryMatches) Sample query if col is a map - Select count(*) from T where col MATCHES ('k1=v1'); if col is a text - Select count(*) from T where col MATCHES ('fox AND brown', '{queryFormat:lucene}'); if col is a nested json - Select count(*) from T where col MATCHES ('foo.bar=v1', ''); The second argument 'query options' is a json string and allows us to add more options later on. Looking for feedback on the syntax. For e.g. MySQL has the following syntax `MATCH (col1,col2,...) AGAINST (expr [search_modifier])` Amazon Athena `WHERE json_array_contains(json_extract(users, '$.projects'), 'project2')`
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
