Skip to content
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

TiDB-Server panic when creating views with SELECT ... INTO syntax #15329

Closed
bb7133 opened this issue Mar 12, 2020 · 0 comments · Fixed by #15334
Closed

TiDB-Server panic when creating views with SELECT ... INTO syntax #15329

bb7133 opened this issue Mar 12, 2020 · 0 comments · Fixed by #15334
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@bb7133
Copy link
Member

bb7133 commented Mar 12, 2020

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
tidb> create view v1 as select 5 into outfile 'ttt';
  1. What did you expect to see?
    In MySQL:
mysql> create view v1 as select 5 into outfile 'ttt';
ERROR 1350 (HY000): View's SELECT contains a 'INTO' clause
  1. What did you see instead?
    TiDB Server got panic with following errros:
panic:interface conversion: *core.SelectInto is not core.LogicalPlan: missing method BuildKeyInfo -- create view v1 as select 5 into outfile 'ttt'
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
    The latest master.
@bb7133 bb7133 added type/bug The issue is confirmed as a bug. sig/sql-infra SIG: SQL Infra labels Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants