How can i extract day hour and time from frilk table api
final Table select = transactions
.window(Tumble.over(lit(1).hour()).on($("transaction_time")).as("log_ts"))
.groupBy($("transaction_time").year(),$("transaction_time").month(),$("transaction_time").day())
.select(
$("account_id"),
$("log_ts").start().as("log_ts"),
$("amount").sum().as("amount") );
return select;
i want to group based on each day . example record
cast(2020-01-01T00:12, TIMESTAMP(3))
the above group by is something what i was trying but its showing the following error
org.apache.flink.table.api.ValidationException: Invalid constant for year-month interval: transaction_time