Juntao Hu created FLINK-29648:
---------------------------------

             Summary: "LocalDateTime not supported" error when retrieving Java 
TypeInformation from PyFlink
                 Key: FLINK-29648
                 URL: https://issues.apache.org/jira/browse/FLINK-29648
             Project: Flink
          Issue Type: Bug
          Components: API / Python
    Affects Versions: 1.16.0
            Reporter: Juntao Hu
             Fix For: 1.16.0


The following code raises "TypeError: The java type info: LocalDateTime is not 
supported in PyFlink currently.":
{code:java}
t_env.to_data_stream(t).key_by(...){code}
However, this works:
{code:java}
t_env.to_data_stream(t).map(lambda r: r).key_by(...){code}
Although we add Python coders for LocalTimeTypeInfo in 1.16, there's no 
corresponding typeinfo at Python side. So it works when a user immediately does 
processing after to_data_stream since date/time data has already been converted 
to Python object, but when key_by tries to retrieve typeinfo from Java 
TypeInformation, it fails.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to