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

sql: adding missing tables on information_schema #65854

Merged
merged 1 commit into from Jun 22, 2021

Conversation

mnovelodou
Copy link
Contributor

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

@mnovelodou mnovelodou requested a review from rafiss May 28, 2021 18:10
@blathers-crl
Copy link

blathers-crl bot commented May 28, 2021

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.

@blathers-crl blathers-crl bot added the O-community Originated from the community label May 28, 2021
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@mnovelodou mnovelodou force-pushed the information_schema_new_tables branch from 2636ec6 to e2573d2 Compare June 2, 2021 20:25
@blathers-crl
Copy link

blathers-crl bot commented Jun 2, 2021

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,
Copy link
Collaborator

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.

Copy link
Contributor Author

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
  }

@mnovelodou mnovelodou force-pushed the information_schema_new_tables branch from e2573d2 to de86d27 Compare June 10, 2021 18:50
@mnovelodou mnovelodou requested a review from a team June 10, 2021 18:50
@mnovelodou mnovelodou force-pushed the information_schema_new_tables branch 2 times, most recently from 2082e0c to f7e8d37 Compare June 14, 2021 14:55
@mnovelodou mnovelodou added the do-not-merge bors won't merge a PR with this label. label Jun 15, 2021
@mnovelodou mnovelodou force-pushed the information_schema_new_tables branch from f7e8d37 to cb952a2 Compare June 15, 2021 23:58
@mnovelodou mnovelodou removed the do-not-merge bors won't merge a PR with this label. label Jun 16, 2021
Copy link
Collaborator

@rafiss rafiss 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! 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
@mnovelodou mnovelodou force-pushed the information_schema_new_tables branch from cb952a2 to b0b7bf4 Compare June 21, 2021 21:11
@rafiss
Copy link
Collaborator

rafiss commented Jun 22, 2021

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 22, 2021

Build succeeded:

@craig craig bot merged commit 76b1f8a into cockroachdb:master Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-community Originated from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants