Slackbot
05/26/2023, 11:54 PMSergio Ferragut
05/30/2023, 7:26 PMtilak chowdary
05/31/2023, 4:21 AMSergio Ferragut
05/31/2023, 1:02 PMSergio Ferragut
06/01/2023, 9:27 PMREPLACE INTO "msq-reindex-failure" OVERWRITE ALL
WITH "ext" AS (SELECT *
FROM TABLE(
EXTERN(
'{"type": "inline","data": "{\"timestamp\":\"2023-01-01 08:00:00\",\"col1\":1}\n{\"timestamp\":\"2023-01-01 09:00:00\",\"col1\":1}\n{\"timestamp\":\"2023-01-01 10:00:00\",\"col1\":1}\n{\"timestamp\":\"2023-01-01 12:00:00\",\"col1\":1}\n{\"timestamp\":\"2023-01-01 13:00:00\",\"col1\":1}\n{\"timestamp\":\"2023-01-01 15:00:00\",\"col1\":1}\n{\"timestamp\":\"2023-01-01 17:00:00\",\"col1\":1}\n{\"timestamp\":\"2023-01-01 18:00:00\",\"col1\":1}\n{\"timestamp\":\"2023-01-01 19:00:00\",\"col1\":1}\n{\"timestamp\":\"2023-01-01 20:00:00\",\"col1\":1}"}',
'{"type":"json"}',
'[{"name":"timestamp","type":"string"},{"name":"col1","type":"long"}]'
)
))
SELECT
TIME_PARSE("timestamp") AS "__time",
"col1"
FROM "ext"
PARTITIONED BY HOUR
which has gaps in the hours 11, 14, 16 and reindexed with:
REPLACE INTO "msq-reindex-failure-target" OVERWRITE ALL
SELECT *
FROM "msq-reindex-failure"
WHERE __time BETWEEN '2023-01-01' AND '2023-01-02'
PARTITIONED BY HOUR
but it succeeds. Is there an aspect of what you did that I am missing?tilak chowdary
06/01/2023, 9:58 PMtilak chowdary
06/01/2023, 10:51 PMtilak chowdary
06/05/2023, 9:37 PMSergio Ferragut
06/05/2023, 10:21 PMmeili
06/06/2023, 12:34 AMtilak chowdary
06/06/2023, 2:15 AMKaran Kumar
06/06/2023, 5:41 AM