You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "liwei li (Jira)" <ji...@apache.org> on 2021/10/13 08:33:00 UTC

[jira] [Commented] (FLINK-24414) Casting a decimal to a String doesn't do left zero padding

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

liwei li commented on FLINK-24414:
----------------------------------

We also don't need left zero padding, do we?

> Casting a decimal to a String doesn't do left zero padding
> ----------------------------------------------------------
>
>                 Key: FLINK-24414
>                 URL: https://issues.apache.org/jira/browse/FLINK-24414
>             Project: Flink
>          Issue Type: Sub-task
>            Reporter: Marios Trivyzas
>            Priority: Major
>
> *CAST(a AS STRING)* where *a* is a *DECIMAL(5.3)* with value *9.87* results in
> *9.870* so we only get right 0 padding to fill in the fractional digits.
>  
> Postgres and Oracle also don't do left zero padding.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)