Joe McDonnell has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/22092 )

Change subject: IMPALA-13531: (Addendum) CALCITE-5207 workaround
......................................................................

IMPALA-13531: (Addendum) CALCITE-5207 workaround

Adds a custom ImpalaSqlDatetimePlusOperator to work around CALCITE-5207.

Adds a test that used to fail with "Error while applying rule
MaterializedViewJoinRule(Filter)"

  ClassCastException: class org.apache.calcite.sql.type.BasicSqlType
  cannot be cast to class org.apache.calcite.sql.type.IntervalSqlType

Change-Id: I9d19e83a3e2188a33d2d4a68b5afd3d457f4077c
Reviewed-on: http://gerrit.cloudera.org:8080/22092
Reviewed-by: Joe McDonnell <[email protected]>
Tested-by: Joe McDonnell <[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/operators/ImpalaConvertletTable.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/ImpalaSqlDatetimePlusOperator.java
M testdata/workloads/functional-query/queries/QueryTest/cte.test
5 files changed, 144 insertions(+), 2 deletions(-)

Approvals:
  Joe McDonnell: Looks good to me, approved; Verified

--
To view, visit http://gerrit.cloudera.org:8080/22092
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9d19e83a3e2188a33d2d4a68b5afd3d457f4077c
Gerrit-Change-Number: 22092
Gerrit-PatchSet: 42
Gerrit-Owner: Michael Smith <[email protected]>
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]>

Reply via email to