Steve Carlin has uploaded this change for review. ( https://gerrit.cloudera.org/25392
Change subject: IMPALA-15760: Calcite Planner: Exponents above 38 do not parse ...................................................................... IMPALA-15760: Calcite Planner: Exponents above 38 do not parse The wrong Impala function was being called to derive the type for exponent expressions. The TypesUtil.computeDecimalType(bd) is wrapped by NumericLiteral.inferType(bd). The NumericLiteral method returns a DOUBLE type when the exponent is out of range for Decimal. Testing: Added test to calcite.test Change-Id: I636a374d9ea30582f57eccea6635eed2651489a5 --- M java/calcite-planner/src/main/codegen/templates/Parser.jj M testdata/workloads/functional-query/queries/QueryTest/calcite.test 2 files changed, 19 insertions(+), 2 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/92/25392/1 -- To view, visit https://gerrit.cloudera.org/25392 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I636a374d9ea30582f57eccea6635eed2651489a5 Gerrit-Change-Number: 25392 Gerrit-PatchSet: 1 Gerrit-Owner: Steve Carlin <[email protected]>
