Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax CAggs JOIN restrictions #7111

Merged

Conversation

fabriziomello
Copy link
Contributor

@fabriziomello fabriziomello commented Jul 8, 2024

Remove some Continuous Aggregates JOIN restrictions by allowing:

  • INNER/LEFT join;
  • LATERAL join;
  • JOIN between 1 hypertable and N tables, foreign tables, views or
    materialized views;
  • Remove restriction of only ONE equality operator on JOIN clause.

Closes #1446, #1516, #1717, #2400, #3314, #4088, #7107

Disable-check: force-changelog-file

@fabriziomello fabriziomello added continuous_aggregate enhancement An enhancement to an existing feature for functionality labels Jul 8, 2024
@fabriziomello fabriziomello added this to the TimescaleDB 2.16.0 milestone Jul 8, 2024
@fabriziomello fabriziomello self-assigned this Jul 8, 2024
Copy link

codecov bot commented Jul 8, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 81.80%. Comparing base (59f50f2) to head (1b62a3f).
Report is 254 commits behind head on main.

Files Patch % Lines
tsl/src/continuous_aggs/common.c 90.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7111      +/-   ##
==========================================
+ Coverage   80.06%   81.80%   +1.73%     
==========================================
  Files         190      203      +13     
  Lines       37181    38035     +854     
  Branches     9450     9872     +422     
==========================================
+ Hits        29770    31115    +1345     
+ Misses       2997     2961      -36     
+ Partials     4414     3959     -455     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fabriziomello fabriziomello force-pushed the cagg_relax_join_restrictions branch 2 times, most recently from 7273d9d to 3d4a741 Compare July 10, 2024 19:57
Remove some Continuous Aggregates JOIN restrictions by allowing:
* INNER/LEFT join;
* LATERAL join;
* JOIN between 1 hypertable and N tables, foreign tables, views or
  materialized views;
* Remove restriction of only ONE equality operator on JOIN clause.
@fabriziomello fabriziomello merged commit a0638f5 into timescale:main Jul 16, 2024
38 of 39 checks passed
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jul 22, 2024
Creating or changing to realtime a Continuous Aggregate with multiple
joins was leading to a segfault.

Fixed it by dealing properly with the `varno` when creating the `Quals`
for the union view in realtime mode.

Also get rid of some left over when we relaxed the CAggs joint
restrictions in timescale#7111
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jul 22, 2024
Creating or changing to realtime a Continuous Aggregate with multiple
joins was leading to a segfault.

Fixed it by dealing properly with the `varno` when creating the `Quals`
for the union view in realtime mode.

Also get rid of some left over when we relaxed the CAggs joint
restrictions in timescale#7111
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jul 23, 2024
Creating or changing to realtime a Continuous Aggregate with multiple
joins was leading to a segfault.

Fixed it by dealing properly with the `varno` when creating the `Quals`
for the union view in realtime mode.

Also get rid of some left over when we relaxed the CAggs join
restrictions in timescale#7111.
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jul 23, 2024
Creating or changing to realtime a Continuous Aggregate with multiple
joins was leading to a segfault.

Fixed it by dealing properly with the `varno` when creating the `Quals`
for the union view in realtime mode.

Also get rid of some left over when we relaxed the CAggs join
restrictions in timescale#7111.
fabriziomello added a commit that referenced this pull request Jul 23, 2024
Creating or changing to realtime a Continuous Aggregate with multiple
joins was leading to a segfault.

Fixed it by dealing properly with the `varno` when creating the `Quals`
for the union view in realtime mode.

Also get rid of some left over when we relaxed the CAggs join
restrictions in #7111.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
continuous_aggregate enhancement An enhancement to an existing feature for functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create continuous aggregate from multiple tables
3 participants