ClickHouse/dbms/tests/queries/0_stateless/00909_arrayEnumerateUniq.reference
proller aad2856eba CLICKHOUSE-4179 : arrayEnumerateDenseRanked arrayEnumerateUniqRanked (#4475)
* Build fixes (clang 7.0.0+)

* better

* wip

* wip

* fix

* fix

* wip

* fix

* clean

* clean

* CLICKHOUSE-4179 WIP

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

*    wip

* wip

* wip

* wip

* wip

* cf

*    wip

* wip

* wip

* wip

* cf

* wip

* wip# Please enter the commit message for your changes. Lines starting

* wip# Please enter the commit message for your changes. Lines starting

* cf

* wip# Please enter the commit message for your changes. Lines starting

* wip

* cf

* wip

* wip

* clean

* clean

* clean

* clean

* wip

* wip

* wip

* cf

* wip

* wip

* wip

* cf

* clean

* wip

* clean

* cf

* clean

* clean

* test

* clean

* wip

* cf

* wip

* clean

* clean

* wip

* wip

* clean

* cf

* clean

* Requested changes

* cf

* no convertToFullColumnIfConst

* clean

* clean

* clean

* fix

* Remove comment
2019-02-28 01:18:58 +03:00

181 lines
4.3 KiB
Plaintext

[1,1,1,1,2,3]
[1,1,1,1,2,3]
same as arrayEnumerateUniq:
[1,1,2] =
[1,1,2]
[1,1,2]
[1,1,1] =
[1,1,1]
[1,1,1]
[1,1,1] =
[1,1,1]
[1,1,1]
[1,1,1] =
[1,1,1]
[1,1,1]
[1,2,1] =
[1,2,1]
[1,2,1]
[1,2,1] =
[1,2,1]
[1,2,1]
1,..,2
[[1,1,1],[2,3,2],[2]] =
[[1,1,1],[2,3,2],[2]]
[[1,1,2],[3,2,4],[1]] =
[[1,1,2],[3,2,4],[1]]
[[1,2,3],[4,5,6],[1]] =
[[1,2,3],[4,5,6],[1]]
[[1,1,1],[1,2,2],[1]] =
[[1,1,1],[1,2,2],[1]]
[[1,1,1],[2,3,2],[1]] =
[[1,1,1],[2,3,2],[1]]
[[1,1,1],[1,2,1],[2]] =
[[1,1,1],[1,2,1],[2]]
[[1,1,1],[1,2,1],[1]] =
[[1,1,1],[1,2,1],[1]]
[[1,1,2],[1,1,2],[1]] =
[[1,1,2],[1,1,2],[1]]
[[1,1,2],[1,1,2],[1]] =
[[1,1,2],[1,1,2],[1]]
[[1,2,3],[1,2,3],[1]] =
[[1,2,3],[1,2,3],[1]]
[[1,1,1],[1,2,1],[1]] =
[[1,1,1],[1,2,1],[1]]
[[1,1,1],[1,1,1],[1]] =
[[1,1,1],[1,1,1],[1]]
[[1,1,2],[1,1,2],[1]] =
[[1,1,2],[1,1,2],[1]]
[[1,1,1],[2,3,2],[1]] =
[[1,1,1],[2,3,2],[1]]
2,..,2
[[1,1,1],[1,2,1],[1]] =
[[1,1,1],[1,2,1],[1]]
[[1,1,2],[1,1,2],[1]] =
[[1,1,2],[1,1,2],[1]]
[[1,1,1],[1,1,1],[1]] =
[[1,1,1],[1,1,1],[1]]
[[1,1,1],[1,2,1],[1]] =
[[1,1,1],[1,2,1],[1]]
[[1,1,1],[1,2,1],[1]] =
[[1,1,1],[1,2,1],[1]]
[[1,1,2],[1,1,2],[1]] =
[[1,1,2],[1,1,2],[1]]
[[1,2,3],[1,2,3],[1]] =
[[1,2,3],[1,2,3],[1]]
[[1,2,3],[1,2,3],[1]] =
[[1,2,3],[1,2,3],[1]]
more:
[[[1,1,1],[1,1,1],[1,1,1]],[[1,1,1],[2,2,2],[1,1,1]],[[1,1]]]
[[[1,1,1],[1,1,1],[1,1,1]],[[1,1,1],[2,2,2],[1,1,1]],[[1,1]]]
[[[1,1,1],[1,1,1],[1,1,1]],[[1,1,1],[1,1,1],[1,1,1]],[[1,1]]]
[[[1,1,1],[2,2,2],[3,3,3]],[[1,1,1],[2,2,2],[3,3,3]],[[1,1]]]
[[[1,1,1],[2,2,2],[3,3,3]],[[4,4,4],[5,5,5],[6,6,6]],[[7,7]]]
[[[1,1,1],[2,2,2],[3,3,3]],[[4,4,4],[5,5,5],[6,6,6]],[[7,7]]]
---------Dense
[1,2,1,3]
[1,2,1,3]
[[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]],[[1,2]]]
[[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]],[[1,2]]]
[[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]],[[1,2]]]
[[1,1,1],[1,1,1],[1]]
[[1,1,1],[1,1,1],[2]]
[1,1,2]
---------table
[1,1,1] [1,1,1] [[1,1,1],[1,1,1],[1]] [[1,1,1],[1,1,1],[1]]
[1,2,3] [2,2,1] [[1,2,3,4],[2,2,1],[3]] [[1,2,4,4],[2,2,1],[3]]
[1,2,3] [4,5,6] [[7,8,9],[10,11,12],[13]] [[14,15,16],[17,18,19],[20]]
[21,22,24] [22,22,21] [[21,22,23,24],[22,22,21],[23]] [[21,22,25,24],[22,22,21],[23]]
[31,32,33] [32,32,31] [[31,32,33,34],[32,32,31],[33]] [[31,32,34,34],[32,32,31],[33]]
[41,42,43] [42,42,41] [[41,42,43,44],[42,42,41],[43]] [[41,42,44,44],[42,42,41],[43]]
---------GO1
1,a1,1 [1,2,3]
1,a1,1 [1,1,1]
1,a1,1 [1,1,1]
1,a1,1 [1,1,1]
1,a1,1 [1,1,1]
1,a1,1 [1,1,1]
1,a2,1 [1,2,3]
1,a2,1 [1,2,1]
1,a2,1 [1,1,1]
1,a2,1 [1,2,1]
1,a2,1 [1,2,1]
1,a2,1 [1,2,1]
1,a3,1 [1,2,1]
1,a3,1 [1,1,1]
1,a3,1 [1,1,1]
1,a3,1 [1,1,1]
1,a3,1 [1,1,1]
1,a3,1 [1,1,1]
1,a4,1 [1,2,1]
1,a4,1 [1,1,1]
1,a4,1 [1,1,1]
1,a4,1 [1,1,1]
1,a4,1 [1,1,1]
1,a4,1 [1,1,1]
arrayEnumerateUniqRanked(1,a1,1,a2,1) =
1,a1,1,a2,1 [1,2,3]
1,a1,1,a2,1 [1,1,1]
1,a1,1,a2,1 [1,1,1]
1,a1,1,a2,1 [1,1,1]
1,a1,1,a2,1 [1,1,1]
1,a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