Repository navigation
[fix](virtual slot) adjust virtual column expression nullable - #55694
Merged
englefly merged 2 commits intoSep 5, 2025
Merged
Conversation
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 33853 ms |
TPC-DS: Total hot run time: 186861 ms |
ClickBench: Total hot run time: 32.5 s |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 34004 ms |
TPC-DS: Total hot run time: 186300 ms |
ClickBench: Total hot run time: 33.29 s |
Contributor
|
Why would the virtual column affect this SQL? It doesn’t seem like there’s any common subexpression. |
Contributor
Author
@zhiqiang-hhhh day(t2.c_date) exists twice in filter |
Contributor
FE Regression Coverage ReportIncrement line coverage |
morrySnow
approved these changes
Sep 5, 2025
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
englefly
approved these changes
Sep 5, 2025
wenzhenghu
pushed a commit
to wenzhenghu/doris
that referenced
this pull request
Sep 8, 2025
…#55694) ### What problem does this PR solve? need adjust nullable for expression of the virtual slot bug introduced by: apache#52701 example as follow: SQL: ```sql SELECT t1.*, t2.* FROM tbl_adjust_virtual_slot_nullable_1 AS t1 LEFT JOIN tbl_adjust_virtual_slot_nullable_2 AS t2 ON t1.c_int = t2.c_int WHERE NOT ( day(t2.c_date) IN (1, 3) AND day(t2.c_date) IN (2, 3, 3) ); ``` throw exception: ``` java.sql.SQLException: errCode = 2, detailMessage = (127.0.0.1)[INTERNAL_ERROR]Could not find function dayofmonth, arg c_date return Nullable(TINYINT) ```
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
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.
What problem does this PR solve?
need adjust nullable for expression of the virtual slot
bug introduced by: #52701
example as follow:
SQL:
throw exception:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)