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

Adds Planning and Parsing Support for Create Index of MySQL 5.7 #7024

Merged
merged 14 commits into from
Nov 18, 2020
Merged
18 changes: 18 additions & 0 deletions go/vt/vtgate/planbuilder/testdata/ddl_cases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,21 @@
"SingleShardOnly": false
}
}

# DDL with qualifier
"create index a on main.unknown(id)"
{
"QueryType": "DDL",
"Original": "create index a on main.unknown(id)",
"Instructions": {
"OperatorType": "Send",
"Keyspace": {
"Name": "user",
"Sharded": true
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this not be main keyspace?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it is fixed in next commit.

"TargetDestination": "AllShards()",
"IsDML": false,
"Query": "create index a on unknown (id)",
"SingleShardOnly": false
}
}