Skip to content

sql/schemachanger: respect user type for computed columns#81699

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-computed-column-types
May 24, 2022
Merged

sql/schemachanger: respect user type for computed columns#81699
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-computed-column-types

Conversation

@ajwerner
Copy link
Copy Markdown
Contributor

Before this change, we'd use the inferred type of the expression to determine
the type of the column. This is wrong, we must use the type provided by the
user. Fortunately, we've never shipped this code.

Along the way, this also fixes a bug whereby unsupported vector types could be
added as computed columns.

Release note: None

Before this change, we'd use the inferred type of the expression to determine
the type of the column. This is wrong, we must use the type provided by the
user. Fortunately, we've never shipped this code.

Along the way, this also fixes a bug whereby unsupported vector types could be
added as computed columns.

Release note: None
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@ajwerner ajwerner marked this pull request as ready for review May 23, 2022 23:05
@ajwerner ajwerner requested review from a team and fqazi May 23, 2022 23:05
Copy link
Copy Markdown
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

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

Good find!

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ajwerner)

@ajwerner
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 24, 2022

Build succeeded:

@craig craig bot merged commit 7b36e20 into cockroachdb:master May 24, 2022
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