-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
311bb6b
to
8553226
Compare
core/src/test/java/org/apache/iceberg/view/TestViewMetadataParser.java
Outdated
Show resolved
Hide resolved
@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(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 { |
8553226
to
2eb49de
Compare
2eb49de
to
243a4b9
Compare
Thanks, @nastra! |
No description provided.