Skip to content

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

Merged
alamb merged 1 commit into
apache:mainfrom
Jefffrey:fix-mdn-generics
Jun 22, 2026
Merged

fix: switch generic usages of i128 to IntervalMonthDayNano for MonthDayNano type#10171
alamb merged 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

@alamb alamb 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.

Makes sense to me -- thank you @Jefffrey

FYI @kawadakk

@alamb alamb merged commit aa09633 into apache:main Jun 22, 2026
30 checks passed
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

2 participants