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: fix order by contains count in scalar subquery #13782

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

xudong963
Copy link
Member

@xudong963 xudong963 commented Nov 22, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

In scalar subquery, if the aggregation function comes from order by , no if_not_null conversion is needed.


This change is Reviewable

@github-actions github-actions bot added the pr-bugfix this PR patches a bug in codebase label Nov 22, 2023
@xudong963 xudong963 requested a review from Dousir9 November 22, 2023 08:42
@xudong963 xudong963 added this pull request to the merge queue Nov 22, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 22, 2023
@xudong963 xudong963 added this pull request to the merge queue Nov 22, 2023
Merged via the queue into databendlabs:main with commit ea9091d Nov 22, 2023
84 checks passed
@xudong963 xudong963 deleted the fix_count branch November 22, 2023 12:13
andylokandy pushed a commit to andylokandy/databend that referenced this pull request Nov 27, 2023
* fix: fix order by contains count in scalar subquery

* Update src/query/sql/src/planner/optimizer/heuristic/decorrelate/flatten_plan.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: no overload satisfies `eq(String NULL, UInt64 NULL) (found by chatGPT)
2 participants