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

importccl: Fixes target col bug for IMPORT INTO #39455

Merged
merged 1 commit into from
Aug 16, 2019

Conversation

adityamaru27
Copy link
Contributor

There was an edge case where if you did not specify any target
columns and your target table had a PK specified, then we would
fail the IMPORT because your non-target col (PK column) was non-nullable.

Added check that we did indeed specify at least one target before
enforcing the non-nullable condition.

Release note: None

@adityamaru27 adityamaru27 requested a review from dt August 8, 2019 15:44
@cockroach-teamcity
Copy link
Member

This change is Reviewable

There was an edge case where if you did not specify any target
columns and your target table had a PK specified, then we would
fail the IMPORT because your non-target col was non-nullable.

Added check that we did indeed specify at least one target before
enforcing the non-nullable clause.

Release note: None
@adityamaru27
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Aug 16, 2019
39455: importccl: Fixes target col bug for IMPORT INTO r=adityamaru27 a=adityamaru27

There was an edge case where if you did not specify any target
columns and your target table had a PK specified, then we would
fail the IMPORT because your non-target col (PK column) was non-nullable.

Added check that we did indeed specify at least one target before
enforcing the non-nullable condition.

Release note: None

Co-authored-by: Aditya Maru <[email protected]>
@craig
Copy link
Contributor

craig bot commented Aug 16, 2019

Build succeeded

@craig craig bot merged commit 022f0da into cockroachdb:master Aug 16, 2019
@adityamaru27 adityamaru27 deleted the target-col-bug branch August 19, 2019 15:42
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.

3 participants