How to convert the following Postgres query into Snowflake -
INSERT INTO infer (claim_id, patient_id,
rend, bill, from_date, to_date, diff, dx)
SELECT claim_id, patient_id, rend, bill, from_date, to_date, diff, dx
FROM infer_2021q1
ON CONFLICT (claim_id, rend, bill, from_date, to_date, dx)
DO UPDATE
SET
patient_id = excluded.patient_id,
to_rend = excluded.to_rend,
to_bill = excluded.to_bill,
diff = excluded.diff
In Postgres, I am able to run this because columns in the on conflict clause are a unique index. But Snowflake doesn't have indexes so not sure how to run such a query within reasonable time and resource utilization.