Skip to content

Fix case handling for columns added to Python Tablet - #1182

Merged
ColinLeeo merged 1 commit into
apache:developfrom
ColinLeeo:fix/python-tablet-column-case
Dec 3, 2026
Merged

ColinLeeo merged 1 commit into
apache:developfrom
ColinLeeo:fix/python-tablet-column-case

Conversation

@ColinLeeo

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1180. Tablet.add_column("VaLuE", ...) preserved the spelling of the field while the table schema stored value. Writing the field by name raised ValueError. Assigning 42 by column index allowed the file to close successfully, but querying value after reopening returned NULL.

Normalize appended column names to lowercase as the Tablet constructor does. Apply the same lookup rule when reading a buffered value or removing a column. The SDK reference now documents this behavior.

Tests

Both regression tests reproduce the issue on cdf1fb06. The file round-trip test assigns the value by index so it also catches a writer silently dropping the field.

./mvnw clean verify -P with-python-only passed on macOS arm64 with Python 3.11 and a matching native build. Pytest reported 716 passed and 16 skipped. Spotless, wheel packaging and git diff --check passed.

@ColinLeeo
ColinLeeo merged commit 58aa056 into apache:develop Dec 3, 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.

1 participant