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

[jira] [Closed] (FLINK-24421) Casting from a string to a DATE and TIME allows incomplete strings

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

Timo Walther closed FLINK-24421.
--------------------------------
    Fix Version/s: 1.15.0
     Release Note: The defaults for casting incomplete strings to TIME have changed from `12:01:01` to `12:00:00`.
       Resolution: Fixed

Fixed in master: 18ffed7757551c0219b40c793bca6782636d9a40

> Casting from a string to a DATE and TIME allows incomplete strings
> ------------------------------------------------------------------
>
>                 Key: FLINK-24421
>                 URL: https://issues.apache.org/jira/browse/FLINK-24421
>             Project: Flink
>          Issue Type: Sub-task
>            Reporter: Marios Trivyzas
>            Assignee: Marios Trivyzas
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.15.0
>
>
> The following 2 examples are allowed and produce weird DATE and TIME result objects where normally they should fail.
> *.from(STRING(), "123").resultsIn(LocalDate.of(123, 1, 1))*
> *.from(STRING(), "123").resultsIn(LocalTime.of(23, 1, 1))*



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