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

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


{code:sql}
set use_calcite_planner=1;

select casttobigint(100000);
+------------------------------------------------------------------------------------------------------------------------------+
| AnalyzedFunctionCallExpr{id=null, type=BIGINT, toSql=casttobigint(CAST(100000 
AS INT)), sel=-1.0, evalCost=1.0, #distinct=1} |
+------------------------------------------------------------------------------------------------------------------------------+
| 100000                                                                        
                                               |
+------------------------------------------------------------------------------------------------------------------------------+
Fetched 1 row(s) in 0.11s



set use_calcite_planner=0;

select casttobigint(100000);

ERROR: AnalysisException: casttobigint(100000) is reserved for internal use 
only. Use 'cast(expr AS type)' instead.
{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