By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 4 Duplicates: 0 Warnings: 0
from_unixtime(avg(unix_timestamp(ts)) over (rows between 1 preceding and current row)) |
---|
2023-01-01 00:00:00.0000 |
2023-01-01 12:00:00.0000 |
2023-01-02 12:00:00.0000 |
2023-01-03 12:00:00.0000 |
from_unixtime(avgts) |
---|
2023-01-01 00:00:00.0000 |
2023-01-01 12:00:00.0000 |
2023-01-02 12:00:00.0000 |
2023-01-03 12:00:00.0000 |