HonahX commented on issue #502:
URL: https://github.com/apache/iceberg-python/issues/502#issuecomment-1982550509
Hi @kevinjqliu @syun64 I think currently we can also set properties using
dictionaries, just need `**` in front of the dictionary:
```python
properties: Dict[str, str] = {...}
with table.transaction() as transaction:
transaction.set_properties(**properties)
```
This also works for properties having `.` in the key.
We do similar thing for catalog properties:
[load_catalog](https://github.com/apache/iceberg-python/blob/main/pyiceberg/catalog/__init__.py#L185-L219),
[example passing in glue session
properties](https://github.com/apache/iceberg-python/blob/e56326d4a3ba74eb279bf57202a9121c4f2c731d/tests/catalog/test_glue.py#L602-L619)
Do you think the above way is good enough or the `**` thing is still not
very intuitive for users?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]