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

Standardize CompressionTypeVariant encoding in protobuf #8785

Merged
merged 6 commits into from
Jan 10, 2024

Conversation

tushushu
Copy link
Contributor

@tushushu tushushu commented Jan 8, 2024

Which issue does this PR close?

Closes #8680.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Copy link
Contributor

@metesynnada metesynnada left a comment

Choose a reason for hiding this comment

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

LGTM.

@@ -212,7 +212,7 @@ message CreateExternalTableNode {
bool if_not_exists = 7;
string delimiter = 8;
string definition = 9;
string file_compression_type = 10;
CompressionTypeVariant file_compression_type = 10;
Copy link
Member

Choose a reason for hiding this comment

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

I think we should avoid reusing tag numbers.
The reasons can be referenced here.

I prefer to make changes like the following.

reserved 10;  // was string file_compression_type
CompressionTypeVariant file_compression_type = 17;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was not aware of this, thanks @jonahgao for the advice.

@alamb alamb changed the title Standardize compression encoding in protobuf Standardize CompressionTypeVariant encoding in protobuf Jan 9, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

I took the liberty if making @jonahgao 's suggestion to use reserved as well as resolving the clippy error to get this PR's CI checks green

@tushushu
Copy link
Contributor Author

I took the liberty if making @jonahgao 's suggestion to use reserved as well as resolving the clippy error to get this PR's CI checks green

Thanks so much Andrew for the commits, I was supposed to submit the code yesterday.

@metesynnada metesynnada merged commit e78f4bd into apache:main Jan 10, 2024
23 checks passed
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.

Standardize compression encoding in protobuf
4 participants