Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-29648

"LocalDateTime not supported" error when retrieving Java TypeInformation from PyFlink

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              Juntao Hu Juntao Hu
              Juntao Hu Juntao Hu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: