Skip to content

Conversation

@Fokko
Copy link
Contributor

@Fokko Fokko commented Oct 6, 2023

We were sending a table identifier before in ['accounting', 'tax', 'invoices'], but it has to be {'namespace': ['accounting, 'tax'], 'name': 'invoices'} 😭

Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

Choose a reason for hiding this comment

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

Just a nit, but overall LGTM!

transaction.remove_properties("abc")

assert table.properties == {}
assert table.properties == {'write.parquet.compression-codec': 'zstd'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I suppose we could just define a constant default properties set with the compression codec set, and then just use that in all the tests except the table properties test. The tables property test would be the union of the DEFAULT properties and the "abc" property.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point @amogh-jahagirdar Updated the code.

Can't wait for the new dictionary merge code d1 | d2

@Fokko Fokko merged commit 6e9b716 into apache:main Oct 7, 2023
Fokko referenced this pull request in Fokko/iceberg-python Oct 15, 2023
* Fix the TableIdentifier

* Make the rest of the tests happy

* Add default properties
@Fokko Fokko added this to the PyIceberg 0.5.1 release milestone Oct 15, 2023
@Fokko Fokko deleted the fd-fix-table-identifier branch February 9, 2024 11:52
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.

2 participants