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

Timo Walther commented on FLINK-24422:
--------------------------------------

Yes, we should reject this conversion. Only conversion defined in `LogicalType` 
are allowed. This seems like a bug to me.

> When creating a TIMESTAMP_LTZ only allow Instant
> ------------------------------------------------
>
>                 Key: FLINK-24422
>                 URL: https://issues.apache.org/jira/browse/FLINK-24422
>             Project: Flink
>          Issue Type: Sub-task
>            Reporter: Marios Trivyzas
>            Assignee: Francesco Guardiani
>            Priority: Major
>
> Currently we also accept *LocalDateTime* objects:
> *.from(TIMESTAMP_LTZ(), 
> LocalDateTime.parse("2021-09-24T12:34:56.123456")).resultsIn(LocalDate.of(2021,
>  9, 24))*



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to