Skip to content

feat: enhance support for Decimal128 and Decimal256 #16831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

theirix
Copy link
Contributor

@theirix theirix commented Jul 20, 2025

Which issue does this PR close?

Rationale for this change

Enhancing support for ScalarValue::Decimal128 and ScalarValue::Decimal256

What changes are included in this PR?

  • Add support for Decimal128 and Decimal256 to ScalarValue in functions: new_one, new_zero, new_ten, distance
  • Support simplifcation optimiser rule for Decimal256: is_zero and is_one

Are these changes tested?

Unit tests for optimiser utils

Are there any user-facing changes?

No

theirix added 2 commits July 20, 2025 17:04
Add methods distance, new_zero, new_one, new_ten for Decimal128,
Decimal256
@github-actions github-actions bot added optimizer Optimizer rules common Related to common crate labels Jul 20, 2025
@theirix theirix marked this pull request as ready for review July 20, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Related to common crate optimizer Optimizer rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance support for types in ScalarValue
1 participant