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

Core: Support view metadata compression #8552

Merged
merged 1 commit into from Oct 11, 2023

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Sep 12, 2023

No description provided.

@ValueSource(strings = {"none", "gzip"})
public void metadataCompression(String codecName) throws IOException {
Codec codec = Codec.fromName(codecName);
String location = Paths.get(tmp.toString(), "v1" + getFileExtension(codec)).toString();
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that this should rely on getFileExtension. It's fine that it is used by BaseViewOperations to name the file, but there's no need to do that here. Instead, I think this should be parameterized by file name (v1.metadata.json and v1.gz.metadata.json) so that it is obvious what happens based on the file name in the test. Otherwise this is testing that the extension produced by getFileExtension triggers some behavior in the parser, rather than a specific extension triggers behavior in the parser.

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 aligning this test with how compression was tested for table metadata in

public void testCompressionProperty() throws IOException {
but I've changed it to have explicit file names

@nastra nastra requested a review from rdblue October 6, 2023 17:07
@rdblue rdblue merged commit b7e5d68 into apache:master Oct 11, 2023
45 checks passed
@rdblue
Copy link
Contributor

rdblue commented Oct 11, 2023

Thanks, @nastra!

@nastra nastra deleted the view-apis-with-compression branch October 12, 2023 06:05
@nastra nastra moved this from In progress to Done in View support Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants