Steve Carlin has submitted this change and it was merged. ( https://gerrit.cloudera.org/25603 )
Change subject: IMPALA-15877: Calcite planner: fix crash for variance/stddev ...................................................................... IMPALA-15877: Calcite planner: fix crash for variance/stddev Fixed a crash for variance and stddev. Calcite defines these functions with return type decimal. Impala defines them as double. Need to mark these as Impala operators in the Impala operator table. The var_pop and var_samp functions do not exist in Calcite so those do not need to be overridden. Testing: Added tests for functions that caused crash. Change-Id: I8beb958dde6bc7ef5389af00285f059b09f0e37b Reviewed-on: https://gerrit.cloudera.org/25603 Tested-by: Impala Public Jenkins <[email protected]> Reviewed-by: Steve Carlin <[email protected]> --- M java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaOperatorTable.java M testdata/workloads/functional-query/queries/QueryTest/calcite.test 2 files changed, 27 insertions(+), 0 deletions(-) Approvals: Impala Public Jenkins: Verified Steve Carlin: Looks good to me, approved -- To view, visit https://gerrit.cloudera.org/25603 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I8beb958dde6bc7ef5389af00285f059b09f0e37b Gerrit-Change-Number: 25603 Gerrit-PatchSet: 4 Gerrit-Owner: Steve Carlin <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Fang-Yu Rao <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Reviewer: Steve Carlin <[email protected]>
