diff --git a/docker/postgres-setup/init.sql b/docker/postgres-setup/init.sql index 72b2f73192e00..f2bda8b2e1dd9 100644 --- a/docker/postgres-setup/init.sql +++ b/docker/postgres-setup/init.sql @@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS metadata_aspect_v2 ( create index timeIndex ON metadata_aspect_v2 (createdon); -- create default records for datahub user if not exists -CREATE TEMP TABLE temp_metadata_aspect_v2 AS TABLE metadata_aspect_v2; +CREATE TEMP TABLE temp_metadata_aspect_v2 AS TABLE metadata_aspect_v2 WITH NO DATA; INSERT INTO temp_metadata_aspect_v2 (urn, aspect, version, metadata, createdon, createdby) VALUES( 'urn:li:corpuser:datahub', 'corpUserInfo',