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

release-21.1: sql: copy VIRTUAL columns in CREATE TABLE LIKE #63172

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

mgartner
Copy link
Collaborator

@mgartner mgartner commented Apr 6, 2021

Backport 1/1 commits from #63171.

/cc @cockroachdb/release


This commit fixes a bug where a VIRTUAL column in a source table would
be copied as a STORED column in the destination table in a
CREATE TABLE LIKE expression.

Fixes #63167

Release note (bug fix): Previously, CREATE TABLE LIKE would copy a
VIRTUAL column from the source table as a STORED colum in the
destination table. This bug, which is only present in pre-release 21.1
versions, has been fixed.

This commit fixes a bug where a `VIRTUAL` column in a source table would
be copied as a `STORED` column in the destination table in a
`CREATE TABLE LIKE` expression.

Fixes cockroachdb#63167

Release note (bug fix): Previously, CREATE TABLE LIKE would copy a
VIRTUAL column from the source table as a STORED colum in the
destination table. This bug, which is only present in pre-release 21.1
versions, has been fixed.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rytaft and @yuzefovich)

Copy link
Collaborator

@rytaft rytaft left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 2 of 0 LGTMs obtained (waiting on @yuzefovich)

@mgartner mgartner merged commit e826d37 into cockroachdb:release-21.1 Apr 7, 2021
@mgartner mgartner deleted the backport21.1-63171 branch April 7, 2021 20:06
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.

None yet

4 participants