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

Add test cases with row values for COUNT()

上级 f5993cc8
......@@ -134,3 +134,23 @@ SELECT COUNT(N) OVER (PARTITION BY N) C FROM TEST;
DROP TABLE TEST;
> ok
CREATE TABLE TEST(A INT, B INT) AS (VALUES (1, NULL), (1, NULL), (2, NULL));
> ok
SELECT COUNT((A, B)) C, COUNT(DISTINCT (A, B)) CD FROM TEST;
> C CD
> - --
> 3 2
> rows: 1
SELECT COUNT(*) OVER (PARTITION BY A, B) C1, COUNT(*) OVER (PARTITION BY (A, B)) C2 FROM TEST;
> C1 C2
> -- --
> 1 1
> 2 2
> 2 2
> rows: 3
DROP TABLE TEST;
> ok
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论