I use this query to create a continuous aggregate on one of my hypertables:
CREATE MATERIALIZED VIEW logschema."aggregateValveMovementDaily" WITH (timescaledb.continuous) AS
SELECT "ID",
time_bucket('1 day', "hour") as "day",
COUNT("ID") as "messageCount",
min("movement") as "movement_min"
FROM logschema."movementHourly"
GROUP BY "ID", "day"
WITH NO DATA;
But the View is populated with data which is exactly what I don't want because we have alot of data which we want to migrate manually.
How can I just get an empty table which I can later fill with data?