Repository navigation
fix(databases): recognise a table's create commit with deltalake 1.7 (ITL-1443) - #536
Conversation
…(ITL-1443) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 4 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Fixes ITL-1443
deltalake 1.7 made
DeltaTable.history()a lazy iterator._created_with()indexed it outside itstry, so after the commit that creates a table the reload failed with'generator' object is not subscriptable: aCould not reload ... after committingwarning, and the ids of the create were not carried forward in memory. Results and stored rows were not affected._created_with()takes the first entry of either shape (next(iter(...), None)), inside thetry, because a lazy history can raise when read.history()uselist(...), so they run on both versions.uv.lockchange is needed.deltalake 1.7 release notes against what Orcapod uses
history(): the one API that broke the library.test_a_concurrent_commit_is_not_permanentmerges streamed, with disjoint integer ids; it now uses the same id.to_pyarrow_dataset, now refusing column-mapped tables: Orcapod creates none.to_pyarrow_table's pyarrow engine is deprecated: used in tests only.historyiterator fails the reload after a create, and drops its idstest_a_create_is_recognised_whatever_shape_history_has[list / iterator]test_a_create_whose_history_cannot_be_read_is_not_seeded[empty / raises when read]MERGE conflict probe (not a test in this PR)
1.1234567890123455(float64) and1.123456789012345678(decimal(38,18)), with two writers and a non-streamed MERGE, on 1.7.0 as on 1.6.6. Compared with 1.6.6, 1.7.0 fixes only microsecond timestamps and ordinary decimals.a,b,é, U+1F600, U+FFFF; long string: 80x, alone and followed bya,b,cor U+1F60000,01,ff, 40 bytes offf; long binary: 80 bytes of01, then00,01,02orffDeltaTableDatabase, two and three writers, one id per type: int64 5, stringa, the 80-character string plusa, date32 2026-01-01, timestamp[us] 2026-01-01 00:00:00.000001 with and without zone, decimal(10,2) 0.01, float64 0.1, binarya, bool true. 1.7.0 stored each once; 1.6.6 (locked) stored the timestamps and the decimal twice.Not in this PR: a CI job on the newest deltalake. Nothing here keeps a future deltalake release under test.
Verified
tests/test_databasesandtests/test_pipeline: 9707 passed, 0 failed, noCould not reload.delta_lake_databases.pyand this branch's tests, five targeted files: 7 failed.--checkand changelog check clean.🤖 Generated with Claude Code