Skip to content

Standardize CompressionTypeVariant encoding in protobuf - #8785

Merged
metesynnada merged 6 commits into
apache:mainfrom
tushushu:wip-issue-8680
Jan 10, 2024
Merged

metesynnada merged 6 commits into
apache:mainfrom
tushushu:wip-issue-8680

Conversation

@tushushu

@tushushu tushushu commented Jan 8, 2024

Copy link
Copy Markdown
Contributor

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?

@metesynnada metesynnada left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Comment thread datafusion/proto/proto/datafusion.proto Outdated
string delimiter = 8;
string definition = 9;
string file_compression_type = 10;
CompressionTypeVariant file_compression_type = 10;

Copy link
Copy Markdown
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
Copy Markdown
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

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
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