Улучшения комментариев
This commit is contained in:
1 parent
16e8a883b8
commit
31dde678c5
10 files changed
+16
-9
No files matched your search
@@ -37,6 +37,7 @@ FROM stg.flights_ext AS ext
|
||||
CROSS JOIN max_batch_ts AS mb
|
||||
WHERE ext.scheduled_departure > mb.max_ts
|
||||
AND NOT EXISTS (
|
||||
-- Идемпотентность: при повторном запуске/ретрае не вставляем повторно те же строки в рамках текущего batch_id.
|
||||
SELECT 1
|
||||
FROM stg.flights AS f
|
||||
WHERE f.batch_id = '{{ run_id }}'::text
|
||||
|
||||
Reference in new issue
Block a user