提交 eb22d7ff authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix unstable tests in PageStore mode

上级 356414ab
...@@ -77,17 +77,17 @@ INSERT INTO TEST VALUES (1, 'a'), (2, 'a'), (3, 'b'), (4, 'c'), (5, 'c'), (6, 'c ...@@ -77,17 +77,17 @@ INSERT INTO TEST VALUES (1, 'a'), (2, 'a'), (3, 'b'), (4, 'c'), (5, 'c'), (6, 'c
SELECT ARRAY_AGG(ID), NAME FROM TEST; SELECT ARRAY_AGG(ID), NAME FROM TEST;
> exception MUST_GROUP_BY_COLUMN_1 > exception MUST_GROUP_BY_COLUMN_1
SELECT ARRAY_AGG(ID), NAME FROM TEST GROUP BY NAME; SELECT ARRAY_AGG(ID ORDER BY ID), NAME FROM TEST GROUP BY NAME;
> ARRAY_AGG(ID) NAME > ARRAY_AGG(ID ORDER BY ID) NAME
> ------------- ---- > ------------------------- ----
> (1, 2) a > (1, 2) a
> (3) b > (3) b
> (4, 5, 6) c > (4, 5, 6) c
> rows: 3 > rows: 3
SELECT ARRAY_AGG(ID) OVER (), NAME FROM TEST; SELECT ARRAY_AGG(ID ORDER BY ID) OVER (), NAME FROM TEST;
> ARRAY_AGG(ID) OVER () NAME > ARRAY_AGG(ID ORDER BY ID) OVER () NAME
> --------------------- ---- > --------------------------------- ----
> (1, 2, 3, 4, 5, 6) a > (1, 2, 3, 4, 5, 6) a
> (1, 2, 3, 4, 5, 6) a > (1, 2, 3, 4, 5, 6) a
> (1, 2, 3, 4, 5, 6) b > (1, 2, 3, 4, 5, 6) b
...@@ -96,9 +96,9 @@ SELECT ARRAY_AGG(ID) OVER (), NAME FROM TEST; ...@@ -96,9 +96,9 @@ SELECT ARRAY_AGG(ID) OVER (), NAME FROM TEST;
> (1, 2, 3, 4, 5, 6) c > (1, 2, 3, 4, 5, 6) c
> rows: 6 > rows: 6
SELECT ARRAY_AGG(ID) OVER (PARTITION BY NAME), NAME FROM TEST; SELECT ARRAY_AGG(ID ORDER BY ID) OVER (PARTITION BY NAME), NAME FROM TEST;
> ARRAY_AGG(ID) OVER (PARTITION BY NAME) NAME > ARRAY_AGG(ID ORDER BY ID) OVER (PARTITION BY NAME) NAME
> -------------------------------------- ---- > -------------------------------------------------- ----
> (1, 2) a > (1, 2) a
> (1, 2) a > (1, 2) a
> (3) b > (3) b
...@@ -107,9 +107,9 @@ SELECT ARRAY_AGG(ID) OVER (PARTITION BY NAME), NAME FROM TEST; ...@@ -107,9 +107,9 @@ SELECT ARRAY_AGG(ID) OVER (PARTITION BY NAME), NAME FROM TEST;
> (4, 5, 6) c > (4, 5, 6) c
> rows: 6 > rows: 6
SELECT ARRAY_AGG(ID) FILTER (WHERE ID < 3 OR ID > 4) OVER (PARTITION BY NAME), NAME FROM TEST ORDER BY NAME; SELECT ARRAY_AGG(ID ORDER BY ID) FILTER (WHERE ID < 3 OR ID > 4) OVER (PARTITION BY NAME), NAME FROM TEST ORDER BY NAME;
> ARRAY_AGG(ID) FILTER (WHERE ((ID < 3) OR (ID > 4))) OVER (PARTITION BY NAME) NAME > ARRAY_AGG(ID ORDER BY ID) FILTER (WHERE ((ID < 3) OR (ID > 4))) OVER (PARTITION BY NAME) NAME
> ---------------------------------------------------------------------------- ---- > ---------------------------------------------------------------------------------------- ----
> (1, 2) a > (1, 2) a
> (1, 2) a > (1, 2) a
> null b > null b
...@@ -124,9 +124,9 @@ SELECT ARRAY_AGG(SUM(ID)) OVER () FROM TEST; ...@@ -124,9 +124,9 @@ SELECT ARRAY_AGG(SUM(ID)) OVER () FROM TEST;
> (21) > (21)
> rows: 1 > rows: 1
SELECT ARRAY_AGG(ID) OVER() FROM TEST GROUP BY ID; SELECT ARRAY_AGG(ID ORDER BY ID) OVER() FROM TEST GROUP BY ID;
> ARRAY_AGG(ID) OVER () > ARRAY_AGG(ID ORDER BY ID) OVER ()
> --------------------- > ---------------------------------
> (1, 2, 3, 4, 5, 6) > (1, 2, 3, 4, 5, 6)
> (1, 2, 3, 4, 5, 6) > (1, 2, 3, 4, 5, 6)
> (1, 2, 3, 4, 5, 6) > (1, 2, 3, 4, 5, 6)
...@@ -143,17 +143,17 @@ SELECT ARRAY_AGG(NAME) OVER(PARTITION BY NAME) FROM TEST GROUP BY NAME; ...@@ -143,17 +143,17 @@ SELECT ARRAY_AGG(NAME) OVER(PARTITION BY NAME) FROM TEST GROUP BY NAME;
> (c) > (c)
> rows: 3 > rows: 3
SELECT ARRAY_AGG(ARRAY_AGG(ID)) OVER (PARTITION BY NAME), NAME FROM TEST GROUP BY NAME; SELECT ARRAY_AGG(ARRAY_AGG(ID ORDER BY ID)) OVER (PARTITION BY NAME), NAME FROM TEST GROUP BY NAME;
> ARRAY_AGG(ARRAY_AGG(ID)) OVER (PARTITION BY NAME) NAME > ARRAY_AGG(ARRAY_AGG(ID ORDER BY ID)) OVER (PARTITION BY NAME) NAME
> ------------------------------------------------- ---- > ------------------------------------------------------------- ----
> ((1, 2)) a > ((1, 2)) a
> ((3)) b > ((3)) b
> ((4, 5, 6)) c > ((4, 5, 6)) c
> rows: 3 > rows: 3
SELECT ARRAY_AGG(ARRAY_AGG(ID)) OVER (PARTITION BY NAME), NAME FROM TEST GROUP BY NAME OFFSET 1 ROW; SELECT ARRAY_AGG(ARRAY_AGG(ID ORDER BY ID)) OVER (PARTITION BY NAME), NAME FROM TEST GROUP BY NAME OFFSET 1 ROW;
> ARRAY_AGG(ARRAY_AGG(ID)) OVER (PARTITION BY NAME) NAME > ARRAY_AGG(ARRAY_AGG(ID ORDER BY ID)) OVER (PARTITION BY NAME) NAME
> ------------------------------------------------- ---- > ------------------------------------------------------------- ----
> ((3)) b > ((3)) b
> ((4, 5, 6)) c > ((4, 5, 6)) c
> rows: 2 > rows: 2
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论