-
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
plan: fix panic caused by empty schema of LogicalTableDual #7906
Changes from 2 commits
3a15439
4c1615d
81cf95f
eb37f22
4d3cbdc
de3e4d9
06ea882
b612b6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,6 +194,9 @@ func (s *testValidatorSuite) TestValidator(c *C) { | |
{"select * from ( select 1 ) a, (select 2) b;", true, nil}, | ||
{"select * from (select * from ( select 1 ) a join (select 2) b) b join (select 3) a;", false, nil}, | ||
{"select * from (select 1 ) a , (select 2) b, (select * from (select 3) a join (select 4) b) c;", false, nil}, | ||
|
||
//issue 7833 | ||
{"drop view if exists v;", true, nil}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Better to add this test in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, I found that this test case can be passed here( planner/core/preprocess_test.go), and even without fixing the bug, I'm confused, maybe I don't fully understand the tidb test. |
||
} | ||
|
||
store, dom, err := newStoreWithBootstrap() | ||
|
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.
how about directly set the schema of the
dual
operator, which eliminates the confusion: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.
Yes, it looks better