Weike Dong created FLINK-28757:
----------------------------------
Summary: Increase precision of TIME fields in JSON Format
Key: FLINK-28757
URL: https://issues.apache.org/jira/browse/FLINK-28757
Project: Flink
Issue Type: Improvement
Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
Affects Versions: 1.15.1, 1.14.5, 1.13.6
Reporter: Weike Dong
Currently, TIME fields in JSON Format could only support a precision with ZERO
decimal places, like '12:33:16', regardless of the precision of the original
data ingested from the sources.
However, since Flink internally uses Integer to store the values of TIME
fields, the precision could be easily extended to 3 decimal places, like
'12:33:16.235', which has been confirmed by switching to other formats or
modifying _org.apache.flink.formats.json.JsonToRowDataConverters#convertToTime_
Hence I propose the extend the precision of TIME fields in JSON Format from 0
to 3.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)