From 140c0f1d13b7e1ae4e544027401aad85f845a0a7 Mon Sep 17 00:00:00 2001 From: trialiya <41265764+trialiya@users.noreply.github.com> Date: Thu, 28 Mar 2024 20:23:44 +0300 Subject: [PATCH] fix(setup): fix postgres setup to create temp table with no data (#10154) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Хазиев Ленар --- docker/postgres-setup/init.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',