Skip to content

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

Merged
wgtmac merged 1 commit into
apache:mainfrom
huan233usc:test/default-value-write-evolve-read-e2e
Aug 15, 2026
Merged

test: cover write, evolve and read back of a defaulted column end to end#874
wgtmac merged 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 8 times, most recently from 671473f to 2d2a3b3 Compare August 6, 2026 18:24
@huan233usc
huan233usc force-pushed the test/default-value-write-evolve-read-e2e branch from 2d2a3b3 to a17dbe7 Compare August 7, 2026 17:56

@wgtmac wgtmac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @huan233usc!

@wgtmac
wgtmac merged commit 6dff5ac into apache:main Aug 15, 2026
18 checks passed
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.

2 participants