From 0a9c49beeec3e88ba38add13bed00f01184c57fe Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 22 Apr 2020 03:48:03 +0300 Subject: [PATCH] Added a test from @filimonov #9936 --- tests/queries/0_stateless/01258_wrong_cast_filimonov.reference | 0 tests/queries/0_stateless/01258_wrong_cast_filimonov.sql | 1 + 2 files changed, 1 insertion(+) create mode 100644 tests/queries/0_stateless/01258_wrong_cast_filimonov.reference create mode 100644 tests/queries/0_stateless/01258_wrong_cast_filimonov.sql diff --git a/tests/queries/0_stateless/01258_wrong_cast_filimonov.reference b/tests/queries/0_stateless/01258_wrong_cast_filimonov.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/queries/0_stateless/01258_wrong_cast_filimonov.sql b/tests/queries/0_stateless/01258_wrong_cast_filimonov.sql new file mode 100644 index 00000000000..5bcc159b384 --- /dev/null +++ b/tests/queries/0_stateless/01258_wrong_cast_filimonov.sql @@ -0,0 +1 @@ +create table x( id UInt64, t AggregateFunction(argMax, Enum8('' = -1, 'Male' = 1, 'Female' = 2), UInt64) DEFAULT arrayReduce('argMaxState', ['cast(-1, \'Enum8(\'\' = -1, \'Male\' = 1, \'Female\' = 2)'], [toUInt64(0)]) ) Engine=MergeTree ORDER BY id; -- { serverError 70 }