Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
d0846254
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d0846254
编写于
2月 02, 2021
作者:
A
Alexander Kuzmenkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup
上级
78a9624f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
35 addition
and
32 deletion
+35
-32
src/Parsers/ExpressionElementParsers.cpp
src/Parsers/ExpressionElementParsers.cpp
+1
-0
tests/queries/0_stateless/01591_window_functions.reference
tests/queries/0_stateless/01591_window_functions.reference
+34
-32
未找到文件。
src/Parsers/ExpressionElementParsers.cpp
浏览文件 @
d0846254
...
...
@@ -45,6 +45,7 @@ namespace DB
namespace
ErrorCodes
{
extern
const
int
BAD_ARGUMENTS
;
extern
const
int
SYNTAX_ERROR
;
extern
const
int
LOGICAL_ERROR
;
extern
const
int
NOT_IMPLEMENTED
;
...
...
tests/queries/0_stateless/01591_window_functions.reference
浏览文件 @
d0846254
...
...
@@ -516,43 +516,45 @@ settings max_block_size = 2;
27 27 29 29
27 27 29 29
30 30 30 30
--
CURRENT ROW and offset for ROWS
frame start
--
ROWS offset
frame start
select number, p,
count(*) over (partition by p order by number
rows between 1 preceding and unbounded following),
count(*) over (partition by p order by number
rows between current row and unbounded following),
count(*) over (partition by p order by number
rows between 1 following and unbounded following)
from (select number, intDiv(number, 5) p from numbers(31))
order by p, number
settings max_block_size = 2;
0 0 5 4
1 0 5 3
2 0 4 2
3 0 3 1
4 0 2 0
5 1 5 4
6 1 5 3
7 1 4 2
8 1 3 1
9 1 2 0
10 2 5 4
11 2 5 3
12 2 4 2
13 2 3 1
14 2 2 0
15 3 5 4
16 3 5 3
17 3 4 2
18 3 3 1
19 3 2 0
20 4 5 4
21 4 5 3
22 4 4 2
23 4 3 1
24 4 2 0
25 5 5 4
26 5 5 3
27 5 4 2
28 5 3 1
29 5 2 0
30 6 1 0
0 0 5
5
4
1 0 5
4
3
2 0 4
3
2
3 0 3
2
1
4 0 2
1
0
5 1 5
5
4
6 1 5
4
3
7 1 4
3
2
8 1 3
2
1
9 1 2
1
0
10 2 5
5
4
11 2 5
4
3
12 2 4
3
2
13 2 3
2
1
14 2 2
1
0
15 3 5
5
4
16 3 5
4
3
17 3 4
3
2
18 3 3
2
1
19 3 2
1
0
20 4 5
5
4
21 4 5
4
3
22 4 4
3
2
23 4 3
2
1
24 4 2
1
0
25 5 5
5
4
26 5 5
4
3
27 5 4
3
2
28 5 3
2
1
29 5 2
1
0
30 6 1
1
0
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录