Skip to content

feat: support decimals in trunc UDF#23320

Draft
theirix wants to merge 2 commits into
apache:mainfrom
theirix:trunc-decimal
Draft

feat: support decimals in trunc UDF#23320
theirix wants to merge 2 commits into
apache:mainfrom
theirix:trunc-decimal

Conversation

@theirix

@theirix theirix commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Introduce Decimal support for trunc - for feature parity and to solve overflowing issues with large integers

What changes are included in this PR?

  • Decimal support for scalar and array cases
  • A helper for decimals
  • SLTs

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trunc(decimal) produces unexpected/wrong results above 2^53

1 participant