Skip to content

fix(schema): reject spec-forbidden decimal scale changes in update_column#14

Open
abnobdoss wants to merge 3 commits into
mainfrom
v3/w2-bughunt
Open

fix(schema): reject spec-forbidden decimal scale changes in update_column#14
abnobdoss wants to merge 3 commits into
mainfrom
v3/w2-bughunt

Conversation

@abnobdoss

Copy link
Copy Markdown
Owner

No description provided.

Abanoub Doss added 3 commits June 23, 2026 09:23
promote(DecimalType, ...) compared file_type.scale == file_type.scale
(always True) instead of file_type.scale == read_type.scale, allowing
update_column() to accept a forbidden decimal scale change. A scale
decrease then makes scans crash with ArrowInvalid (table unreadable);
a scale increase produces spec-violating metadata. Matches Java
TypeUtil.isPromotionAllowed (scale must stay fixed, precision may widen).
@abnobdoss abnobdoss closed this Jun 25, 2026
@abnobdoss abnobdoss reopened this Jun 25, 2026
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