subourbonite opened a new issue #6478:
URL: https://github.com/apache/incubator-pinot/issues/6478


   In some cases, time-column predicates are disqualifying queries from using 
star-trees, when they would otherwise be used. Specifically, this appears to be 
the case when using a dynamic timestamp comparison against the now() operator:
   
   `SELECT dimension, SUM(metric) AS totalMetrics FROM myTable WHERE 
otherDimension='filterValue' AND eventTimestamp >= cast(now() - 172800000 as 
long) GROUP BY 1 ORDER BY 2 DESC LIMIT 10`
   
   where a query that uses a static value for timestamp comparison will use a 
star-tree:
   `SELECT dimension, SUM(metric) AS totalMetrics FROM myTable WHERE 
otherDimension='filterValue' AND eventTimestamp >= 1611161288000 GROUP BY 1 
ORDER BY 2 DESC LIMIT 10`
   
   Thanks to @mayankshriv, I'll try to put together a PR to address.


----------------------------------------------------------------
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:
us...@infra.apache.org



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

Reply via email to