Ah ok, understood. Thanks for pointing out the new feature. What I may do is go slow and target only segments that are not being ingested into, wait for that segment to close and then do the final segment.
So my next question, if I use the REPLACE OVERWRITE with a TIMESTAMP do I need to use the corresponding date range in the SELECT query or can I still use the generic
SELECT *
FROM TelegrafEvent
WHERE metric_group <> 'Lldp'
REPLACE INTO <target table>
OVERWRITE WHERE __time >= TIMESTAMP '<lower bound>' AND __time < TIMESTAMP '<upper bound>'
< SELECT query >
PARTITIONED BY <time granularity>
[ CLUSTERED BY <column list> ]