-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: Default to zstd compression for Parquet in new tables #8593
Conversation
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
Outdated
Show resolved
Hide resolved
Assert.assertEquals(Collections.singletonMap("dummy", "test"), table.properties()); | ||
Map<String, String> expectedProperties = defaultProperties(); | ||
expectedProperties.put("dummy", "test"); | ||
Assert.assertEquals(expectedProperties, table.properties()); |
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 think it's fine to have tests for specific catalogs, but I don't think that setting this property is a general behavior of all catalogs that we want to validate. I'd remove these tests because this is up to the catalog implementation and it is fine if a catalog implementation doesn't apply this default. It can still be a valid implementation.
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.
Are you suggesting to modify all tests to ensure dummy
key is present instead of validating the actual set of properties?
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.
Yes. Tests like these should ensure that the property passed in is present in properties, not that we have the exact set of properties.
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 think the tests should assert that the expected properties are a subset of actual properties and should not expect or assert that there are any specific default properties added. That's the basic contract here.
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.
Makes sense. Updated tests.
22f9039
to
a10d3c5
Compare
Co-authored-by: Szehon Ho <[email protected]> Co-authored-by: Kyle Bendickson <[email protected]>
a10d3c5
to
db67144
Compare
Thanks, @szehon-ho, @aokolnychyi, and @kbendick! |
This introduced a new property to the table: https://github.com/trinodb/trino/pull/19188/files#diff-f5cd96d1ec33fae497df9613afcefff034f01c99adf961e927ccd76e637c7b81R4704-R4711 |
The |
This PR is an updated and rebased version of #8299.