Repository navigation
fix(AttributeTypeUtils): use Double.NEGATIVE_INFINITY instead of Double.MIN_VALUE - #4145
Merged
Merged
Conversation
Contributor
Author
Contributor
|
@Xiao-zhen-Liu Can you review it? |
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
…le.MIN_VALUE (apache#4145) ### What changes were proposed in this PR? This PR fixes the value returned by `minValue` for `AttributeType.DOUBLE` in `AggregationOperation.scala`. Previously, the code used `Double.MIN_VALUE`, which is the smallest positive non-zero double, not the most-negative value. https://github.com/apache/texera/blob/7711ea51718a024f75f4a7e4d780e148ab5c503d/common/workflow-operator/src/main/scala/org/apache/amber/operator/aggregate/AggregationOperation.scala#L335-L345 The fix replaces `Double.MIN_VALUE` with `Double.NEGATIVE_INFINITY` and add new testing. ### Any related issues, documentation, discussions? Closes apache#4144 Related discussion: apache#4049 (Clarify minValue intent in AggregationOperation) ### How was this PR tested? - AggregateOpSpec.scala - AttributeTypeUtilsSpec.scala - Frontend Manual Test ### Was this PR authored or co-authored using generative AI tooling? No --------- Co-authored-by: Xiaozhen Liu <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
…le.MIN_VALUE (apache#4145) ### What changes were proposed in this PR? This PR fixes the value returned by `minValue` for `AttributeType.DOUBLE` in `AggregationOperation.scala`. Previously, the code used `Double.MIN_VALUE`, which is the smallest positive non-zero double, not the most-negative value. https://github.com/apache/texera/blob/07c35d004a1185e4098b56591166b62cc9ab4856/common/workflow-operator/src/main/scala/org/apache/amber/operator/aggregate/AggregationOperation.scala#L335-L345 The fix replaces `Double.MIN_VALUE` with `Double.NEGATIVE_INFINITY` and add new testing. ### Any related issues, documentation, discussions? Closes apache#4144 Related discussion: apache#4049 (Clarify minValue intent in AggregationOperation) ### How was this PR tested? - AggregateOpSpec.scala - AttributeTypeUtilsSpec.scala - Frontend Manual Test ### Was this PR authored or co-authored using generative AI tooling? No --------- Co-authored-by: Xiaozhen Liu <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
This PR fixes the value returned by
minValueforAttributeType.DOUBLEinAggregationOperation.scala.Previously, the code used
Double.MIN_VALUE, which is the smallest positive non-zero double, not the most-negative value.texera/common/workflow-operator/src/main/scala/org/apache/amber/operator/aggregate/AggregationOperation.scala
Lines 335 to 345 in 07c35d0
The fix replaces
Double.MIN_VALUEwithDouble.NEGATIVE_INFINITYand add new testing.Any related issues, documentation, discussions?
Closes #4144
Related discussion: #4049 (Clarify minValue intent in AggregationOperation)
How was this PR tested?
Was this PR authored or co-authored using generative AI tooling?
No