diff --git a/dbms/tests/queries/0_stateless/00251_has_types.reference b/dbms/tests/queries/0_stateless/00251_has_types.reference new file mode 100644 index 00000000000..e22d7202705 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00251_has_types.reference @@ -0,0 +1,20 @@ +1 +1 +0 +1 +0 +1 +1 +0 +1 +0 +1 +1 +0 +1 +0 +1 +1 +0 +1 +0 diff --git a/dbms/tests/queries/0_stateless/00251_has_types.sql b/dbms/tests/queries/0_stateless/00251_has_types.sql new file mode 100644 index 00000000000..f64354b15eb --- /dev/null +++ b/dbms/tests/queries/0_stateless/00251_has_types.sql @@ -0,0 +1,23 @@ +SELECT has([1, 2, 3], 3.0); +SELECT has([1, 2.0, 3], 2); +SELECT has([1, 2.1, 3], 2); +SELECT has([1, -1], 1); +SELECT has([1, -1], 1000); + +SELECT has(materialize([1, 2, 3]), 3.0); +SELECT has(materialize([1, 2.0, 3]), 2); +SELECT has(materialize([1, 2.1, 3]), 2); +SELECT has(materialize([1, -1]), 1); +SELECT has(materialize([1, -1]), 1000); + +SELECT has([1, 2, 3], materialize(3.0)); +SELECT has([1, 2.0, 3], materialize(2)); +SELECT has([1, 2.1, 3], materialize(2)); +SELECT has([1, -1], materialize(1)); +SELECT has([1, -1], materialize(1000)); + +SELECT has(materialize([1, 2, 3]), materialize(3.0)); +SELECT has(materialize([1, 2.0, 3]), materialize(2)); +SELECT has(materialize([1, 2.1, 3]), materialize(2)); +SELECT has(materialize([1, -1]), materialize(1)); +SELECT has(materialize([1, -1]), materialize(1000));