Skip to content

Commit

Permalink
fix: sqlness
Browse files Browse the repository at this point in the history
  • Loading branch information
v0y4g3r committed Mar 26, 2024
1 parent 6c174d6 commit d1dbeb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
11 changes: 3 additions & 8 deletions tests/cases/standalone/common/copy/copy_to_fs.result
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
--- Set time zone ---
set time_zone='Asia/Shanghai';

Affected Rows: 0

CREATE TABLE demo(host string, cpu DOUBLE, memory DOUBLE, ts TIMESTAMP TIME INDEX);

Affected Rows: 0
Expand All @@ -11,15 +6,15 @@ insert into demo(host, cpu, memory, ts) values ('host1', 66.6, 1024, 16552765570

Affected Rows: 2

COPY demo TO '/tmp/export/demo.parquet' WITH (start_time='2022-06-15 15:02:37', end_time='2022-06-15 15:02:38');
COPY demo TO '/tmp/export/demo.parquet' WITH (start_time='2022-06-15 07:02:37', end_time='2022-06-15 07:02:38');

Affected Rows: 1

COPY demo TO '/tmp/export/demo.csv' WITH (format='csv', start_time='2022-06-15 15:02:37', end_time='2022-06-15 15:02:38');
COPY demo TO '/tmp/export/demo.csv' WITH (format='csv', start_time='2022-06-15 07:02:37', end_time='2022-06-15 07:02:38');

Affected Rows: 1

COPY demo TO '/tmp/export/demo.json' WITH (format='json', start_time='2022-06-15 15:02:37', end_time='2022-06-15 15:02:38');
COPY demo TO '/tmp/export/demo.json' WITH (format='json', start_time='2022-06-15 07:02:37', end_time='2022-06-15 07:02:38');

Affected Rows: 1

Expand Down
9 changes: 3 additions & 6 deletions tests/cases/standalone/common/copy/copy_to_fs.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
--- Set time zone ---
set time_zone='Asia/Shanghai';

CREATE TABLE demo(host string, cpu DOUBLE, memory DOUBLE, ts TIMESTAMP TIME INDEX);

insert into demo(host, cpu, memory, ts) values ('host1', 66.6, 1024, 1655276557000), ('host2', 88.8, 333.3, 1655276558000);

COPY demo TO '/tmp/export/demo.parquet' WITH (start_time='2022-06-15 15:02:37', end_time='2022-06-15 15:02:38');
COPY demo TO '/tmp/export/demo.parquet' WITH (start_time='2022-06-15 07:02:37', end_time='2022-06-15 07:02:38');

COPY demo TO '/tmp/export/demo.csv' WITH (format='csv', start_time='2022-06-15 15:02:37', end_time='2022-06-15 15:02:38');
COPY demo TO '/tmp/export/demo.csv' WITH (format='csv', start_time='2022-06-15 07:02:37', end_time='2022-06-15 07:02:38');

COPY demo TO '/tmp/export/demo.json' WITH (format='json', start_time='2022-06-15 15:02:37', end_time='2022-06-15 15:02:38');
COPY demo TO '/tmp/export/demo.json' WITH (format='json', start_time='2022-06-15 07:02:37', end_time='2022-06-15 07:02:38');

drop table demo;

0 comments on commit d1dbeb1

Please sign in to comment.