Digging into the error a little more I get the below message
’ cannot create series from Extension(“knime.logical_type”, Int64, Some(“{"value_factory_class":"org.knime.core.data.v2.time.LocalDateValueFactory"}”))’
If anyone else has this issue may this can help you as well, but if someone can advise if I had to fix something to avoid this issue in general - let me know
The issue you’re encountering stems from how KNIME handles data types when transferring data to pandas. KNIME uses extension arrays (pyarrow, pandas) for certain columns, such as date and time, because KNIME’s date and time types can have different ranges and precision compared to Python’s native datetime. This ensures that no data is lost during the transfer.
However, not all libraries (like polars) can handle these extension types directly. Therefore, the solution of explicitly converting these columns to standard datetime types in pandas before passing them to the library is reasonable to ensure compatibility.
It’s interesting that you had to set sys.stdout encoding to UTF-8. I’m curious why this step was necessary. When reading stdout back in, we generally expect it to use the system’s encoding. Could there have been a specific issue you were running into that made this adjustment helpful?