Skip to content

Stricter datatype parsing for decimals, fixedsizelists and time32/64#10147

Open
Jefffrey wants to merge 3 commits into
apache:mainfrom
Jefffrey:stricter-dt-parsing
Open

Stricter datatype parsing for decimals, fixedsizelists and time32/64#10147
Jefffrey wants to merge 3 commits into
apache:mainfrom
Jefffrey:stricter-dt-parsing

Conversation

@Jefffrey

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Uphold invariants when parsing datatypes from string.

What changes are included in this PR?

  • Validate time unit for time32/time64 are valid
  • Validate length for fixed size list is non-negative
  • Validate precision/scale for decimals are valid

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Jun 16, 2026

@thepenguinco thepenguinco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks reasonable, maybe few unit test additions would be good to prevent regression?

@Jefffrey

Copy link
Copy Markdown
Contributor Author

Looks reasonable, maybe few unit test additions would be good to prevent regression?

do you mean adding further tests? since this PR does add such unit tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stricter datatype parsing

2 participants