Skip to content

support normalize nan and zero#1016

Merged
richox merged 2 commits intoapache:masterfrom
Flyangz:feature/support-normalize-nan-and-zero
Jun 11, 2025
Merged

support normalize nan and zero#1016
richox merged 2 commits intoapache:masterfrom
Flyangz:feature/support-normalize-nan-and-zero

Conversation

@Flyangz
Copy link
Contributor

@Flyangz Flyangz commented Jun 9, 2025

Which issue does this PR close?

Closes #1015.

.apply(precision, IntegerType) :: Literal.apply(scale, IntegerType) :: Nil
buildExtScalarFunction("CheckOverflow", args, DecimalType(precision, scale))

case e: NormalizeNaNAndZero =>
Copy link
Contributor

Choose a reason for hiding this comment

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

should we add if e.dataType == IntegerType | LongType constraints? as current implementation only supports floating numbers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@Flyangz Flyangz requested a review from richox June 10, 2025 03:24
@richox richox merged commit 85f5995 into apache:master Jun 11, 2025
619 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support NormalizeNaNAndZero

2 participants