Joe McDonnell has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/22031 )
Change subject: IMPALA-13513: Support decode function ...................................................................... IMPALA-13513: Support decode function The decode operator is similar to the case operator. The tricky part for supporting the decode is that some of the operands are search parameters and some are return parameters. The search parameters all need to be compatible with each other. And the return parameters need to be compatible with each other as well. Much of the code deals with casting these parameters to compatible types. Change-Id: Ia3b68fda7cfa14799a41428e35d5bbc5984a801a Reviewed-on: http://gerrit.cloudera.org:8080/22031 Reviewed-by: Michael Smith <[email protected]> Reviewed-by: Joe McDonnell <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M java/calcite-planner/src/main/java/org/apache/impala/calcite/coercenodes/CoerceOperandShuttle.java M java/calcite-planner/src/main/java/org/apache/impala/calcite/functions/FunctionResolver.java M java/calcite-planner/src/main/java/org/apache/impala/calcite/functions/RexCallConverter.java M java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaCustomOperatorTable.java A java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaDecodeFunction.java 5 files changed, 233 insertions(+), 7 deletions(-) Approvals: Michael Smith: Looks good to me, but someone else must approve Joe McDonnell: Looks good to me, approved Impala Public Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/22031 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: Ia3b68fda7cfa14799a41428e35d5bbc5984a801a Gerrit-Change-Number: 22031 Gerrit-PatchSet: 8 Gerrit-Owner: Steve Carlin <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Anonymous Coward (816) Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Steve Carlin <[email protected]>
