2022-05-13 23:04:12 +00:00
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number, number % 2, number % 3) = 6
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
2022-05-18 15:23:31 +00:00
|
|
|
GROUP BY
|
|
|
|
number,
|
|
|
|
number % 2
|
|
|
|
ORDER BY number; -- { serverError BAD_ARGUMENTS }
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number, number % 2) = 3
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
2022-05-13 23:04:12 +00:00
|
|
|
GROUP BY
|
|
|
|
number,
|
|
|
|
number % 2
|
|
|
|
ORDER BY number;
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number),
|
|
|
|
GROUPING(number % 2)
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
number,
|
|
|
|
number % 2
|
|
|
|
ORDER BY number;
|
2022-05-16 17:33:38 +00:00
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
2022-05-18 15:23:31 +00:00
|
|
|
grouping(number, number % 2) AS gr
|
2022-05-16 17:33:38 +00:00
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
number,
|
|
|
|
number % 2
|
|
|
|
WITH ROLLUP
|
|
|
|
ORDER BY
|
|
|
|
number, gr;
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
2022-05-18 15:23:31 +00:00
|
|
|
grouping(number, number % 2) AS gr
|
2022-05-16 17:33:38 +00:00
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
ROLLUP(number, number % 2)
|
|
|
|
ORDER BY
|
|
|
|
number, gr;
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number, number % 2) AS gr
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
number,
|
|
|
|
number % 2
|
|
|
|
WITH CUBE
|
|
|
|
ORDER BY
|
|
|
|
number, gr;
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number, number % 2) AS gr
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
CUBE(number, number % 2)
|
|
|
|
ORDER BY
|
|
|
|
number, gr;
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number, number % 2) + 3 as gr
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
CUBE(number, number % 2)
|
|
|
|
HAVING grouping(number) != 0
|
|
|
|
ORDER BY
|
|
|
|
number, gr;
|
2022-05-19 16:36:51 +00:00
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number, number % 2) as gr
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
CUBE(number, number % 2) WITH TOTALS
|
|
|
|
HAVING grouping(number) != 0
|
|
|
|
ORDER BY
|
|
|
|
number, gr; -- { serverError NOT_IMPLEMENTED }
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number, number % 2) as gr
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
CUBE(number, number % 2) WITH TOTALS
|
|
|
|
ORDER BY
|
|
|
|
number, gr;
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number, number % 2) as gr
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
ROLLUP(number, number % 2) WITH TOTALS
|
|
|
|
HAVING grouping(number) != 0
|
|
|
|
ORDER BY
|
|
|
|
number, gr; -- { serverError NOT_IMPLEMENTED }
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
number,
|
|
|
|
grouping(number, number % 2) as gr
|
|
|
|
FROM remote('127.0.0.{2,3}', numbers(10))
|
|
|
|
GROUP BY
|
|
|
|
ROLLUP(number, number % 2) WITH TOTALS
|
|
|
|
ORDER BY
|
|
|
|
number, gr;
|