kevinjqliu opened a new pull request, #469: URL: https://github.com/apache/iceberg-python/pull/469
Addresses #376 We want to be able to accept `int` type in the `properties` field of Table and TableMetadata. For example, > create_table(..., properties={"write.parquet.compression-level": 42}) This PR adds a "before" field validator to `TableMetadataCommonFields` which will transform the values of the `properties` dict to str. Note, we explicitly disallow `None` type, since the transformation will change `None` to str `"None"` which is unintuitive. References * https://stackoverflow.com/questions/77304167/using-pydantic-to-change-int-to-string * https://docs.pydantic.dev/latest/concepts/validators/#field-validators -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org