gianm opened a new pull request, #13206:
URL: https://github.com/apache/druid/pull/13206

   PR #12944 added a check at the execution layer to avoid materializing 
excessive amounts of time-granular buckets. This patch modifies the SQL planner 
to avoid generating queries that would throw such errors, by switching certain 
plans to use the timestamp_floor function instead of granularities. This 
applies both to the Timeseries query type, and the GroupBy 
timestampResultFieldGranularity feature.
   
   The patch also goes one step further: we switch to timestamp_floor not just 
in the ETERNITY + non-ALL case, but also if the estimated number of 
time-granular buckets exceeds 100,000.
   
   Finally, the patch modifies the timestampResultFieldGranularity field to 
consistently be a String rather than a Granularity. This ensures that it can be 
round-trip serialized and deserialized, which is useful when trying to execute 
the results of "EXPLAIN PLAN FOR" with GroupBy queries that use the 
timestampResultFieldGranularity feature.


-- 
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...@druid.apache.org

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


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

Reply via email to