ClickHouse/tests/queries/0_stateless/00710_array_enumerate_dense.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up ()
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

6 lines
366 B
SQL

-- empty result set
SELECT a FROM (SELECT groupArray(intDiv(number, 54321)) AS a, arrayUniq(a) AS u, arrayEnumerateDense(a) AS arr FROM (SELECT number FROM system.numbers LIMIT 1000000) GROUP BY intHash32(number) % 100000) where u <> arrayReverseSort(arr)[1];
SELECT arrayEnumerateDense([[1], [2], [34], [1]]);
SELECT arrayEnumerateDense([(1, 2), (3, 4), (1, 2)]);