Hello Impala Public Jenkins, I'd like you to do a code review. Please visit
http://gerrit.cloudera.org:8080/12807 to review the following change. Change subject: IMPALA-7254: Inconsistent decimal behavior for IN/BETWEEN predicate ...................................................................... IMPALA-7254: Inconsistent decimal behavior for IN/BETWEEN predicate In decimal v2, performing a cast that can result in a loss of precision is considered as an error. In the prior code when finding a compatible type for performing a cast between expressions that have decimal and floating types can cause the decimal expressions to never be compared to other decimal expressions. This results in a cast to a type that may not be truly compatible in all expressions, especially when decimal v2 is enabled. This patch fixes it by grouping all the decimals together to make sure they are compatible with each other. Testing: - Added new FE tests - Ran all core tests Change-Id: I44f6ea45f765be7201630541354c72fda0a8a98d Reviewed-on: http://gerrit.cloudera.org:8080/10882 Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> --- M fe/src/main/java/org/apache/impala/analysis/Analyzer.java M fe/src/test/java/org/apache/impala/analysis/AnalyzeExprsTest.java 2 files changed, 100 insertions(+), 5 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/07/12807/2 -- To view, visit http://gerrit.cloudera.org:8080/12807 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: 2.x Gerrit-MessageType: newchange Gerrit-Change-Id: I44f6ea45f765be7201630541354c72fda0a8a98d Gerrit-Change-Number: 12807 Gerrit-PatchSet: 2 Gerrit-Owner: Quanlong Huang <huangquanl...@gmail.com> Gerrit-Reviewer: Fredy Wijaya <fwij...@cloudera.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>