|
@@ -51,18 +51,15 @@ groupByModScalar
|
|
|
SELECT (emp_no % 3) + 1 AS e FROM test_emp GROUP BY e ORDER BY e;
|
|
|
|
|
|
// group by nested functions with no alias
|
|
|
-//https://github.com/elastic/elasticsearch/issues/40239
|
|
|
-groupByTruncate-Ignore
|
|
|
+groupByTruncate
|
|
|
SELECT CAST(TRUNCATE(EXTRACT(YEAR FROM "birth_date")) AS INTEGER) FROM test_emp GROUP BY CAST(TRUNCATE(EXTRACT(YEAR FROM "birth_date")) AS INTEGER) ORDER BY CAST(TRUNCATE(EXTRACT(YEAR FROM "birth_date")) AS INTEGER);
|
|
|
-//https://github.com/elastic/elasticsearch/issues/40239
|
|
|
-groupByRound-Ignore
|
|
|
+groupByRound
|
|
|
SELECT CAST(ROUND(EXTRACT(YEAR FROM "birth_date")) AS INTEGER) FROM test_emp GROUP BY CAST(ROUND(EXTRACT(YEAR FROM "birth_date")) AS INTEGER) ORDER BY CAST(ROUND(EXTRACT(YEAR FROM "birth_date")) AS INTEGER);
|
|
|
groupByAtan2
|
|
|
SELECT ATAN2(YEAR("birth_date"), 5) FROM test_emp GROUP BY ATAN2(YEAR("birth_date"), 5) ORDER BY ATAN2(YEAR("birth_date"), 5);
|
|
|
groupByPower
|
|
|
SELECT POWER(YEAR("birth_date"), 2) FROM test_emp GROUP BY POWER(YEAR("birth_date"), 2) ORDER BY POWER(YEAR("birth_date"), 2);
|
|
|
-//https://github.com/elastic/elasticsearch/issues/40239
|
|
|
-groupByPowerWithCast-Ignore
|
|
|
+groupByPowerWithCast
|
|
|
SELECT CAST(POWER(YEAR("birth_date"), 2) AS DOUBLE) FROM test_emp GROUP BY CAST(POWER(YEAR("birth_date"), 2) AS DOUBLE) ORDER BY CAST(POWER(YEAR("birth_date"), 2) AS DOUBLE);
|
|
|
groupByConcat
|
|
|
SELECT LEFT(CONCAT("first_name", "last_name"), 3) FROM test_emp GROUP BY LEFT(CONCAT("first_name", "last_name"), 3) ORDER BY LEFT(CONCAT("first_name", "last_name"), 3) LIMIT 15;
|