-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(python, rust): use new schema for stats parsing instead of old (#…
…2480) # Description In some edge cases where we schema evolve, it would parse the stats with the old schema result in these kind of errors: `Exception: Json error: whilst decoding field 'minValues': whilst decoding field 'foo': failed to parse 1000000000000 as Int8` ```python import polars as pl from deltalake import write_deltalake pl.DataFrame({ "foo": [1] }, schema={"foo": pl.Int8}).write_delta("TEST_TABLE_BUG") write_deltalake("TEST_TABLE_BUG", data = pl.DataFrame({ "foo": [1000000000000] }, schema={"foo": pl.Int64}).to_arrow(), mode='overwrite', overwrite_schema=True,engine='rust') ``` Instead of taking the old schema, I added an optional schema to be passed in the logMapper
- Loading branch information
1 parent
d0617b5
commit e25aed7
Showing
3 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters