You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "walterddr (via GitHub)" <gi...@apache.org> on 2023/11/01 14:36:16 UTC

[I] [test][bug] query generator doesn't escape string in REGEXP_LIKE [pinot]

walterddr opened a new issue, #11918:
URL: https://github.com/apache/pinot/issues/11918

   see:
   ```
   2023-11-01T01:18:33.7042292Z [ERROR]   ExactlyOnceKafkaRealtimeClusterIntegrationTest>BaseRealtimeClusterIntegrationTest.testGeneratedQueries:167->BaseClusterIntegrationTestSet.testGeneratedQueries:488->BaseClusterIntegrationTest.testQuery:738 Caught exception while testing query!
   2023-11-01T01:18:33.7046137Z Pinot query: SELECT Quarter, OriginWac, DepTime FROM mytable WHERE  REGEXP_LIKE(OriginCityName, 'Martha'.*s Vineyard, MA') AND Origin > 'MOB' OR OriginAirportID NOT IN (10800, 10581, 10561, 10754, 14635) ORDER BY OriginStateName, OriginAirportSeqID LIMIT 1
   2023-11-01T01:18:33.7049870Z H2 query: SELECT `Quarter`, `OriginWac`, `DepTime` FROM mytable WHERE  REGEXP_LIKE(`OriginCityName`, 'Martha'.*s Vineyard, MA', 'i') AND `Origin` > 'MOB' OR `OriginAirportID` NOT IN (10800, 10581, 10561, 10754, 14635) ORDER BY `OriginStateName`, `OriginAirportSeqID` LIMIT 10000
   ```
   
   in 
   ```
   REGEXP_LIKE(OriginCityName, 'Martha'.*s Vineyard, MA')
   ```
   ^ the `Martha'.*s` is weirdly putting a single-quote in the middle and thus result in a wrong SQL. 


-- 
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: commits-unsubscribe@pinot.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [test][bug] query generator doesn't escape string in REGEXP_LIKE [pinot]

Posted by "walterddr (via GitHub)" <gi...@apache.org>.
walterddr closed issue #11918: [test][bug] query generator doesn't escape string in REGEXP_LIKE
URL: https://github.com/apache/pinot/issues/11918


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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