Steve Carlin has uploaded a new patch set (#2). (
http://gerrit.cloudera.org:8080/24260 )
Change subject: IMPALA-14946: Catch "trunc" error within Calcite planner
......................................................................
IMPALA-14946: Catch "trunc" error within Calcite planner
For the following query:
select dayofyear(trunc('2014-11-11', string_col))
from functional.alltypestiny limit 1;
...the Calcite planner now throws the same exception as the original
planner does. Previous to this commit, a java exception was being
thrown. This allows the test framework to match error messages when
there is no fallback planner.
Change-Id: I766c138fae027ba0d919daa5cce38dc93d7144d1
---
M
java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaAdjustScaleFunction.java
M testdata/workloads/functional-query/queries/QueryTest/exprs.test
2 files changed, 9 insertions(+), 4 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/60/24260/2
--
To view, visit http://gerrit.cloudera.org:8080/24260
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I766c138fae027ba0d919daa5cce38dc93d7144d1
Gerrit-Change-Number: 24260
Gerrit-PatchSet: 2
Gerrit-Owner: Steve Carlin <[email protected]>