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
sql: adding missing tables on information_schema #65854
sql: adding missing tables on information_schema #65854
Conversation
Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR. My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
2636ec6
to
e2573d2
Compare
Thank you for updating your pull request. My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
"MissingColumns": 71, | ||
"TotalColumns": 280, | ||
"MissingTables": 0, | ||
"MissingColumns": 9, |
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.
what are the 9 missing columns? maybe we could add those too.
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.
I found an issue from this mysql, which seemed outdated, these are the actual values:
"diffSummary": {
"TotalTables": 48,
"TotalColumns": 280,
"MissingTables": 21,
"MissingColumns": 80,
"DatatypeMismatches": 0
}
e2573d2
to
de86d27
Compare
2082e0c
to
f7e8d37
Compare
f7e8d37
to
cb952a2
Compare
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.
looks good! the PR needs to be rebased
Previously, there were 38 undefined information_schema tables that exists in postgres This was inadequate because not having them may cause compatibility issues To address this, this patch defines these 38 tables as unimplemented to allow queries Release note (sql change): adding empty missing tables on information schema for compatibility: attributes check_constraint_routine_usage column_column_usage column_domain_usage column_options constraint_table_usage data_type_privileges domain_constraints domain_udt_usage domains element_types foreign_data_wrapper_options foreign_data_wrappers foreign_server_options foreign_servers foreign_table_options foreign_tables information_schema_catalog_name role_column_grants role_routine_grants role_udt_grants role_usage_grants routine_privileges sql_features sql_implementation_info sql_parts sql_sizing transforms triggered_update_columns triggers udt_privileges usage_privileges user_defined_types user_mapping_options user_mappings view_column_usage view_routine_usage view_table_usage Related to: cockroachdb#8675
cb952a2
to
b0b7bf4
Compare
bors r+ |
Build succeeded: |
Previously, there were 38 undefined information_schema tables that
exists in postgres
This was inadequate because not having them may cause compatibility
issues
To address this, this patch defines these 38 tables as unimplemented
to allow queries
Release note (sql change): adding empty missing tables on information
schema for compatibility:
attributes
check_constraint_routine_usage
column_column_usage
column_domain_usage
column_options
constraint_table_usage
data_type_privileges
domain_constraints
domain_udt_usage
domains
element_types
foreign_data_wrapper_options
foreign_data_wrappers
foreign_server_options
foreign_servers
foreign_table_options
foreign_tables
information_schema_catalog_name
role_column_grants
role_routine_grants
role_udt_grants
role_usage_grants
routine_privileges
sql_features
sql_implementation_info
sql_parts
sql_sizing
transforms
triggered_update_columns
triggers
udt_privileges
usage_privileges
user_defined_types
user_mapping_options
user_mappings
view_column_usage
view_routine_usage
view_table_usage
Related to: #8675