troubleshooting
Can we create a schema for a materialized view with a primary key and upsert functionality on collision?
I want to create a primary key in a materialized view with an upsert functionality on collision. What should I do if the materialized view is created from a source that is not a table?
ha
harshit dwivedi
Asked on Feb 12, 2024
-
Materialized views inherit the primary key of the upstream table.
-
Set the primary key of the upstream table to achieve the requirements.
-
If the materialized view is created from a source that is not a table, specify the source as upsert during creation.
-
Refer to the documentation for specific details: SQL Create Source Documentation
Feb 12, 2024Edited by