Skip to content

test: cover write, evolve and read back of a defaulted column end to end - #874

Open
huan233usc wants to merge 1 commit into
apache:mainfrom
huan233usc:test/default-value-write-evolve-read-e2e
Open

test: cover write, evolve and read back of a defaulted column end to end#874
huan233usc wants to merge 1 commit into
apache:mainfrom
huan233usc:test/default-value-write-evolve-read-e2e

Conversation

@huan233usc

@huan233usc huan233usc commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Writes a data file, adds a column with an initial-default via UpdateSchema, then reads the pre-evolution file back with the evolved schema and checks the old rows materialize the default.

Parametrized over both formats (Parquet, Avro) and over long / string / boolean / date / decimal(9,2) / timestamp / uuid — 14 cases. The read-path tests build the projected schema by hand and the evolution tests never touch a data file, so the seam between the two was uncovered; per-type coverage only existed at the ToArrowScalar unit layer, not through a real write and read (uuid in particular goes through the arrow.uuid extension type).

data_test passes (169). Verified the assertions bite by feeding wrong expected values.

@huan233usc
huan233usc force-pushed the test/default-value-write-evolve-read-e2e branch 5 times, most recently from de3d8ec to 5ef472c Compare August 6, 2026 06:27
@huan233usc
huan233usc force-pushed the test/default-value-write-evolve-read-e2e branch from 5ef472c to a5172b7 Compare August 6, 2026 06:32
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.

1 participant