v.21.3Improvement
Usability Improvement: Enhanced DateTime64 Parsing for Subsecond Resolution
Usability improvement: more consistentDateTime64parsing: recognize the case when unix timestamp with subsecond resolution is specified as scaled integer (like1111111111222instead of1111111111.222). This closes #13194. #21053 (alexey-milovidov).
Why it matters
This feature addresses inconsistencies in parsingDateTime64 values by enabling ClickHouse to correctly interpret scaled integer representations of unix timestamps with subsecond resolution. It enhances usability by supporting a more flexible input format, reducing errors and making data ingestion easier for users dealing with high-precision time values.How to use it
Users can benefit from this improved parsing automatically without any configuration changes. When inserting or queryingDateTime64 data, both subsecond timestamps as decimals and as scaled integers will be correctly recognized and parsed.