Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
be34bd25
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
be34bd25
编写于
12月 19, 2022
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0' of
https://github.com/taosdata/TDengine
into feat/vnode_compact
上级
1edb6d5b
10527c21
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
2466 addition
and
2421 deletion
+2466
-2421
include/common/ttokendef.h
include/common/ttokendef.h
+59
-59
source/libs/parser/inc/sql.y
source/libs/parser/inc/sql.y
+9
-1
source/libs/parser/src/sql.c
source/libs/parser/src/sql.c
+2398
-2361
未找到文件。
include/common/ttokendef.h
浏览文件 @
be34bd25
...
...
@@ -182,65 +182,65 @@
#define TK_INDEX 164
#define TK_FUNCTION 165
#define TK_INTERVAL 166
#define TK_
TOPIC
167
#define TK_
WITH
168
#define TK_
META
169
#define TK_
CONSUMER
170
#define TK_
GROUP
171
#define TK_
DESC
172
#define TK_
DESCRIBE
173
#define TK_
RESET
174
#define TK_
QUERY
175
#define TK_
CACHE
176
#define TK_
EXPLAIN
177
#define TK_
ANALYZE
178
#define TK_
VERBOSE
179
#define TK_
NK_BOOL
180
#define TK_
RATIO
181
#define TK_NK_
FLOAT
182
#define TK_
OUTPUTTYPE
183
#define TK_
AGGREGATE
184
#define TK_
BUFSIZE
185
#define TK_
STREAM
186
#define TK_
INTO
187
#define TK_
TRIGGER
188
#define TK_
AT_ONCE
189
#define TK_
WINDOW_CLOSE
190
#define TK_
IGNORE
191
#define TK_
EXPIRED
192
#define TK_
FILL_HISTORY
193
#define TK_
SUBTABLE
194
#define TK_
KILL
195
#define TK_
CONNECTION
196
#define TK_
TRANSACTION
197
#define TK_
BALANCE
198
#define TK_
VGROUP
199
#define TK_
MERGE
200
#define TK_
REDISTRIBUTE
201
#define TK_
SPLIT
202
#define TK_
DELETE
203
#define TK_
INSERT
204
#define TK_
NULL
205
#define TK_
NK_QUESTION
206
#define TK_N
K_ARROW
207
#define TK_
ROWTS
208
#define TK_
QSTART
209
#define TK_
QEND
210
#define TK_Q
DURATION
211
#define TK_
WSTART
212
#define TK_
WEND
213
#define TK_W
DURATION
214
#define TK_
IROWTS
215
#define TK_
CAST
216
#define TK_
NOW
217
#define TK_
TODAY
218
#define TK_
TIMEZONE
219
#define TK_
CLIENT_VERSION
220
#define TK_
SERVER_VERSION
221
#define TK_
SERVER_STATUS
222
#define TK_
CURRENT_USER
223
#define TK_
COUNT
224
#define TK_
LAST_ROW
225
#define TK_
COUNT
167
#define TK_
LAST_ROW
168
#define TK_
TOPIC
169
#define TK_
WITH
170
#define TK_
META
171
#define TK_
CONSUMER
172
#define TK_
GROUP
173
#define TK_
DESC
174
#define TK_
DESCRIBE
175
#define TK_
RESET
176
#define TK_
QUERY
177
#define TK_
CACHE
178
#define TK_
EXPLAIN
179
#define TK_
ANALYZE
180
#define TK_
VERBOSE
181
#define TK_NK_
BOOL
182
#define TK_
RATIO
183
#define TK_
NK_FLOAT
184
#define TK_
OUTPUTTYPE
185
#define TK_
AGGREGATE
186
#define TK_
BUFSIZE
187
#define TK_
STREAM
188
#define TK_
INTO
189
#define TK_
TRIGGER
190
#define TK_
AT_ONCE
191
#define TK_
WINDOW_CLOSE
192
#define TK_
IGNORE
193
#define TK_
EXPIRED
194
#define TK_
FILL_HISTORY
195
#define TK_
SUBTABLE
196
#define TK_
KILL
197
#define TK_
CONNECTION
198
#define TK_
TRANSACTION
199
#define TK_
BALANCE
200
#define TK_
VGROUP
201
#define TK_
MERGE
202
#define TK_
REDISTRIBUTE
203
#define TK_
SPLIT
204
#define TK_
DELETE
205
#define TK_
INSERT
206
#define TK_N
ULL
207
#define TK_
NK_QUESTION
208
#define TK_
NK_ARROW
209
#define TK_
ROWTS
210
#define TK_Q
START
211
#define TK_
QEND
212
#define TK_
QDURATION
213
#define TK_W
START
214
#define TK_
WEND
215
#define TK_
WDURATION
216
#define TK_
IROWTS
217
#define TK_
CAST
218
#define TK_
NOW
219
#define TK_
TODAY
220
#define TK_
TIMEZONE
221
#define TK_
CLIENT_VERSION
222
#define TK_
SERVER_VERSION
223
#define TK_
SERVER_STATUS
224
#define TK_
CURRENT_USER
225
#define TK_CASE 226
#define TK_END 227
#define TK_WHEN 228
...
...
source/libs/parser/inc/sql.y
浏览文件 @
be34bd25
...
...
@@ -473,7 +473,15 @@ index_options(A) ::= FUNCTION NK_LP func_list(B) NK_RP INTERVAL
func_list(A) ::= func(B). { A = createNodeList(pCxt, B); }
func_list(A) ::= func_list(B) NK_COMMA func(C). { A = addNodeToList(pCxt, B, C); }
func(A) ::= function_name(B) NK_LP expression_list(C) NK_RP. { A = createFunctionNode(pCxt, &B, C); }
func(A) ::= sma_func_name(B) NK_LP expression_list(C) NK_RP. { A = createFunctionNode(pCxt, &B, C); }
%type sma_func_name { SToken }
%destructor sma_func_name { }
sma_func_name(A) ::= function_name(B). { A = B; }
sma_func_name(A) ::= COUNT(B). { A = B; }
sma_func_name(A) ::= FIRST(B). { A = B; }
sma_func_name(A) ::= LAST(B). { A = B; }
sma_func_name(A) ::= LAST_ROW(B). { A = B; }
sma_stream_opt(A) ::= . { A = createStreamOptions(pCxt); }
sma_stream_opt(A) ::= sma_stream_opt(B) WATERMARK duration_literal(C). { ((SStreamOptions*)B)->pWatermark = releaseRawExprNode(pCxt, C); A = B; }
...
...
source/libs/parser/src/sql.c
浏览文件 @
be34bd25
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录