ThorneANN opened a new pull request, #4404:
URL: https://github.com/apache/flink-cdc/pull/4404
TIMESTAMP_WITHOUT_TIME_ZONE and TIMESTAMP_WITH_LOCAL_TIME_ZONE fields were
serialized using a hardcoded "yyyy-MM-dd HH:mm:ss" formatter, silently
dropping sub-second precision regardless of the declared column precision.
Add datetimeFormatter(int precision), mirroring the existing timeFormatter,
which appends fractional seconds only when precision > 0. The formatter
instances are cached per precision to avoid repeated allocation.
For StarRocks < 3.1, the fractional part is truncated by the server on
ingestion — no behavioral regression. For StarRocks >= 3.1 (which supports
microsecond DATETIME storage), full precision is now preserved end-to-end.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]