SELECT time_bucket_gapfill(86400000, create_time) as "bucket", count(*)
FROM annotation
where create_time > 1661961600000 and create_time < 1664467200000
GROUP BY bucket
The return result is
1661904000000
1661990400000 1
1662076800000
1662163200000
1662249600000
1662336000000
1662422400000
1662508800000 4
1662595200000
1662681600000
You can see that what I limit is to start from 1661961600000 and end at 1664467200000, and the result of the first line is 1661904000000,smaller than my limited start time