Skip to content

sql: change plan_hash in system.statement_statistics from Int to Bytes#69502

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
Azhng:sqlstats-planhash-byte
Aug 28, 2021
Merged

sql: change plan_hash in system.statement_statistics from Int to Bytes#69502
craig[bot] merged 1 commit intocockroachdb:masterfrom
Azhng:sqlstats-planhash-byte

Conversation

@Azhng
Copy link
Copy Markdown
Contributor

@Azhng Azhng commented Aug 27, 2021

Previously, plan_hash column in {crdb_internal,system}.statement_statistics
has the type Int. However, since plan_hash behaves with more
blob-like nature, Bytes is a more suitable data type.
This commit change the column type for plan hash to Bytes.

Release justification: Category 2: Bug fixes and low-risk updates to
new functionality

Release note (sql change): plan_hash column in both
system.statement_statistics and crdb_internal.statement_statistics
is changed from Int to Bytes.

@Azhng Azhng requested review from a team August 27, 2021 21:38
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

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.

Starting monday I don't think you can change the structure of this table. Even this is getting pretty tight.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

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:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

Copy link
Copy Markdown
Contributor

@maryliag maryliag 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! 2 of 0 LGTMs obtained

@Azhng
Copy link
Copy Markdown
Contributor Author

Azhng commented Aug 27, 2021

Sorry for the last minute PR.

bors r=maryliag,ajwerner

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 28, 2021

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 28, 2021

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 28, 2021

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 28, 2021

Build failed:

@Azhng Azhng force-pushed the sqlstats-planhash-byte branch from 6e4bd51 to 069b590 Compare August 28, 2021 13:19
Previously, `plan_hash` column in {crdb_internal,system}.statement_statistics
has the type Int. However, since `plan_hash` behaves with more
blob-like nature, Bytes is a more suitable data type.
This commit change the column type for plan hash to Bytes.

Release justification: Category 2: Bug fixes and low-risk updates to
new functionality

Release note (sql change): plan_hash column in both
system.statement_statistics and crdb_internal.statement_statistics
is changed from Int to Bytes.
@Azhng Azhng force-pushed the sqlstats-planhash-byte branch from 069b590 to 964285a Compare August 28, 2021 13:26
@Azhng
Copy link
Copy Markdown
Contributor Author

Azhng commented Aug 28, 2021

Merge skew :/

bors r=maryliag,ajwerner

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 28, 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.

4 participants