[ 
https://issues.apache.org/jira/browse/CALCITE-6323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tanner Clary resolved CALCITE-6323.
-----------------------------------
    Resolution: Fixed

Merged via 
[b412fa4|https://github.com/apache/calcite/commit/b412fa4ac0b1340a9f4e50c1d7ae4c869dcd1d2f],
 thanks for the review, [~mbudiu]!

> Serialize return type during RelJson.toJson(RexNode node) for 
> SqlKind.SAFE_CAST
> -------------------------------------------------------------------------------
>
>                 Key: CALCITE-6323
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6323
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Tanner Clary
>            Assignee: Tanner Clary
>            Priority: Major
>              Labels: pull-request-available
>
> This is essentially the exact same as [CALCITE-5607] for 
> SqlKind.SAFE_CAST[1]. We need to preserve the desired cast type so that when 
> going from json->rex, we know what type we want to cast to. We do this for 
> the standard CAST, so we're really just trying to align the two functions. 
> [1] 
> https://github.com/apache/calcite/blob/main/core/src/main/java/org/apache/calcite/rel/externalize/RelJson.java#L635



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to