Hello Steve Carlin, Michael Smith, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/25238
to look at the new patch set (#2).
Change subject: IMPALA-15700: Calcite planner: check DATE units
......................................................................
IMPALA-15700: Calcite planner: check DATE units
Reject sub-day DATE intervals during Calcite validation, matching
Original analysis before optimization. Keep calendar intervals,
TIMESTAMP arithmetic and integer date arithmetic valid.
Retain direct validation/conversion tests and add shared SQL controls.
Native conversion already rejects the invalid runtime cases.
Both regression tests fail without the fix; all four tests pass with
it (82 expressions).
Shared QueryTest passed on both planners with rewrites/codegen off/on:
16 SELECTs and 96 expected rejections, without fallback.
Change-Id: I893573f2db1538490cf0f6c12b275c705366263d
Assisted-by: gpt-6.1-sol
---
M
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java
A
java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteDateIntervalTest.java
A testdata/workloads/functional-query/queries/QueryTest/date-interval.test
M tests/query_test/test_exprs.py
4 files changed, 281 insertions(+), 0 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/38/25238/2
--
To view, visit http://gerrit.cloudera.org:8080/25238
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I893573f2db1538490cf0f6c12b275c705366263d
Gerrit-Change-Number: 25238
Gerrit-PatchSet: 2
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>