tibrewalpratik17 commented on PR #10873: URL: https://github.com/apache/pinot/pull/10873#issuecomment-1607848525
> ah. i think that's b/c when you run a query similar to > > ``` > SELECT * FROM tbl WHERE longCol BETWEEN 0 AND -1 > ``` > > ^ this query is simplified by calcite into `SELECT * FROM emptyTable` --> b/c `BETWEEN 0 AND -1` is a constant false condition and thus it is returning empty row with the schema matching the initial table `tbl` > > in this case you will have no table to find and thus no where to route. Yes @walterddr exactly! I have updated the QueryGenerator logic to swap values in `BETWEEN` clause if this case arises. But let me know if we want to follow any other route to solve this. -- 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