-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
ast, plan: return error when the arg of VALUES() function is not a column (#7817) #8404
ast, plan: return error when the arg of VALUES() function is not a column (#7817) #8404
Conversation
/run-all-test tidb-test=release-2.0 pd=release-2.0 tikv=release-2.0 |
plan/logical_plan_test.go
Outdated
@@ -1644,6 +1644,8 @@ func (s *testPlanSuite) TestNameResolver(c *C) { | |||
{"select a from t group by t11.c1", "[planner:1054]Unknown column 't11.c1' in 'group statement'"}, | |||
{"delete a from (select * from t ) as a, t", "[planner:1288]The target table a of the DELETE is not updatable"}, | |||
{"delete b from (select * from t ) as a, t", "[planner:1109]Unknown table 'b' in MULTI DELETE"}, | |||
{"select '' as fakeCol from t group by values(fakeCol)", "[planner:1054]Unknown column '' in 'VALUES() function'"}, | |||
{"update t, (select * from t) as b set b.a = t.a", "[planner:1288]The target table b of the UPDATE is not updatable"}, |
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.
This line is irrelevant?
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, removed now.
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
/run-all-tests tidb-test=release-2.0 tikv=release-2.0 pd=release-2.0 |
cherry-pick #7817
This change is