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

pkg: revert to 19.2 protobuf order for compute_expr #47269

Merged
merged 1 commit into from
Apr 9, 2020

Conversation

jordanlewis
Copy link
Member

@jordanlewis jordanlewis commented Apr 9, 2020

Fixes #47263

Release note (bug fix): fix incompatibility with 19.2 nodes for tables
with computed columns

@jordanlewis jordanlewis requested a review from knz April 9, 2020 13:01
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

thanks

Copy link
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @jordanlewis)


pkg/sql/sqlbase/structured.proto, line 131 at r1 (raw file):

  optional string compute_expr = 11;
  // Ids of sequences that the column owns.
  repeated uint32 owns_sequence_ids = 12 [(gogoproto.casttype) = "ID"];

There is no requirement for the fields to be in tag order. If this field logically belongs next to own_sequence_ids, shouldn't it be placed there?

Release note (bug fix): fix incompatibility with 19.2 nodes for tables
with computed columns
@jordanlewis
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Apr 9, 2020

Build succeeded

@craig craig bot merged commit bc2d311 into cockroachdb:master Apr 9, 2020
@jordanlewis jordanlewis deleted the fix-compute-expr branch April 13, 2020 13:23
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: upgrade from 19.x to 20.x eliminates all computed columns
4 participants