kirkrodrigues commented on issue #10478:
URL: https://github.com/apache/pinot/issues/10478#issuecomment-1486035883

   Hey Jackie, yeah, the query is contrived to expose the bug. I actually 
encountered it while writing a query rewriter:
   
   1. `SELECT * FROM table WHERE clpMatch("message", '*123*')`
       is parsed into a `PinotQuery` that's equivalent to 
       `SELECT * FROM table WHERE clpMatch("message", '*123*') = true`.
   2. Then the custom rewriter replaces `clpMatch` so the query becomes 
something like
       `SELECT * FROM table WHERE (message_logtype = ... AND 
message_dictionaryVars LIKE '*123*' ...) = true`,
       where `message_dictionaryVars` is an MV column. So the query fails with 
the above error.
       
   I'm currently working around this by specially detecting the boolean 
comparison with `clpMatch`, but it would be great to resolve this correctly.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to