Impala Public Jenkins has submitted this change and it was merged. (
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
Reviewed-on: http://gerrit.cloudera.org:8080/24260
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
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, 22 insertions(+), 3 deletions(-)
Approvals:
Impala Public Jenkins: Looks good to me, approved; Verified
--
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: merged
Gerrit-Change-Id: I766c138fae027ba0d919daa5cce38dc93d7144d1
Gerrit-Change-Number: 24260
Gerrit-PatchSet: 8
Gerrit-Owner: Steve Carlin <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aman Sinha <[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]>