Aman Sinha has posted comments on this change. ( http://gerrit.cloudera.org:8080/24048 )
Change subject: IMPALA-14639: Calcite planner should not allow date cast to int ...................................................................... Patch Set 1: Code-Review+2 (1 comment) http://gerrit.cloudera.org:8080/#/c/24048/1//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/24048/1//COMMIT_MSG@12 PS1, Line 12: select cast(date '2000-12-21' as int); > There are 2 types of CASTs that we have in our codebase: Thanks for the explanation. So it appears any explicit cast is not validated in Calcite during the SQL to Rel conversion and it delegates the responsibility to the underlying SQL engine when the logical to physical plan conversion is done. -- To view, visit http://gerrit.cloudera.org:8080/24048 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Icad76e6c1db489ecdfa620109baa47232331a42d Gerrit-Change-Number: 24048 Gerrit-PatchSet: 1 Gerrit-Owner: Steve Carlin <[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: Steve Carlin <[email protected]> Gerrit-Comment-Date: Wed, 18 Mar 2026 03:37:40 +0000 Gerrit-HasComments: Yes
