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

fix(cubesql): Don't push down Sort to Projection with Aggregate input #8003

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MazterQyou
Copy link
Member

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made

This PR changes SortPushDown optimizer behavior to avoid pushing Sort down to Projection if its input is an Aggregate. This fixes and issue with ORDER BY not being realiased correctly with SQL push down. Related test is included.

@MazterQyou MazterQyou requested a review from a team as a code owner March 26, 2024 21:10
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.86%. Comparing base (fc79188) to head (f058980).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8003   +/-   ##
=======================================
  Coverage   61.85%   61.86%           
=======================================
  Files         351      351           
  Lines       48622    48623    +1     
  Branches     5258     5258           
=======================================
+ Hits        30077    30079    +2     
+ Misses      18346    18345    -1     
  Partials      199      199           
Flag Coverage Δ
cube-backend 47.91% <ø> (ø)
cubesql 72.47% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant