v.23.7New Feature
Add Function Aliases for today and now in ClickHouse
Add alias for functionstoday(now available under thecurdate/current_datenames) andnow(current_timestamp). #52106 (Lloyd-Pottiger).
Why it matters
This feature enhances usability and compatibility by providing alternative names for commonly used date and time functions, making it easier for users coming from other SQL environments to write queries and improving code readability.How to use it
Use the aliasescurdate or current_date as substitutes for today, and current_timestamp as a substitute for now in your SQL queries. For example:SELECT <code>curdate</code>(), <code>current_timestamp</code>()
FROM system.one