Affects Version/s: 1.12.1
Fix Version/s: None
Component/s: Table SQL / Ecosystem
flink-csv's CsvRowSerializationSchema currently rely on legacy TypeInformation to serialize java Types.
It doesn't support ZonedDateTime (only LocalDateTime with LOCAL_DATE_TIME)
An exception is thrown when CsvRowSerializationSchema is built with a RowTypeInformaton containing a TypeInformation.of(ZonedDateTime.class). See CsvRowSchemaConverter.java line 201.
A quick fix would be to use `toString()` by default in the serializer instead of throwing an Exception. Apache CSV already does this way.
I'm using flink-csv and Apache Flink 1.12.1
Am I missing anything regarding a more recent flink-csv implementation?
If not, is it planned to move flink-csv to DataTypes types (with DataTypes.TIMESTAMP_WITH_TIME_ZONE support)?
All the best