kriti-sc commented on pull request #7894: URL: https://github.com/apache/pinot/pull/7894#issuecomment-992840373
@Jackie-Jiang carrying review forward from PR: https://github.com/apache/pinot/pull/7869 The way I have resolved [the issue you have mentioned](https://github.com/apache/pinot/pull/7869#discussion_r763295703): I am using `-{2,}` pattern (SQL query comment pattern) as signposts to remove query options found in the commented-out portion of the query. This will not work for queries which have query options specified and are using the `-{2,}` pattern in string literals & identifiers. For ex. ``` SELECT * FROM tablex WHERE cola LIKE '%---%' OPTION (a=b) ``` will be parsed as ``` SELECT * FROM tablex WHERE cola LIKE '%---%' ``` I did check if we could use the default MySQL dialect to pass query options (using `SET`) – this does not seem to be supported by Calcite. For example, the following query threw a Calcite parsing error: ``` SET session.timeoutMs="X" SELECT * FROM baseballStats ``` Please let me know if I am missing something here ^^ -- 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-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org