-
Notifications
You must be signed in to change notification settings - Fork 3.7k
branch-3.1: [fix](nereids) Fix query err when topn push through union_all #54158 #54260
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
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### What problem does this PR solve? Related PR: #27535 Problem Summary: Fix query err when topn push through union_all such veiw def and query are as following: CREATE VIEW `view_test`AS SELECT t1.`logTimestamp`, t1.`args1`, t1.`args2`, t1.`args3`, t1.`args4`, t1.`args5`, t1.`args6`, t1.`args7`, t1.`args8`, t1.`args9`, t1.`args10`, t1.`args11`, t1.`args12`, t1.`args13`, t1.`args14`, t1.`args15`, t1.`log` FROM t1 UNION all SELECT t2.`logTimestamp`, t2.`args1`, t2.`args2`, t2.`args3`, t2.`args4`, t2.`args5`, t2.`args6`, t2.`args7`, t2.`args8`, t2.`args9`, t2.`args10`, t2.`args11`, t2.`args12`, t2.`args13`, t2.`args14`, t2.`args15`, t2.`log` FROM t2; SELECT `args1`, `args2`, `args3`, `args4`, `args5`, `args6`, `args7`, `args8`, `args9`, `args10`, `args11`, `args12`, `args13`, `args14`, `args15`, `log`, logTimestamp FROM view_test ORDER BY logTimestamp desc LIMIT 8; would through exception as following, because topN use wrong ordery key `log` `Doris hll, bitmap, array, map, struct, jsonb, variant column must use with specific function, and don't support filter, group by or order by. please run 'help hll' or 'help bitmap' or 'help array' or 'help map' or 'help struct' or 'help jsonb' or 'help variant' in your mysql client.` the pr fix this.
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
run buildall |
TPC-H: Total hot run time: 32234 ms |
TPC-DS: Total hot run time: 196524 ms |
ClickBench: Total hot run time: 29.56 s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-picked from #54158