Hello Arnab Karmakar, 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 (#3).

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.

Add direct validation/conversion tests and shared SQL controls.
Check the quoted interval unit in both planner error messages.

Testing: all four Java tests pass (82 expressions). Without the fix,
the two rejection regressions fail as expected. Shared QueryTest
passed on both planners with rewrites/codegen off/on: 16 SELECT
profiles 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, 288 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/38/25238/3
--
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: 3
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>

Reply via email to