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

clean up on current information schema #1464

Merged
merged 2 commits into from
Dec 8, 2022
Merged

Conversation

jennifersp
Copy link
Contributor

@jennifersp jennifersp commented Dec 8, 2022

Updated information_schema tables' schemas.
Fixed some table values for the schema changes

Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Looks good! Just a couple minor comments/questions. Good idea to get in here, tidy up, and re-load all this context back into your head as you start to dig into the information_schema work!

sql/information_schema/routines_table.go Outdated Show resolved Hide resolved
sql/information_schema/routines_table.go Outdated Show resolved Hide resolved
@@ -10170,7 +10162,7 @@ var StatisticsQueries = []ScriptTest{
{
Query: "SELECT * FROM information_schema.column_statistics",
Expected: []sql.Row{
{"mydb", "t", "i", float64(2), float64(1), float64(3), uint64(3), uint64(0), uint64(3), "[[1.00, 1.00, 0.33],[2.00, 2.00, 0.33],[3.00, 3.00, 0.33]]"},
{"mydb", "t", "i", sql.JSONDocument{Val: map[string]interface{}{"buckets": []interface{}{[]interface{}{"1.00", "1.00", "0.33"}, []interface{}{"2.00", "2.00", "0.33"}, []interface{}{"3.00", "3.00", "0.33"}}}}},
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice fix to move this to the correct schema with a JSON doc.

@jennifersp jennifersp merged commit 7316039 into main Dec 8, 2022
@jennifersp jennifersp deleted the jennifer/info-schema branch December 8, 2022 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants