Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.16.0
Description
The following code raises "TypeError: The java type info: LocalDateTime is not supported in PyFlink currently.":
t_env.to_data_stream(t).key_by(...)
However, this works:
t_env.to_data_stream(t).map(lambda r: r).key_by(...)
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.
Attachments
Issue Links
- is related to
-
FLINK-29658 LocalTime support when converting Table to DataStream in PyFlink
- Closed
- links to