Skip to content

[CALCITE-3039] In Interpreter, min() incorrectly returns maximum double value#1191

Closed
dijkspicy wants to merge 2 commits intoapache:masterfrom
dijkspicy:master
Closed

[CALCITE-3039] In Interpreter, min() incorrectly returns maximum double value#1191
dijkspicy wants to merge 2 commits intoapache:masterfrom
dijkspicy:master

Conversation

@dijkspicy
Copy link
Contributor

…ax as its comparision in AggragateNode ?

MinDouble should use Math::min to compare

super(Double.MAX_VALUE, Math::max);
super(Double.MAX_VALUE, Math::min);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add a test?

@zhztheplayer zhztheplayer changed the title [CALCITE-3039] Why MinFloat use Math::min while MinDouble use Math::m… [CALCITE-3039] In Interpreter, min() incorrectly returns maximum double value Apr 30, 2019
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.

2 participants