You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/queries/0_stateless/03572_export_mt_part_to_object_storage_simple.sql
+8-16Lines changed: 8 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,15 @@ CREATE TABLE 03572_mt_table (id UInt64, year UInt16) ENGINE = MergeTree() PARTIT
7
7
INSERT INTO 03572_mt_table VALUES (1, 2020);
8
8
9
9
-- Create a table with a different partition key and export a partition to it. It should throw
10
-
CREATETABLE03572_invalid_schema_table (id UInt64, x UInt16)
11
-
ENGINE = S3(
12
-
s3_conn,
13
-
filename='03572_invalid_schema_table',
14
-
format=Parquet, partition_strategy='hive') PARTITION BY x;
10
+
CREATETABLE03572_invalid_schema_table (id UInt64, x UInt16) ENGINE = S3(s3_conn, filename='03572_invalid_schema_table', format='Parquet', partition_strategy='hive') PARTITION BY x;
15
11
16
-
ALTERTABLE$mt_table EXPORT PARTITION ID '2020' TO TABLE 03572_invalid_schema_table
CREATETABLE03572_invalid_schema_table (id UInt64, year UInt16) ENGINE = S3(s3_conn, filename='03572_invalid_schema_table/{_partition_id}', format='Parquet', partition_strategy='wildcard') PARTITION BY (id, year);
19
+
20
+
ALTERTABLE 03572_mt_table EXPORT PARTITION ID '2020' TO TABLE 03572_invalid_schema_table
0 commit comments