timescale / timescaledb

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.
https://www.timescale.com/
Other
16.8k stars 852 forks source link

Support chunkwise aggregation with projection #7049

Open akuzm opened 1 week ago

akuzm commented 1 week ago

This is important for the common case of grouping by time_bucket(). In this case, under AggPath there is a ProjectionPath above the Append node for all the chunks. When we make a chunkwise aggregation plan, we have to put a similar ProjectionPath under each per-chunk AggPath.

codecov[bot] commented 6 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.75%. Comparing base (59f50f2) to head (fb9e1ac). Report is 232 commits behind head on main.

:exclamation: Current head fb9e1ac differs from pull request most recent head b856e45

Please upload reports for the commit b856e45 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7049 +/- ## ========================================== + Coverage 80.06% 81.75% +1.69% ========================================== Files 190 200 +10 Lines 37181 37319 +138 Branches 9450 9729 +279 ========================================== + Hits 29770 30512 +742 + Misses 2997 2881 -116 + Partials 4414 3926 -488 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.