-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](nereids) fix generate column need add cast in stream load #49167
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
c1a6f62 to
a6c62b6
Compare
|
run buildall |
TPC-H: Total hot run time: 32124 ms |
TPC-DS: Total hot run time: 185040 ms |
ClickBench: Total hot run time: 31.74 s |
| Expression expressionForLoad = expression.rewriteDownShortCircuit(e -> { | ||
| if (e instanceof SlotReference && !(e.getDataType() instanceof CharacterType)) { | ||
| return new Cast(e, e.getDataType()); | ||
| } | ||
| return e; | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comment to explain why need cast e to itself's type
afcb04d to
09e59c1
Compare
|
run buildall |
TPC-H: Total hot run time: 34082 ms |
TPC-DS: Total hot run time: 186288 ms |
ClickBench: Total hot run time: 31.05 s |
09e59c1 to
35d36f1
Compare
|
run buildall |
TPC-H: Total hot run time: 34077 ms |
TPC-DS: Total hot run time: 192277 ms |
ClickBench: Total hot run time: 30.58 s |
35d36f1 to
9e445b8
Compare
|
run buildall |
TPC-H: Total hot run time: 33953 ms |
TPC-DS: Total hot run time: 191908 ms |
ClickBench: Total hot run time: 31.42 s |
|
run feut |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
### What problem does this PR solve? Related PR: #35284 Problem Summary: Generate column need add cast(casting slot to its own type) in stream load, because when loading data(stream load and other load), the slots reading from files are string type. So we need to cast it to its own type to avoid error.
…he#49167) ### What problem does this PR solve? Related PR: apache#35284 Problem Summary: Generate column need add cast(casting slot to its own type) in stream load, because when loading data(stream load and other load), the slots reading from files are string type. So we need to cast it to its own type to avoid error.
…he#49167) ### What problem does this PR solve? Related PR: apache#35284 Problem Summary: Generate column need add cast(casting slot to its own type) in stream load, because when loading data(stream load and other load), the slots reading from files are string type. So we need to cast it to its own type to avoid error.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #35284
Problem Summary:
Generate column need add cast(casting slot to its own type) in stream load, because when loading data(stream load and other load), the slots reading from files are string type. So we need to cast it to its own type to avoid error.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)