Skip to content

fix: switch generic usages of i128 to IntervalMonthDayNano for MonthDayNano type#10171

Open
Jefffrey wants to merge 1 commit into
apache:mainfrom
Jefffrey:fix-mdn-generics
Open

fix: switch generic usages of i128 to IntervalMonthDayNano for MonthDayNano type#10171
Jefffrey wants to merge 1 commit into
apache:mainfrom
Jefffrey:fix-mdn-generics

Conversation

@Jefffrey

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Some functions were still using i128 for generic type in relation to monthdaynano type, which is incorrect since i128 has an alignment of 16 whilst actual IntervalMonthDayNano type only has 8; this mismatch can cause panics on certain code paths.

What changes are included in this PR?

Switch usage of i128 to IntervalMonthDayNano

Are these changes tested?

Test from original issue.

Are there any user-facing changes?

No.

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Jun 21, 2026
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.

MutableArrayData::new expects a large alignment for IntervalMonthDayNanoType arrays

1 participant