Skip to content

Commit

Permalink
test(snowflake): revert temp table usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jan 25, 2023
1 parent 04b75ef commit e9c1579
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ci/schema/snowflake.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CREATE OR REPLACE FILE FORMAT ibis_testing

CREATE OR REPLACE STAGE ibis_testing file_format = ibis_testing;

CREATE TEMP TABLE diamonds (
CREATE OR REPLACE TABLE diamonds (
"carat" FLOAT,
"cut" TEXT,
"color" TEXT,
Expand All @@ -19,7 +19,7 @@ CREATE TEMP TABLE diamonds (
"z" FLOAT
);

CREATE TEMP TABLE batting (
CREATE OR REPLACE TABLE batting (
"playerID" TEXT,
"yearID" BIGINT,
"stint" BIGINT,
Expand All @@ -44,7 +44,7 @@ CREATE TEMP TABLE batting (
"GIDP" BIGINT
);

CREATE TEMP TABLE awards_players (
CREATE OR REPLACE TABLE awards_players (
"playerID" TEXT,
"awardID" TEXT,
"yearID" BIGINT,
Expand All @@ -53,7 +53,7 @@ CREATE TEMP TABLE awards_players (
"notes" TEXT
);

CREATE TEMP TABLE functional_alltypes (
CREATE OR REPLACE TABLE functional_alltypes (
"index" BIGINT,
"Unnamed: 0" BIGINT,
"id" INTEGER,
Expand All @@ -71,7 +71,7 @@ CREATE TEMP TABLE functional_alltypes (
"month" INTEGER
);

CREATE TEMP TABLE array_types (
CREATE OR REPLACE TABLE array_types (
"x" ARRAY,
"y" ARRAY,
"z" ARRAY,
Expand All @@ -88,14 +88,14 @@ INSERT INTO array_types ("x", "y", "z", "grouper", "scalar_column", "multi_dim")
SELECT [2, NULL, 3], ['b', NULL, 'c'], NULL, 'b', 5.0, NULL UNION
SELECT [4, NULL, NULL, 5], ['d', NULL, NULL, 'e'], [4.0, NULL, NULL, 5.0], 'c', 6.0, [[1, 2, 3]];

CREATE TEMP TABLE map ("kv" OBJECT);
CREATE OR REPLACE TABLE map ("kv" OBJECT);

INSERT INTO map ("kv")
SELECT object_construct('a', 1, 'b', 2, 'c', 3) UNION
SELECT object_construct('d', 4, 'e', 5, 'c', 6);


CREATE TEMP TABLE struct ("abc" OBJECT);
CREATE OR REPLACE TABLE struct ("abc" OBJECT);

INSERT INTO struct ("abc")
SELECT {'a': 1.0, 'b': 'banana', 'c': 2} UNION
Expand All @@ -106,7 +106,7 @@ INSERT INTO struct ("abc")
SELECT NULL UNION
SELECT {'a': 3.0, 'b': 'orange', 'c': NULL};

CREATE TEMP TABLE json_t ("js" VARIANT);
CREATE OR REPLACE TABLE json_t ("js" VARIANT);

INSERT INTO json_t ("js")
SELECT parse_json('{"a": [1,2,3,4], "b": 1}') UNION
Expand All @@ -116,7 +116,7 @@ INSERT INTO json_t ("js")
SELECT parse_json('[42,47,55]') UNION
SELECT parse_json('[]');

CREATE TEMP TABLE win ("g" TEXT, "x" BIGINT, "y" BIGINT);
CREATE OR REPLACE TABLE win ("g" TEXT, "x" BIGINT, "y" BIGINT);
INSERT INTO win VALUES
('a', 0, 3),
('a', 1, 2),
Expand Down

0 comments on commit e9c1579

Please sign in to comment.