[
https://issues.apache.org/jira/browse/CALCITE-6078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17781154#comment-17781154
]
Mihai Budiu commented on CALCITE-6078:
--------------------------------------
I don't think it's an exact duplicate. This issue is just about the runtime
behavior of casts assuming that the types are specified.
As I read the other issue, it also seems to be about the type inference: what
is the inferred precision of the scale of the intermediate results?
There is also [CALCITE-6073], which is more related to [CALCITE-5860]
> Explicit cast to DECIMAL types do not check for overflow
> --------------------------------------------------------
>
> Key: CALCITE-6078
> URL: https://issues.apache.org/jira/browse/CALCITE-6078
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.35.0
> Reporter: Mihai Budiu
> Priority: Minor
>
> This is a follow-up from [CALCITE-5990]
> That issue dealt with integers and floating point.
> This issue is about casts to DECIMAL in which the cast value exceeds the
> scale of the target result. Apparently Calcite does not handle such casts
> properly. There are multiple disabled SqlOperatorTests for this condition.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)