shikhasomani edited a comment on issue #1530: [CALCITE-3437] ElasticSearch 
adapter. Support MatchQuery in elasticse…
URL: https://github.com/apache/calcite/pull/1530#issuecomment-547596333
 
 
   @asereda-gs Calcite Contains works for datetime range (periods) as tested in 
[SqlValidatorTest](https://github.com/apache/calcite/blob/master/core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java#L7290).
 
   Below query when tested on postgres via Calcite (jdbc adapter), it gives 
error:
   
   Query: select city from zips where city contains 'YORK'
   Error: Cannot apply 'CONTAINS' to arguments of type '<VARCHAR(200)> CONTAINS 
<CHAR(15)>'. Supported form(s):'<DATETIME> CONTAINS <DATETIME>'
   
   ElasticSearch match support can be executed or tested with 
RelBuilder/RexBuilder only.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to