This is the function I was using to group by 30 mins of intervals in SQL:
convert(time(0),dateadd(minute,(datediff(minute,0,a.Datetime)/30)*30,0))
where for example Datetime is 2023-03-09 00:26:01.6830000
grouped as 00:00:00.
First column values are the Datetime and second is after grouping it to 30 mins intervals
I need equivalent function in Databricks SQL.