-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner: correct block offset for table as names #12996
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12996 +/- ##
=========================================
Coverage 80.633% 80.633%
=========================================
Files 469 469
Lines 113931 113931
=========================================
Hits 91866 91866
Misses 15077 15077
Partials 6988 6988 |
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.
Doesn't take effect should be correct behavior since we don't consider subquery concurrently?
@winoros In this case, I think we can support it and it matches what we think it should do. |
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.
LGTM
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.
lgtm
Your auto merge job has been accepted, waiting for 13360 |
/run-all-tests |
cherry pick to release-3.1 failed |
What problem does this PR solve?
Hint in
select /*+ SM_JOIN(@sel_1 t1@sel_1, t2@sel_1) */ * from (select * from t) t1, t t2 where t1.b = t2.b;
does not take effects.It does not take effects because currently planner thinks
t1
belongs tosel_2
, so it cannot find a matching table.What is changed and how it works?
Specially handle the case of select block as names so that the
as names
should belong to its surrounding select block, not the sub-query.Check List
Tests
Code changes
Side effects
Related changes
Release note