You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Caican Cai (Jira)" <ji...@apache.org> on 2024/08/11 14:38:00 UTC
[jira] [Commented] (CALCITE-6524) The toInt method of SqlFunctions cannot parse a string of decimal type
[ https://issues.apache.org/jira/browse/CALCITE-6524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872696#comment-17872696 ]
Caican Cai commented on CALCITE-6524:
-------------------------------------
I noticed this jira https://issues.apache.org/jira/browse/CALCITE-1439
[~julianhyde] Hi, I would like to ask why
{code:java}
cast('1.2' as integer)
{code}
is invalid.
> The toInt method of SqlFunctions cannot parse a string of decimal type
> ----------------------------------------------------------------------
>
> Key: CALCITE-6524
> URL: https://issues.apache.org/jira/browse/CALCITE-6524
> Project: Calcite
> Issue Type: Improvement
> Reporter: Caican Cai
> Priority: Major
>
> Caused by: java.lang.NumberFormatException: For input string: "2.0"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)