[
https://issues.apache.org/jira/browse/HIVE-29833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18106645#comment-18106645
]
Ruben Q L commented on HIVE-29833:
----------------------------------
See discussion here:
https://github.com/apache/hive/pull/6523/changes#r3756900158
> Override isSafeOperator method on Hive operators that are safe
> --------------------------------------------------------------
>
> Key: HIVE-29833
> URL: https://issues.apache.org/jira/browse/HIVE-29833
> Project: Hive
> Issue Type: Improvement
> Reporter: Ruben Q L
> Priority: Major
>
> Some Calcite simplifications on RexSimplify's SafeRexVisitor that are
> currently "blocked" could be enabled by overriding isSafeOperator method to
> return true (instead of the default false) on those Hive operators that we
> can consider "safe" (i.e. that shall not throw at runtime, unlike e.g.
> DIVISION which can throw in case of. division by zero).
> Potential candidates (currently not covered by standard Calcite RexSimplify
> SafeRexVisitor code):
> - HiveExtractDate
> - others?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)