Skip to content

sql: use virtual column for hash sharded index#74138

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
chengxiong-ruan:shard-column-as-virtual-column
Dec 21, 2021
Merged

sql: use virtual column for hash sharded index#74138
craig[bot] merged 1 commit intocockroachdb:masterfrom
chengxiong-ruan:shard-column-as-virtual-column

Conversation

@chengxiong-ruan
Copy link
Copy Markdown
Contributor

fixes #61564

This pr sets Virtual=True for shard column when creating a
hash sharded index. The shard column won't be in any column
family since it's virtual.

Release note (sql change): Shard column of hash sharded index
is now a virtual column instead of stored.

@chengxiong-ruan chengxiong-ruan requested a review from a team December 21, 2021 14:02
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

fixes cockroachdb#61564

This pr sets `Virtual=True` for shard column when creating a
hash sharded index. The shard column won't be in any column
family since it's virtual.

Release note (sql change): Shard column of hash sharded index
is now a virtual column instead of stored.
@chengxiong-ruan chengxiong-ruan force-pushed the shard-column-as-virtual-column branch from e8ffa2b to 91113b0 Compare December 21, 2021 14:55
Copy link
Copy Markdown
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

:lgtm_strong:

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

@chengxiong-ruan
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 21, 2021

Build succeeded:

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.

sql: use virtual column for hash shared indexes

3 participants