From 3827d90bb0e896320d8281073a266a75fa6773ce Mon Sep 17 00:00:00 2001 From: Yakov Olkhovskiy Date: Tue, 8 Oct 2024 02:37:41 +0000 Subject: [PATCH] add test --- .../0_stateless/03250_ephemeral_comment.reference | 0 tests/queries/0_stateless/03250_ephemeral_comment.sql | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/queries/0_stateless/03250_ephemeral_comment.reference create mode 100644 tests/queries/0_stateless/03250_ephemeral_comment.sql diff --git a/tests/queries/0_stateless/03250_ephemeral_comment.reference b/tests/queries/0_stateless/03250_ephemeral_comment.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/queries/0_stateless/03250_ephemeral_comment.sql b/tests/queries/0_stateless/03250_ephemeral_comment.sql new file mode 100644 index 00000000000..906417b9c29 --- /dev/null +++ b/tests/queries/0_stateless/03250_ephemeral_comment.sql @@ -0,0 +1,11 @@ +drop table if exists test; +CREATE TABLE test ( + `start_s` UInt32 EPHEMERAL COMMENT 'start UNIX time' , + `start_us` UInt16 EPHEMERAL COMMENT 'start microseconds', + `finish_s` UInt32 EPHEMERAL COMMENT 'finish UNIX time', + `finish_us` UInt16 EPHEMERAL COMMENT 'finish microseconds', + `captured` DateTime MATERIALIZED fromUnixTimestamp(start_s), + `duration` Decimal32(6) MATERIALIZED finish_s - start_s + (finish_us - start_us)/1000000 +) +ENGINE Null; +drop table if exists test;