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: allowing add missing tables from json file #66560

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

mnovelodou
Copy link
Contributor

Previously, we could only add missing tables on information_schema or
pg_catalog from dump json file
This was inadequate because sometimes we need to manually decide how
columns data types are going to be
To address this, this patch adds a flag that allows to specify the json
file where to find the missing tables

Release note: None

@mnovelodou mnovelodou requested review from RichardJCai and a team June 16, 2021 20:43
@blathers-crl
Copy link

blathers-crl bot commented Jun 16, 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 Jun 16, 2021
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@mnovelodou mnovelodou force-pushed the add_missing_columns branch from ad6137e to 5e4736e Compare June 21, 2021 19:56
@blathers-crl
Copy link

blathers-crl bot commented Jun 21, 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.

pkg/sql/pg_metadata_test.go Outdated Show resolved Hide resolved
Previously, we could only add missing tables on information_schema or
pg_catalog from dump json file
This was inadequate because sometimes we need to manually decide how
columns data types are going to be
To address this, this patch adds a flag that allows to specify the json
file where to find the missing tables

Release note: None
@mnovelodou mnovelodou force-pushed the add_missing_columns branch from e4f9838 to 6a117a4 Compare July 12, 2021 21:53
@RichardJCai
Copy link
Contributor

bors r+

craig bot pushed a commit that referenced this pull request Jul 13, 2021
66560:  sql: allowing add missing tables from json file r=RichardJCai a=mnovelodou

 Previously, we could only add missing tables on information_schema or
 pg_catalog from dump json file
 This was inadequate because sometimes we need to manually decide how
 columns data types are going to be
 To address this, this patch adds a flag that allows to specify the json
 file where to find the missing tables

 Release note: None

67375: roachtest: ensure privileges stay consistent after version upgrades r=rafiss a=RichardJCai

roachtest: ensure privileges stay consistent after version upgrades

Release note: None

Resolves #65011

67548: roachtest: fix typeorm apt-get update r=rail a=RichardJCai

Release note: None

67550: authors: add xinhaoz to AUTHORS r=xinhaoz a=xinhaoz

Release note: None

67560: authors: add [email protected] to authors. r=rharding6373 a=rharding6373

Release note: None

Co-authored-by: MiguelNovelo <[email protected]>
Co-authored-by: richardjcai <[email protected]>
Co-authored-by: Xin Hao Zhang <[email protected]>
Co-authored-by: rharding6373 <[email protected]>
@craig
Copy link
Contributor

craig bot commented Jul 13, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jul 13, 2021

Build succeeded:

@craig craig bot merged commit faa4c2c into cockroachdb:master Jul 13, 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.

3 participants