HOURS_DIFF (Lakehouse v2)
Returns the number of hours between two datetimes.
Analyze Syntax
Section titled “Analyze Syntax”func.hours_diff(<end>, <start>)Analyze Examples
Section titled “Analyze Examples”func.hours_diff('2024-01-02 10:00:00', '2024-01-01 10:00:00')
┌────┐│ 24 │└────┘SQL Syntax
Section titled “SQL Syntax”HOURS_DIFF(<end>, <start>)SQL Examples
Section titled “SQL Examples”SELECT HOURS_DIFF('2024-01-02 10:00:00', '2024-01-01 10:00:00');
┌────┐│ 24 │└────┘