[ 
https://issues.apache.org/jira/browse/IMPALA-13516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954835#comment-17954835
 ] 

weihua zhang commented on IMPALA-13516:
---------------------------------------

[~scarlin]


{code:sql}
set use_calcite_planner=1;

select cast(current_timestamp()  as string format 'yyyy-mm-dd hh24:mi');
ERROR: ParseException: Encountered "format" at line 1, column 44.
Was expecting one of:
    "ARRAY" ...
    "CHARACTER" ...
    "MULTISET" ...
    "(" ...
    ")" ...
    
{code}


{code:sql}
set use_calcite_planner=0;

select cast(current_timestamp()  as string format 'yyyy-mm-dd hh24:mi');
+-----------------------------------------------------------------+
| cast(current_timestamp() as string format 'yyyy-mm-dd hh24:mi') |
+-----------------------------------------------------------------+
| 2025-05-29 10:39                                                |
+-----------------------------------------------------------------+
Fetched 1 row(s) in 0.35s
{code}



> Calcite Planner: Fix explicit cast issues
> -----------------------------------------
>
>                 Key: IMPALA-13516
>                 URL: https://issues.apache.org/jira/browse/IMPALA-13516
>             Project: IMPALA
>          Issue Type: Improvement
>    Affects Versions: Impala 4.5.0
>            Reporter: Steve Carlin
>            Assignee: Steve Carlin
>            Priority: Major
>             Fix For: Impala 4.5.0
>
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to