You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pinot.apache.org by GitBox <gi...@apache.org> on 2019/01/19 20:59:48 UTC

[GitHub] kishoreg opened a new pull request #3727: Matches support in pql

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pinot.apache.org
For additional commands, e-mail: dev-help@pinot.apache.org