forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-25227][table-planner] Fix LEAST/GREATEST to return primitives
Previously, `LEAST` and `GREATEST` functions would return primitive types in the generated code implementing their logic, producing issues for operators applied on top of them, and most importantly comparison operators, i.e.: ``` f0 INT, f1 INT SELECT GREATEST(f0, f1) = GREATEST(f0, f1) ``` would return `FALSE`, since the generated code would return `Integer` instead of `int`, as the result of `GREATEST`, and the `=` operator on `Integer` objects would return false, even if the actual integer value of them was the same.
- Loading branch information
1 parent
317ba33
commit 89cdc6e
Showing
2 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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