v.25.6New Feature
New data types: Time ([H]HH:MM:SS) and Time64
New data types:Time([H]HH:MM:SS) andTime64([H]HH:MM:SS[.fractional]), and some basic cast functions and functions to interact with other data types. Added settings for compatibility with the existing functiontoTime. The settinguse_legacy_to_timeis set to keep the old behavior for now. #81217 (Yarik Briukhovetskyi). Support comparison between Time/Time64. #80327 (Yarik Briukhovetskyi).
Why it matters
These additions provide more precise and flexible time data representation by allowing fractional seconds withTime64 and improving compatibility with existing time functions. The enhancement solves the limitation of handling and comparing time values with higher precision and broadens ClickHouse's data type capabilities for time-related use cases.How to use it
Users can start using theTime and Time64 data types in their table schemas and queries. To maintain compatibility with the existing toTime function behavior, the use_legacy_to_time setting is provided and enabled by default for now. Comparisons between Time and Time64 values are supported directly in queries.