seawinde opened a new pull request, #54158:
URL: https://github.com/apache/doris/pull/54158
### What problem does this PR solve?
Fix query err when topn push through union_all
such veiw def and query are as following:
```sql
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
`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.
Issue Number: close #xxx
Related PR: #27535
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]