Skip to content

[python] Validate write column schema types#8530

Merged
JingsongLi merged 1 commit into
apache:masterfrom
discivigour:bug/p/typeCast
Jul 10, 2026
Merged

[python] Validate write column schema types#8530
JingsongLi merged 1 commit into
apache:masterfrom
discivigour:bug/p/typeCast

Conversation

@discivigour

Copy link
Copy Markdown
Contributor

Purpose

Fix schema validation for partial-column writes in paimon-python.

Previously, when with_write_type(...) was used, _validate_pyarrow_schema accepted input as long as the input field names matched write_cols, without checking the corresponding table field types. This could allow an inferred int64 Arrow column to be written into an int32 table column.

Tests

  • test_column_subset_write_rejects_int64_for_int32()

@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit 1d9e9f3 into apache:master Jul 10, 2026
6 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