This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare partitions array<date> default [] | |
; | |
-- create this table if not exists | |
create table if not exists poc_eu.test_fact_wip_scd2_copy_api_del_ins ( | |
event_id STRING, | |
effective_from TIMESTAMP, | |
effective_to TIMESTAMP | |
) | |
partition by date(effective_from) | |
cluster by event_id, effective_from, effective_to |