Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
8572bd2a
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8572bd2a
编写于
4月 13, 2022
作者:
G
Ganlin Zhao
提交者:
Ganlin Zhao
4月 13, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(query): add TK_TODAY in keyword hashtable
TD-14243
上级
729218f3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
2286 addition
and
1868 deletion
+2286
-1868
include/common/ttokendef.h
include/common/ttokendef.h
+42
-41
source/libs/parser/inc/sql.y
source/libs/parser/inc/sql.y
+1
-0
source/libs/parser/src/parTokenizer.c
source/libs/parser/src/parTokenizer.c
+1
-0
source/libs/parser/src/sql.c
source/libs/parser/src/sql.c
+2242
-1827
未找到文件。
include/common/ttokendef.h
浏览文件 @
8572bd2a
...
@@ -182,47 +182,48 @@
...
@@ -182,47 +182,48 @@
#define TK_FIRST 164
#define TK_FIRST 164
#define TK_LAST 165
#define TK_LAST 165
#define TK_NOW 166
#define TK_NOW 166
#define TK_ROWTS 167
#define TK_TODAY 167
#define TK_TBNAME 168
#define TK_ROWTS 168
#define TK_QSTARTTS 169
#define TK_TBNAME 169
#define TK_QENDTS 170
#define TK_QSTARTTS 170
#define TK_WSTARTTS 171
#define TK_QENDTS 171
#define TK_WENDTS 172
#define TK_WSTARTTS 172
#define TK_WDURATION 173
#define TK_WENDTS 173
#define TK_BETWEEN 174
#define TK_WDURATION 174
#define TK_IS 175
#define TK_BETWEEN 175
#define TK_NK_LT 176
#define TK_IS 176
#define TK_NK_GT 177
#define TK_NK_LT 177
#define TK_NK_LE 178
#define TK_NK_GT 178
#define TK_NK_GE 179
#define TK_NK_LE 179
#define TK_NK_NE 180
#define TK_NK_GE 180
#define TK_MATCH 181
#define TK_NK_NE 181
#define TK_NMATCH 182
#define TK_MATCH 182
#define TK_JOIN 183
#define TK_NMATCH 183
#define TK_INNER 184
#define TK_JOIN 184
#define TK_SELECT 185
#define TK_INNER 185
#define TK_DISTINCT 186
#define TK_SELECT 186
#define TK_WHERE 187
#define TK_DISTINCT 187
#define TK_PARTITION 188
#define TK_WHERE 188
#define TK_BY 189
#define TK_PARTITION 189
#define TK_SESSION 190
#define TK_BY 190
#define TK_STATE_WINDOW 191
#define TK_SESSION 191
#define TK_SLIDING 192
#define TK_STATE_WINDOW 192
#define TK_FILL 193
#define TK_SLIDING 193
#define TK_VALUE 194
#define TK_FILL 194
#define TK_NONE 195
#define TK_VALUE 195
#define TK_PREV 196
#define TK_NONE 196
#define TK_LINEAR 197
#define TK_PREV 197
#define TK_NEXT 198
#define TK_LINEAR 198
#define TK_GROUP 199
#define TK_NEXT 199
#define TK_HAVING 200
#define TK_GROUP 200
#define TK_ORDER 201
#define TK_HAVING 201
#define TK_SLIMIT 202
#define TK_ORDER 202
#define TK_SOFFSET 203
#define TK_SLIMIT 203
#define TK_LIMIT 204
#define TK_SOFFSET 204
#define TK_OFFSET 205
#define TK_LIMIT 205
#define TK_ASC 206
#define TK_OFFSET 206
#define TK_NULLS 207
#define TK_ASC 207
#define TK_NULLS 208
#define TK_NK_SPACE 300
#define TK_NK_SPACE 300
#define TK_NK_COMMENT 301
#define TK_NK_COMMENT 301
...
...
source/libs/parser/inc/sql.y
浏览文件 @
8572bd2a
...
@@ -588,6 +588,7 @@ column_reference(A) ::= column_name(B).
...
@@ -588,6 +588,7 @@ column_reference(A) ::= column_name(B).
column_reference(A) ::= table_name(B) NK_DOT column_name(C). { A = createRawExprNodeExt(pCxt, &B, &C, createColumnNode(pCxt, &B, &C)); }
column_reference(A) ::= table_name(B) NK_DOT column_name(C). { A = createRawExprNodeExt(pCxt, &B, &C, createColumnNode(pCxt, &B, &C)); }
pseudo_column(A) ::= NOW(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); }
pseudo_column(A) ::= NOW(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); }
pseudo_column(A) ::= TODAY(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); }
pseudo_column(A) ::= ROWTS(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); }
pseudo_column(A) ::= ROWTS(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); }
pseudo_column(A) ::= TBNAME(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); }
pseudo_column(A) ::= TBNAME(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); }
pseudo_column(A) ::= QSTARTTS(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); }
pseudo_column(A) ::= QSTARTTS(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); }
...
...
source/libs/parser/src/parTokenizer.c
浏览文件 @
8572bd2a
...
@@ -175,6 +175,7 @@ static SKeyword keywordTable[] = {
...
@@ -175,6 +175,7 @@ static SKeyword keywordTable[] = {
{
"TBNAME"
,
TK_TBNAME
},
{
"TBNAME"
,
TK_TBNAME
},
{
"TIMESTAMP"
,
TK_TIMESTAMP
},
{
"TIMESTAMP"
,
TK_TIMESTAMP
},
{
"TINYINT"
,
TK_TINYINT
},
{
"TINYINT"
,
TK_TINYINT
},
{
"TODAY"
,
TK_TODAY
},
{
"TOPIC"
,
TK_TOPIC
},
{
"TOPIC"
,
TK_TOPIC
},
{
"TOPICS"
,
TK_TOPICS
},
{
"TOPICS"
,
TK_TOPICS
},
{
"TSERIES"
,
TK_TSERIES
},
{
"TSERIES"
,
TK_TSERIES
},
...
...
source/libs/parser/src/sql.c
浏览文件 @
8572bd2a
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录