Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/19790 )
Change subject: IMPALA-12042: Fix invalid casts in set operations calculation ...................................................................... IMPALA-12042: Fix invalid casts in set operations calculation This patch adds an additional type check for every expression listed in set operations, avoiding invalid casts. For example: values (true), (123), (111.0) produced an invalid cast from BOOLEAN to DECIMAL(4,1), now, the additional check detects the incompatibility before creating the cast expressions. Test: - test case added to AnalyzeStmtsTest.java Change-Id: I02df42c67deda37b7f71db267dc761778a9caa2b Reviewed-on: http://gerrit.cloudera.org:8080/19790 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M fe/src/main/java/org/apache/impala/analysis/Analyzer.java M fe/src/test/java/org/apache/impala/analysis/AnalyzeStmtsTest.java 2 files changed, 9 insertions(+), 0 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/19790 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I02df42c67deda37b7f71db267dc761778a9caa2b Gerrit-Change-Number: 19790 Gerrit-PatchSet: 8 Gerrit-Owner: Peter Rozsa <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Daniel Becker <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]>
