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 sorting by Offset() custom expression aggregation #42737

Merged
merged 4 commits into from
May 17, 2024
Merged

Conversation

camsaul
Copy link
Member

@camsaul camsaul commented May 16, 2024

Fixes #42554

@camsaul camsaul requested a review from a team May 16, 2024 01:18
@metabase-bot metabase-bot bot added the .Team/QueryProcessor :hammer_and_wrench: label May 16, 2024
Comment on lines 206 to 207
(ddl.i/format-name (tx/driver) (name a-name)))
(ddl.i/format-name (tx/driver) (u/->snake_case_en (name a-name))))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated, but I added this so switching between the lib.tu.macros and mt versions of stuff like id or mbql-query doesn't require you to switch between snake_case and kebab-case

@camsaul camsaul added the no-backport Do not backport this PR to any branch label May 16, 2024
Copy link

replay-io bot commented May 16, 2024

Status Complete ↗︎
Commit 5443b1d
Results
⚠️ 3 Flaky
2510 Passed

Copy link
Contributor

@metamben metamben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@camsaul camsaul enabled auto-merge (squash) May 16, 2024 21:45
@camsaul camsaul merged commit 7a9b6ac into master May 17, 2024
107 checks passed
@camsaul camsaul deleted the fix-42554 branch May 17, 2024 02:56
Copy link

@camsaul Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/QueryProcessor :hammer_and_wrench:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Cannot sort by aggregation that uses Offset()
2 participants