Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
67873662
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
67873662
编写于
11月 08, 2021
作者:
S
shenglian zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove concat keyword from sql.y
上级
f9c57f28
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
1671 addition
and
1338 deletion
+1671
-1338
src/common/src/texpr.c
src/common/src/texpr.c
+2
-3
src/inc/ttokendef.h
src/inc/ttokendef.h
+156
-157
src/query/inc/sql.y
src/query/inc/sql.y
+0
-1
src/query/src/sql.c
src/query/src/sql.c
+1513
-1173
src/util/src/ttokenizer.c
src/util/src/ttokenizer.c
+0
-4
未找到文件。
src/common/src/texpr.c
浏览文件 @
67873662
...
...
@@ -936,8 +936,7 @@ void vectorLog(int16_t functionId, tExprOperandInfo* pInputs, uint8_t numInputs,
}
void
vectorConcat
(
int16_t
functionId
,
tExprOperandInfo
*
pInputs
,
uint8_t
numInputs
,
tExprOperandInfo
*
pOutput
,
int32_t
order
)
{
assert
(
functionId
==
TSDB_FUNC_SCALAR_CONCAT
);
assert
(
numInputs
==
2
);
assert
(
functionId
==
TSDB_FUNC_SCALAR_CONCAT
&&
numInputs
==
2
&&
order
==
TSDB_ORDER_ASC
);
assert
(
pInputs
[
0
].
numOfRows
>=
1
&&
pInputs
[
1
].
numOfRows
>=
1
);
assert
(
pOutput
->
numOfRows
>=
MAX
(
pInputs
[
0
].
numOfRows
,
pInputs
[
1
].
numOfRows
));
char
*
data0
=
NULL
;
...
...
@@ -989,7 +988,7 @@ tScalarFunctionInfo aScalarFunctions[] = {
},
{
TSDB_FUNC_SCALAR_CONCAT
,
"
str
concat"
,
"concat"
,
vectorConcat
},
};
src/inc/ttokendef.h
浏览文件 @
67873662
...
...
@@ -16,6 +16,7 @@
#ifndef TDENGINE_TTOKENDEF_H
#define TDENGINE_TTOKENDEF_H
#define TK_ID 1
#define TK_BOOL 2
#define TK_TINYINT 3
...
...
@@ -57,163 +58,161 @@
#define TK_STAR 39
#define TK_SLASH 40
#define TK_REM 41
#define TK_CONCAT 42
#define TK_UMINUS 43
#define TK_UPLUS 44
#define TK_BITNOT 45
#define TK_SHOW 46
#define TK_DATABASES 47
#define TK_TOPICS 48
#define TK_FUNCTIONS 49
#define TK_MNODES 50
#define TK_DNODES 51
#define TK_ACCOUNTS 52
#define TK_USERS 53
#define TK_MODULES 54
#define TK_QUERIES 55
#define TK_CONNECTIONS 56
#define TK_STREAMS 57
#define TK_VARIABLES 58
#define TK_SCORES 59
#define TK_GRANTS 60
#define TK_VNODES 61
#define TK_DOT 62
#define TK_CREATE 63
#define TK_TABLE 64
#define TK_STABLE 65
#define TK_DATABASE 66
#define TK_TABLES 67
#define TK_STABLES 68
#define TK_VGROUPS 69
#define TK_DROP 70
#define TK_TOPIC 71
#define TK_FUNCTION 72
#define TK_DNODE 73
#define TK_USER 74
#define TK_ACCOUNT 75
#define TK_USE 76
#define TK_DESCRIBE 77
#define TK_DESC 78
#define TK_ALTER 79
#define TK_PASS 80
#define TK_PRIVILEGE 81
#define TK_LOCAL 82
#define TK_COMPACT 83
#define TK_LP 84
#define TK_RP 85
#define TK_IF 86
#define TK_EXISTS 87
#define TK_AS 88
#define TK_OUTPUTTYPE 89
#define TK_AGGREGATE 90
#define TK_BUFSIZE 91
#define TK_PPS 92
#define TK_TSERIES 93
#define TK_DBS 94
#define TK_STORAGE 95
#define TK_QTIME 96
#define TK_CONNS 97
#define TK_STATE 98
#define TK_COMMA 99
#define TK_KEEP 100
#define TK_CACHE 101
#define TK_REPLICA 102
#define TK_QUORUM 103
#define TK_DAYS 104
#define TK_MINROWS 105
#define TK_MAXROWS 106
#define TK_BLOCKS 107
#define TK_CTIME 108
#define TK_WAL 109
#define TK_FSYNC 110
#define TK_COMP 111
#define TK_PRECISION 112
#define TK_UPDATE 113
#define TK_CACHELAST 114
#define TK_PARTITIONS 115
#define TK_UNSIGNED 116
#define TK_TAGS 117
#define TK_USING 118
#define TK_NULL 119
#define TK_NOW 120
#define TK_SELECT 121
#define TK_UNION 122
#define TK_ALL 123
#define TK_DISTINCT 124
#define TK_FROM 125
#define TK_VARIABLE 126
#define TK_INTERVAL 127
#define TK_EVERY 128
#define TK_SESSION 129
#define TK_STATE_WINDOW 130
#define TK_FILL 131
#define TK_SLIDING 132
#define TK_ORDER 133
#define TK_BY 134
#define TK_ASC 135
#define TK_GROUP 136
#define TK_HAVING 137
#define TK_LIMIT 138
#define TK_OFFSET 139
#define TK_SLIMIT 140
#define TK_SOFFSET 141
#define TK_WHERE 142
#define TK_RESET 143
#define TK_QUERY 144
#define TK_SYNCDB 145
#define TK_ADD 146
#define TK_COLUMN 147
#define TK_MODIFY 148
#define TK_TAG 149
#define TK_CHANGE 150
#define TK_SET 151
#define TK_KILL 152
#define TK_CONNECTION 153
#define TK_STREAM 154
#define TK_COLON 155
#define TK_ABORT 156
#define TK_AFTER 157
#define TK_ATTACH 158
#define TK_BEFORE 159
#define TK_BEGIN 160
#define TK_CASCADE 161
#define TK_CLUSTER 162
#define TK_CONFLICT 163
#define TK_COPY 164
#define TK_DEFERRED 165
#define TK_DELIMITERS 166
#define TK_DETACH 167
#define TK_EACH 168
#define TK_END 169
#define TK_EXPLAIN 170
#define TK_FAIL 171
#define TK_FOR 172
#define TK_IGNORE 173
#define TK_IMMEDIATE 174
#define TK_INITIALLY 175
#define TK_INSTEAD 176
#define TK_KEY 177
#define TK_OF 178
#define TK_RAISE 179
#define TK_REPLACE 180
#define TK_RESTRICT 181
#define TK_ROW 182
#define TK_STATEMENT 183
#define TK_TRIGGER 184
#define TK_VIEW 185
#define TK_IPTOKEN 186
#define TK_SEMI 187
#define TK_NONE 188
#define TK_PREV 189
#define TK_LINEAR 190
#define TK_IMPORT 191
#define TK_TBNAME 192
#define TK_JOIN 193
#define TK_INSERT 194
#define TK_INTO 195
#define TK_VALUES 196
#define TK_FILE 197
#define TK_UMINUS 42
#define TK_UPLUS 43
#define TK_BITNOT 44
#define TK_SHOW 45
#define TK_DATABASES 46
#define TK_TOPICS 47
#define TK_FUNCTIONS 48
#define TK_MNODES 49
#define TK_DNODES 50
#define TK_ACCOUNTS 51
#define TK_USERS 52
#define TK_MODULES 53
#define TK_QUERIES 54
#define TK_CONNECTIONS 55
#define TK_STREAMS 56
#define TK_VARIABLES 57
#define TK_SCORES 58
#define TK_GRANTS 59
#define TK_VNODES 60
#define TK_DOT 61
#define TK_CREATE 62
#define TK_TABLE 63
#define TK_STABLE 64
#define TK_DATABASE 65
#define TK_TABLES 66
#define TK_STABLES 67
#define TK_VGROUPS 68
#define TK_DROP 69
#define TK_TOPIC 70
#define TK_FUNCTION 71
#define TK_DNODE 72
#define TK_USER 73
#define TK_ACCOUNT 74
#define TK_USE 75
#define TK_DESCRIBE 76
#define TK_DESC 77
#define TK_ALTER 78
#define TK_PASS 79
#define TK_PRIVILEGE 80
#define TK_LOCAL 81
#define TK_COMPACT 82
#define TK_LP 83
#define TK_RP 84
#define TK_IF 85
#define TK_EXISTS 86
#define TK_AS 87
#define TK_OUTPUTTYPE 88
#define TK_AGGREGATE 89
#define TK_BUFSIZE 90
#define TK_PPS 91
#define TK_TSERIES 92
#define TK_DBS 93
#define TK_STORAGE 94
#define TK_QTIME 95
#define TK_CONNS 96
#define TK_STATE 97
#define TK_COMMA 98
#define TK_KEEP 99
#define TK_CACHE 100
#define TK_REPLICA 101
#define TK_QUORUM 102
#define TK_DAYS 103
#define TK_MINROWS 104
#define TK_MAXROWS 105
#define TK_BLOCKS 106
#define TK_CTIME 107
#define TK_WAL 108
#define TK_FSYNC 109
#define TK_COMP 110
#define TK_PRECISION 111
#define TK_UPDATE 112
#define TK_CACHELAST 113
#define TK_PARTITIONS 114
#define TK_UNSIGNED 115
#define TK_TAGS 116
#define TK_USING 117
#define TK_NULL 118
#define TK_NOW 119
#define TK_SELECT 120
#define TK_UNION 121
#define TK_ALL 122
#define TK_DISTINCT 123
#define TK_FROM 124
#define TK_VARIABLE 125
#define TK_INTERVAL 126
#define TK_EVERY 127
#define TK_SESSION 128
#define TK_STATE_WINDOW 129
#define TK_FILL 130
#define TK_SLIDING 131
#define TK_ORDER 132
#define TK_BY 133
#define TK_ASC 134
#define TK_GROUP 135
#define TK_HAVING 136
#define TK_LIMIT 137
#define TK_OFFSET 138
#define TK_SLIMIT 139
#define TK_SOFFSET 140
#define TK_WHERE 141
#define TK_RESET 142
#define TK_QUERY 143
#define TK_SYNCDB 144
#define TK_ADD 145
#define TK_COLUMN 146
#define TK_MODIFY 147
#define TK_TAG 148
#define TK_CHANGE 149
#define TK_SET 150
#define TK_KILL 151
#define TK_CONNECTION 152
#define TK_STREAM 153
#define TK_COLON 154
#define TK_ABORT 155
#define TK_AFTER 156
#define TK_ATTACH 157
#define TK_BEFORE 158
#define TK_BEGIN 159
#define TK_CASCADE 160
#define TK_CLUSTER 161
#define TK_CONFLICT 162
#define TK_COPY 163
#define TK_DEFERRED 164
#define TK_DELIMITERS 165
#define TK_DETACH 166
#define TK_EACH 167
#define TK_END 168
#define TK_EXPLAIN 169
#define TK_FAIL 170
#define TK_FOR 171
#define TK_IGNORE 172
#define TK_IMMEDIATE 173
#define TK_INITIALLY 174
#define TK_INSTEAD 175
#define TK_KEY 176
#define TK_OF 177
#define TK_RAISE 178
#define TK_REPLACE 179
#define TK_RESTRICT 180
#define TK_ROW 181
#define TK_STATEMENT 182
#define TK_TRIGGER 183
#define TK_VIEW 184
#define TK_IPTOKEN 185
#define TK_SEMI 186
#define TK_NONE 187
#define TK_PREV 188
#define TK_LINEAR 189
#define TK_IMPORT 190
#define TK_TBNAME 191
#define TK_JOIN 192
#define TK_INSERT 193
#define TK_INTO 194
#define TK_VALUES 195
#define TK_FILE 196
...
...
src/query/inc/sql.y
浏览文件 @
67873662
...
...
@@ -17,7 +17,6 @@
%left PLUS MINUS.
%left DIVIDE TIMES.
%left STAR SLASH REM.
%left CONCAT.
%right UMINUS UPLUS BITNOT.
%include {
...
...
src/query/src/sql.c
浏览文件 @
67873662
...
...
@@ -23,6 +23,7 @@
** input grammar file:
*/
#include <stdio.h>
#include <assert.h>
/************ Begin %include sections from the grammar ************************/
#include <stdio.h>
...
...
@@ -76,8 +77,10 @@
** zero the stack is dynamically sized using realloc()
** ParseARG_SDECL A static variable declaration for the %extra_argument
** ParseARG_PDECL A parameter declaration for the %extra_argument
** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter
** ParseARG_STORE Code to store %extra_argument into yypParser
** ParseARG_FETCH Code to extract %extra_argument from yypParser
** ParseCTX_* As ParseARG_ except for %extra_context
** YYERRORSYMBOL is the code number of the error symbol. If not
** defined, then do no error processing.
** YYNSTATE the combined number of states.
...
...
@@ -97,41 +100,48 @@
#endif
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned short int
#define YYNOCODE 2
81
#define YYNOCODE 2
78
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SStrToken
typedef
union
{
int
yyinit
;
ParseTOKENTYPE
yy0
;
S
WindowStateVal
yy4
8
;
S
CreateTableSql
*
yy102
;
tVariant
yy10
6
;
int64_t
yy109
;
SSessionWindowVal
yy139
;
SCreateDbInfo
yy142
;
tSqlExpr
*
yy146
;
S
RelationInfo
*
yy164
;
int
yy172
;
S
Array
*
yy22
1
;
SIntervalVal
yy280
;
int
32_t
yy340
;
S
SqlNode
*
yy376
;
S
CreatedTableInfo
yy416
;
SLimitVal
yy454
;
SCreate
AcctInfo
yy491
;
TAOS_FIELD
yy503
;
S
RelationInfo
*
yy
8
;
S
WindowStateVal
yy40
;
SSqlNode
*
yy5
6
;
SCreateDbInfo
yy90
;
int
yy96
;
int32_t
yy104
;
SSessionWindowVal
yy147
;
S
CreatedTableInfo
yy152
;
SLimitVal
yy166
;
S
CreateAcctInfo
yy17
1
;
TAOS_FIELD
yy183
;
int
64_t
yy325
;
S
IntervalVal
yy400
;
S
Array
*
yy421
;
tVariant
yy430
;
SCreate
TableSql
*
yy438
;
tSqlExpr
*
yy439
;
}
YYMINORTYPE
;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
#define ParseARG_SDECL SSqlInfo* pInfo;
#define ParseARG_PDECL ,SSqlInfo* pInfo
#define ParseARG_FETCH SSqlInfo* pInfo = yypParser->pInfo
#define ParseARG_STORE yypParser->pInfo = pInfo
#define ParseARG_PARAM ,pInfo
#define ParseARG_FETCH SSqlInfo* pInfo=yypParser->pInfo;
#define ParseARG_STORE yypParser->pInfo=pInfo;
#define ParseCTX_SDECL
#define ParseCTX_PDECL
#define ParseCTX_PARAM
#define ParseCTX_FETCH
#define ParseCTX_STORE
#define YYFALLBACK 1
#define YYNSTATE 368
#define YYNRULE 294
#define YYNTOKEN 198
#define YYNRULE_WITH_ACTION 294
#define YYNTOKEN 197
#define YY_MAX_SHIFT 367
#define YY_MIN_SHIFTREDUCE 576
#define YY_MAX_SHIFTREDUCE 869
...
...
@@ -141,6 +151,7 @@ typedef union {
#define YY_MIN_REDUCE 873
#define YY_MAX_REDUCE 1166
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
/* Define the yytestcase() macro to be a no-op if is not already defined
** otherwise.
...
...
@@ -207,252 +218,251 @@ typedef union {
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (773)
static
const
YYACTIONTYPE
yy_action
[]
=
{
/* 0 */
23
,
628
,
366
,
235
,
1051
,
208
,
241
,
712
,
211
,
629
,
/* 10 */
10
29
,
871
,
367
,
59
,
60
,
173
,
63
,
64
,
1042
,
1142
,
/* 0 */
1023
,
628
,
366
,
235
,
211
,
362
,
960
,
23
,
264
,
629
,
/* 10 */
10
51
,
871
,
367
,
59
,
60
,
1142
,
63
,
64
,
164
,
178
,
/* 20 */
255
,
53
,
52
,
51
,
628
,
62
,
324
,
67
,
65
,
68
,
/* 30 */
66
,
157
,
629
,
2
86
,
238
,
58
,
57
,
344
,
343
,
56
,
/* 40 */
55
,
54
,
59
,
60
,
24
7
,
63
,
64
,
252
,
1029
,
255
,
/* 50 */
53
,
52
,
51
,
664
,
62
,
324
,
67
,
65
,
68
,
66
,
/* 60 */
999
,
1042
,
997
,
998
,
58
,
57
,
209
,
1000
,
56
,
55
,
/* 70 */
54
,
1001
,
1048
,
1002
,
1003
,
58
,
57
,
277
,
1015
,
56
,
/* 80 */
55
,
54
,
59
,
60
,
2
15
,
63
,
64
,
38
,
82
,
255
,
/* 90 */
53
,
52
,
51
,
88
,
62
,
324
,
67
,
65
,
68
,
66
,
/* 100 */
284
,
283
,
249
,
752
,
58
,
57
,
1029
,
211
,
56
,
55
,
/* 110 */
54
,
322
,
59
,
61
,
806
,
63
,
64
,
1042
,
1143
,
255
,
/* 120 */
5
3
,
52
,
51
,
628
,
62
,
324
,
67
,
65
,
68
,
66
,
/* 130 */
45
,
629
,
237
,
239
,
58
,
57
,
1026
,
164
,
56
,
55
,
/* 140 */
54
,
60
,
1023
,
63
,
64
,
771
,
772
,
255
,
53
,
5
2
,
/* 150 */
51
,
628
,
62
,
324
,
67
,
65
,
68
,
66
,
812
,
629
,
/* 160 */
815
,
216
,
58
,
57
,
322
,
100
,
56
,
55
,
54
,
577
,
/* 170 */
5
78
,
579
,
580
,
581
,
582
,
583
,
584
,
585
,
586
,
587
,
/* 180 */
5
88
,
589
,
590
,
155
,
164
,
236
,
63
,
64
,
756
,
248
,
/* 190 */
255
,
53
,
52
,
51
,
269
,
62
,
324
,
67
,
65
,
68
,
/* 200 */
66
,
1017
,
354
,
273
,
272
,
58
,
57
,
251
,
217
,
56
,
/* 210 */
55
,
54
,
1089
,
44
,
320
,
361
,
360
,
319
,
318
,
317
,
/* 220 */
3
59
,
316
,
315
,
314
,
358
,
313
,
357
,
356
,
38
,
1137
,
/* 230 */
56
,
55
,
54
,
24
,
29
,
991
,
979
,
980
,
981
,
982
,
/* 240 */
983
,
984
,
985
,
986
,
987
,
988
,
989
,
990
,
992
,
993
,
/* 250 */
214
,
14
,
254
,
821
,
1136
,
96
,
810
,
222
,
813
,
1090
,
/* 260 */
8
16
,
296
,
97
,
139
,
138
,
137
,
221
,
211
,
254
,
821
,
/* 270 */
329
,
88
,
810
,
256
,
813
,
1135
,
816
,
1025
,
1143
,
819
,
/* 280 */
67
,
65
,
68
,
66
,
326
,
99
,
233
,
234
,
58
,
57
,
/* 290 */
325
,
164
,
56
,
55
,
54
,
1012
,
1013
,
35
,
1016
,
811
,
/* 300 */
231
,
814
,
233
,
234
,
258
,
5
,
41
,
182
,
45
,
365
,
/* 310 */
364
,
148
,
181
,
106
,
111
,
102
,
110
,
164
,
263
,
736
,
/* 320 */
38
,
1028
,
733
,
85
,
734
,
86
,
735
,
154
,
152
,
15
1
,
/* 330 */
276
,
309
,
80
,
211
,
38
,
69
,
123
,
117
,
128
,
229
,
/* 340 */
362
,
960
,
232
,
127
,
1143
,
133
,
136
,
126
,
202
,
20
0
,
/* 350 */
19
8
,
69
,
260
,
261
,
130
,
197
,
143
,
142
,
141
,
140
,
/* 360 */
280
,
44
,
280
,
361
,
360
,
245
,
94
,
1100
,
359
,
1026
,
/* 370 */
822
,
817
,
358
,
38
,
357
,
356
,
38
,
818
,
38
,
24
6
,
/* 380 */
259
,
38
,
257
,
1026
,
332
,
331
,
822
,
817
,
825
,
38
,
/* 390 */
298
,
264
,
93
,
818
,
265
,
38
,
262
,
38
,
339
,
3
38
,
/* 400 */
38
,
264
,
178
,
264
,
922
,
125
,
788
,
81
,
932
,
3
,
/* 410 */
193
,
192
,
179
,
749
,
1027
,
192
,
212
,
354
,
333
,
73
,
/* 420 */
820
,
334
,
1026
,
335
,
923
,
1026
,
336
,
1026
,
1
,
180
,
/* 430 */
1026
,
192
,
76
,
95
,
340
,
1162
,
737
,
738
,
1026
,
9
,
/* 440 */
341
,
1014
,
342
,
278
,
1026
,
346
,
1026
,
83
,
768
,
1026
,
/* 450 */
7
78
,
779
,
722
,
808
,
301
,
724
,
303
,
39
,
253
,
723
,
/* 460 */
34
,
74
,
159
,
787
,
70
,
26
,
39
,
844
,
39
,
70
,
/* 470 */
98
,
823
,
77
,
70
,
627
,
79
,
16
,
116
,
15
,
115
,
/* 480 */
6
,
25
,
18
,
213
,
17
,
25
,
274
,
741
,
25
,
742
,
/* 490 */
7
39
,
809
,
740
,
304
,
20
,
122
,
19
,
121
,
22
,
218
,
/* 500 */
21
,
135
,
134
,
210
,
219
,
220
,
1154
,
711
,
156
,
1099
,
/* 510 */
1050
,
224
,
225
,
226
,
223
,
207
,
243
,
1096
,
1095
,
244
,
/* 520 */
345
,
48
,
1061
,
1058
,
1059
,
1063
,
1082
,
158
,
163
,
1043
,
/* 530 */
281
,
1
53
,
292
,
1081
,
285
,
174
,
1024
,
175
,
1022
,
176
,
/* 540 */
17
7
,
937
,
306
,
307
,
308
,
311
,
312
,
46
,
767
,
165
,
/* 550 */
205
,
42
,
1040
,
323
,
931
,
330
,
1161
,
113
,
1160
,
75
,
/* 560 */
1157
,
183
,
337
,
1153
,
240
,
119
,
78
,
287
,
289
,
1152
,
/* 570 */
299
,
50
,
166
,
1149
,
184
,
297
,
957
,
167
,
43
,
40
,
/* 580 */
47
,
206
,
919
,
293
,
129
,
917
,
131
,
295
,
132
,
915
,
/* 590 */
291
,
914
,
168
,
266
,
195
,
196
,
911
,
288
,
910
,
909
,
/* 600 */
908
,
907
,
906
,
905
,
199
,
201
,
902
,
900
,
898
,
896
,
/* 610 */
203
,
893
,
204
,
889
,
49
,
3
10
,
279
,
84
,
89
,
290
,
/* 620 */
1083
,
355
,
348
,
124
,
347
,
349
,
350
,
230
,
351
,
250
,
/* 630 */
305
,
352
,
353
,
363
,
869
,
2
67
,
268
,
868
,
227
,
270
,
/* 640 */
27
1
,
228
,
107
,
936
,
935
,
108
,
867
,
850
,
275
,
849
,
/* 650 */
913
,
280
,
300
,
912
,
10
,
87
,
282
,
744
,
144
,
187
,
/* 660 */
904
,
186
,
958
,
185
,
188
,
189
,
191
,
190
,
145
,
903
,
/* 670 */
959
,
146
,
995
,
2
,
147
,
30
,
895
,
169
,
170
,
894
,
/* 680 */
171
,
1
72
,
4
,
33
,
1005
,
90
,
769
,
160
,
162
,
780
,
/* 690 */
161
,
242
,
774
,
91
,
31
,
776
,
92
,
294
,
11
,
3
2
,
/* 700 */
12
,
13
,
27
,
28
,
302
,
101
,
99
,
642
,
104
,
36
,
/* 710 */
103
,
675
,
37
,
677
,
10
5
,
674
,
673
,
671
,
670
,
669
,
/* 720 */
666
,
632
,
321
,
109
,
7
,
327
,
328
,
824
,
8
,
112
,
/* 730 */
826
,
114
,
71
,
72
,
118
,
714
,
39
,
713
,
710
,
120
,
/* 30 */
66
,
157
,
629
,
2
41
,
247
,
58
,
57
,
1029
,
1029
,
56
,
/* 40 */
55
,
54
,
59
,
60
,
24
9
,
63
,
64
,
248
,
1029
,
255
,
/* 50 */
53
,
52
,
51
,
38
,
62
,
324
,
67
,
65
,
68
,
66
,
/* 60 */
999
,
1042
,
997
,
998
,
58
,
57
,
173
,
1000
,
56
,
55
,
/* 70 */
54
,
1001
,
252
,
1002
,
1003
,
58
,
57
,
277
,
1048
,
56
,
/* 80 */
55
,
54
,
59
,
60
,
2
86
,
63
,
64
,
82
,
664
,
255
,
/* 90 */
53
,
52
,
51
,
1089
,
62
,
324
,
67
,
65
,
68
,
66
,
/* 100 */
284
,
283
,
1025
,
79
,
58
,
57
,
29
,
322
,
56
,
55
,
/* 110 */
54
,
59
,
61
,
806
,
63
,
64
,
354
,
164
,
255
,
53
,
/* 120 */
5
2
,
51
,
628
,
62
,
324
,
67
,
65
,
68
,
66
,
922
,
/* 130 */
629
,
712
,
211
,
58
,
57
,
711
,
192
,
56
,
55
,
54
,
/* 140 */
63
,
64
,
1042
,
1143
,
255
,
53
,
52
,
51
,
208
,
6
2
,
/* 150 */
324
,
67
,
65
,
68
,
66
,
56
,
55
,
54
,
238
,
58
,
/* 160 */
57
,
344
,
343
,
56
,
55
,
54
,
97
,
577
,
578
,
579
,
/* 170 */
5
80
,
581
,
582
,
583
,
584
,
585
,
586
,
587
,
588
,
589
,
/* 180 */
5
90
,
155
,
60
,
236
,
63
,
64
,
771
,
772
,
255
,
53
,
/* 190 */
52
,
51
,
94
,
62
,
324
,
67
,
65
,
68
,
66
,
1012
,
/* 200 */
1013
,
35
,
1016
,
58
,
57
,
1
,
180
,
56
,
55
,
54
,
/* 210 */
44
,
320
,
361
,
360
,
319
,
318
,
317
,
359
,
316
,
315
,
/* 220 */
3
14
,
358
,
313
,
357
,
356
,
991
,
979
,
980
,
981
,
982
,
/* 230 */
983
,
984
,
985
,
986
,
987
,
988
,
989
,
990
,
992
,
993
,
/* 240 */
24
,
254
,
821
,
269
,
932
,
810
,
209
,
813
,
215
,
816
,
/* 250 */
1042
,
192
,
273
,
272
,
95
,
164
,
38
,
214
,
14
,
254
,
/* 260 */
8
21
,
251
,
96
,
810
,
222
,
813
,
239
,
816
,
83
,
256
,
/* 270 */
139
,
138
,
137
,
221
,
164
,
233
,
234
,
329
,
88
,
325
,
/* 280 */
5
,
41
,
182
,
812
,
811
,
815
,
814
,
181
,
106
,
111
,
/* 290 */
102
,
110
,
99
,
233
,
234
,
67
,
65
,
68
,
66
,
88
,
/* 300 */
788
,
237
,
1015
,
58
,
57
,
1026
,
309
,
56
,
55
,
54
,
/* 310 */
258
,
736
,
628
,
216
,
733
,
45
,
734
,
263
,
735
,
34
,
/* 320 */
629
,
211
,
749
,
69
,
123
,
117
,
128
,
264
,
298
,
21
1
,
/* 330 */
93
,
127
,
1143
,
133
,
136
,
126
,
45
,
276
,
179
,
80
,
/* 340 */
1143
,
69
,
130
,
923
,
260
,
261
,
229
,
38
,
9
,
109
0
,
/* 350 */
19
2
,
296
,
304
,
202
,
200
,
198
,
264
,
787
,
822
,
817
,
/* 360 */
197
,
143
,
142
,
141
,
140
,
818
,
38
,
1027
,
38
,
38
,
/* 370 */
752
,
44
,
217
,
361
,
360
,
38
,
822
,
817
,
359
,
32
6
,
/* 380 */
38
,
38
,
358
,
818
,
357
,
356
,
259
,
322
,
257
,
38
,
/* 390 */
332
,
331
,
245
,
265
,
85
,
262
,
1026
,
339
,
338
,
38
,
/* 400 */
38
,
73
,
278
,
819
,
820
,
100
,
365
,
364
,
148
,
125
,
/* 410 */
86
,
246
,
81
,
333
,
334
,
1026
,
39
,
1026
,
1026
,
768
,
/* 420 */
335
,
354
,
3
,
193
,
1026
,
336
,
340
,
737
,
738
,
1026
,
/* 430 */
1026
,
280
,
76
,
159
,
341
,
154
,
152
,
151
,
1026
,
778
,
/* 440 */
808
,
1017
,
779
,
74
,
342
,
346
,
1014
,
280
,
1026
,
1026
,
/* 450 */
7
22
,
301
,
724
,
70
,
756
,
303
,
26
,
253
,
1137
,
723
,
/* 460 */
844
,
823
,
627
,
1136
,
39
,
39
,
70
,
1028
,
16
,
98
,
/* 470 */
15
,
1162
,
77
,
70
,
25
,
25
,
25
,
1135
,
809
,
6
,
/* 480 */
135
,
134
,
825
,
116
,
18
,
115
,
17
,
231
,
741
,
739
,
/* 490 */
7
42
,
740
,
20
,
122
,
19
,
121
,
22
,
232
,
21
,
212
,
/* 500 */
213
,
218
,
1154
,
210
,
219
,
220
,
1100
,
274
,
224
,
225
,
/* 510 */
226
,
223
,
207
,
1099
,
243
,
1096
,
1095
,
48
,
156
,
244
,
/* 520 */
345
,
174
,
1050
,
1061
,
1058
,
1082
,
1059
,
1063
,
158
,
1043
,
/* 530 */
281
,
1
63
,
292
,
1024
,
1081
,
175
,
153
,
310
,
1022
,
285
,
/* 540 */
17
6
,
177
,
937
,
306
,
307
,
767
,
165
,
308
,
311
,
166
,
/* 550 */
312
,
46
,
205
,
42
,
240
,
323
,
931
,
287
,
330
,
1161
,
/* 560 */
113
,
1160
,
1157
,
289
,
183
,
78
,
1040
,
299
,
337
,
1153
,
/* 570 */
75
,
167
,
119
,
1152
,
50
,
297
,
295
,
169
,
1149
,
184
,
/* 580 */
957
,
43
,
40
,
47
,
206
,
919
,
129
,
917
,
131
,
132
,
/* 590 */
915
,
914
,
266
,
195
,
196
,
293
,
911
,
910
,
909
,
908
,
/* 600 */
291
,
907
,
906
,
905
,
199
,
201
,
902
,
900
,
898
,
896
,
/* 610 */
203
,
893
,
204
,
889
,
49
,
3
55
,
279
,
84
,
89
,
290
,
/* 620 */
1083
,
288
,
124
,
347
,
348
,
349
,
350
,
230
,
250
,
351
,
/* 630 */
305
,
352
,
353
,
363
,
869
,
2
27
,
267
,
228
,
268
,
868
,
/* 640 */
27
0
,
936
,
271
,
935
,
107
,
867
,
850
,
849
,
108
,
275
,
/* 650 */
280
,
300
,
10
,
30
,
913
,
87
,
912
,
282
,
144
,
187
,
/* 660 */
145
,
186
,
958
,
185
,
189
,
188
,
190
,
191
,
904
,
2
,
/* 670 */
146
,
995
,
903
,
4
,
959
,
895
,
33
,
172
,
170
,
168
,
/* 680 */
171
,
1
47
,
894
,
744
,
90
,
769
,
160
,
162
,
780
,
1005
,
/* 690 */
161
,
242
,
774
,
91
,
31
,
776
,
92
,
294
,
11
,
1
2
,
/* 700 */
32
,
13
,
27
,
302
,
28
,
99
,
101
,
104
,
36
,
103
,
/* 710 */
642
,
37
,
105
,
677
,
67
5
,
674
,
673
,
671
,
670
,
669
,
/* 720 */
666
,
632
,
321
,
109
,
7
,
327
,
824
,
826
,
8
,
328
,
/* 730 */
112
,
114
,
71
,
72
,
714
,
713
,
39
,
710
,
118
,
120
,
/* 740 */
658
,
656
,
648
,
654
,
650
,
652
,
646
,
644
,
680
,
679
,
/* 750 */
678
,
676
,
672
,
668
,
667
,
194
,
630
,
594
,
873
,
872
,
/* 760 */
872
,
872
,
872
,
872
,
872
,
872
,
872
,
872
,
872
,
872
,
/* 770 */
872
,
149
,
150
,
};
static
const
YYCODETYPE
yy_lookahead
[]
=
{
/* 0 */
268
,
1
,
201
,
202
,
201
,
268
,
247
,
5
,
268
,
9
,
/* 10 */
251
,
199
,
200
,
13
,
14
,
255
,
16
,
17
,
249
,
279
,
/* 0 */
199
,
1
,
199
,
200
,
266
,
221
,
222
,
266
,
199
,
9
,
/* 10 */
199
,
197
,
198
,
13
,
14
,
277
,
16
,
17
,
199
,
210
,
/* 20 */
20
,
21
,
22
,
23
,
1
,
25
,
26
,
27
,
28
,
29
,
/* 30 */
30
,
201
,
9
,
273
,
265
,
35
,
36
,
35
,
36
,
39
,
/* 40 */
40
,
41
,
13
,
14
,
24
7
,
16
,
17
,
208
,
251
,
20
,
/* 50 */
21
,
22
,
23
,
5
,
25
,
26
,
27
,
28
,
29
,
30
,
/* 60 */
22
5
,
249
,
227
,
228
,
35
,
36
,
268
,
232
,
39
,
40
,
/* 70 */
41
,
23
6
,
269
,
238
,
239
,
35
,
36
,
265
,
0
,
39
,
/* 80 */
40
,
41
,
13
,
14
,
2
68
,
16
,
17
,
201
,
88
,
20
,
/* 90 */
21
,
22
,
23
,
8
4
,
25
,
26
,
27
,
28
,
29
,
30
,
/* 100 */
2
70
,
271
,
247
,
39
,
35
,
36
,
251
,
268
,
39
,
40
,
/* 110 */
41
,
86
,
13
,
14
,
85
,
16
,
17
,
249
,
279
,
20
,
/* 120 */
2
1
,
22
,
23
,
1
,
25
,
26
,
27
,
28
,
29
,
30
,
/* 130 */
121
,
9
,
246
,
265
,
35
,
36
,
250
,
201
,
39
,
40
,
/* 140 */
41
,
14
,
201
,
16
,
17
,
127
,
128
,
20
,
21
,
22
,
/* 150 */
2
3
,
1
,
25
,
26
,
27
,
28
,
29
,
30
,
5
,
9
,
/* 160 */
7
,
268
,
35
,
36
,
86
,
209
,
39
,
40
,
41
,
47
,
/* 170 */
4
8
,
49
,
50
,
51
,
52
,
53
,
54
,
55
,
56
,
57
,
/* 180 */
5
8
,
59
,
60
,
61
,
201
,
63
,
16
,
17
,
124
,
248
,
/* 190 */
2
0
,
21
,
22
,
23
,
144
,
25
,
26
,
27
,
28
,
29
,
/* 200 */
30
,
245
,
92
,
153
,
154
,
35
,
36
,
208
,
268
,
39
,
/* 210 */
40
,
41
,
276
,
100
,
101
,
102
,
103
,
104
,
105
,
106
,
/* 220 */
10
7
,
108
,
109
,
110
,
111
,
112
,
113
,
114
,
201
,
268
,
/* 230 */
39
,
40
,
41
,
46
,
84
,
225
,
226
,
227
,
228
,
229
,
/* 240 */
230
,
231
,
232
,
233
,
234
,
235
,
236
,
237
,
238
,
23
9
,
/* 250 */
63
,
84
,
1
,
2
,
268
,
88
,
5
,
70
,
7
,
276
,
/* 260 */
9
,
278
,
209
,
76
,
77
,
78
,
79
,
268
,
1
,
2
,
/* 270 */
83
,
84
,
5
,
208
,
7
,
268
,
9
,
250
,
279
,
126
,
/* 280 */
27
,
28
,
29
,
30
,
15
,
118
,
35
,
36
,
35
,
36
,
/* 290 */
39
,
201
,
39
,
40
,
41
,
242
,
243
,
244
,
245
,
5
,
/* 300 */
268
,
7
,
35
,
36
,
70
,
64
,
65
,
66
,
121
,
67
,
/* 310 */
6
8
,
69
,
71
,
72
,
73
,
74
,
75
,
201
,
70
,
2
,
/* 320 */
201
,
251
,
5
,
85
,
7
,
85
,
9
,
64
,
65
,
66
,
/* 330 */
143
,
90
,
145
,
268
,
201
,
84
,
64
,
65
,
66
,
152
,
/* 340 */
2
23
,
224
,
268
,
71
,
279
,
73
,
74
,
75
,
64
,
65
,
/* 350 */
66
,
84
,
35
,
36
,
82
,
71
,
72
,
73
,
74
,
75
,
/* 360 */
122
,
100
,
122
,
102
,
103
,
246
,
276
,
241
,
107
,
250
,
/* 370 */
119
,
120
,
111
,
201
,
113
,
114
,
201
,
126
,
201
,
246
,
/* 380 */
1
46
,
201
,
148
,
250
,
150
,
151
,
119
,
120
,
119
,
201
,
/* 390 */
274
,
201
,
276
,
126
,
146
,
201
,
148
,
201
,
150
,
151
,
/* 400 */
201
,
201
,
212
,
201
,
207
,
80
,
78
,
209
,
207
,
205
,
/* 410 */
206
,
214
,
212
,
99
,
212
,
214
,
268
,
92
,
246
,
99
,
/* 420 */
126
,
246
,
250
,
246
,
207
,
250
,
246
,
250
,
210
,
211
,
/* 430 */
2
50
,
214
,
99
,
252
,
246
,
251
,
119
,
120
,
250
,
125
,
/* 440 */
246
,
243
,
246
,
85
,
250
,
246
,
250
,
266
,
85
,
250
,
/* 450 */
8
5
,
85
,
85
,
1
,
85
,
85
,
85
,
99
,
62
,
85
,
/* 460 */
84
,
141
,
99
,
135
,
99
,
99
,
99
,
85
,
99
,
99
,
/* 470 */
99
,
85
,
139
,
99
,
85
,
84
,
147
,
147
,
149
,
149
,
/* 480 */
84
,
99
,
147
,
268
,
149
,
99
,
201
,
5
,
99
,
7
,
/* 490 */
5
,
39
,
7
,
117
,
147
,
147
,
149
,
149
,
147
,
268
,
/* 500 */
149
,
80
,
81
,
268
,
268
,
268
,
251
,
116
,
201
,
241
,
/* 510 */
2
01
,
268
,
268
,
268
,
268
,
268
,
241
,
241
,
241
,
241
,
/* 520 */
2
41
,
267
,
201
,
201
,
201
,
201
,
277
,
201
,
201
,
249
,
/* 530 */
24
9
,
62
,
201
,
277
,
272
,
253
,
249
,
201
,
201
,
201
,
/* 540 */
201
,
201
,
201
,
201
,
201
,
201
,
201
,
201
,
126
,
263
,
/* 550 */
201
,
201
,
264
,
201
,
201
,
201
,
201
,
201
,
201
,
140
,
/* 560 */
201
,
201
,
201
,
201
,
272
,
201
,
138
,
272
,
272
,
201
,
/* 570 */
13
3
,
137
,
262
,
201
,
201
,
136
,
201
,
261
,
201
,
201
,
/* 580 */
201
,
201
,
201
,
130
,
201
,
201
,
201
,
131
,
201
,
201
,
/* 590 */
1
29
,
201
,
260
,
201
,
201
,
201
,
201
,
132
,
201
,
201
,
/* 600 */
201
,
201
,
201
,
201
,
201
,
201
,
201
,
201
,
201
,
201
,
/* 610 */
201
,
201
,
201
,
201
,
142
,
91
,
203
,
203
,
203
,
203
,
/* 620 */
20
3
,
115
,
53
,
98
,
97
,
94
,
96
,
203
,
57
,
203
,
/* 630 */
20
3
,
95
,
93
,
86
,
5
,
155
,
5
,
5
,
203
,
15
5
,
/* 640 */
5
,
203
,
209
,
213
,
213
,
209
,
5
,
102
,
144
,
101
,
/* 650 */
203
,
122
,
117
,
203
,
84
,
123
,
99
,
85
,
204
,
216
,
/* 660 */
20
3
,
220
,
222
,
221
,
219
,
217
,
215
,
218
,
204
,
203
,
/* 670 */
2
24
,
204
,
240
,
210
,
204
,
84
,
203
,
259
,
258
,
203
,
/* 680 */
25
7
,
256
,
205
,
254
,
240
,
99
,
85
,
84
,
99
,
85
,
/* 690 */
8
4
,
1
,
85
,
84
,
99
,
85
,
84
,
84
,
134
,
99
,
/* 700 */
134
,
84
,
84
,
84
,
117
,
80
,
118
,
5
,
72
,
89
,
/* 710 */
88
,
5
,
89
,
9
,
88
,
5
,
5
,
5
,
5
,
5
,
/* 720 */
5
,
8
7
,
15
,
80
,
84
,
26
,
61
,
85
,
84
,
149
,
/* 730 */
1
19
,
149
,
16
,
16
,
149
,
5
,
99
,
5
,
85
,
149
,
/* 30 */
30
,
199
,
9
,
245
,
245
,
35
,
36
,
249
,
249
,
39
,
/* 40 */
40
,
41
,
13
,
14
,
24
5
,
16
,
17
,
246
,
249
,
20
,
/* 50 */
21
,
22
,
23
,
199
,
25
,
26
,
27
,
28
,
29
,
30
,
/* 60 */
22
3
,
247
,
225
,
226
,
35
,
36
,
253
,
230
,
39
,
40
,
/* 70 */
41
,
23
4
,
206
,
236
,
237
,
35
,
36
,
263
,
267
,
39
,
/* 80 */
40
,
41
,
13
,
14
,
2
71
,
16
,
17
,
87
,
5
,
20
,
/* 90 */
21
,
22
,
23
,
27
4
,
25
,
26
,
27
,
28
,
29
,
30
,
/* 100 */
2
68
,
269
,
248
,
83
,
35
,
36
,
83
,
85
,
39
,
40
,
/* 110 */
41
,
13
,
14
,
84
,
16
,
17
,
91
,
199
,
20
,
21
,
/* 120 */
2
2
,
23
,
1
,
25
,
26
,
27
,
28
,
29
,
30
,
205
,
/* 130 */
9
,
5
,
266
,
35
,
36
,
115
,
212
,
39
,
40
,
41
,
/* 140 */
16
,
17
,
247
,
277
,
20
,
21
,
22
,
23
,
266
,
25
,
/* 150 */
2
6
,
27
,
28
,
29
,
30
,
39
,
40
,
41
,
263
,
35
,
/* 160 */
36
,
35
,
36
,
39
,
40
,
41
,
207
,
46
,
47
,
48
,
/* 170 */
4
9
,
50
,
51
,
52
,
53
,
54
,
55
,
56
,
57
,
58
,
/* 180 */
5
9
,
60
,
14
,
62
,
16
,
17
,
126
,
127
,
20
,
21
,
/* 190 */
2
2
,
23
,
274
,
25
,
26
,
27
,
28
,
29
,
30
,
240
,
/* 200 */
241
,
242
,
243
,
35
,
36
,
208
,
209
,
39
,
40
,
41
,
/* 210 */
99
,
100
,
101
,
102
,
103
,
104
,
105
,
106
,
107
,
108
,
/* 220 */
10
9
,
110
,
111
,
112
,
113
,
223
,
224
,
225
,
226
,
227
,
/* 230 */
228
,
229
,
230
,
231
,
232
,
233
,
234
,
235
,
236
,
237
,
/* 240 */
45
,
1
,
2
,
143
,
205
,
5
,
266
,
7
,
266
,
9
,
/* 250 */
247
,
212
,
152
,
153
,
250
,
199
,
199
,
62
,
83
,
1
,
/* 260 */
2
,
206
,
87
,
5
,
69
,
7
,
263
,
9
,
264
,
206
,
/* 270 */
75
,
76
,
77
,
78
,
199
,
35
,
36
,
82
,
83
,
39
,
/* 280 */
63
,
64
,
65
,
5
,
5
,
7
,
7
,
70
,
71
,
72
,
/* 290 */
73
,
74
,
117
,
35
,
36
,
27
,
28
,
29
,
30
,
83
,
/* 300 */
77
,
244
,
0
,
35
,
36
,
248
,
89
,
39
,
40
,
41
,
/* 310 */
6
9
,
2
,
1
,
266
,
5
,
120
,
7
,
69
,
9
,
83
,
/* 320 */
9
,
266
,
98
,
83
,
63
,
64
,
65
,
199
,
272
,
2
66
,
/* 330 */
274
,
70
,
277
,
72
,
73
,
74
,
120
,
142
,
210
,
144
,
/* 340 */
2
77
,
83
,
81
,
205
,
35
,
36
,
151
,
199
,
124
,
274
,
/* 350 */
212
,
276
,
116
,
63
,
64
,
65
,
199
,
134
,
118
,
119
,
/* 360 */
70
,
71
,
72
,
73
,
74
,
125
,
199
,
210
,
199
,
199
,
/* 370 */
39
,
99
,
266
,
101
,
102
,
199
,
118
,
119
,
106
,
15
,
/* 380 */
1
99
,
199
,
110
,
125
,
112
,
113
,
145
,
85
,
147
,
199
,
/* 390 */
149
,
150
,
244
,
145
,
84
,
147
,
248
,
149
,
150
,
199
,
/* 400 */
199
,
98
,
84
,
125
,
125
,
207
,
66
,
67
,
68
,
79
,
/* 410 */
84
,
244
,
207
,
244
,
244
,
248
,
98
,
248
,
248
,
84
,
/* 420 */
244
,
91
,
203
,
204
,
248
,
244
,
244
,
118
,
119
,
248
,
/* 430 */
2
48
,
121
,
98
,
98
,
244
,
63
,
64
,
65
,
248
,
84
,
/* 440 */
1
,
243
,
84
,
140
,
244
,
244
,
241
,
121
,
248
,
248
,
/* 450 */
8
4
,
84
,
84
,
98
,
123
,
84
,
98
,
61
,
266
,
84
,
/* 460 */
84
,
84
,
84
,
266
,
98
,
98
,
98
,
249
,
146
,
98
,
/* 470 */
148
,
249
,
138
,
98
,
98
,
98
,
98
,
266
,
39
,
83
,
/* 480 */
79
,
80
,
118
,
146
,
146
,
148
,
148
,
266
,
5
,
5
,
/* 490 */
7
,
7
,
146
,
146
,
148
,
148
,
146
,
266
,
148
,
266
,
/* 500 */
266
,
266
,
249
,
266
,
266
,
266
,
239
,
199
,
266
,
266
,
/* 510 */
2
66
,
266
,
266
,
239
,
239
,
239
,
239
,
265
,
199
,
239
,
/* 520 */
2
39
,
251
,
199
,
199
,
199
,
275
,
199
,
199
,
199
,
247
,
/* 530 */
24
7
,
199
,
199
,
247
,
275
,
199
,
61
,
90
,
199
,
270
,
/* 540 */
199
,
199
,
199
,
199
,
199
,
125
,
261
,
199
,
199
,
260
,
/* 550 */
199
,
199
,
199
,
199
,
270
,
199
,
199
,
270
,
199
,
199
,
/* 560 */
199
,
199
,
199
,
270
,
199
,
137
,
262
,
132
,
199
,
199
,
/* 570 */
13
9
,
259
,
199
,
199
,
136
,
135
,
130
,
257
,
199
,
199
,
/* 580 */
199
,
199
,
199
,
199
,
199
,
199
,
199
,
199
,
199
,
199
,
/* 590 */
1
99
,
199
,
199
,
199
,
199
,
129
,
199
,
199
,
199
,
199
,
/* 600 */
128
,
199
,
199
,
199
,
199
,
199
,
199
,
199
,
199
,
199
,
/* 610 */
199
,
199
,
199
,
199
,
141
,
114
,
201
,
201
,
201
,
201
,
/* 620 */
20
1
,
131
,
97
,
96
,
52
,
93
,
95
,
201
,
201
,
56
,
/* 630 */
20
1
,
94
,
92
,
85
,
5
,
201
,
154
,
201
,
5
,
5
,
/* 640 */
154
,
211
,
5
,
211
,
207
,
5
,
101
,
100
,
207
,
143
,
/* 650 */
121
,
116
,
83
,
83
,
201
,
122
,
201
,
98
,
202
,
214
,
/* 660 */
20
2
,
218
,
220
,
219
,
215
,
217
,
216
,
213
,
201
,
208
,
/* 670 */
2
02
,
238
,
201
,
203
,
222
,
201
,
252
,
254
,
256
,
258
,
/* 680 */
25
5
,
202
,
201
,
84
,
98
,
84
,
83
,
98
,
84
,
238
,
/* 690 */
8
3
,
1
,
84
,
83
,
98
,
84
,
83
,
83
,
133
,
133
,
/* 700 */
98
,
83
,
83
,
116
,
83
,
117
,
79
,
71
,
88
,
87
,
/* 710 */
5
,
88
,
87
,
9
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 720 */
5
,
8
6
,
15
,
79
,
83
,
26
,
84
,
118
,
83
,
60
,
/* 730 */
1
48
,
148
,
16
,
16
,
5
,
5
,
98
,
84
,
148
,
148
,
/* 740 */
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 750 */
5
,
5
,
5
,
5
,
5
,
99
,
87
,
62
,
0
,
280
,
/* 760 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 770 */
280
,
21
,
21
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 780 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 790 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 800 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 810 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 820 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 830 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 840 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 850 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 860 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 870 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 880 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 890 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 900 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 910 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 920 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 930 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 940 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 950 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 960 */
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
280
,
/* 970 */
280
,
/* 750 */
5
,
5
,
5
,
5
,
5
,
98
,
86
,
61
,
0
,
278
,
/* 760 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 770 */
278
,
21
,
21
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 780 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 790 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 800 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 810 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 820 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 830 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 840 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 850 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 860 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 870 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 880 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 890 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 900 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 910 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 920 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 930 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 940 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 950 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 960 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
};
#define YY_SHIFT_COUNT (367)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (758)
static
const
unsigned
short
int
yy_shift_ofst
[]
=
{
/* 0 */
1
87
,
113
,
113
,
261
,
261
,
25
,
251
,
267
,
267
,
150
,
/* 10 */
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
/* 20 */
23
,
23
,
23
,
0
,
122
,
267
,
317
,
317
,
317
,
9
,
/* 30 */
9
,
23
,
23
,
18
,
23
,
78
,
23
,
23
,
23
,
23
,
/* 40 */
3
25
,
25
,
110
,
110
,
48
,
773
,
773
,
773
,
267
,
267
,
/* 50 */
2
67
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 60 */
2
67
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 70 */
3
17
,
317
,
317
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
/* 80 */
23
,
23
,
23
,
64
,
23
,
23
,
23
,
9
,
9
,
23
,
/* 90 */
23
,
23
,
23
,
328
,
328
,
314
,
9
,
23
,
23
,
23
,
/* 100 */
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
/* 110 */
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
/* 120 */
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
/* 130 */
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
/* 140 */
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
/* 150 */
23
,
23
,
23
,
23
,
23
,
23
,
469
,
469
,
469
,
422
,
/* 160 */
42
2
,
422
,
422
,
469
,
469
,
428
,
419
,
437
,
434
,
439
,
/* 170 */
4
56
,
453
,
461
,
465
,
472
,
469
,
469
,
469
,
524
,
524
,
/* 180 */
50
6
,
25
,
25
,
469
,
469
,
525
,
527
,
569
,
531
,
530
,
/* 190 */
57
1
,
536
,
539
,
506
,
48
,
469
,
469
,
547
,
547
,
469
,
/* 200 */
54
7
,
469
,
547
,
469
,
469
,
773
,
773
,
29
,
69
,
69
,
/* 210 */
9
9
,
69
,
127
,
170
,
241
,
253
,
253
,
253
,
253
,
253
,
/* 220 */
2
53
,
272
,
284
,
40
,
40
,
40
,
40
,
234
,
248
,
5
0
,
/* 230 */
1
67
,
191
,
191
,
153
,
294
,
242
,
263
,
358
,
238
,
240
,
/* 240 */
3
63
,
365
,
366
,
320
,
333
,
367
,
369
,
370
,
371
,
374
,
/* 250 */
376
,
382
,
386
,
452
,
396
,
269
,
389
,
329
,
330
,
335
,
/* 260 */
48
2
,
485
,
347
,
348
,
391
,
351
,
421
,
629
,
480
,
631
,
/* 270 */
63
2
,
484
,
635
,
641
,
545
,
548
,
504
,
529
,
535
,
570
,
/* 280 */
53
2
,
572
,
591
,
557
,
586
,
601
,
603
,
604
,
606
,
607
,
/* 290 */
589
,
6
09
,
610
,
612
,
690
,
613
,
595
,
564
,
600
,
566
,
/* 300 */
61
7
,
535
,
618
,
587
,
619
,
588
,
625
,
620
,
622
,
636
,
/* 310 */
70
2
,
623
,
626
,
704
,
706
,
710
,
711
,
712
,
713
,
714
,
/* 320 */
715
,
63
4
,
707
,
643
,
640
,
642
,
611
,
644
,
699
,
665
,
/* 330 */
716
,
58
0
,
582
,
637
,
637
,
637
,
637
,
717
,
585
,
590
,
/* 340 */
63
7
,
637
,
637
,
730
,
732
,
653
,
637
,
735
,
736
,
737
,
/* 0 */
1
95
,
111
,
111
,
272
,
272
,
22
,
240
,
258
,
258
,
23
,
/* 10 */
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
/* 20 */
311
,
311
,
311
,
0
,
121
,
258
,
309
,
309
,
309
,
216
,
/* 30 */
216
,
311
,
311
,
60
,
311
,
302
,
311
,
311
,
311
,
311
,
/* 40 */
3
30
,
22
,
25
,
25
,
83
,
773
,
773
,
773
,
258
,
258
,
/* 50 */
2
58
,
258
,
258
,
258
,
258
,
258
,
258
,
258
,
258
,
258
,
/* 60 */
2
58
,
258
,
258
,
258
,
258
,
258
,
258
,
258
,
258
,
258
,
/* 70 */
3
09
,
309
,
309
,
126
,
126
,
126
,
126
,
126
,
126
,
126
,
/* 80 */
311
,
311
,
311
,
331
,
311
,
311
,
311
,
216
,
216
,
311
,
/* 90 */
311
,
311
,
311
,
223
,
223
,
224
,
216
,
311
,
311
,
311
,
/* 100 */
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
/* 110 */
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
/* 120 */
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
/* 130 */
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
/* 140 */
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
311
,
/* 150 */
311
,
311
,
311
,
311
,
311
,
311
,
475
,
475
,
475
,
420
,
/* 160 */
42
0
,
420
,
420
,
475
,
475
,
428
,
431
,
435
,
438
,
440
,
/* 170 */
4
46
,
466
,
472
,
490
,
473
,
475
,
475
,
475
,
447
,
447
,
/* 180 */
50
1
,
22
,
22
,
475
,
475
,
525
,
527
,
572
,
532
,
531
,
/* 190 */
57
3
,
537
,
540
,
501
,
83
,
475
,
475
,
548
,
548
,
475
,
/* 200 */
54
8
,
475
,
548
,
475
,
475
,
773
,
773
,
29
,
69
,
69
,
/* 210 */
9
8
,
69
,
168
,
124
,
217
,
268
,
268
,
268
,
268
,
268
,
/* 220 */
2
68
,
261
,
290
,
40
,
40
,
40
,
40
,
241
,
248
,
10
0
,
/* 230 */
1
75
,
116
,
116
,
278
,
279
,
340
,
372
,
318
,
310
,
326
,
/* 240 */
3
35
,
355
,
358
,
303
,
334
,
366
,
367
,
368
,
371
,
375
,
/* 250 */
236
,
376
,
377
,
439
,
396
,
364
,
378
,
322
,
337
,
338
,
/* 260 */
48
3
,
484
,
346
,
347
,
20
,
350
,
401
,
629
,
482
,
633
,
/* 270 */
63
4
,
486
,
637
,
640
,
545
,
547
,
506
,
529
,
535
,
569
,
/* 280 */
53
3
,
599
,
570
,
559
,
586
,
601
,
603
,
604
,
607
,
608
,
/* 290 */
589
,
6
10
,
611
,
613
,
690
,
614
,
596
,
565
,
602
,
566
,
/* 300 */
61
8
,
535
,
619
,
587
,
621
,
588
,
627
,
620
,
622
,
636
,
/* 310 */
70
5
,
623
,
625
,
704
,
709
,
710
,
711
,
712
,
713
,
714
,
/* 320 */
715
,
63
5
,
707
,
644
,
641
,
642
,
609
,
645
,
699
,
669
,
/* 330 */
716
,
58
2
,
583
,
638
,
638
,
638
,
638
,
717
,
590
,
591
,
/* 340 */
63
8
,
638
,
638
,
729
,
730
,
653
,
638
,
735
,
736
,
737
,
/* 350 */
738
,
739
,
740
,
741
,
742
,
743
,
744
,
745
,
746
,
747
,
/* 360 */
748
,
749
,
65
6
,
669
,
750
,
751
,
695
,
758
,
/* 360 */
748
,
749
,
65
7
,
670
,
750
,
751
,
696
,
758
,
};
#define YY_REDUCE_COUNT (206)
#define YY_REDUCE_MIN (-26
8
)
#define YY_REDUCE_MAX (4
77
)
#define YY_REDUCE_MIN (-26
2
)
#define YY_REDUCE_MAX (4
81
)
static
const
short
yy_reduce_ofst
[]
=
{
/* 0 */
-
18
8
,
10
,
10
,
-
165
,
-
165
,
53
,
-
161
,
-
1
,
65
,
-
170
,
/* 10 */
-
114
,
-
17
,
116
,
119
,
133
,
172
,
175
,
177
,
180
,
188
,
/* 20 */
19
4
,
196
,
199
,
-
197
,
-
199
,
-
260
,
-
241
,
-
203
,
-
145
,
-
231
,
/* 30 */
-
132
,
-
64
,
90
,
-
240
,
-
59
,
-
44
,
190
,
200
,
202
,
27
,
/* 40 */
197
,
198
,
201
,
217
,
117
,
181
,
218
,
204
,
-
268
,
-
263
,
/* 50 */
-
202
,
-
184
,
-
107
,
-
60
,
-
39
,
-
14
,
7
,
32
,
74
,
148
,
/* 60 */
2
15
,
231
,
235
,
236
,
237
,
243
,
244
,
245
,
246
,
247
,
/* 70 */
70
,
184
,
255
,
126
,
268
,
275
,
276
,
277
,
278
,
279
,
/* 80 */
285
,
307
,
309
,
254
,
321
,
322
,
323
,
280
,
281
,
324
,
/* 90 */
32
6
,
327
,
331
,
249
,
256
,
282
,
287
,
336
,
337
,
338
,
/* 100 */
3
39
,
340
,
341
,
342
,
343
,
344
,
345
,
346
,
349
,
350
,
/* 110 */
35
2
,
353
,
354
,
355
,
356
,
357
,
359
,
360
,
361
,
362
,
/* 120 */
3
64
,
368
,
372
,
373
,
375
,
377
,
378
,
379
,
380
,
381
,
/* 130 */
38
3
,
384
,
385
,
387
,
388
,
390
,
392
,
393
,
394
,
395
,
/* 140 */
39
7
,
398
,
399
,
400
,
401
,
402
,
403
,
404
,
405
,
406
,
/* 150 */
40
7
,
408
,
409
,
410
,
411
,
412
,
413
,
414
,
415
,
262
,
/* 160 */
2
92
,
295
,
296
,
416
,
417
,
288
,
286
,
310
,
316
,
332
,
/* 170 */
418
,
420
,
423
,
425
,
429
,
424
,
426
,
427
,
430
,
431
,
/* 180 */
43
2
,
433
,
436
,
435
,
438
,
440
,
442
,
441
,
443
,
445
,
/* 190 */
44
8
,
449
,
451
,
444
,
446
,
447
,
450
,
454
,
464
,
45
7
,
/* 200 */
46
7
,
466
,
470
,
473
,
476
,
463
,
477
,
/* 0 */
-
18
6
,
2
,
2
,
-
163
,
-
163
,
-
41
,
-
134
,
55
,
63
,
-
168
,
/* 10 */
57
,
75
,
56
,
148
,
167
,
169
,
170
,
176
,
181
,
182
,
/* 20 */
19
0
,
200
,
201
,
-
189
,
-
197
,
-
262
,
-
212
,
-
211
,
-
201
,
-
105
,
/* 30 */
3
,
-
181
,
-
82
,
-
187
,
-
199
,
198
,
-
191
,
128
,
157
,
-
146
,
/* 40 */
-
76
,
205
,
39
,
138
,
-
216
,
4
,
-
3
,
219
,
-
259
,
-
118
,
/* 50 */
-
20
,
-
18
,
47
,
106
,
192
,
197
,
211
,
221
,
231
,
233
,
/* 60 */
2
34
,
235
,
237
,
238
,
239
,
242
,
243
,
244
,
245
,
246
,
/* 70 */
218
,
222
,
253
,
267
,
274
,
275
,
276
,
277
,
280
,
281
,
/* 80 */
308
,
319
,
323
,
252
,
324
,
325
,
327
,
282
,
283
,
328
,
/* 90 */
32
9
,
332
,
333
,
250
,
259
,
270
,
286
,
336
,
339
,
341
,
/* 100 */
3
42
,
343
,
344
,
345
,
348
,
349
,
351
,
352
,
353
,
354
,
/* 110 */
35
6
,
357
,
359
,
360
,
361
,
362
,
363
,
365
,
369
,
370
,
/* 120 */
3
73
,
374
,
379
,
380
,
381
,
382
,
383
,
384
,
385
,
386
,
/* 130 */
38
7
,
388
,
389
,
390
,
391
,
392
,
393
,
394
,
395
,
397
,
/* 140 */
39
8
,
399
,
400
,
402
,
403
,
404
,
405
,
406
,
407
,
408
,
/* 150 */
40
9
,
410
,
411
,
412
,
413
,
414
,
415
,
416
,
417
,
269
,
/* 160 */
2
84
,
287
,
293
,
418
,
419
,
304
,
285
,
289
,
312
,
421
,
/* 170 */
320
,
422
,
425
,
423
,
424
,
426
,
427
,
429
,
430
,
432
,
/* 180 */
43
3
,
437
,
441
,
434
,
436
,
442
,
444
,
443
,
445
,
448
,
/* 190 */
44
9
,
450
,
454
,
451
,
452
,
453
,
455
,
456
,
458
,
46
7
,
/* 200 */
46
8
,
471
,
479
,
474
,
481
,
461
,
470
,
};
static
const
YYACTIONTYPE
yy_default
[]
=
{
/* 0 */
870
,
994
,
933
,
1004
,
920
,
930
,
1145
,
1145
,
1145
,
870
,
...
...
@@ -553,7 +563,6 @@ static const YYCODETYPE yyFallback[] = {
0
,
/* STAR => nothing */
0
,
/* SLASH => nothing */
0
,
/* REM => nothing */
0
,
/* CONCAT => nothing */
0
,
/* UMINUS => nothing */
0
,
/* UPLUS => nothing */
0
,
/* BITNOT => nothing */
...
...
@@ -748,6 +757,7 @@ struct yyParser {
int
yyerrcnt
;
/* Shifts left before out of the error */
#endif
ParseARG_SDECL
/* A place to hold %extra_argument */
ParseCTX_SDECL
/* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
int
yystksz
;
/* Current side of the stack */
yyStackEntry
*
yystack
;
/* The parser's stack */
...
...
@@ -837,244 +847,242 @@ static const char *const yyTokenName[] = {
/* 39 */
"STAR"
,
/* 40 */
"SLASH"
,
/* 41 */
"REM"
,
/* 42 */
"CONCAT"
,
/* 43 */
"UMINUS"
,
/* 44 */
"UPLUS"
,
/* 45 */
"BITNOT"
,
/* 46 */
"SHOW"
,
/* 47 */
"DATABASES"
,
/* 48 */
"TOPICS"
,
/* 49 */
"FUNCTIONS"
,
/* 50 */
"MNODES"
,
/* 51 */
"DNODES"
,
/* 52 */
"ACCOUNTS"
,
/* 53 */
"USERS"
,
/* 54 */
"MODULES"
,
/* 55 */
"QUERIES"
,
/* 56 */
"CONNECTIONS"
,
/* 57 */
"STREAMS"
,
/* 58 */
"VARIABLES"
,
/* 59 */
"SCORES"
,
/* 60 */
"GRANTS"
,
/* 61 */
"VNODES"
,
/* 62 */
"DOT"
,
/* 63 */
"CREATE"
,
/* 64 */
"TABLE"
,
/* 65 */
"STABLE"
,
/* 66 */
"DATABASE"
,
/* 67 */
"TABLES"
,
/* 68 */
"STABLES"
,
/* 69 */
"VGROUPS"
,
/* 70 */
"DROP"
,
/* 71 */
"TOPIC"
,
/* 72 */
"FUNCTION"
,
/* 73 */
"DNODE"
,
/* 74 */
"USER"
,
/* 75 */
"ACCOUNT"
,
/* 76 */
"USE"
,
/* 77 */
"DESCRIBE"
,
/* 78 */
"DESC"
,
/* 79 */
"ALTER"
,
/* 80 */
"PASS"
,
/* 81 */
"PRIVILEGE"
,
/* 82 */
"LOCAL"
,
/* 83 */
"COMPACT"
,
/* 84 */
"LP"
,
/* 85 */
"RP"
,
/* 86 */
"IF"
,
/* 87 */
"EXISTS"
,
/* 88 */
"AS"
,
/* 89 */
"OUTPUTTYPE"
,
/* 90 */
"AGGREGATE"
,
/* 91 */
"BUFSIZE"
,
/* 92 */
"PPS"
,
/* 93 */
"TSERIES"
,
/* 94 */
"DBS"
,
/* 95 */
"STORAGE"
,
/* 96 */
"QTIME"
,
/* 97 */
"CONNS"
,
/* 98 */
"STATE"
,
/* 99 */
"COMMA"
,
/* 100 */
"KEEP"
,
/* 101 */
"CACHE"
,
/* 102 */
"REPLICA"
,
/* 103 */
"QUORUM"
,
/* 104 */
"DAYS"
,
/* 105 */
"MINROWS"
,
/* 106 */
"MAXROWS"
,
/* 107 */
"BLOCKS"
,
/* 108 */
"CTIME"
,
/* 109 */
"WAL"
,
/* 110 */
"FSYNC"
,
/* 111 */
"COMP"
,
/* 112 */
"PRECISION"
,
/* 113 */
"UPDATE"
,
/* 114 */
"CACHELAST"
,
/* 115 */
"PARTITIONS"
,
/* 116 */
"UNSIGNED"
,
/* 117 */
"TAGS"
,
/* 118 */
"USING"
,
/* 119 */
"NULL"
,
/* 120 */
"NOW"
,
/* 121 */
"SELECT"
,
/* 122 */
"UNION"
,
/* 123 */
"ALL"
,
/* 124 */
"DISTINCT"
,
/* 125 */
"FROM"
,
/* 126 */
"VARIABLE"
,
/* 127 */
"INTERVAL"
,
/* 128 */
"EVERY"
,
/* 129 */
"SESSION"
,
/* 130 */
"STATE_WINDOW"
,
/* 131 */
"FILL"
,
/* 132 */
"SLIDING"
,
/* 133 */
"ORDER"
,
/* 134 */
"BY"
,
/* 135 */
"ASC"
,
/* 136 */
"GROUP"
,
/* 137 */
"HAVING"
,
/* 138 */
"LIMIT"
,
/* 139 */
"OFFSET"
,
/* 140 */
"SLIMIT"
,
/* 141 */
"SOFFSET"
,
/* 142 */
"WHERE"
,
/* 143 */
"RESET"
,
/* 144 */
"QUERY"
,
/* 145 */
"SYNCDB"
,
/* 146 */
"ADD"
,
/* 147 */
"COLUMN"
,
/* 148 */
"MODIFY"
,
/* 149 */
"TAG"
,
/* 150 */
"CHANGE"
,
/* 151 */
"SET"
,
/* 152 */
"KILL"
,
/* 153 */
"CONNECTION"
,
/* 154 */
"STREAM"
,
/* 155 */
"COLON"
,
/* 156 */
"ABORT"
,
/* 157 */
"AFTER"
,
/* 158 */
"ATTACH"
,
/* 159 */
"BEFORE"
,
/* 160 */
"BEGIN"
,
/* 161 */
"CASCADE"
,
/* 162 */
"CLUSTER"
,
/* 163 */
"CONFLICT"
,
/* 164 */
"COPY"
,
/* 165 */
"DEFERRED"
,
/* 166 */
"DELIMITERS"
,
/* 167 */
"DETACH"
,
/* 168 */
"EACH"
,
/* 169 */
"END"
,
/* 170 */
"EXPLAIN"
,
/* 171 */
"FAIL"
,
/* 172 */
"FOR"
,
/* 173 */
"IGNORE"
,
/* 174 */
"IMMEDIATE"
,
/* 175 */
"INITIALLY"
,
/* 176 */
"INSTEAD"
,
/* 177 */
"KEY"
,
/* 178 */
"OF"
,
/* 179 */
"RAISE"
,
/* 180 */
"REPLACE"
,
/* 181 */
"RESTRICT"
,
/* 182 */
"ROW"
,
/* 183 */
"STATEMENT"
,
/* 184 */
"TRIGGER"
,
/* 185 */
"VIEW"
,
/* 186 */
"IPTOKEN"
,
/* 187 */
"SEMI"
,
/* 188 */
"NONE"
,
/* 189 */
"PREV"
,
/* 190 */
"LINEAR"
,
/* 191 */
"IMPORT"
,
/* 192 */
"TBNAME"
,
/* 193 */
"JOIN"
,
/* 194 */
"INSERT"
,
/* 195 */
"INTO"
,
/* 196 */
"VALUES"
,
/* 197 */
"FILE"
,
/* 198 */
"error"
,
/* 199 */
"program"
,
/* 200 */
"cmd"
,
/* 201 */
"ids"
,
/* 202 */
"dbPrefix"
,
/* 203 */
"cpxName"
,
/* 204 */
"ifexists"
,
/* 205 */
"alter_db_optr"
,
/* 206 */
"alter_topic_optr"
,
/* 207 */
"acct_optr"
,
/* 208 */
"exprlist"
,
/* 209 */
"ifnotexists"
,
/* 210 */
"db_optr"
,
/* 211 */
"topic_optr"
,
/* 212 */
"typename"
,
/* 213 */
"bufsize"
,
/* 214 */
"pps"
,
/* 215 */
"tseries"
,
/* 216 */
"dbs"
,
/* 217 */
"streams"
,
/* 218 */
"storage"
,
/* 219 */
"qtime"
,
/* 220 */
"users"
,
/* 221 */
"conns"
,
/* 222 */
"state"
,
/* 223 */
"intitemlist"
,
/* 224 */
"intitem"
,
/* 225 */
"keep"
,
/* 226 */
"cache"
,
/* 227 */
"replica"
,
/* 228 */
"quorum"
,
/* 229 */
"days"
,
/* 230 */
"minrows"
,
/* 231 */
"maxrows"
,
/* 232 */
"blocks"
,
/* 233 */
"ctime"
,
/* 234 */
"wal"
,
/* 235 */
"fsync"
,
/* 236 */
"comp"
,
/* 237 */
"prec"
,
/* 238 */
"update"
,
/* 239 */
"cachelast"
,
/* 240 */
"partitions"
,
/* 241 */
"signed"
,
/* 242 */
"create_table_args"
,
/* 243 */
"create_stable_args"
,
/* 244 */
"create_table_list"
,
/* 245 */
"create_from_stable"
,
/* 246 */
"columnlist"
,
/* 247 */
"tagitemlist"
,
/* 248 */
"tagNamelist"
,
/* 249 */
"select"
,
/* 250 */
"column"
,
/* 251 */
"tagitem"
,
/* 252 */
"selcollist"
,
/* 253 */
"from"
,
/* 254 */
"where_opt"
,
/* 255 */
"interval_option"
,
/* 256 */
"sliding_opt"
,
/* 257 */
"session_option"
,
/* 258 */
"windowstate_option"
,
/* 259 */
"fill_opt"
,
/* 260 */
"groupby_opt"
,
/* 261 */
"having_opt"
,
/* 262 */
"orderby_opt"
,
/* 263 */
"slimit_opt"
,
/* 264 */
"limit_opt"
,
/* 265 */
"union"
,
/* 266 */
"sclp"
,
/* 267 */
"distinct"
,
/* 268 */
"expr"
,
/* 269 */
"as"
,
/* 270 */
"tablelist"
,
/* 271 */
"sub"
,
/* 272 */
"tmvar"
,
/* 273 */
"intervalKey"
,
/* 274 */
"sortlist"
,
/* 275 */
"sortitem"
,
/* 276 */
"item"
,
/* 277 */
"sortorder"
,
/* 278 */
"grouplist"
,
/* 279 */
"expritem"
,
/* 42 */
"UMINUS"
,
/* 43 */
"UPLUS"
,
/* 44 */
"BITNOT"
,
/* 45 */
"SHOW"
,
/* 46 */
"DATABASES"
,
/* 47 */
"TOPICS"
,
/* 48 */
"FUNCTIONS"
,
/* 49 */
"MNODES"
,
/* 50 */
"DNODES"
,
/* 51 */
"ACCOUNTS"
,
/* 52 */
"USERS"
,
/* 53 */
"MODULES"
,
/* 54 */
"QUERIES"
,
/* 55 */
"CONNECTIONS"
,
/* 56 */
"STREAMS"
,
/* 57 */
"VARIABLES"
,
/* 58 */
"SCORES"
,
/* 59 */
"GRANTS"
,
/* 60 */
"VNODES"
,
/* 61 */
"DOT"
,
/* 62 */
"CREATE"
,
/* 63 */
"TABLE"
,
/* 64 */
"STABLE"
,
/* 65 */
"DATABASE"
,
/* 66 */
"TABLES"
,
/* 67 */
"STABLES"
,
/* 68 */
"VGROUPS"
,
/* 69 */
"DROP"
,
/* 70 */
"TOPIC"
,
/* 71 */
"FUNCTION"
,
/* 72 */
"DNODE"
,
/* 73 */
"USER"
,
/* 74 */
"ACCOUNT"
,
/* 75 */
"USE"
,
/* 76 */
"DESCRIBE"
,
/* 77 */
"DESC"
,
/* 78 */
"ALTER"
,
/* 79 */
"PASS"
,
/* 80 */
"PRIVILEGE"
,
/* 81 */
"LOCAL"
,
/* 82 */
"COMPACT"
,
/* 83 */
"LP"
,
/* 84 */
"RP"
,
/* 85 */
"IF"
,
/* 86 */
"EXISTS"
,
/* 87 */
"AS"
,
/* 88 */
"OUTPUTTYPE"
,
/* 89 */
"AGGREGATE"
,
/* 90 */
"BUFSIZE"
,
/* 91 */
"PPS"
,
/* 92 */
"TSERIES"
,
/* 93 */
"DBS"
,
/* 94 */
"STORAGE"
,
/* 95 */
"QTIME"
,
/* 96 */
"CONNS"
,
/* 97 */
"STATE"
,
/* 98 */
"COMMA"
,
/* 99 */
"KEEP"
,
/* 100 */
"CACHE"
,
/* 101 */
"REPLICA"
,
/* 102 */
"QUORUM"
,
/* 103 */
"DAYS"
,
/* 104 */
"MINROWS"
,
/* 105 */
"MAXROWS"
,
/* 106 */
"BLOCKS"
,
/* 107 */
"CTIME"
,
/* 108 */
"WAL"
,
/* 109 */
"FSYNC"
,
/* 110 */
"COMP"
,
/* 111 */
"PRECISION"
,
/* 112 */
"UPDATE"
,
/* 113 */
"CACHELAST"
,
/* 114 */
"PARTITIONS"
,
/* 115 */
"UNSIGNED"
,
/* 116 */
"TAGS"
,
/* 117 */
"USING"
,
/* 118 */
"NULL"
,
/* 119 */
"NOW"
,
/* 120 */
"SELECT"
,
/* 121 */
"UNION"
,
/* 122 */
"ALL"
,
/* 123 */
"DISTINCT"
,
/* 124 */
"FROM"
,
/* 125 */
"VARIABLE"
,
/* 126 */
"INTERVAL"
,
/* 127 */
"EVERY"
,
/* 128 */
"SESSION"
,
/* 129 */
"STATE_WINDOW"
,
/* 130 */
"FILL"
,
/* 131 */
"SLIDING"
,
/* 132 */
"ORDER"
,
/* 133 */
"BY"
,
/* 134 */
"ASC"
,
/* 135 */
"GROUP"
,
/* 136 */
"HAVING"
,
/* 137 */
"LIMIT"
,
/* 138 */
"OFFSET"
,
/* 139 */
"SLIMIT"
,
/* 140 */
"SOFFSET"
,
/* 141 */
"WHERE"
,
/* 142 */
"RESET"
,
/* 143 */
"QUERY"
,
/* 144 */
"SYNCDB"
,
/* 145 */
"ADD"
,
/* 146 */
"COLUMN"
,
/* 147 */
"MODIFY"
,
/* 148 */
"TAG"
,
/* 149 */
"CHANGE"
,
/* 150 */
"SET"
,
/* 151 */
"KILL"
,
/* 152 */
"CONNECTION"
,
/* 153 */
"STREAM"
,
/* 154 */
"COLON"
,
/* 155 */
"ABORT"
,
/* 156 */
"AFTER"
,
/* 157 */
"ATTACH"
,
/* 158 */
"BEFORE"
,
/* 159 */
"BEGIN"
,
/* 160 */
"CASCADE"
,
/* 161 */
"CLUSTER"
,
/* 162 */
"CONFLICT"
,
/* 163 */
"COPY"
,
/* 164 */
"DEFERRED"
,
/* 165 */
"DELIMITERS"
,
/* 166 */
"DETACH"
,
/* 167 */
"EACH"
,
/* 168 */
"END"
,
/* 169 */
"EXPLAIN"
,
/* 170 */
"FAIL"
,
/* 171 */
"FOR"
,
/* 172 */
"IGNORE"
,
/* 173 */
"IMMEDIATE"
,
/* 174 */
"INITIALLY"
,
/* 175 */
"INSTEAD"
,
/* 176 */
"KEY"
,
/* 177 */
"OF"
,
/* 178 */
"RAISE"
,
/* 179 */
"REPLACE"
,
/* 180 */
"RESTRICT"
,
/* 181 */
"ROW"
,
/* 182 */
"STATEMENT"
,
/* 183 */
"TRIGGER"
,
/* 184 */
"VIEW"
,
/* 185 */
"IPTOKEN"
,
/* 186 */
"SEMI"
,
/* 187 */
"NONE"
,
/* 188 */
"PREV"
,
/* 189 */
"LINEAR"
,
/* 190 */
"IMPORT"
,
/* 191 */
"TBNAME"
,
/* 192 */
"JOIN"
,
/* 193 */
"INSERT"
,
/* 194 */
"INTO"
,
/* 195 */
"VALUES"
,
/* 196 */
"FILE"
,
/* 197 */
"program"
,
/* 198 */
"cmd"
,
/* 199 */
"ids"
,
/* 200 */
"dbPrefix"
,
/* 201 */
"cpxName"
,
/* 202 */
"ifexists"
,
/* 203 */
"alter_db_optr"
,
/* 204 */
"alter_topic_optr"
,
/* 205 */
"acct_optr"
,
/* 206 */
"exprlist"
,
/* 207 */
"ifnotexists"
,
/* 208 */
"db_optr"
,
/* 209 */
"topic_optr"
,
/* 210 */
"typename"
,
/* 211 */
"bufsize"
,
/* 212 */
"pps"
,
/* 213 */
"tseries"
,
/* 214 */
"dbs"
,
/* 215 */
"streams"
,
/* 216 */
"storage"
,
/* 217 */
"qtime"
,
/* 218 */
"users"
,
/* 219 */
"conns"
,
/* 220 */
"state"
,
/* 221 */
"intitemlist"
,
/* 222 */
"intitem"
,
/* 223 */
"keep"
,
/* 224 */
"cache"
,
/* 225 */
"replica"
,
/* 226 */
"quorum"
,
/* 227 */
"days"
,
/* 228 */
"minrows"
,
/* 229 */
"maxrows"
,
/* 230 */
"blocks"
,
/* 231 */
"ctime"
,
/* 232 */
"wal"
,
/* 233 */
"fsync"
,
/* 234 */
"comp"
,
/* 235 */
"prec"
,
/* 236 */
"update"
,
/* 237 */
"cachelast"
,
/* 238 */
"partitions"
,
/* 239 */
"signed"
,
/* 240 */
"create_table_args"
,
/* 241 */
"create_stable_args"
,
/* 242 */
"create_table_list"
,
/* 243 */
"create_from_stable"
,
/* 244 */
"columnlist"
,
/* 245 */
"tagitemlist"
,
/* 246 */
"tagNamelist"
,
/* 247 */
"select"
,
/* 248 */
"column"
,
/* 249 */
"tagitem"
,
/* 250 */
"selcollist"
,
/* 251 */
"from"
,
/* 252 */
"where_opt"
,
/* 253 */
"interval_option"
,
/* 254 */
"sliding_opt"
,
/* 255 */
"session_option"
,
/* 256 */
"windowstate_option"
,
/* 257 */
"fill_opt"
,
/* 258 */
"groupby_opt"
,
/* 259 */
"having_opt"
,
/* 260 */
"orderby_opt"
,
/* 261 */
"slimit_opt"
,
/* 262 */
"limit_opt"
,
/* 263 */
"union"
,
/* 264 */
"sclp"
,
/* 265 */
"distinct"
,
/* 266 */
"expr"
,
/* 267 */
"as"
,
/* 268 */
"tablelist"
,
/* 269 */
"sub"
,
/* 270 */
"tmvar"
,
/* 271 */
"intervalKey"
,
/* 272 */
"sortlist"
,
/* 273 */
"sortitem"
,
/* 274 */
"item"
,
/* 275 */
"sortorder"
,
/* 276 */
"grouplist"
,
/* 277 */
"expritem"
,
};
#endif
/* defined(YYCOVERAGE) || !defined(NDEBUG) */
...
...
@@ -1424,28 +1432,29 @@ static int yyGrowStack(yyParser *p){
/* Initialize a new parser that has already been allocated.
*/
void
ParseInit
(
void
*
yypParser
){
yyParser
*
pParser
=
(
yyParser
*
)
yypParser
;
void
ParseInit
(
void
*
yypRawParser
ParseCTX_PDECL
){
yyParser
*
yypParser
=
(
yyParser
*
)
yypRawParser
;
ParseCTX_STORE
#ifdef YYTRACKMAXSTACKDEPTH
pParser
->
yyhwm
=
0
;
yy
pParser
->
yyhwm
=
0
;
#endif
#if YYSTACKDEPTH<=0
pParser
->
yytos
=
NULL
;
pParser
->
yystack
=
NULL
;
pParser
->
yystksz
=
0
;
if
(
yyGrowStack
(
pParser
)
){
pParser
->
yystack
=
&
pParser
->
yystk0
;
pParser
->
yystksz
=
1
;
yy
pParser
->
yytos
=
NULL
;
yy
pParser
->
yystack
=
NULL
;
yy
pParser
->
yystksz
=
0
;
if
(
yyGrowStack
(
yy
pParser
)
){
yypParser
->
yystack
=
&
yy
pParser
->
yystk0
;
yy
pParser
->
yystksz
=
1
;
}
#endif
#ifndef YYNOERRORRECOVERY
pParser
->
yyerrcnt
=
-
1
;
yy
pParser
->
yyerrcnt
=
-
1
;
#endif
pParser
->
yytos
=
pParser
->
yystack
;
pParser
->
yystack
[
0
].
stateno
=
0
;
pParser
->
yystack
[
0
].
major
=
0
;
yypParser
->
yytos
=
yy
pParser
->
yystack
;
yy
pParser
->
yystack
[
0
].
stateno
=
0
;
yy
pParser
->
yystack
[
0
].
major
=
0
;
#if YYSTACKDEPTH>0
pParser
->
yystackEnd
=
&
pParser
->
yystack
[
YYSTACKDEPTH
-
1
];
yypParser
->
yystackEnd
=
&
yy
pParser
->
yystack
[
YYSTACKDEPTH
-
1
];
#endif
}
...
...
@@ -1462,11 +1471,14 @@ void ParseInit(void *yypParser){
** A pointer to a parser. This pointer is used in subsequent calls
** to Parse and ParseFree.
*/
void
*
ParseAlloc
(
void
*
(
*
mallocProc
)(
YYMALLOCARGTYPE
)){
yyParser
*
pParser
;
pParser
=
(
yyParser
*
)(
*
mallocProc
)(
(
YYMALLOCARGTYPE
)
sizeof
(
yyParser
)
);
if
(
pParser
)
ParseInit
(
pParser
);
return
pParser
;
void
*
ParseAlloc
(
void
*
(
*
mallocProc
)(
YYMALLOCARGTYPE
)
ParseCTX_PDECL
){
yyParser
*
yypParser
;
yypParser
=
(
yyParser
*
)(
*
mallocProc
)(
(
YYMALLOCARGTYPE
)
sizeof
(
yyParser
)
);
if
(
yypParser
){
ParseCTX_STORE
ParseInit
(
yypParser
ParseCTX_PARAM
);
}
return
(
void
*
)
yypParser
;
}
#endif
/* Parse_ENGINEALWAYSONSTACK */
...
...
@@ -1483,7 +1495,8 @@ static void yy_destructor(
YYCODETYPE
yymajor
,
/* Type code for object to destroy */
YYMINORTYPE
*
yypminor
/* The object to be destroyed */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
switch
(
yymajor
){
/* Here is inserted the actions which take place when a
** terminal or non-terminal is destroyed. This can happen
...
...
@@ -1496,60 +1509,60 @@ static void yy_destructor(
** inside the C code.
*/
/********* Begin destructor definitions ***************************************/
case
20
8
:
/* exprlist */
case
25
2
:
/* selcollist */
case
26
6
:
/* sclp */
case
20
6
:
/* exprlist */
case
25
0
:
/* selcollist */
case
26
4
:
/* sclp */
{
tSqlExprListDestroy
((
yypminor
->
yy
2
21
));
tSqlExprListDestroy
((
yypminor
->
yy
4
21
));
}
break
;
case
22
3
:
/* intitemlist */
case
22
5
:
/* keep */
case
24
6
:
/* columnlist */
case
24
7
:
/* tagitemlist */
case
24
8
:
/* tagNamelist */
case
25
9
:
/* fill_opt */
case
2
60
:
/* groupby_opt */
case
26
2
:
/* orderby_opt */
case
27
4
:
/* sortlist */
case
27
8
:
/* grouplist */
case
22
1
:
/* intitemlist */
case
22
3
:
/* keep */
case
24
4
:
/* columnlist */
case
24
5
:
/* tagitemlist */
case
24
6
:
/* tagNamelist */
case
25
7
:
/* fill_opt */
case
2
58
:
/* groupby_opt */
case
26
0
:
/* orderby_opt */
case
27
2
:
/* sortlist */
case
27
6
:
/* grouplist */
{
taosArrayDestroy
((
yypminor
->
yy
2
21
));
taosArrayDestroy
((
yypminor
->
yy
4
21
));
}
break
;
case
24
4
:
/* create_table_list */
case
24
2
:
/* create_table_list */
{
destroyCreateTableSql
((
yypminor
->
yy
102
));
destroyCreateTableSql
((
yypminor
->
yy
438
));
}
break
;
case
24
9
:
/* select */
case
24
7
:
/* select */
{
destroySqlNode
((
yypminor
->
yy
37
6
));
destroySqlNode
((
yypminor
->
yy
5
6
));
}
break
;
case
25
3
:
/* from */
case
2
70
:
/* tablelist */
case
2
71
:
/* sub */
case
25
1
:
/* from */
case
2
68
:
/* tablelist */
case
2
69
:
/* sub */
{
destroyRelationInfo
((
yypminor
->
yy
164
));
destroyRelationInfo
((
yypminor
->
yy
8
));
}
break
;
case
25
4
:
/* where_opt */
case
2
61
:
/* having_opt */
case
26
8
:
/* expr */
case
27
9
:
/* expritem */
case
25
2
:
/* where_opt */
case
2
59
:
/* having_opt */
case
26
6
:
/* expr */
case
27
7
:
/* expritem */
{
tSqlExprDestroy
((
yypminor
->
yy
146
));
tSqlExprDestroy
((
yypminor
->
yy
439
));
}
break
;
case
26
5
:
/* union */
case
26
3
:
/* union */
{
destroyAllSqlNode
((
yypminor
->
yy
2
21
));
destroyAllSqlNode
((
yypminor
->
yy
4
21
));
}
break
;
case
27
5
:
/* sortitem */
case
27
3
:
/* sortitem */
{
tVariantDestroy
(
&
(
yypminor
->
yy
106
));
tVariantDestroy
(
&
(
yypminor
->
yy
430
));
}
break
;
/********* End destructor definitions *****************************************/
...
...
@@ -1661,12 +1674,11 @@ int ParseCoverage(FILE *out){
** Find the appropriate action for a parser given the terminal
** look-ahead token iLookAhead.
*/
static
unsigned
int
yy_find_shift_action
(
yyParser
*
pParser
,
/* The parser
*/
YY
CODETYPE
iLookAhead
/* The look-ahead token
*/
static
YYACTIONTYPE
yy_find_shift_action
(
YYCODETYPE
iLookAhead
,
/* The look-ahead token
*/
YY
ACTIONTYPE
stateno
/* Current state number
*/
){
int
i
;
int
stateno
=
pParser
->
yytos
->
stateno
;
if
(
stateno
>
YY_MAX_SHIFT
)
return
stateno
;
assert
(
stateno
<=
YY_SHIFT_COUNT
);
...
...
@@ -1675,15 +1687,19 @@ static unsigned int yy_find_shift_action(
#endif
do
{
i
=
yy_shift_ofst
[
stateno
];
assert
(
i
>=
0
&&
i
+
YYNTOKEN
<=
sizeof
(
yy_lookahead
)
/
sizeof
(
yy_lookahead
[
0
])
);
assert
(
i
>=
0
);
assert
(
i
<=
YY_ACTTAB_COUNT
);
assert
(
i
+
YYNTOKEN
<=
(
int
)
YY_NLOOKAHEAD
);
assert
(
iLookAhead
!=
YYNOCODE
);
assert
(
iLookAhead
<
YYNTOKEN
);
i
+=
iLookAhead
;
assert
(
i
<
(
int
)
YY_NLOOKAHEAD
);
if
(
yy_lookahead
[
i
]
!=
iLookAhead
){
#ifdef YYFALLBACK
YYCODETYPE
iFallback
;
/* Fallback token */
if
(
iLookAhead
<
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
])
&&
(
iFallback
=
yyFallback
[
iLookAhead
])
!=
0
){
assert
(
iLookAhead
<
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
])
);
iFallback
=
yyFallback
[
iLookAhead
];
if
(
iFallback
!=
0
){
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sFALLBACK %s => %s
\n
"
,
...
...
@@ -1698,15 +1714,8 @@ static unsigned int yy_find_shift_action(
#ifdef YYWILDCARD
{
int
j
=
i
-
iLookAhead
+
YYWILDCARD
;
if
(
#if YY_SHIFT_MIN+YYWILDCARD<0
j
>=
0
&&
#endif
#if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT
j
<
YY_ACTTAB_COUNT
&&
#endif
yy_lookahead
[
j
]
==
YYWILDCARD
&&
iLookAhead
>
0
){
assert
(
j
<
(
int
)(
sizeof
(
yy_lookahead
)
/
sizeof
(
yy_lookahead
[
0
]))
);
if
(
yy_lookahead
[
j
]
==
YYWILDCARD
&&
iLookAhead
>
0
){
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sWILDCARD %s => %s
\n
"
,
...
...
@@ -1720,6 +1729,7 @@ static unsigned int yy_find_shift_action(
#endif
/* YYWILDCARD */
return
yy_default
[
stateno
];
}
else
{
assert
(
i
>=
0
&&
i
<
sizeof
(
yy_action
)
/
sizeof
(
yy_action
[
0
])
);
return
yy_action
[
i
];
}
}
while
(
1
);
...
...
@@ -1729,8 +1739,8 @@ static unsigned int yy_find_shift_action(
** Find the appropriate action for a parser given the non-terminal
** look-ahead token iLookAhead.
*/
static
int
yy_find_reduce_action
(
int
stateno
,
/* Current state number */
static
YYACTIONTYPE
yy_find_reduce_action
(
YYACTIONTYPE
stateno
,
/* Current state number */
YYCODETYPE
iLookAhead
/* The look-ahead token */
){
int
i
;
...
...
@@ -1759,7 +1769,8 @@ static int yy_find_reduce_action(
** The following routine is called if the stack overflows.
*/
static
void
yyStackOverflow
(
yyParser
*
yypParser
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sStack Overflow!
\n
"
,
yyTracePrompt
);
...
...
@@ -1770,7 +1781,8 @@ static void yyStackOverflow(yyParser *yypParser){
** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
/******** End %stack_overflow code ********************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument var */
ParseARG_STORE
/* Suppress warning about unused %extra_argument var */
ParseCTX_STORE
}
/*
...
...
@@ -1799,8 +1811,8 @@ static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
*/
static
void
yy_shift
(
yyParser
*
yypParser
,
/* The parser to be shifted */
int
yyNewState
,
/* The new state to shift in */
int
yyMajor
,
/* The major token to shift in */
YYACTIONTYPE
yyNewState
,
/* The new state to shift in */
YYCODETYPE
yyMajor
,
/* The major token to shift in */
ParseTOKENTYPE
yyMinor
/* The minor token to shift in */
){
yyStackEntry
*
yytos
;
...
...
@@ -1830,313 +1842,608 @@ static void yy_shift(
yyNewState
+=
YY_MIN_REDUCE
-
YY_MIN_SHIFTREDUCE
;
}
yytos
=
yypParser
->
yytos
;
yytos
->
stateno
=
(
YYACTIONTYPE
)
yyNewState
;
yytos
->
major
=
(
YYCODETYPE
)
yyMajor
;
yytos
->
stateno
=
yyNewState
;
yytos
->
major
=
yyMajor
;
yytos
->
minor
.
yy0
=
yyMinor
;
yyTraceShift
(
yypParser
,
yyNewState
,
"Shift"
);
}
/* The following table contains information about every rule that
** is used during the reduce.
*/
static
const
struct
{
YYCODETYPE
lhs
;
/* Symbol on the left-hand side of the rule */
signed
char
nrhs
;
/* Negative of the number of RHS symbols in the rule */
}
yyRuleInfo
[]
=
{
{
199
,
-
1
},
/* (0) program ::= cmd */
{
200
,
-
2
},
/* (1) cmd ::= SHOW DATABASES */
{
200
,
-
2
},
/* (2) cmd ::= SHOW TOPICS */
{
200
,
-
2
},
/* (3) cmd ::= SHOW FUNCTIONS */
{
200
,
-
2
},
/* (4) cmd ::= SHOW MNODES */
{
200
,
-
2
},
/* (5) cmd ::= SHOW DNODES */
{
200
,
-
2
},
/* (6) cmd ::= SHOW ACCOUNTS */
{
200
,
-
2
},
/* (7) cmd ::= SHOW USERS */
{
200
,
-
2
},
/* (8) cmd ::= SHOW MODULES */
{
200
,
-
2
},
/* (9) cmd ::= SHOW QUERIES */
{
200
,
-
2
},
/* (10) cmd ::= SHOW CONNECTIONS */
{
200
,
-
2
},
/* (11) cmd ::= SHOW STREAMS */
{
200
,
-
2
},
/* (12) cmd ::= SHOW VARIABLES */
{
200
,
-
2
},
/* (13) cmd ::= SHOW SCORES */
{
200
,
-
2
},
/* (14) cmd ::= SHOW GRANTS */
{
200
,
-
2
},
/* (15) cmd ::= SHOW VNODES */
{
200
,
-
3
},
/* (16) cmd ::= SHOW VNODES ids */
{
202
,
0
},
/* (17) dbPrefix ::= */
{
202
,
-
2
},
/* (18) dbPrefix ::= ids DOT */
{
203
,
0
},
/* (19) cpxName ::= */
{
203
,
-
2
},
/* (20) cpxName ::= DOT ids */
{
200
,
-
5
},
/* (21) cmd ::= SHOW CREATE TABLE ids cpxName */
{
200
,
-
5
},
/* (22) cmd ::= SHOW CREATE STABLE ids cpxName */
{
200
,
-
4
},
/* (23) cmd ::= SHOW CREATE DATABASE ids */
{
200
,
-
3
},
/* (24) cmd ::= SHOW dbPrefix TABLES */
{
200
,
-
5
},
/* (25) cmd ::= SHOW dbPrefix TABLES LIKE ids */
{
200
,
-
3
},
/* (26) cmd ::= SHOW dbPrefix STABLES */
{
200
,
-
5
},
/* (27) cmd ::= SHOW dbPrefix STABLES LIKE ids */
{
200
,
-
3
},
/* (28) cmd ::= SHOW dbPrefix VGROUPS */
{
200
,
-
4
},
/* (29) cmd ::= SHOW dbPrefix VGROUPS ids */
{
200
,
-
5
},
/* (30) cmd ::= DROP TABLE ifexists ids cpxName */
{
200
,
-
5
},
/* (31) cmd ::= DROP STABLE ifexists ids cpxName */
{
200
,
-
4
},
/* (32) cmd ::= DROP DATABASE ifexists ids */
{
200
,
-
4
},
/* (33) cmd ::= DROP TOPIC ifexists ids */
{
200
,
-
3
},
/* (34) cmd ::= DROP FUNCTION ids */
{
200
,
-
3
},
/* (35) cmd ::= DROP DNODE ids */
{
200
,
-
3
},
/* (36) cmd ::= DROP USER ids */
{
200
,
-
3
},
/* (37) cmd ::= DROP ACCOUNT ids */
{
200
,
-
2
},
/* (38) cmd ::= USE ids */
{
200
,
-
3
},
/* (39) cmd ::= DESCRIBE ids cpxName */
{
200
,
-
3
},
/* (40) cmd ::= DESC ids cpxName */
{
200
,
-
5
},
/* (41) cmd ::= ALTER USER ids PASS ids */
{
200
,
-
5
},
/* (42) cmd ::= ALTER USER ids PRIVILEGE ids */
{
200
,
-
4
},
/* (43) cmd ::= ALTER DNODE ids ids */
{
200
,
-
5
},
/* (44) cmd ::= ALTER DNODE ids ids ids */
{
200
,
-
3
},
/* (45) cmd ::= ALTER LOCAL ids */
{
200
,
-
4
},
/* (46) cmd ::= ALTER LOCAL ids ids */
{
200
,
-
4
},
/* (47) cmd ::= ALTER DATABASE ids alter_db_optr */
{
200
,
-
4
},
/* (48) cmd ::= ALTER TOPIC ids alter_topic_optr */
{
200
,
-
4
},
/* (49) cmd ::= ALTER ACCOUNT ids acct_optr */
{
200
,
-
6
},
/* (50) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
{
200
,
-
6
},
/* (51) cmd ::= COMPACT VNODES IN LP exprlist RP */
{
201
,
-
1
},
/* (52) ids ::= ID */
{
201
,
-
1
},
/* (53) ids ::= STRING */
{
204
,
-
2
},
/* (54) ifexists ::= IF EXISTS */
{
204
,
0
},
/* (55) ifexists ::= */
{
209
,
-
3
},
/* (56) ifnotexists ::= IF NOT EXISTS */
{
209
,
0
},
/* (57) ifnotexists ::= */
{
200
,
-
3
},
/* (58) cmd ::= CREATE DNODE ids */
{
200
,
-
6
},
/* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
200
,
-
5
},
/* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
200
,
-
5
},
/* (61) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
{
200
,
-
8
},
/* (62) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
{
200
,
-
9
},
/* (63) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
{
200
,
-
5
},
/* (64) cmd ::= CREATE USER ids PASS ids */
{
213
,
0
},
/* (65) bufsize ::= */
{
213
,
-
2
},
/* (66) bufsize ::= BUFSIZE INTEGER */
{
214
,
0
},
/* (67) pps ::= */
{
214
,
-
2
},
/* (68) pps ::= PPS INTEGER */
{
215
,
0
},
/* (69) tseries ::= */
{
215
,
-
2
},
/* (70) tseries ::= TSERIES INTEGER */
{
216
,
0
},
/* (71) dbs ::= */
{
216
,
-
2
},
/* (72) dbs ::= DBS INTEGER */
{
217
,
0
},
/* (73) streams ::= */
{
217
,
-
2
},
/* (74) streams ::= STREAMS INTEGER */
{
218
,
0
},
/* (75) storage ::= */
{
218
,
-
2
},
/* (76) storage ::= STORAGE INTEGER */
{
219
,
0
},
/* (77) qtime ::= */
{
219
,
-
2
},
/* (78) qtime ::= QTIME INTEGER */
{
220
,
0
},
/* (79) users ::= */
{
220
,
-
2
},
/* (80) users ::= USERS INTEGER */
{
221
,
0
},
/* (81) conns ::= */
{
221
,
-
2
},
/* (82) conns ::= CONNS INTEGER */
{
222
,
0
},
/* (83) state ::= */
{
222
,
-
2
},
/* (84) state ::= STATE ids */
{
207
,
-
9
},
/* (85) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
223
,
-
3
},
/* (86) intitemlist ::= intitemlist COMMA intitem */
{
223
,
-
1
},
/* (87) intitemlist ::= intitem */
{
224
,
-
1
},
/* (88) intitem ::= INTEGER */
{
225
,
-
2
},
/* (89) keep ::= KEEP intitemlist */
{
226
,
-
2
},
/* (90) cache ::= CACHE INTEGER */
{
227
,
-
2
},
/* (91) replica ::= REPLICA INTEGER */
{
228
,
-
2
},
/* (92) quorum ::= QUORUM INTEGER */
{
229
,
-
2
},
/* (93) days ::= DAYS INTEGER */
{
230
,
-
2
},
/* (94) minrows ::= MINROWS INTEGER */
{
231
,
-
2
},
/* (95) maxrows ::= MAXROWS INTEGER */
{
232
,
-
2
},
/* (96) blocks ::= BLOCKS INTEGER */
{
233
,
-
2
},
/* (97) ctime ::= CTIME INTEGER */
{
234
,
-
2
},
/* (98) wal ::= WAL INTEGER */
{
235
,
-
2
},
/* (99) fsync ::= FSYNC INTEGER */
{
236
,
-
2
},
/* (100) comp ::= COMP INTEGER */
{
237
,
-
2
},
/* (101) prec ::= PRECISION STRING */
{
238
,
-
2
},
/* (102) update ::= UPDATE INTEGER */
{
239
,
-
2
},
/* (103) cachelast ::= CACHELAST INTEGER */
{
240
,
-
2
},
/* (104) partitions ::= PARTITIONS INTEGER */
{
210
,
0
},
/* (105) db_optr ::= */
{
210
,
-
2
},
/* (106) db_optr ::= db_optr cache */
{
210
,
-
2
},
/* (107) db_optr ::= db_optr replica */
{
210
,
-
2
},
/* (108) db_optr ::= db_optr quorum */
{
210
,
-
2
},
/* (109) db_optr ::= db_optr days */
{
210
,
-
2
},
/* (110) db_optr ::= db_optr minrows */
{
210
,
-
2
},
/* (111) db_optr ::= db_optr maxrows */
{
210
,
-
2
},
/* (112) db_optr ::= db_optr blocks */
{
210
,
-
2
},
/* (113) db_optr ::= db_optr ctime */
{
210
,
-
2
},
/* (114) db_optr ::= db_optr wal */
{
210
,
-
2
},
/* (115) db_optr ::= db_optr fsync */
{
210
,
-
2
},
/* (116) db_optr ::= db_optr comp */
{
210
,
-
2
},
/* (117) db_optr ::= db_optr prec */
{
210
,
-
2
},
/* (118) db_optr ::= db_optr keep */
{
210
,
-
2
},
/* (119) db_optr ::= db_optr update */
{
210
,
-
2
},
/* (120) db_optr ::= db_optr cachelast */
{
211
,
-
1
},
/* (121) topic_optr ::= db_optr */
{
211
,
-
2
},
/* (122) topic_optr ::= topic_optr partitions */
{
205
,
0
},
/* (123) alter_db_optr ::= */
{
205
,
-
2
},
/* (124) alter_db_optr ::= alter_db_optr replica */
{
205
,
-
2
},
/* (125) alter_db_optr ::= alter_db_optr quorum */
{
205
,
-
2
},
/* (126) alter_db_optr ::= alter_db_optr keep */
{
205
,
-
2
},
/* (127) alter_db_optr ::= alter_db_optr blocks */
{
205
,
-
2
},
/* (128) alter_db_optr ::= alter_db_optr comp */
{
205
,
-
2
},
/* (129) alter_db_optr ::= alter_db_optr update */
{
205
,
-
2
},
/* (130) alter_db_optr ::= alter_db_optr cachelast */
{
206
,
-
1
},
/* (131) alter_topic_optr ::= alter_db_optr */
{
206
,
-
2
},
/* (132) alter_topic_optr ::= alter_topic_optr partitions */
{
212
,
-
1
},
/* (133) typename ::= ids */
{
212
,
-
4
},
/* (134) typename ::= ids LP signed RP */
{
212
,
-
2
},
/* (135) typename ::= ids UNSIGNED */
{
241
,
-
1
},
/* (136) signed ::= INTEGER */
{
241
,
-
2
},
/* (137) signed ::= PLUS INTEGER */
{
241
,
-
2
},
/* (138) signed ::= MINUS INTEGER */
{
200
,
-
3
},
/* (139) cmd ::= CREATE TABLE create_table_args */
{
200
,
-
3
},
/* (140) cmd ::= CREATE TABLE create_stable_args */
{
200
,
-
3
},
/* (141) cmd ::= CREATE STABLE create_stable_args */
{
200
,
-
3
},
/* (142) cmd ::= CREATE TABLE create_table_list */
{
244
,
-
1
},
/* (143) create_table_list ::= create_from_stable */
{
244
,
-
2
},
/* (144) create_table_list ::= create_table_list create_from_stable */
{
242
,
-
6
},
/* (145) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{
243
,
-
10
},
/* (146) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{
245
,
-
10
},
/* (147) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
{
245
,
-
13
},
/* (148) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
{
248
,
-
3
},
/* (149) tagNamelist ::= tagNamelist COMMA ids */
{
248
,
-
1
},
/* (150) tagNamelist ::= ids */
{
242
,
-
5
},
/* (151) create_table_args ::= ifnotexists ids cpxName AS select */
{
246
,
-
3
},
/* (152) columnlist ::= columnlist COMMA column */
{
246
,
-
1
},
/* (153) columnlist ::= column */
{
250
,
-
2
},
/* (154) column ::= ids typename */
{
247
,
-
3
},
/* (155) tagitemlist ::= tagitemlist COMMA tagitem */
{
247
,
-
1
},
/* (156) tagitemlist ::= tagitem */
{
251
,
-
1
},
/* (157) tagitem ::= INTEGER */
{
251
,
-
1
},
/* (158) tagitem ::= FLOAT */
{
251
,
-
1
},
/* (159) tagitem ::= STRING */
{
251
,
-
1
},
/* (160) tagitem ::= BOOL */
{
251
,
-
1
},
/* (161) tagitem ::= NULL */
{
251
,
-
1
},
/* (162) tagitem ::= NOW */
{
251
,
-
2
},
/* (163) tagitem ::= MINUS INTEGER */
{
251
,
-
2
},
/* (164) tagitem ::= MINUS FLOAT */
{
251
,
-
2
},
/* (165) tagitem ::= PLUS INTEGER */
{
251
,
-
2
},
/* (166) tagitem ::= PLUS FLOAT */
{
249
,
-
14
},
/* (167) select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
{
249
,
-
3
},
/* (168) select ::= LP select RP */
{
265
,
-
1
},
/* (169) union ::= select */
{
265
,
-
4
},
/* (170) union ::= union UNION ALL select */
{
200
,
-
1
},
/* (171) cmd ::= union */
{
249
,
-
2
},
/* (172) select ::= SELECT selcollist */
{
266
,
-
2
},
/* (173) sclp ::= selcollist COMMA */
{
266
,
0
},
/* (174) sclp ::= */
{
252
,
-
4
},
/* (175) selcollist ::= sclp distinct expr as */
{
252
,
-
2
},
/* (176) selcollist ::= sclp STAR */
{
269
,
-
2
},
/* (177) as ::= AS ids */
{
269
,
-
1
},
/* (178) as ::= ids */
{
269
,
0
},
/* (179) as ::= */
{
267
,
-
1
},
/* (180) distinct ::= DISTINCT */
{
267
,
0
},
/* (181) distinct ::= */
{
253
,
-
2
},
/* (182) from ::= FROM tablelist */
{
253
,
-
2
},
/* (183) from ::= FROM sub */
{
271
,
-
3
},
/* (184) sub ::= LP union RP */
{
271
,
-
4
},
/* (185) sub ::= LP union RP ids */
{
271
,
-
6
},
/* (186) sub ::= sub COMMA LP union RP ids */
{
270
,
-
2
},
/* (187) tablelist ::= ids cpxName */
{
270
,
-
3
},
/* (188) tablelist ::= ids cpxName ids */
{
270
,
-
4
},
/* (189) tablelist ::= tablelist COMMA ids cpxName */
{
270
,
-
5
},
/* (190) tablelist ::= tablelist COMMA ids cpxName ids */
{
272
,
-
1
},
/* (191) tmvar ::= VARIABLE */
{
255
,
-
4
},
/* (192) interval_option ::= intervalKey LP tmvar RP */
{
255
,
-
6
},
/* (193) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
{
255
,
0
},
/* (194) interval_option ::= */
{
273
,
-
1
},
/* (195) intervalKey ::= INTERVAL */
{
273
,
-
1
},
/* (196) intervalKey ::= EVERY */
{
257
,
0
},
/* (197) session_option ::= */
{
257
,
-
7
},
/* (198) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
258
,
0
},
/* (199) windowstate_option ::= */
{
258
,
-
4
},
/* (200) windowstate_option ::= STATE_WINDOW LP ids RP */
{
259
,
0
},
/* (201) fill_opt ::= */
{
259
,
-
6
},
/* (202) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
259
,
-
4
},
/* (203) fill_opt ::= FILL LP ID RP */
{
256
,
-
4
},
/* (204) sliding_opt ::= SLIDING LP tmvar RP */
{
256
,
0
},
/* (205) sliding_opt ::= */
{
262
,
0
},
/* (206) orderby_opt ::= */
{
262
,
-
3
},
/* (207) orderby_opt ::= ORDER BY sortlist */
{
274
,
-
4
},
/* (208) sortlist ::= sortlist COMMA item sortorder */
{
274
,
-
2
},
/* (209) sortlist ::= item sortorder */
{
276
,
-
2
},
/* (210) item ::= ids cpxName */
{
277
,
-
1
},
/* (211) sortorder ::= ASC */
{
277
,
-
1
},
/* (212) sortorder ::= DESC */
{
277
,
0
},
/* (213) sortorder ::= */
{
260
,
0
},
/* (214) groupby_opt ::= */
{
260
,
-
3
},
/* (215) groupby_opt ::= GROUP BY grouplist */
{
278
,
-
3
},
/* (216) grouplist ::= grouplist COMMA item */
{
278
,
-
1
},
/* (217) grouplist ::= item */
{
261
,
0
},
/* (218) having_opt ::= */
{
261
,
-
2
},
/* (219) having_opt ::= HAVING expr */
{
264
,
0
},
/* (220) limit_opt ::= */
{
264
,
-
2
},
/* (221) limit_opt ::= LIMIT signed */
{
264
,
-
4
},
/* (222) limit_opt ::= LIMIT signed OFFSET signed */
{
264
,
-
4
},
/* (223) limit_opt ::= LIMIT signed COMMA signed */
{
263
,
0
},
/* (224) slimit_opt ::= */
{
263
,
-
2
},
/* (225) slimit_opt ::= SLIMIT signed */
{
263
,
-
4
},
/* (226) slimit_opt ::= SLIMIT signed SOFFSET signed */
{
263
,
-
4
},
/* (227) slimit_opt ::= SLIMIT signed COMMA signed */
{
254
,
0
},
/* (228) where_opt ::= */
{
254
,
-
2
},
/* (229) where_opt ::= WHERE expr */
{
268
,
-
3
},
/* (230) expr ::= LP expr RP */
{
268
,
-
1
},
/* (231) expr ::= ID */
{
268
,
-
3
},
/* (232) expr ::= ID DOT ID */
{
268
,
-
3
},
/* (233) expr ::= ID DOT STAR */
{
268
,
-
1
},
/* (234) expr ::= INTEGER */
{
268
,
-
2
},
/* (235) expr ::= MINUS INTEGER */
{
268
,
-
2
},
/* (236) expr ::= PLUS INTEGER */
{
268
,
-
1
},
/* (237) expr ::= FLOAT */
{
268
,
-
2
},
/* (238) expr ::= MINUS FLOAT */
{
268
,
-
2
},
/* (239) expr ::= PLUS FLOAT */
{
268
,
-
1
},
/* (240) expr ::= STRING */
{
268
,
-
1
},
/* (241) expr ::= NOW */
{
268
,
-
1
},
/* (242) expr ::= VARIABLE */
{
268
,
-
2
},
/* (243) expr ::= PLUS VARIABLE */
{
268
,
-
2
},
/* (244) expr ::= MINUS VARIABLE */
{
268
,
-
1
},
/* (245) expr ::= BOOL */
{
268
,
-
1
},
/* (246) expr ::= NULL */
{
268
,
-
4
},
/* (247) expr ::= ID LP exprlist RP */
{
268
,
-
4
},
/* (248) expr ::= ID LP STAR RP */
{
268
,
-
3
},
/* (249) expr ::= expr IS NULL */
{
268
,
-
4
},
/* (250) expr ::= expr IS NOT NULL */
{
268
,
-
3
},
/* (251) expr ::= expr LT expr */
{
268
,
-
3
},
/* (252) expr ::= expr GT expr */
{
268
,
-
3
},
/* (253) expr ::= expr LE expr */
{
268
,
-
3
},
/* (254) expr ::= expr GE expr */
{
268
,
-
3
},
/* (255) expr ::= expr NE expr */
{
268
,
-
3
},
/* (256) expr ::= expr EQ expr */
{
268
,
-
5
},
/* (257) expr ::= expr BETWEEN expr AND expr */
{
268
,
-
3
},
/* (258) expr ::= expr AND expr */
{
268
,
-
3
},
/* (259) expr ::= expr OR expr */
{
268
,
-
3
},
/* (260) expr ::= expr PLUS expr */
{
268
,
-
3
},
/* (261) expr ::= expr MINUS expr */
{
268
,
-
3
},
/* (262) expr ::= expr STAR expr */
{
268
,
-
3
},
/* (263) expr ::= expr SLASH expr */
{
268
,
-
3
},
/* (264) expr ::= expr REM expr */
{
268
,
-
3
},
/* (265) expr ::= expr LIKE expr */
{
268
,
-
3
},
/* (266) expr ::= expr MATCH expr */
{
268
,
-
3
},
/* (267) expr ::= expr NMATCH expr */
{
268
,
-
5
},
/* (268) expr ::= expr IN LP exprlist RP */
{
208
,
-
3
},
/* (269) exprlist ::= exprlist COMMA expritem */
{
208
,
-
1
},
/* (270) exprlist ::= expritem */
{
279
,
-
1
},
/* (271) expritem ::= expr */
{
279
,
0
},
/* (272) expritem ::= */
{
200
,
-
3
},
/* (273) cmd ::= RESET QUERY CACHE */
{
200
,
-
3
},
/* (274) cmd ::= SYNCDB ids REPLICA */
{
200
,
-
7
},
/* (275) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
200
,
-
7
},
/* (276) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
200
,
-
7
},
/* (277) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
{
200
,
-
7
},
/* (278) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
200
,
-
7
},
/* (279) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
200
,
-
8
},
/* (280) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
200
,
-
9
},
/* (281) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
200
,
-
7
},
/* (282) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
{
200
,
-
7
},
/* (283) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{
200
,
-
7
},
/* (284) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{
200
,
-
7
},
/* (285) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
{
200
,
-
7
},
/* (286) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{
200
,
-
7
},
/* (287) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{
200
,
-
8
},
/* (288) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{
200
,
-
9
},
/* (289) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
{
200
,
-
7
},
/* (290) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
{
200
,
-
3
},
/* (291) cmd ::= KILL CONNECTION INTEGER */
{
200
,
-
5
},
/* (292) cmd ::= KILL STREAM INTEGER COLON INTEGER */
{
200
,
-
5
},
/* (293) cmd ::= KILL QUERY INTEGER COLON INTEGER */
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static
const
YYCODETYPE
yyRuleInfoLhs
[]
=
{
197
,
/* (0) program ::= cmd */
198
,
/* (1) cmd ::= SHOW DATABASES */
198
,
/* (2) cmd ::= SHOW TOPICS */
198
,
/* (3) cmd ::= SHOW FUNCTIONS */
198
,
/* (4) cmd ::= SHOW MNODES */
198
,
/* (5) cmd ::= SHOW DNODES */
198
,
/* (6) cmd ::= SHOW ACCOUNTS */
198
,
/* (7) cmd ::= SHOW USERS */
198
,
/* (8) cmd ::= SHOW MODULES */
198
,
/* (9) cmd ::= SHOW QUERIES */
198
,
/* (10) cmd ::= SHOW CONNECTIONS */
198
,
/* (11) cmd ::= SHOW STREAMS */
198
,
/* (12) cmd ::= SHOW VARIABLES */
198
,
/* (13) cmd ::= SHOW SCORES */
198
,
/* (14) cmd ::= SHOW GRANTS */
198
,
/* (15) cmd ::= SHOW VNODES */
198
,
/* (16) cmd ::= SHOW VNODES ids */
200
,
/* (17) dbPrefix ::= */
200
,
/* (18) dbPrefix ::= ids DOT */
201
,
/* (19) cpxName ::= */
201
,
/* (20) cpxName ::= DOT ids */
198
,
/* (21) cmd ::= SHOW CREATE TABLE ids cpxName */
198
,
/* (22) cmd ::= SHOW CREATE STABLE ids cpxName */
198
,
/* (23) cmd ::= SHOW CREATE DATABASE ids */
198
,
/* (24) cmd ::= SHOW dbPrefix TABLES */
198
,
/* (25) cmd ::= SHOW dbPrefix TABLES LIKE ids */
198
,
/* (26) cmd ::= SHOW dbPrefix STABLES */
198
,
/* (27) cmd ::= SHOW dbPrefix STABLES LIKE ids */
198
,
/* (28) cmd ::= SHOW dbPrefix VGROUPS */
198
,
/* (29) cmd ::= SHOW dbPrefix VGROUPS ids */
198
,
/* (30) cmd ::= DROP TABLE ifexists ids cpxName */
198
,
/* (31) cmd ::= DROP STABLE ifexists ids cpxName */
198
,
/* (32) cmd ::= DROP DATABASE ifexists ids */
198
,
/* (33) cmd ::= DROP TOPIC ifexists ids */
198
,
/* (34) cmd ::= DROP FUNCTION ids */
198
,
/* (35) cmd ::= DROP DNODE ids */
198
,
/* (36) cmd ::= DROP USER ids */
198
,
/* (37) cmd ::= DROP ACCOUNT ids */
198
,
/* (38) cmd ::= USE ids */
198
,
/* (39) cmd ::= DESCRIBE ids cpxName */
198
,
/* (40) cmd ::= DESC ids cpxName */
198
,
/* (41) cmd ::= ALTER USER ids PASS ids */
198
,
/* (42) cmd ::= ALTER USER ids PRIVILEGE ids */
198
,
/* (43) cmd ::= ALTER DNODE ids ids */
198
,
/* (44) cmd ::= ALTER DNODE ids ids ids */
198
,
/* (45) cmd ::= ALTER LOCAL ids */
198
,
/* (46) cmd ::= ALTER LOCAL ids ids */
198
,
/* (47) cmd ::= ALTER DATABASE ids alter_db_optr */
198
,
/* (48) cmd ::= ALTER TOPIC ids alter_topic_optr */
198
,
/* (49) cmd ::= ALTER ACCOUNT ids acct_optr */
198
,
/* (50) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
198
,
/* (51) cmd ::= COMPACT VNODES IN LP exprlist RP */
199
,
/* (52) ids ::= ID */
199
,
/* (53) ids ::= STRING */
202
,
/* (54) ifexists ::= IF EXISTS */
202
,
/* (55) ifexists ::= */
207
,
/* (56) ifnotexists ::= IF NOT EXISTS */
207
,
/* (57) ifnotexists ::= */
198
,
/* (58) cmd ::= CREATE DNODE ids */
198
,
/* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
198
,
/* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
198
,
/* (61) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
198
,
/* (62) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
198
,
/* (63) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
198
,
/* (64) cmd ::= CREATE USER ids PASS ids */
211
,
/* (65) bufsize ::= */
211
,
/* (66) bufsize ::= BUFSIZE INTEGER */
212
,
/* (67) pps ::= */
212
,
/* (68) pps ::= PPS INTEGER */
213
,
/* (69) tseries ::= */
213
,
/* (70) tseries ::= TSERIES INTEGER */
214
,
/* (71) dbs ::= */
214
,
/* (72) dbs ::= DBS INTEGER */
215
,
/* (73) streams ::= */
215
,
/* (74) streams ::= STREAMS INTEGER */
216
,
/* (75) storage ::= */
216
,
/* (76) storage ::= STORAGE INTEGER */
217
,
/* (77) qtime ::= */
217
,
/* (78) qtime ::= QTIME INTEGER */
218
,
/* (79) users ::= */
218
,
/* (80) users ::= USERS INTEGER */
219
,
/* (81) conns ::= */
219
,
/* (82) conns ::= CONNS INTEGER */
220
,
/* (83) state ::= */
220
,
/* (84) state ::= STATE ids */
205
,
/* (85) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
221
,
/* (86) intitemlist ::= intitemlist COMMA intitem */
221
,
/* (87) intitemlist ::= intitem */
222
,
/* (88) intitem ::= INTEGER */
223
,
/* (89) keep ::= KEEP intitemlist */
224
,
/* (90) cache ::= CACHE INTEGER */
225
,
/* (91) replica ::= REPLICA INTEGER */
226
,
/* (92) quorum ::= QUORUM INTEGER */
227
,
/* (93) days ::= DAYS INTEGER */
228
,
/* (94) minrows ::= MINROWS INTEGER */
229
,
/* (95) maxrows ::= MAXROWS INTEGER */
230
,
/* (96) blocks ::= BLOCKS INTEGER */
231
,
/* (97) ctime ::= CTIME INTEGER */
232
,
/* (98) wal ::= WAL INTEGER */
233
,
/* (99) fsync ::= FSYNC INTEGER */
234
,
/* (100) comp ::= COMP INTEGER */
235
,
/* (101) prec ::= PRECISION STRING */
236
,
/* (102) update ::= UPDATE INTEGER */
237
,
/* (103) cachelast ::= CACHELAST INTEGER */
238
,
/* (104) partitions ::= PARTITIONS INTEGER */
208
,
/* (105) db_optr ::= */
208
,
/* (106) db_optr ::= db_optr cache */
208
,
/* (107) db_optr ::= db_optr replica */
208
,
/* (108) db_optr ::= db_optr quorum */
208
,
/* (109) db_optr ::= db_optr days */
208
,
/* (110) db_optr ::= db_optr minrows */
208
,
/* (111) db_optr ::= db_optr maxrows */
208
,
/* (112) db_optr ::= db_optr blocks */
208
,
/* (113) db_optr ::= db_optr ctime */
208
,
/* (114) db_optr ::= db_optr wal */
208
,
/* (115) db_optr ::= db_optr fsync */
208
,
/* (116) db_optr ::= db_optr comp */
208
,
/* (117) db_optr ::= db_optr prec */
208
,
/* (118) db_optr ::= db_optr keep */
208
,
/* (119) db_optr ::= db_optr update */
208
,
/* (120) db_optr ::= db_optr cachelast */
209
,
/* (121) topic_optr ::= db_optr */
209
,
/* (122) topic_optr ::= topic_optr partitions */
203
,
/* (123) alter_db_optr ::= */
203
,
/* (124) alter_db_optr ::= alter_db_optr replica */
203
,
/* (125) alter_db_optr ::= alter_db_optr quorum */
203
,
/* (126) alter_db_optr ::= alter_db_optr keep */
203
,
/* (127) alter_db_optr ::= alter_db_optr blocks */
203
,
/* (128) alter_db_optr ::= alter_db_optr comp */
203
,
/* (129) alter_db_optr ::= alter_db_optr update */
203
,
/* (130) alter_db_optr ::= alter_db_optr cachelast */
204
,
/* (131) alter_topic_optr ::= alter_db_optr */
204
,
/* (132) alter_topic_optr ::= alter_topic_optr partitions */
210
,
/* (133) typename ::= ids */
210
,
/* (134) typename ::= ids LP signed RP */
210
,
/* (135) typename ::= ids UNSIGNED */
239
,
/* (136) signed ::= INTEGER */
239
,
/* (137) signed ::= PLUS INTEGER */
239
,
/* (138) signed ::= MINUS INTEGER */
198
,
/* (139) cmd ::= CREATE TABLE create_table_args */
198
,
/* (140) cmd ::= CREATE TABLE create_stable_args */
198
,
/* (141) cmd ::= CREATE STABLE create_stable_args */
198
,
/* (142) cmd ::= CREATE TABLE create_table_list */
242
,
/* (143) create_table_list ::= create_from_stable */
242
,
/* (144) create_table_list ::= create_table_list create_from_stable */
240
,
/* (145) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
241
,
/* (146) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
243
,
/* (147) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
243
,
/* (148) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
246
,
/* (149) tagNamelist ::= tagNamelist COMMA ids */
246
,
/* (150) tagNamelist ::= ids */
240
,
/* (151) create_table_args ::= ifnotexists ids cpxName AS select */
244
,
/* (152) columnlist ::= columnlist COMMA column */
244
,
/* (153) columnlist ::= column */
248
,
/* (154) column ::= ids typename */
245
,
/* (155) tagitemlist ::= tagitemlist COMMA tagitem */
245
,
/* (156) tagitemlist ::= tagitem */
249
,
/* (157) tagitem ::= INTEGER */
249
,
/* (158) tagitem ::= FLOAT */
249
,
/* (159) tagitem ::= STRING */
249
,
/* (160) tagitem ::= BOOL */
249
,
/* (161) tagitem ::= NULL */
249
,
/* (162) tagitem ::= NOW */
249
,
/* (163) tagitem ::= MINUS INTEGER */
249
,
/* (164) tagitem ::= MINUS FLOAT */
249
,
/* (165) tagitem ::= PLUS INTEGER */
249
,
/* (166) tagitem ::= PLUS FLOAT */
247
,
/* (167) select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
247
,
/* (168) select ::= LP select RP */
263
,
/* (169) union ::= select */
263
,
/* (170) union ::= union UNION ALL select */
198
,
/* (171) cmd ::= union */
247
,
/* (172) select ::= SELECT selcollist */
264
,
/* (173) sclp ::= selcollist COMMA */
264
,
/* (174) sclp ::= */
250
,
/* (175) selcollist ::= sclp distinct expr as */
250
,
/* (176) selcollist ::= sclp STAR */
267
,
/* (177) as ::= AS ids */
267
,
/* (178) as ::= ids */
267
,
/* (179) as ::= */
265
,
/* (180) distinct ::= DISTINCT */
265
,
/* (181) distinct ::= */
251
,
/* (182) from ::= FROM tablelist */
251
,
/* (183) from ::= FROM sub */
269
,
/* (184) sub ::= LP union RP */
269
,
/* (185) sub ::= LP union RP ids */
269
,
/* (186) sub ::= sub COMMA LP union RP ids */
268
,
/* (187) tablelist ::= ids cpxName */
268
,
/* (188) tablelist ::= ids cpxName ids */
268
,
/* (189) tablelist ::= tablelist COMMA ids cpxName */
268
,
/* (190) tablelist ::= tablelist COMMA ids cpxName ids */
270
,
/* (191) tmvar ::= VARIABLE */
253
,
/* (192) interval_option ::= intervalKey LP tmvar RP */
253
,
/* (193) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
253
,
/* (194) interval_option ::= */
271
,
/* (195) intervalKey ::= INTERVAL */
271
,
/* (196) intervalKey ::= EVERY */
255
,
/* (197) session_option ::= */
255
,
/* (198) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
256
,
/* (199) windowstate_option ::= */
256
,
/* (200) windowstate_option ::= STATE_WINDOW LP ids RP */
257
,
/* (201) fill_opt ::= */
257
,
/* (202) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
257
,
/* (203) fill_opt ::= FILL LP ID RP */
254
,
/* (204) sliding_opt ::= SLIDING LP tmvar RP */
254
,
/* (205) sliding_opt ::= */
260
,
/* (206) orderby_opt ::= */
260
,
/* (207) orderby_opt ::= ORDER BY sortlist */
272
,
/* (208) sortlist ::= sortlist COMMA item sortorder */
272
,
/* (209) sortlist ::= item sortorder */
274
,
/* (210) item ::= ids cpxName */
275
,
/* (211) sortorder ::= ASC */
275
,
/* (212) sortorder ::= DESC */
275
,
/* (213) sortorder ::= */
258
,
/* (214) groupby_opt ::= */
258
,
/* (215) groupby_opt ::= GROUP BY grouplist */
276
,
/* (216) grouplist ::= grouplist COMMA item */
276
,
/* (217) grouplist ::= item */
259
,
/* (218) having_opt ::= */
259
,
/* (219) having_opt ::= HAVING expr */
262
,
/* (220) limit_opt ::= */
262
,
/* (221) limit_opt ::= LIMIT signed */
262
,
/* (222) limit_opt ::= LIMIT signed OFFSET signed */
262
,
/* (223) limit_opt ::= LIMIT signed COMMA signed */
261
,
/* (224) slimit_opt ::= */
261
,
/* (225) slimit_opt ::= SLIMIT signed */
261
,
/* (226) slimit_opt ::= SLIMIT signed SOFFSET signed */
261
,
/* (227) slimit_opt ::= SLIMIT signed COMMA signed */
252
,
/* (228) where_opt ::= */
252
,
/* (229) where_opt ::= WHERE expr */
266
,
/* (230) expr ::= LP expr RP */
266
,
/* (231) expr ::= ID */
266
,
/* (232) expr ::= ID DOT ID */
266
,
/* (233) expr ::= ID DOT STAR */
266
,
/* (234) expr ::= INTEGER */
266
,
/* (235) expr ::= MINUS INTEGER */
266
,
/* (236) expr ::= PLUS INTEGER */
266
,
/* (237) expr ::= FLOAT */
266
,
/* (238) expr ::= MINUS FLOAT */
266
,
/* (239) expr ::= PLUS FLOAT */
266
,
/* (240) expr ::= STRING */
266
,
/* (241) expr ::= NOW */
266
,
/* (242) expr ::= VARIABLE */
266
,
/* (243) expr ::= PLUS VARIABLE */
266
,
/* (244) expr ::= MINUS VARIABLE */
266
,
/* (245) expr ::= BOOL */
266
,
/* (246) expr ::= NULL */
266
,
/* (247) expr ::= ID LP exprlist RP */
266
,
/* (248) expr ::= ID LP STAR RP */
266
,
/* (249) expr ::= expr IS NULL */
266
,
/* (250) expr ::= expr IS NOT NULL */
266
,
/* (251) expr ::= expr LT expr */
266
,
/* (252) expr ::= expr GT expr */
266
,
/* (253) expr ::= expr LE expr */
266
,
/* (254) expr ::= expr GE expr */
266
,
/* (255) expr ::= expr NE expr */
266
,
/* (256) expr ::= expr EQ expr */
266
,
/* (257) expr ::= expr BETWEEN expr AND expr */
266
,
/* (258) expr ::= expr AND expr */
266
,
/* (259) expr ::= expr OR expr */
266
,
/* (260) expr ::= expr PLUS expr */
266
,
/* (261) expr ::= expr MINUS expr */
266
,
/* (262) expr ::= expr STAR expr */
266
,
/* (263) expr ::= expr SLASH expr */
266
,
/* (264) expr ::= expr REM expr */
266
,
/* (265) expr ::= expr LIKE expr */
266
,
/* (266) expr ::= expr MATCH expr */
266
,
/* (267) expr ::= expr NMATCH expr */
266
,
/* (268) expr ::= expr IN LP exprlist RP */
206
,
/* (269) exprlist ::= exprlist COMMA expritem */
206
,
/* (270) exprlist ::= expritem */
277
,
/* (271) expritem ::= expr */
277
,
/* (272) expritem ::= */
198
,
/* (273) cmd ::= RESET QUERY CACHE */
198
,
/* (274) cmd ::= SYNCDB ids REPLICA */
198
,
/* (275) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
198
,
/* (276) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
198
,
/* (277) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
198
,
/* (278) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
198
,
/* (279) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
198
,
/* (280) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
198
,
/* (281) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
198
,
/* (282) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
198
,
/* (283) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
198
,
/* (284) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
198
,
/* (285) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
198
,
/* (286) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
198
,
/* (287) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
198
,
/* (288) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
198
,
/* (289) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
198
,
/* (290) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
198
,
/* (291) cmd ::= KILL CONNECTION INTEGER */
198
,
/* (292) cmd ::= KILL STREAM INTEGER COLON INTEGER */
198
,
/* (293) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static
const
signed
char
yyRuleInfoNRhs
[]
=
{
-
1
,
/* (0) program ::= cmd */
-
2
,
/* (1) cmd ::= SHOW DATABASES */
-
2
,
/* (2) cmd ::= SHOW TOPICS */
-
2
,
/* (3) cmd ::= SHOW FUNCTIONS */
-
2
,
/* (4) cmd ::= SHOW MNODES */
-
2
,
/* (5) cmd ::= SHOW DNODES */
-
2
,
/* (6) cmd ::= SHOW ACCOUNTS */
-
2
,
/* (7) cmd ::= SHOW USERS */
-
2
,
/* (8) cmd ::= SHOW MODULES */
-
2
,
/* (9) cmd ::= SHOW QUERIES */
-
2
,
/* (10) cmd ::= SHOW CONNECTIONS */
-
2
,
/* (11) cmd ::= SHOW STREAMS */
-
2
,
/* (12) cmd ::= SHOW VARIABLES */
-
2
,
/* (13) cmd ::= SHOW SCORES */
-
2
,
/* (14) cmd ::= SHOW GRANTS */
-
2
,
/* (15) cmd ::= SHOW VNODES */
-
3
,
/* (16) cmd ::= SHOW VNODES ids */
0
,
/* (17) dbPrefix ::= */
-
2
,
/* (18) dbPrefix ::= ids DOT */
0
,
/* (19) cpxName ::= */
-
2
,
/* (20) cpxName ::= DOT ids */
-
5
,
/* (21) cmd ::= SHOW CREATE TABLE ids cpxName */
-
5
,
/* (22) cmd ::= SHOW CREATE STABLE ids cpxName */
-
4
,
/* (23) cmd ::= SHOW CREATE DATABASE ids */
-
3
,
/* (24) cmd ::= SHOW dbPrefix TABLES */
-
5
,
/* (25) cmd ::= SHOW dbPrefix TABLES LIKE ids */
-
3
,
/* (26) cmd ::= SHOW dbPrefix STABLES */
-
5
,
/* (27) cmd ::= SHOW dbPrefix STABLES LIKE ids */
-
3
,
/* (28) cmd ::= SHOW dbPrefix VGROUPS */
-
4
,
/* (29) cmd ::= SHOW dbPrefix VGROUPS ids */
-
5
,
/* (30) cmd ::= DROP TABLE ifexists ids cpxName */
-
5
,
/* (31) cmd ::= DROP STABLE ifexists ids cpxName */
-
4
,
/* (32) cmd ::= DROP DATABASE ifexists ids */
-
4
,
/* (33) cmd ::= DROP TOPIC ifexists ids */
-
3
,
/* (34) cmd ::= DROP FUNCTION ids */
-
3
,
/* (35) cmd ::= DROP DNODE ids */
-
3
,
/* (36) cmd ::= DROP USER ids */
-
3
,
/* (37) cmd ::= DROP ACCOUNT ids */
-
2
,
/* (38) cmd ::= USE ids */
-
3
,
/* (39) cmd ::= DESCRIBE ids cpxName */
-
3
,
/* (40) cmd ::= DESC ids cpxName */
-
5
,
/* (41) cmd ::= ALTER USER ids PASS ids */
-
5
,
/* (42) cmd ::= ALTER USER ids PRIVILEGE ids */
-
4
,
/* (43) cmd ::= ALTER DNODE ids ids */
-
5
,
/* (44) cmd ::= ALTER DNODE ids ids ids */
-
3
,
/* (45) cmd ::= ALTER LOCAL ids */
-
4
,
/* (46) cmd ::= ALTER LOCAL ids ids */
-
4
,
/* (47) cmd ::= ALTER DATABASE ids alter_db_optr */
-
4
,
/* (48) cmd ::= ALTER TOPIC ids alter_topic_optr */
-
4
,
/* (49) cmd ::= ALTER ACCOUNT ids acct_optr */
-
6
,
/* (50) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
-
6
,
/* (51) cmd ::= COMPACT VNODES IN LP exprlist RP */
-
1
,
/* (52) ids ::= ID */
-
1
,
/* (53) ids ::= STRING */
-
2
,
/* (54) ifexists ::= IF EXISTS */
0
,
/* (55) ifexists ::= */
-
3
,
/* (56) ifnotexists ::= IF NOT EXISTS */
0
,
/* (57) ifnotexists ::= */
-
3
,
/* (58) cmd ::= CREATE DNODE ids */
-
6
,
/* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
-
5
,
/* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
-
5
,
/* (61) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
-
8
,
/* (62) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
-
9
,
/* (63) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
-
5
,
/* (64) cmd ::= CREATE USER ids PASS ids */
0
,
/* (65) bufsize ::= */
-
2
,
/* (66) bufsize ::= BUFSIZE INTEGER */
0
,
/* (67) pps ::= */
-
2
,
/* (68) pps ::= PPS INTEGER */
0
,
/* (69) tseries ::= */
-
2
,
/* (70) tseries ::= TSERIES INTEGER */
0
,
/* (71) dbs ::= */
-
2
,
/* (72) dbs ::= DBS INTEGER */
0
,
/* (73) streams ::= */
-
2
,
/* (74) streams ::= STREAMS INTEGER */
0
,
/* (75) storage ::= */
-
2
,
/* (76) storage ::= STORAGE INTEGER */
0
,
/* (77) qtime ::= */
-
2
,
/* (78) qtime ::= QTIME INTEGER */
0
,
/* (79) users ::= */
-
2
,
/* (80) users ::= USERS INTEGER */
0
,
/* (81) conns ::= */
-
2
,
/* (82) conns ::= CONNS INTEGER */
0
,
/* (83) state ::= */
-
2
,
/* (84) state ::= STATE ids */
-
9
,
/* (85) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
-
3
,
/* (86) intitemlist ::= intitemlist COMMA intitem */
-
1
,
/* (87) intitemlist ::= intitem */
-
1
,
/* (88) intitem ::= INTEGER */
-
2
,
/* (89) keep ::= KEEP intitemlist */
-
2
,
/* (90) cache ::= CACHE INTEGER */
-
2
,
/* (91) replica ::= REPLICA INTEGER */
-
2
,
/* (92) quorum ::= QUORUM INTEGER */
-
2
,
/* (93) days ::= DAYS INTEGER */
-
2
,
/* (94) minrows ::= MINROWS INTEGER */
-
2
,
/* (95) maxrows ::= MAXROWS INTEGER */
-
2
,
/* (96) blocks ::= BLOCKS INTEGER */
-
2
,
/* (97) ctime ::= CTIME INTEGER */
-
2
,
/* (98) wal ::= WAL INTEGER */
-
2
,
/* (99) fsync ::= FSYNC INTEGER */
-
2
,
/* (100) comp ::= COMP INTEGER */
-
2
,
/* (101) prec ::= PRECISION STRING */
-
2
,
/* (102) update ::= UPDATE INTEGER */
-
2
,
/* (103) cachelast ::= CACHELAST INTEGER */
-
2
,
/* (104) partitions ::= PARTITIONS INTEGER */
0
,
/* (105) db_optr ::= */
-
2
,
/* (106) db_optr ::= db_optr cache */
-
2
,
/* (107) db_optr ::= db_optr replica */
-
2
,
/* (108) db_optr ::= db_optr quorum */
-
2
,
/* (109) db_optr ::= db_optr days */
-
2
,
/* (110) db_optr ::= db_optr minrows */
-
2
,
/* (111) db_optr ::= db_optr maxrows */
-
2
,
/* (112) db_optr ::= db_optr blocks */
-
2
,
/* (113) db_optr ::= db_optr ctime */
-
2
,
/* (114) db_optr ::= db_optr wal */
-
2
,
/* (115) db_optr ::= db_optr fsync */
-
2
,
/* (116) db_optr ::= db_optr comp */
-
2
,
/* (117) db_optr ::= db_optr prec */
-
2
,
/* (118) db_optr ::= db_optr keep */
-
2
,
/* (119) db_optr ::= db_optr update */
-
2
,
/* (120) db_optr ::= db_optr cachelast */
-
1
,
/* (121) topic_optr ::= db_optr */
-
2
,
/* (122) topic_optr ::= topic_optr partitions */
0
,
/* (123) alter_db_optr ::= */
-
2
,
/* (124) alter_db_optr ::= alter_db_optr replica */
-
2
,
/* (125) alter_db_optr ::= alter_db_optr quorum */
-
2
,
/* (126) alter_db_optr ::= alter_db_optr keep */
-
2
,
/* (127) alter_db_optr ::= alter_db_optr blocks */
-
2
,
/* (128) alter_db_optr ::= alter_db_optr comp */
-
2
,
/* (129) alter_db_optr ::= alter_db_optr update */
-
2
,
/* (130) alter_db_optr ::= alter_db_optr cachelast */
-
1
,
/* (131) alter_topic_optr ::= alter_db_optr */
-
2
,
/* (132) alter_topic_optr ::= alter_topic_optr partitions */
-
1
,
/* (133) typename ::= ids */
-
4
,
/* (134) typename ::= ids LP signed RP */
-
2
,
/* (135) typename ::= ids UNSIGNED */
-
1
,
/* (136) signed ::= INTEGER */
-
2
,
/* (137) signed ::= PLUS INTEGER */
-
2
,
/* (138) signed ::= MINUS INTEGER */
-
3
,
/* (139) cmd ::= CREATE TABLE create_table_args */
-
3
,
/* (140) cmd ::= CREATE TABLE create_stable_args */
-
3
,
/* (141) cmd ::= CREATE STABLE create_stable_args */
-
3
,
/* (142) cmd ::= CREATE TABLE create_table_list */
-
1
,
/* (143) create_table_list ::= create_from_stable */
-
2
,
/* (144) create_table_list ::= create_table_list create_from_stable */
-
6
,
/* (145) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
-
10
,
/* (146) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
-
10
,
/* (147) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
-
13
,
/* (148) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
-
3
,
/* (149) tagNamelist ::= tagNamelist COMMA ids */
-
1
,
/* (150) tagNamelist ::= ids */
-
5
,
/* (151) create_table_args ::= ifnotexists ids cpxName AS select */
-
3
,
/* (152) columnlist ::= columnlist COMMA column */
-
1
,
/* (153) columnlist ::= column */
-
2
,
/* (154) column ::= ids typename */
-
3
,
/* (155) tagitemlist ::= tagitemlist COMMA tagitem */
-
1
,
/* (156) tagitemlist ::= tagitem */
-
1
,
/* (157) tagitem ::= INTEGER */
-
1
,
/* (158) tagitem ::= FLOAT */
-
1
,
/* (159) tagitem ::= STRING */
-
1
,
/* (160) tagitem ::= BOOL */
-
1
,
/* (161) tagitem ::= NULL */
-
1
,
/* (162) tagitem ::= NOW */
-
2
,
/* (163) tagitem ::= MINUS INTEGER */
-
2
,
/* (164) tagitem ::= MINUS FLOAT */
-
2
,
/* (165) tagitem ::= PLUS INTEGER */
-
2
,
/* (166) tagitem ::= PLUS FLOAT */
-
14
,
/* (167) select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
-
3
,
/* (168) select ::= LP select RP */
-
1
,
/* (169) union ::= select */
-
4
,
/* (170) union ::= union UNION ALL select */
-
1
,
/* (171) cmd ::= union */
-
2
,
/* (172) select ::= SELECT selcollist */
-
2
,
/* (173) sclp ::= selcollist COMMA */
0
,
/* (174) sclp ::= */
-
4
,
/* (175) selcollist ::= sclp distinct expr as */
-
2
,
/* (176) selcollist ::= sclp STAR */
-
2
,
/* (177) as ::= AS ids */
-
1
,
/* (178) as ::= ids */
0
,
/* (179) as ::= */
-
1
,
/* (180) distinct ::= DISTINCT */
0
,
/* (181) distinct ::= */
-
2
,
/* (182) from ::= FROM tablelist */
-
2
,
/* (183) from ::= FROM sub */
-
3
,
/* (184) sub ::= LP union RP */
-
4
,
/* (185) sub ::= LP union RP ids */
-
6
,
/* (186) sub ::= sub COMMA LP union RP ids */
-
2
,
/* (187) tablelist ::= ids cpxName */
-
3
,
/* (188) tablelist ::= ids cpxName ids */
-
4
,
/* (189) tablelist ::= tablelist COMMA ids cpxName */
-
5
,
/* (190) tablelist ::= tablelist COMMA ids cpxName ids */
-
1
,
/* (191) tmvar ::= VARIABLE */
-
4
,
/* (192) interval_option ::= intervalKey LP tmvar RP */
-
6
,
/* (193) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
0
,
/* (194) interval_option ::= */
-
1
,
/* (195) intervalKey ::= INTERVAL */
-
1
,
/* (196) intervalKey ::= EVERY */
0
,
/* (197) session_option ::= */
-
7
,
/* (198) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
0
,
/* (199) windowstate_option ::= */
-
4
,
/* (200) windowstate_option ::= STATE_WINDOW LP ids RP */
0
,
/* (201) fill_opt ::= */
-
6
,
/* (202) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
-
4
,
/* (203) fill_opt ::= FILL LP ID RP */
-
4
,
/* (204) sliding_opt ::= SLIDING LP tmvar RP */
0
,
/* (205) sliding_opt ::= */
0
,
/* (206) orderby_opt ::= */
-
3
,
/* (207) orderby_opt ::= ORDER BY sortlist */
-
4
,
/* (208) sortlist ::= sortlist COMMA item sortorder */
-
2
,
/* (209) sortlist ::= item sortorder */
-
2
,
/* (210) item ::= ids cpxName */
-
1
,
/* (211) sortorder ::= ASC */
-
1
,
/* (212) sortorder ::= DESC */
0
,
/* (213) sortorder ::= */
0
,
/* (214) groupby_opt ::= */
-
3
,
/* (215) groupby_opt ::= GROUP BY grouplist */
-
3
,
/* (216) grouplist ::= grouplist COMMA item */
-
1
,
/* (217) grouplist ::= item */
0
,
/* (218) having_opt ::= */
-
2
,
/* (219) having_opt ::= HAVING expr */
0
,
/* (220) limit_opt ::= */
-
2
,
/* (221) limit_opt ::= LIMIT signed */
-
4
,
/* (222) limit_opt ::= LIMIT signed OFFSET signed */
-
4
,
/* (223) limit_opt ::= LIMIT signed COMMA signed */
0
,
/* (224) slimit_opt ::= */
-
2
,
/* (225) slimit_opt ::= SLIMIT signed */
-
4
,
/* (226) slimit_opt ::= SLIMIT signed SOFFSET signed */
-
4
,
/* (227) slimit_opt ::= SLIMIT signed COMMA signed */
0
,
/* (228) where_opt ::= */
-
2
,
/* (229) where_opt ::= WHERE expr */
-
3
,
/* (230) expr ::= LP expr RP */
-
1
,
/* (231) expr ::= ID */
-
3
,
/* (232) expr ::= ID DOT ID */
-
3
,
/* (233) expr ::= ID DOT STAR */
-
1
,
/* (234) expr ::= INTEGER */
-
2
,
/* (235) expr ::= MINUS INTEGER */
-
2
,
/* (236) expr ::= PLUS INTEGER */
-
1
,
/* (237) expr ::= FLOAT */
-
2
,
/* (238) expr ::= MINUS FLOAT */
-
2
,
/* (239) expr ::= PLUS FLOAT */
-
1
,
/* (240) expr ::= STRING */
-
1
,
/* (241) expr ::= NOW */
-
1
,
/* (242) expr ::= VARIABLE */
-
2
,
/* (243) expr ::= PLUS VARIABLE */
-
2
,
/* (244) expr ::= MINUS VARIABLE */
-
1
,
/* (245) expr ::= BOOL */
-
1
,
/* (246) expr ::= NULL */
-
4
,
/* (247) expr ::= ID LP exprlist RP */
-
4
,
/* (248) expr ::= ID LP STAR RP */
-
3
,
/* (249) expr ::= expr IS NULL */
-
4
,
/* (250) expr ::= expr IS NOT NULL */
-
3
,
/* (251) expr ::= expr LT expr */
-
3
,
/* (252) expr ::= expr GT expr */
-
3
,
/* (253) expr ::= expr LE expr */
-
3
,
/* (254) expr ::= expr GE expr */
-
3
,
/* (255) expr ::= expr NE expr */
-
3
,
/* (256) expr ::= expr EQ expr */
-
5
,
/* (257) expr ::= expr BETWEEN expr AND expr */
-
3
,
/* (258) expr ::= expr AND expr */
-
3
,
/* (259) expr ::= expr OR expr */
-
3
,
/* (260) expr ::= expr PLUS expr */
-
3
,
/* (261) expr ::= expr MINUS expr */
-
3
,
/* (262) expr ::= expr STAR expr */
-
3
,
/* (263) expr ::= expr SLASH expr */
-
3
,
/* (264) expr ::= expr REM expr */
-
3
,
/* (265) expr ::= expr LIKE expr */
-
3
,
/* (266) expr ::= expr MATCH expr */
-
3
,
/* (267) expr ::= expr NMATCH expr */
-
5
,
/* (268) expr ::= expr IN LP exprlist RP */
-
3
,
/* (269) exprlist ::= exprlist COMMA expritem */
-
1
,
/* (270) exprlist ::= expritem */
-
1
,
/* (271) expritem ::= expr */
0
,
/* (272) expritem ::= */
-
3
,
/* (273) cmd ::= RESET QUERY CACHE */
-
3
,
/* (274) cmd ::= SYNCDB ids REPLICA */
-
7
,
/* (275) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (276) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (277) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
-
7
,
/* (278) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (279) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
-
8
,
/* (280) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
-
9
,
/* (281) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
-
7
,
/* (282) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
-
7
,
/* (283) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (284) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (285) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
-
7
,
/* (286) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (287) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
-
8
,
/* (288) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
-
9
,
/* (289) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
-
7
,
/* (290) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
-
3
,
/* (291) cmd ::= KILL CONNECTION INTEGER */
-
5
,
/* (292) cmd ::= KILL STREAM INTEGER COLON INTEGER */
-
5
,
/* (293) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
static
void
yy_accept
(
yyParser
*
);
/* Forward Declaration */
...
...
@@ -2151,30 +2458,34 @@ static void yy_accept(yyParser*); /* Forward Declaration */
** only called from one place, optimizing compilers will in-line it, which
** means that the extra parameters have no performance impact.
*/
static
void
yy_reduce
(
static
YYACTIONTYPE
yy_reduce
(
yyParser
*
yypParser
,
/* The parser */
unsigned
int
yyruleno
,
/* Number of the rule by which to reduce */
int
yyLookahead
,
/* Lookahead token, or YYNOCODE if none */
ParseTOKENTYPE
yyLookaheadToken
/* Value of the lookahead token */
ParseCTX_PDECL
/* %extra_context */
){
int
yygoto
;
/* The next state */
int
yyact
;
/* The next action */
YYACTIONTYPE
yyact
;
/* The next action */
yyStackEntry
*
yymsp
;
/* The top of the parser's stack */
int
yysize
;
/* Amount to pop the stack */
ParseARG_FETCH
;
ParseARG_FETCH
(
void
)
yyLookahead
;
(
void
)
yyLookaheadToken
;
yymsp
=
yypParser
->
yytos
;
#ifndef NDEBUG
if
(
yyTraceFILE
&&
yyruleno
<
(
int
)(
sizeof
(
yyRuleName
)
/
sizeof
(
yyRuleName
[
0
]))
){
yysize
=
yyRuleInfo
[
yyruleno
].
nrhs
;
yysize
=
yyRuleInfo
NRhs
[
yyruleno
]
;
if
(
yysize
){
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]
, go
to state %d.
\n
"
,
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]
%s, pop back
to state %d.
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
],
yymsp
[
yysize
].
stateno
);
yyruleno
,
yyRuleName
[
yyruleno
],
yyruleno
<
YYNRULE_WITH_ACTION
?
""
:
" without external action"
,
yymsp
[
yysize
].
stateno
);
}
else
{
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s].
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
]);
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]%s.
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
],
yyruleno
<
YYNRULE_WITH_ACTION
?
""
:
" without external action"
);
}
}
#endif
/* NDEBUG */
...
...
@@ -2182,7 +2493,7 @@ static void yy_reduce(
/* Check that the stack is large enough to grow by a single entry
** if the RHS of the rule is empty. This ensures that there is room
** enough on the stack to push the LHS value */
if
(
yyRuleInfo
[
yyruleno
].
nrhs
==
0
){
if
(
yyRuleInfo
NRhs
[
yyruleno
]
==
0
){
#ifdef YYTRACKMAXSTACKDEPTH
if
(
(
int
)(
yypParser
->
yytos
-
yypParser
->
yystack
)
>
yypParser
->
yyhwm
){
yypParser
->
yyhwm
++
;
...
...
@@ -2192,13 +2503,19 @@ static void yy_reduce(
#if YYSTACKDEPTH>0
if
(
yypParser
->
yytos
>=
yypParser
->
yystackEnd
){
yyStackOverflow
(
yypParser
);
return
;
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return
0
;
}
#else
if
(
yypParser
->
yytos
>=&
yypParser
->
yystack
[
yypParser
->
yystksz
-
1
]
){
if
(
yyGrowStack
(
yypParser
)
){
yyStackOverflow
(
yypParser
);
return
;
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return
0
;
}
yymsp
=
yypParser
->
yytos
;
}
...
...
@@ -2396,16 +2713,16 @@ static void yy_reduce(
break
;
case
47
:
/* cmd ::= ALTER DATABASE ids alter_db_optr */
case
48
:
/* cmd ::= ALTER TOPIC ids alter_topic_optr */
yytestcase
(
yyruleno
==
48
);
{
SStrToken
t
=
{
0
};
setCreateDbInfo
(
pInfo
,
TSDB_SQL_ALTER_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
142
,
&
t
);}
{
SStrToken
t
=
{
0
};
setCreateDbInfo
(
pInfo
,
TSDB_SQL_ALTER_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
90
,
&
t
);}
break
;
case
49
:
/* cmd ::= ALTER ACCOUNT ids acct_optr */
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
,
&
yymsp
[
0
].
minor
.
yy
49
1
);}
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
,
&
yymsp
[
0
].
minor
.
yy
17
1
);}
break
;
case
50
:
/* cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
49
1
);}
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
17
1
);}
break
;
case
51
:
/* cmd ::= COMPACT VNODES IN LP exprlist RP */
{
setCompactVnodeSql
(
pInfo
,
TSDB_SQL_COMPACT_VNODE
,
yymsp
[
-
1
].
minor
.
yy
2
21
);}
{
setCompactVnodeSql
(
pInfo
,
TSDB_SQL_COMPACT_VNODE
,
yymsp
[
-
1
].
minor
.
yy
4
21
);}
break
;
case
52
:
/* ids ::= ID */
case
53
:
/* ids ::= STRING */
yytestcase
(
yyruleno
==
53
);
...
...
@@ -2427,17 +2744,17 @@ static void yy_reduce(
{
setDCLSqlElems
(
pInfo
,
TSDB_SQL_CREATE_DNODE
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
59
:
/* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_CREATE_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
49
1
);}
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_CREATE_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
17
1
);}
break
;
case
60
:
/* cmd ::= CREATE DATABASE ifnotexists ids db_optr */
case
61
:
/* cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
yytestcase
(
yyruleno
==
61
);
{
setCreateDbInfo
(
pInfo
,
TSDB_SQL_CREATE_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
142
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
{
setCreateDbInfo
(
pInfo
,
TSDB_SQL_CREATE_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
90
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
case
62
:
/* cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
{
setCreateFuncInfo
(
pInfo
,
TSDB_SQL_CREATE_FUNCTION
,
&
yymsp
[
-
5
].
minor
.
yy0
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy
50
3
,
&
yymsp
[
0
].
minor
.
yy0
,
1
);}
{
setCreateFuncInfo
(
pInfo
,
TSDB_SQL_CREATE_FUNCTION
,
&
yymsp
[
-
5
].
minor
.
yy0
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy
18
3
,
&
yymsp
[
0
].
minor
.
yy0
,
1
);}
break
;
case
63
:
/* cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
{
setCreateFuncInfo
(
pInfo
,
TSDB_SQL_CREATE_FUNCTION
,
&
yymsp
[
-
5
].
minor
.
yy0
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy
50
3
,
&
yymsp
[
0
].
minor
.
yy0
,
2
);}
{
setCreateFuncInfo
(
pInfo
,
TSDB_SQL_CREATE_FUNCTION
,
&
yymsp
[
-
5
].
minor
.
yy0
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy
18
3
,
&
yymsp
[
0
].
minor
.
yy0
,
2
);}
break
;
case
64
:
/* cmd ::= CREATE USER ids PASS ids */
{
setCreateUserSql
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);}
...
...
@@ -2468,38 +2785,38 @@ static void yy_reduce(
break
;
case
85
:
/* acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
yylhsminor
.
yy
49
1
.
maxUsers
=
(
yymsp
[
-
2
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
2
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
49
1
.
maxDbs
=
(
yymsp
[
-
3
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
3
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
49
1
.
maxTimeSeries
=
(
yymsp
[
-
7
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
7
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
49
1
.
maxStreams
=
(
yymsp
[
-
5
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
5
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
49
1
.
maxPointsPerSecond
=
(
yymsp
[
-
8
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
8
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
49
1
.
maxStorage
=
(
yymsp
[
-
6
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
6
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
49
1
.
maxQueryTime
=
(
yymsp
[
-
4
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
4
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
49
1
.
maxConnections
=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
1
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
49
1
.
stat
=
yymsp
[
0
].
minor
.
yy0
;
yylhsminor
.
yy
17
1
.
maxUsers
=
(
yymsp
[
-
2
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
2
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
17
1
.
maxDbs
=
(
yymsp
[
-
3
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
3
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
17
1
.
maxTimeSeries
=
(
yymsp
[
-
7
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
7
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
17
1
.
maxStreams
=
(
yymsp
[
-
5
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
5
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
17
1
.
maxPointsPerSecond
=
(
yymsp
[
-
8
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
8
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
17
1
.
maxStorage
=
(
yymsp
[
-
6
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
6
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
17
1
.
maxQueryTime
=
(
yymsp
[
-
4
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
4
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
17
1
.
maxConnections
=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
1
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
17
1
.
stat
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
8
].
minor
.
yy
491
=
yylhsminor
.
yy49
1
;
yymsp
[
-
8
].
minor
.
yy
171
=
yylhsminor
.
yy17
1
;
break
;
case
86
:
/* intitemlist ::= intitemlist COMMA intitem */
case
155
:
/* tagitemlist ::= tagitemlist COMMA tagitem */
yytestcase
(
yyruleno
==
155
);
{
yylhsminor
.
yy
221
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy221
,
&
yymsp
[
0
].
minor
.
yy106
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
yylhsminor
.
yy
421
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy430
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
87
:
/* intitemlist ::= intitem */
case
156
:
/* tagitemlist ::= tagitem */
yytestcase
(
yyruleno
==
156
);
{
yylhsminor
.
yy
221
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy106
,
-
1
);
}
yymsp
[
0
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
yylhsminor
.
yy
421
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy430
,
-
1
);
}
yymsp
[
0
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
88
:
/* intitem ::= INTEGER */
case
157
:
/* tagitem ::= INTEGER */
yytestcase
(
yyruleno
==
157
);
case
158
:
/* tagitem ::= FLOAT */
yytestcase
(
yyruleno
==
158
);
case
159
:
/* tagitem ::= STRING */
yytestcase
(
yyruleno
==
159
);
case
160
:
/* tagitem ::= BOOL */
yytestcase
(
yyruleno
==
160
);
{
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy
106
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
106
=
yylhsminor
.
yy106
;
{
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy
430
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
430
=
yylhsminor
.
yy430
;
break
;
case
89
:
/* keep ::= KEEP intitemlist */
{
yymsp
[
-
1
].
minor
.
yy
221
=
yymsp
[
0
].
minor
.
yy2
21
;
}
{
yymsp
[
-
1
].
minor
.
yy
421
=
yymsp
[
0
].
minor
.
yy4
21
;
}
break
;
case
90
:
/* cache ::= CACHE INTEGER */
case
91
:
/* replica ::= REPLICA INTEGER */
yytestcase
(
yyruleno
==
91
);
...
...
@@ -2519,221 +2836,221 @@ static void yy_reduce(
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
break
;
case
105
:
/* db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy
142
);
yymsp
[
1
].
minor
.
yy142
.
dbType
=
TSDB_DB_TYPE_DEFAULT
;}
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy
90
);
yymsp
[
1
].
minor
.
yy90
.
dbType
=
TSDB_DB_TYPE_DEFAULT
;}
break
;
case
106
:
/* db_optr ::= db_optr cache */
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
cacheBlockSize
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
cacheBlockSize
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
107
:
/* db_optr ::= db_optr replica */
case
124
:
/* alter_db_optr ::= alter_db_optr replica */
yytestcase
(
yyruleno
==
124
);
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
replica
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
replica
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
108
:
/* db_optr ::= db_optr quorum */
case
125
:
/* alter_db_optr ::= alter_db_optr quorum */
yytestcase
(
yyruleno
==
125
);
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
quorum
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
quorum
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
109
:
/* db_optr ::= db_optr days */
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
daysPerFile
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
daysPerFile
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
110
:
/* db_optr ::= db_optr minrows */
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
minRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
minRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
111
:
/* db_optr ::= db_optr maxrows */
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
maxRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
maxRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
112
:
/* db_optr ::= db_optr blocks */
case
127
:
/* alter_db_optr ::= alter_db_optr blocks */
yytestcase
(
yyruleno
==
127
);
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
numOfBlocks
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
numOfBlocks
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
113
:
/* db_optr ::= db_optr ctime */
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
commitTime
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
commitTime
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
114
:
/* db_optr ::= db_optr wal */
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
walLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
walLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
115
:
/* db_optr ::= db_optr fsync */
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
fsyncPeriod
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
fsyncPeriod
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
116
:
/* db_optr ::= db_optr comp */
case
128
:
/* alter_db_optr ::= alter_db_optr comp */
yytestcase
(
yyruleno
==
128
);
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
compressionLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
compressionLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
117
:
/* db_optr ::= db_optr prec */
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
precision
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
precision
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
118
:
/* db_optr ::= db_optr keep */
case
126
:
/* alter_db_optr ::= alter_db_optr keep */
yytestcase
(
yyruleno
==
126
);
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
keep
=
yymsp
[
0
].
minor
.
yy2
21
;
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
keep
=
yymsp
[
0
].
minor
.
yy4
21
;
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
119
:
/* db_optr ::= db_optr update */
case
129
:
/* alter_db_optr ::= alter_db_optr update */
yytestcase
(
yyruleno
==
129
);
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
update
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
update
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
120
:
/* db_optr ::= db_optr cachelast */
case
130
:
/* alter_db_optr ::= alter_db_optr cachelast */
yytestcase
(
yyruleno
==
130
);
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
cachelast
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
cachelast
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
121
:
/* topic_optr ::= db_optr */
case
131
:
/* alter_topic_optr ::= alter_db_optr */
yytestcase
(
yyruleno
==
131
);
{
yylhsminor
.
yy
142
=
yymsp
[
0
].
minor
.
yy142
;
yylhsminor
.
yy142
.
dbType
=
TSDB_DB_TYPE_TOPIC
;
}
yymsp
[
0
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
0
].
minor
.
yy90
;
yylhsminor
.
yy90
.
dbType
=
TSDB_DB_TYPE_TOPIC
;
}
yymsp
[
0
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
122
:
/* topic_optr ::= topic_optr partitions */
case
132
:
/* alter_topic_optr ::= alter_topic_optr partitions */
yytestcase
(
yyruleno
==
132
);
{
yylhsminor
.
yy
142
=
yymsp
[
-
1
].
minor
.
yy142
;
yylhsminor
.
yy142
.
partitions
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
142
=
yylhsminor
.
yy142
;
{
yylhsminor
.
yy
90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
partitions
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
90
=
yylhsminor
.
yy90
;
break
;
case
123
:
/* alter_db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy
142
);
yymsp
[
1
].
minor
.
yy142
.
dbType
=
TSDB_DB_TYPE_DEFAULT
;}
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy
90
);
yymsp
[
1
].
minor
.
yy90
.
dbType
=
TSDB_DB_TYPE_DEFAULT
;}
break
;
case
133
:
/* typename ::= ids */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tSetColumnType
(
&
yylhsminor
.
yy
50
3
,
&
yymsp
[
0
].
minor
.
yy0
);
tSetColumnType
(
&
yylhsminor
.
yy
18
3
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
503
=
yylhsminor
.
yy50
3
;
yymsp
[
0
].
minor
.
yy
183
=
yylhsminor
.
yy18
3
;
break
;
case
134
:
/* typename ::= ids LP signed RP */
{
if
(
yymsp
[
-
1
].
minor
.
yy
109
<=
0
)
{
if
(
yymsp
[
-
1
].
minor
.
yy
325
<=
0
)
{
yymsp
[
-
3
].
minor
.
yy0
.
type
=
0
;
tSetColumnType
(
&
yylhsminor
.
yy
50
3
,
&
yymsp
[
-
3
].
minor
.
yy0
);
tSetColumnType
(
&
yylhsminor
.
yy
18
3
,
&
yymsp
[
-
3
].
minor
.
yy0
);
}
else
{
yymsp
[
-
3
].
minor
.
yy0
.
type
=
-
yymsp
[
-
1
].
minor
.
yy
109
;
// negative value of name length
tSetColumnType
(
&
yylhsminor
.
yy
50
3
,
&
yymsp
[
-
3
].
minor
.
yy0
);
yymsp
[
-
3
].
minor
.
yy0
.
type
=
-
yymsp
[
-
1
].
minor
.
yy
325
;
// negative value of name length
tSetColumnType
(
&
yylhsminor
.
yy
18
3
,
&
yymsp
[
-
3
].
minor
.
yy0
);
}
}
yymsp
[
-
3
].
minor
.
yy
503
=
yylhsminor
.
yy50
3
;
yymsp
[
-
3
].
minor
.
yy
183
=
yylhsminor
.
yy18
3
;
break
;
case
135
:
/* typename ::= ids UNSIGNED */
{
yymsp
[
-
1
].
minor
.
yy0
.
type
=
0
;
yymsp
[
-
1
].
minor
.
yy0
.
n
=
((
yymsp
[
0
].
minor
.
yy0
.
z
+
yymsp
[
0
].
minor
.
yy0
.
n
)
-
yymsp
[
-
1
].
minor
.
yy0
.
z
);
tSetColumnType
(
&
yylhsminor
.
yy
50
3
,
&
yymsp
[
-
1
].
minor
.
yy0
);
tSetColumnType
(
&
yylhsminor
.
yy
18
3
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
yymsp
[
-
1
].
minor
.
yy
503
=
yylhsminor
.
yy50
3
;
yymsp
[
-
1
].
minor
.
yy
183
=
yylhsminor
.
yy18
3
;
break
;
case
136
:
/* signed ::= INTEGER */
{
yylhsminor
.
yy
109
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
0
].
minor
.
yy
109
=
yylhsminor
.
yy109
;
{
yylhsminor
.
yy
325
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
0
].
minor
.
yy
325
=
yylhsminor
.
yy325
;
break
;
case
137
:
/* signed ::= PLUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy
109
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
{
yymsp
[
-
1
].
minor
.
yy
325
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
break
;
case
138
:
/* signed ::= MINUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy
109
=
-
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);}
{
yymsp
[
-
1
].
minor
.
yy
325
=
-
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);}
break
;
case
142
:
/* cmd ::= CREATE TABLE create_table_list */
{
pInfo
->
type
=
TSDB_SQL_CREATE_TABLE
;
pInfo
->
pCreateTableInfo
=
yymsp
[
0
].
minor
.
yy
102
;}
{
pInfo
->
type
=
TSDB_SQL_CREATE_TABLE
;
pInfo
->
pCreateTableInfo
=
yymsp
[
0
].
minor
.
yy
438
;}
break
;
case
143
:
/* create_table_list ::= create_from_stable */
{
SCreateTableSql
*
pCreateTable
=
calloc
(
1
,
sizeof
(
SCreateTableSql
));
pCreateTable
->
childTableInfo
=
taosArrayInit
(
4
,
sizeof
(
SCreatedTableInfo
));
taosArrayPush
(
pCreateTable
->
childTableInfo
,
&
yymsp
[
0
].
minor
.
yy
416
);
taosArrayPush
(
pCreateTable
->
childTableInfo
,
&
yymsp
[
0
].
minor
.
yy
152
);
pCreateTable
->
type
=
TSQL_CREATE_TABLE_FROM_STABLE
;
yylhsminor
.
yy
102
=
pCreateTable
;
yylhsminor
.
yy
438
=
pCreateTable
;
}
yymsp
[
0
].
minor
.
yy
102
=
yylhsminor
.
yy102
;
yymsp
[
0
].
minor
.
yy
438
=
yylhsminor
.
yy438
;
break
;
case
144
:
/* create_table_list ::= create_table_list create_from_stable */
{
taosArrayPush
(
yymsp
[
-
1
].
minor
.
yy
102
->
childTableInfo
,
&
yymsp
[
0
].
minor
.
yy416
);
yylhsminor
.
yy
102
=
yymsp
[
-
1
].
minor
.
yy102
;
taosArrayPush
(
yymsp
[
-
1
].
minor
.
yy
438
->
childTableInfo
,
&
yymsp
[
0
].
minor
.
yy152
);
yylhsminor
.
yy
438
=
yymsp
[
-
1
].
minor
.
yy438
;
}
yymsp
[
-
1
].
minor
.
yy
102
=
yylhsminor
.
yy102
;
yymsp
[
-
1
].
minor
.
yy
438
=
yylhsminor
.
yy438
;
break
;
case
145
:
/* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{
yylhsminor
.
yy
102
=
tSetCreateTableInfo
(
yymsp
[
-
1
].
minor
.
yy2
21
,
NULL
,
NULL
,
TSQL_CREATE_TABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
102
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yylhsminor
.
yy
438
=
tSetCreateTableInfo
(
yymsp
[
-
1
].
minor
.
yy4
21
,
NULL
,
NULL
,
TSQL_CREATE_TABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
438
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
setCreatedTableName
(
pInfo
,
&
yymsp
[
-
4
].
minor
.
yy0
,
&
yymsp
[
-
5
].
minor
.
yy0
);
}
yymsp
[
-
5
].
minor
.
yy
102
=
yylhsminor
.
yy102
;
yymsp
[
-
5
].
minor
.
yy
438
=
yylhsminor
.
yy438
;
break
;
case
146
:
/* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{
yylhsminor
.
yy
102
=
tSetCreateTableInfo
(
yymsp
[
-
5
].
minor
.
yy221
,
yymsp
[
-
1
].
minor
.
yy2
21
,
NULL
,
TSQL_CREATE_STABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
102
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yylhsminor
.
yy
438
=
tSetCreateTableInfo
(
yymsp
[
-
5
].
minor
.
yy421
,
yymsp
[
-
1
].
minor
.
yy4
21
,
NULL
,
TSQL_CREATE_STABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
438
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
8
].
minor
.
yy0
.
n
+=
yymsp
[
-
7
].
minor
.
yy0
.
n
;
setCreatedTableName
(
pInfo
,
&
yymsp
[
-
8
].
minor
.
yy0
,
&
yymsp
[
-
9
].
minor
.
yy0
);
}
yymsp
[
-
9
].
minor
.
yy
102
=
yylhsminor
.
yy102
;
yymsp
[
-
9
].
minor
.
yy
438
=
yylhsminor
.
yy438
;
break
;
case
147
:
/* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
yymsp
[
-
8
].
minor
.
yy0
.
n
+=
yymsp
[
-
7
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
416
=
createNewChildTableInfo
(
&
yymsp
[
-
5
].
minor
.
yy0
,
NULL
,
yymsp
[
-
1
].
minor
.
yy2
21
,
&
yymsp
[
-
8
].
minor
.
yy0
,
&
yymsp
[
-
9
].
minor
.
yy0
);
yylhsminor
.
yy
152
=
createNewChildTableInfo
(
&
yymsp
[
-
5
].
minor
.
yy0
,
NULL
,
yymsp
[
-
1
].
minor
.
yy4
21
,
&
yymsp
[
-
8
].
minor
.
yy0
,
&
yymsp
[
-
9
].
minor
.
yy0
);
}
yymsp
[
-
9
].
minor
.
yy
416
=
yylhsminor
.
yy416
;
yymsp
[
-
9
].
minor
.
yy
152
=
yylhsminor
.
yy152
;
break
;
case
148
:
/* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
{
yymsp
[
-
8
].
minor
.
yy0
.
n
+=
yymsp
[
-
7
].
minor
.
yy0
.
n
;
yymsp
[
-
11
].
minor
.
yy0
.
n
+=
yymsp
[
-
10
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
416
=
createNewChildTableInfo
(
&
yymsp
[
-
8
].
minor
.
yy0
,
yymsp
[
-
5
].
minor
.
yy221
,
yymsp
[
-
1
].
minor
.
yy2
21
,
&
yymsp
[
-
11
].
minor
.
yy0
,
&
yymsp
[
-
12
].
minor
.
yy0
);
yylhsminor
.
yy
152
=
createNewChildTableInfo
(
&
yymsp
[
-
8
].
minor
.
yy0
,
yymsp
[
-
5
].
minor
.
yy421
,
yymsp
[
-
1
].
minor
.
yy4
21
,
&
yymsp
[
-
11
].
minor
.
yy0
,
&
yymsp
[
-
12
].
minor
.
yy0
);
}
yymsp
[
-
12
].
minor
.
yy
416
=
yylhsminor
.
yy416
;
yymsp
[
-
12
].
minor
.
yy
152
=
yylhsminor
.
yy152
;
break
;
case
149
:
/* tagNamelist ::= tagNamelist COMMA ids */
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy
221
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy221
=
yymsp
[
-
2
].
minor
.
yy2
21
;
}
yymsp
[
-
2
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy
421
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy421
=
yymsp
[
-
2
].
minor
.
yy4
21
;
}
yymsp
[
-
2
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
150
:
/* tagNamelist ::= ids */
{
yylhsminor
.
yy
221
=
taosArrayInit
(
4
,
sizeof
(
SStrToken
));
taosArrayPush
(
yylhsminor
.
yy2
21
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
0
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
yylhsminor
.
yy
421
=
taosArrayInit
(
4
,
sizeof
(
SStrToken
));
taosArrayPush
(
yylhsminor
.
yy4
21
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
0
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
151
:
/* create_table_args ::= ifnotexists ids cpxName AS select */
{
yylhsminor
.
yy
102
=
tSetCreateTableInfo
(
NULL
,
NULL
,
yymsp
[
0
].
minor
.
yy37
6
,
TSQL_CREATE_STREAM
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
102
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yylhsminor
.
yy
438
=
tSetCreateTableInfo
(
NULL
,
NULL
,
yymsp
[
0
].
minor
.
yy5
6
,
TSQL_CREATE_STREAM
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
438
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
3
].
minor
.
yy0
.
n
+=
yymsp
[
-
2
].
minor
.
yy0
.
n
;
setCreatedTableName
(
pInfo
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
4
].
minor
.
yy0
);
}
yymsp
[
-
4
].
minor
.
yy
102
=
yylhsminor
.
yy102
;
yymsp
[
-
4
].
minor
.
yy
438
=
yylhsminor
.
yy438
;
break
;
case
152
:
/* columnlist ::= columnlist COMMA column */
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy
221
,
&
yymsp
[
0
].
minor
.
yy503
);
yylhsminor
.
yy221
=
yymsp
[
-
2
].
minor
.
yy2
21
;
}
yymsp
[
-
2
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy
421
,
&
yymsp
[
0
].
minor
.
yy183
);
yylhsminor
.
yy421
=
yymsp
[
-
2
].
minor
.
yy4
21
;
}
yymsp
[
-
2
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
153
:
/* columnlist ::= column */
{
yylhsminor
.
yy
221
=
taosArrayInit
(
4
,
sizeof
(
TAOS_FIELD
));
taosArrayPush
(
yylhsminor
.
yy221
,
&
yymsp
[
0
].
minor
.
yy50
3
);}
yymsp
[
0
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
yylhsminor
.
yy
421
=
taosArrayInit
(
4
,
sizeof
(
TAOS_FIELD
));
taosArrayPush
(
yylhsminor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy18
3
);}
yymsp
[
0
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
154
:
/* column ::= ids typename */
{
tSetColumnInfo
(
&
yylhsminor
.
yy
503
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy50
3
);
tSetColumnInfo
(
&
yylhsminor
.
yy
183
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy18
3
);
}
yymsp
[
-
1
].
minor
.
yy
503
=
yylhsminor
.
yy50
3
;
yymsp
[
-
1
].
minor
.
yy
183
=
yylhsminor
.
yy18
3
;
break
;
case
161
:
/* tagitem ::= NULL */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tVariantCreate
(
&
yylhsminor
.
yy
106
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
106
=
yylhsminor
.
yy106
;
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tVariantCreate
(
&
yylhsminor
.
yy
430
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
430
=
yylhsminor
.
yy430
;
break
;
case
162
:
/* tagitem ::= NOW */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
TSDB_DATA_TYPE_TIMESTAMP
;
tVariantCreate
(
&
yylhsminor
.
yy
106
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
0
].
minor
.
yy
106
=
yylhsminor
.
yy106
;
{
yymsp
[
0
].
minor
.
yy0
.
type
=
TSDB_DATA_TYPE_TIMESTAMP
;
tVariantCreate
(
&
yylhsminor
.
yy
430
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
0
].
minor
.
yy
430
=
yylhsminor
.
yy430
;
break
;
case
163
:
/* tagitem ::= MINUS INTEGER */
case
164
:
/* tagitem ::= MINUS FLOAT */
yytestcase
(
yyruleno
==
164
);
...
...
@@ -2743,56 +3060,56 @@ static void yy_reduce(
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
yymsp
[
0
].
minor
.
yy0
.
type
;
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy
106
,
&
yymsp
[
-
1
].
minor
.
yy0
);
tVariantCreate
(
&
yylhsminor
.
yy
430
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
yymsp
[
-
1
].
minor
.
yy
106
=
yylhsminor
.
yy106
;
yymsp
[
-
1
].
minor
.
yy
430
=
yylhsminor
.
yy430
;
break
;
case
167
:
/* select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
{
yylhsminor
.
yy
376
=
tSetQuerySqlNode
(
&
yymsp
[
-
13
].
minor
.
yy0
,
yymsp
[
-
12
].
minor
.
yy221
,
yymsp
[
-
11
].
minor
.
yy164
,
yymsp
[
-
10
].
minor
.
yy146
,
yymsp
[
-
4
].
minor
.
yy221
,
yymsp
[
-
2
].
minor
.
yy221
,
&
yymsp
[
-
9
].
minor
.
yy280
,
&
yymsp
[
-
7
].
minor
.
yy139
,
&
yymsp
[
-
6
].
minor
.
yy48
,
&
yymsp
[
-
8
].
minor
.
yy0
,
yymsp
[
-
5
].
minor
.
yy221
,
&
yymsp
[
0
].
minor
.
yy454
,
&
yymsp
[
-
1
].
minor
.
yy454
,
yymsp
[
-
3
].
minor
.
yy146
);
yylhsminor
.
yy
56
=
tSetQuerySqlNode
(
&
yymsp
[
-
13
].
minor
.
yy0
,
yymsp
[
-
12
].
minor
.
yy421
,
yymsp
[
-
11
].
minor
.
yy8
,
yymsp
[
-
10
].
minor
.
yy439
,
yymsp
[
-
4
].
minor
.
yy421
,
yymsp
[
-
2
].
minor
.
yy421
,
&
yymsp
[
-
9
].
minor
.
yy400
,
&
yymsp
[
-
7
].
minor
.
yy147
,
&
yymsp
[
-
6
].
minor
.
yy40
,
&
yymsp
[
-
8
].
minor
.
yy0
,
yymsp
[
-
5
].
minor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy166
,
&
yymsp
[
-
1
].
minor
.
yy166
,
yymsp
[
-
3
].
minor
.
yy439
);
}
yymsp
[
-
13
].
minor
.
yy
376
=
yylhsminor
.
yy37
6
;
yymsp
[
-
13
].
minor
.
yy
56
=
yylhsminor
.
yy5
6
;
break
;
case
168
:
/* select ::= LP select RP */
{
yymsp
[
-
2
].
minor
.
yy
376
=
yymsp
[
-
1
].
minor
.
yy37
6
;}
{
yymsp
[
-
2
].
minor
.
yy
56
=
yymsp
[
-
1
].
minor
.
yy5
6
;}
break
;
case
169
:
/* union ::= select */
{
yylhsminor
.
yy
221
=
setSubclause
(
NULL
,
yymsp
[
0
].
minor
.
yy37
6
);
}
yymsp
[
0
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
yylhsminor
.
yy
421
=
setSubclause
(
NULL
,
yymsp
[
0
].
minor
.
yy5
6
);
}
yymsp
[
0
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
170
:
/* union ::= union UNION ALL select */
{
yylhsminor
.
yy
221
=
appendSelectClause
(
yymsp
[
-
3
].
minor
.
yy221
,
yymsp
[
0
].
minor
.
yy37
6
);
}
yymsp
[
-
3
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
yylhsminor
.
yy
421
=
appendSelectClause
(
yymsp
[
-
3
].
minor
.
yy421
,
yymsp
[
0
].
minor
.
yy5
6
);
}
yymsp
[
-
3
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
171
:
/* cmd ::= union */
{
setSqlInfo
(
pInfo
,
yymsp
[
0
].
minor
.
yy
2
21
,
NULL
,
TSDB_SQL_SELECT
);
}
{
setSqlInfo
(
pInfo
,
yymsp
[
0
].
minor
.
yy
4
21
,
NULL
,
TSDB_SQL_SELECT
);
}
break
;
case
172
:
/* select ::= SELECT selcollist */
{
yylhsminor
.
yy
376
=
tSetQuerySqlNode
(
&
yymsp
[
-
1
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy2
21
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
yylhsminor
.
yy
56
=
tSetQuerySqlNode
(
&
yymsp
[
-
1
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy4
21
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
376
=
yylhsminor
.
yy37
6
;
yymsp
[
-
1
].
minor
.
yy
56
=
yylhsminor
.
yy5
6
;
break
;
case
173
:
/* sclp ::= selcollist COMMA */
{
yylhsminor
.
yy
221
=
yymsp
[
-
1
].
minor
.
yy2
21
;}
yymsp
[
-
1
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
yylhsminor
.
yy
421
=
yymsp
[
-
1
].
minor
.
yy4
21
;}
yymsp
[
-
1
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
174
:
/* sclp ::= */
case
206
:
/* orderby_opt ::= */
yytestcase
(
yyruleno
==
206
);
{
yymsp
[
1
].
minor
.
yy
2
21
=
0
;}
{
yymsp
[
1
].
minor
.
yy
4
21
=
0
;}
break
;
case
175
:
/* selcollist ::= sclp distinct expr as */
{
yylhsminor
.
yy
221
=
tSqlExprListAppend
(
yymsp
[
-
3
].
minor
.
yy221
,
yymsp
[
-
1
].
minor
.
yy146
,
yymsp
[
-
2
].
minor
.
yy0
.
n
?
&
yymsp
[
-
2
].
minor
.
yy0
:
0
,
yymsp
[
0
].
minor
.
yy0
.
n
?&
yymsp
[
0
].
minor
.
yy0
:
0
);
yylhsminor
.
yy
421
=
tSqlExprListAppend
(
yymsp
[
-
3
].
minor
.
yy421
,
yymsp
[
-
1
].
minor
.
yy439
,
yymsp
[
-
2
].
minor
.
yy0
.
n
?
&
yymsp
[
-
2
].
minor
.
yy0
:
0
,
yymsp
[
0
].
minor
.
yy0
.
n
?&
yymsp
[
0
].
minor
.
yy0
:
0
);
}
yymsp
[
-
3
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
yymsp
[
-
3
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
176
:
/* selcollist ::= sclp STAR */
{
tSqlExpr
*
pNode
=
tSqlExprCreateIdValue
(
pInfo
,
NULL
,
TK_ALL
);
yylhsminor
.
yy
221
=
tSqlExprListAppend
(
yymsp
[
-
1
].
minor
.
yy2
21
,
pNode
,
0
,
0
);
yylhsminor
.
yy
421
=
tSqlExprListAppend
(
yymsp
[
-
1
].
minor
.
yy4
21
,
pNode
,
0
,
0
);
}
yymsp
[
-
1
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
yymsp
[
-
1
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
177
:
/* as ::= AS ids */
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
...
...
@@ -2810,85 +3127,85 @@ static void yy_reduce(
break
;
case
182
:
/* from ::= FROM tablelist */
case
183
:
/* from ::= FROM sub */
yytestcase
(
yyruleno
==
183
);
{
yymsp
[
-
1
].
minor
.
yy
164
=
yymsp
[
0
].
minor
.
yy164
;}
{
yymsp
[
-
1
].
minor
.
yy
8
=
yymsp
[
0
].
minor
.
yy8
;}
break
;
case
184
:
/* sub ::= LP union RP */
{
yymsp
[
-
2
].
minor
.
yy
164
=
addSubqueryElem
(
NULL
,
yymsp
[
-
1
].
minor
.
yy2
21
,
NULL
);}
{
yymsp
[
-
2
].
minor
.
yy
8
=
addSubqueryElem
(
NULL
,
yymsp
[
-
1
].
minor
.
yy4
21
,
NULL
);}
break
;
case
185
:
/* sub ::= LP union RP ids */
{
yymsp
[
-
3
].
minor
.
yy
164
=
addSubqueryElem
(
NULL
,
yymsp
[
-
2
].
minor
.
yy2
21
,
&
yymsp
[
0
].
minor
.
yy0
);}
{
yymsp
[
-
3
].
minor
.
yy
8
=
addSubqueryElem
(
NULL
,
yymsp
[
-
2
].
minor
.
yy4
21
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
186
:
/* sub ::= sub COMMA LP union RP ids */
{
yylhsminor
.
yy
164
=
addSubqueryElem
(
yymsp
[
-
5
].
minor
.
yy164
,
yymsp
[
-
2
].
minor
.
yy2
21
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
-
5
].
minor
.
yy
164
=
yylhsminor
.
yy164
;
{
yylhsminor
.
yy
8
=
addSubqueryElem
(
yymsp
[
-
5
].
minor
.
yy8
,
yymsp
[
-
2
].
minor
.
yy4
21
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
-
5
].
minor
.
yy
8
=
yylhsminor
.
yy8
;
break
;
case
187
:
/* tablelist ::= ids cpxName */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
164
=
setTableNameList
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
yylhsminor
.
yy
8
=
setTableNameList
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
164
=
yylhsminor
.
yy164
;
yymsp
[
-
1
].
minor
.
yy
8
=
yylhsminor
.
yy8
;
break
;
case
188
:
/* tablelist ::= ids cpxName ids */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
yymsp
[
-
1
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
164
=
setTableNameList
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy
8
=
setTableNameList
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
-
2
].
minor
.
yy
164
=
yylhsminor
.
yy164
;
yymsp
[
-
2
].
minor
.
yy
8
=
yylhsminor
.
yy8
;
break
;
case
189
:
/* tablelist ::= tablelist COMMA ids cpxName */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
164
=
setTableNameList
(
yymsp
[
-
3
].
minor
.
yy164
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
yylhsminor
.
yy
8
=
setTableNameList
(
yymsp
[
-
3
].
minor
.
yy8
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
}
yymsp
[
-
3
].
minor
.
yy
164
=
yylhsminor
.
yy164
;
yymsp
[
-
3
].
minor
.
yy
8
=
yylhsminor
.
yy8
;
break
;
case
190
:
/* tablelist ::= tablelist COMMA ids cpxName ids */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
yymsp
[
-
1
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
164
=
setTableNameList
(
yymsp
[
-
4
].
minor
.
yy164
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy
8
=
setTableNameList
(
yymsp
[
-
4
].
minor
.
yy8
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
-
4
].
minor
.
yy
164
=
yylhsminor
.
yy164
;
yymsp
[
-
4
].
minor
.
yy
8
=
yylhsminor
.
yy8
;
break
;
case
191
:
/* tmvar ::= VARIABLE */
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
192
:
/* interval_option ::= intervalKey LP tmvar RP */
{
yylhsminor
.
yy
280
.
interval
=
yymsp
[
-
1
].
minor
.
yy0
;
yylhsminor
.
yy280
.
offset
.
n
=
0
;
yylhsminor
.
yy280
.
token
=
yymsp
[
-
3
].
minor
.
yy340
;}
yymsp
[
-
3
].
minor
.
yy
280
=
yylhsminor
.
yy28
0
;
{
yylhsminor
.
yy
400
.
interval
=
yymsp
[
-
1
].
minor
.
yy0
;
yylhsminor
.
yy400
.
offset
.
n
=
0
;
yylhsminor
.
yy400
.
token
=
yymsp
[
-
3
].
minor
.
yy104
;}
yymsp
[
-
3
].
minor
.
yy
400
=
yylhsminor
.
yy40
0
;
break
;
case
193
:
/* interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
{
yylhsminor
.
yy
280
.
interval
=
yymsp
[
-
3
].
minor
.
yy0
;
yylhsminor
.
yy280
.
offset
=
yymsp
[
-
1
].
minor
.
yy0
;
yylhsminor
.
yy280
.
token
=
yymsp
[
-
5
].
minor
.
yy340
;}
yymsp
[
-
5
].
minor
.
yy
280
=
yylhsminor
.
yy28
0
;
{
yylhsminor
.
yy
400
.
interval
=
yymsp
[
-
3
].
minor
.
yy0
;
yylhsminor
.
yy400
.
offset
=
yymsp
[
-
1
].
minor
.
yy0
;
yylhsminor
.
yy400
.
token
=
yymsp
[
-
5
].
minor
.
yy104
;}
yymsp
[
-
5
].
minor
.
yy
400
=
yylhsminor
.
yy40
0
;
break
;
case
194
:
/* interval_option ::= */
{
memset
(
&
yymsp
[
1
].
minor
.
yy
280
,
0
,
sizeof
(
yymsp
[
1
].
minor
.
yy28
0
));}
{
memset
(
&
yymsp
[
1
].
minor
.
yy
400
,
0
,
sizeof
(
yymsp
[
1
].
minor
.
yy40
0
));}
break
;
case
195
:
/* intervalKey ::= INTERVAL */
{
yymsp
[
0
].
minor
.
yy
340
=
TK_INTERVAL
;}
{
yymsp
[
0
].
minor
.
yy
104
=
TK_INTERVAL
;}
break
;
case
196
:
/* intervalKey ::= EVERY */
{
yymsp
[
0
].
minor
.
yy
340
=
TK_EVERY
;
}
{
yymsp
[
0
].
minor
.
yy
104
=
TK_EVERY
;
}
break
;
case
197
:
/* session_option ::= */
{
yymsp
[
1
].
minor
.
yy1
39
.
col
.
n
=
0
;
yymsp
[
1
].
minor
.
yy139
.
gap
.
n
=
0
;}
{
yymsp
[
1
].
minor
.
yy1
47
.
col
.
n
=
0
;
yymsp
[
1
].
minor
.
yy147
.
gap
.
n
=
0
;}
break
;
case
198
:
/* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
6
].
minor
.
yy1
39
.
col
=
yymsp
[
-
4
].
minor
.
yy0
;
yymsp
[
-
6
].
minor
.
yy1
39
.
gap
=
yymsp
[
-
1
].
minor
.
yy0
;
yymsp
[
-
6
].
minor
.
yy1
47
.
col
=
yymsp
[
-
4
].
minor
.
yy0
;
yymsp
[
-
6
].
minor
.
yy1
47
.
gap
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
199
:
/* windowstate_option ::= */
{
yymsp
[
1
].
minor
.
yy4
8
.
col
.
n
=
0
;
yymsp
[
1
].
minor
.
yy48
.
col
.
z
=
NULL
;}
{
yymsp
[
1
].
minor
.
yy4
0
.
col
.
n
=
0
;
yymsp
[
1
].
minor
.
yy40
.
col
.
z
=
NULL
;}
break
;
case
200
:
/* windowstate_option ::= STATE_WINDOW LP ids RP */
{
yymsp
[
-
3
].
minor
.
yy4
8
.
col
=
yymsp
[
-
1
].
minor
.
yy0
;
}
{
yymsp
[
-
3
].
minor
.
yy4
0
.
col
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
201
:
/* fill_opt ::= */
{
yymsp
[
1
].
minor
.
yy
2
21
=
0
;
}
{
yymsp
[
1
].
minor
.
yy
4
21
=
0
;
}
break
;
case
202
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
...
...
@@ -2896,14 +3213,14 @@ static void yy_reduce(
toTSDBType
(
yymsp
[
-
3
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
A
,
&
yymsp
[
-
3
].
minor
.
yy0
);
tVariantListInsert
(
yymsp
[
-
1
].
minor
.
yy
2
21
,
&
A
,
-
1
,
0
);
yymsp
[
-
5
].
minor
.
yy
221
=
yymsp
[
-
1
].
minor
.
yy2
21
;
tVariantListInsert
(
yymsp
[
-
1
].
minor
.
yy
4
21
,
&
A
,
-
1
,
0
);
yymsp
[
-
5
].
minor
.
yy
421
=
yymsp
[
-
1
].
minor
.
yy4
21
;
}
break
;
case
203
:
/* fill_opt ::= FILL LP ID RP */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
3
].
minor
.
yy
2
21
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
yymsp
[
-
3
].
minor
.
yy
4
21
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
}
break
;
case
204
:
/* sliding_opt ::= SLIDING LP tmvar RP */
...
...
@@ -2913,243 +3230,243 @@ static void yy_reduce(
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
yymsp
[
1
].
minor
.
yy0
.
z
=
NULL
;
yymsp
[
1
].
minor
.
yy0
.
type
=
0
;
}
break
;
case
207
:
/* orderby_opt ::= ORDER BY sortlist */
{
yymsp
[
-
2
].
minor
.
yy
221
=
yymsp
[
0
].
minor
.
yy2
21
;}
{
yymsp
[
-
2
].
minor
.
yy
421
=
yymsp
[
0
].
minor
.
yy4
21
;}
break
;
case
208
:
/* sortlist ::= sortlist COMMA item sortorder */
{
yylhsminor
.
yy
221
=
tVariantListAppend
(
yymsp
[
-
3
].
minor
.
yy221
,
&
yymsp
[
-
1
].
minor
.
yy106
,
yymsp
[
0
].
minor
.
yy172
);
yylhsminor
.
yy
421
=
tVariantListAppend
(
yymsp
[
-
3
].
minor
.
yy421
,
&
yymsp
[
-
1
].
minor
.
yy430
,
yymsp
[
0
].
minor
.
yy96
);
}
yymsp
[
-
3
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
yymsp
[
-
3
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
209
:
/* sortlist ::= item sortorder */
{
yylhsminor
.
yy
221
=
tVariantListAppend
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy106
,
yymsp
[
0
].
minor
.
yy172
);
yylhsminor
.
yy
421
=
tVariantListAppend
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy430
,
yymsp
[
0
].
minor
.
yy96
);
}
yymsp
[
-
1
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
yymsp
[
-
1
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
210
:
/* item ::= ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
tVariantCreate
(
&
yylhsminor
.
yy
106
,
&
yymsp
[
-
1
].
minor
.
yy0
);
tVariantCreate
(
&
yylhsminor
.
yy
430
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
yymsp
[
-
1
].
minor
.
yy
106
=
yylhsminor
.
yy106
;
yymsp
[
-
1
].
minor
.
yy
430
=
yylhsminor
.
yy430
;
break
;
case
211
:
/* sortorder ::= ASC */
{
yymsp
[
0
].
minor
.
yy
172
=
TSDB_ORDER_ASC
;
}
{
yymsp
[
0
].
minor
.
yy
96
=
TSDB_ORDER_ASC
;
}
break
;
case
212
:
/* sortorder ::= DESC */
{
yymsp
[
0
].
minor
.
yy
172
=
TSDB_ORDER_DESC
;}
{
yymsp
[
0
].
minor
.
yy
96
=
TSDB_ORDER_DESC
;}
break
;
case
213
:
/* sortorder ::= */
{
yymsp
[
1
].
minor
.
yy
172
=
TSDB_ORDER_ASC
;
}
{
yymsp
[
1
].
minor
.
yy
96
=
TSDB_ORDER_ASC
;
}
break
;
case
214
:
/* groupby_opt ::= */
{
yymsp
[
1
].
minor
.
yy
2
21
=
0
;}
{
yymsp
[
1
].
minor
.
yy
4
21
=
0
;}
break
;
case
215
:
/* groupby_opt ::= GROUP BY grouplist */
{
yymsp
[
-
2
].
minor
.
yy
221
=
yymsp
[
0
].
minor
.
yy2
21
;}
{
yymsp
[
-
2
].
minor
.
yy
421
=
yymsp
[
0
].
minor
.
yy4
21
;}
break
;
case
216
:
/* grouplist ::= grouplist COMMA item */
{
yylhsminor
.
yy
221
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy221
,
&
yymsp
[
0
].
minor
.
yy106
,
-
1
);
yylhsminor
.
yy
421
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy430
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
yymsp
[
-
2
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
217
:
/* grouplist ::= item */
{
yylhsminor
.
yy
221
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy106
,
-
1
);
yylhsminor
.
yy
421
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy430
,
-
1
);
}
yymsp
[
0
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
yymsp
[
0
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
218
:
/* having_opt ::= */
case
228
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
228
);
case
272
:
/* expritem ::= */
yytestcase
(
yyruleno
==
272
);
{
yymsp
[
1
].
minor
.
yy
146
=
0
;}
{
yymsp
[
1
].
minor
.
yy
439
=
0
;}
break
;
case
219
:
/* having_opt ::= HAVING expr */
case
229
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
229
);
{
yymsp
[
-
1
].
minor
.
yy
146
=
yymsp
[
0
].
minor
.
yy146
;}
{
yymsp
[
-
1
].
minor
.
yy
439
=
yymsp
[
0
].
minor
.
yy439
;}
break
;
case
220
:
/* limit_opt ::= */
case
224
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
224
);
{
yymsp
[
1
].
minor
.
yy
454
.
limit
=
-
1
;
yymsp
[
1
].
minor
.
yy454
.
offset
=
0
;}
{
yymsp
[
1
].
minor
.
yy
166
.
limit
=
-
1
;
yymsp
[
1
].
minor
.
yy166
.
offset
=
0
;}
break
;
case
221
:
/* limit_opt ::= LIMIT signed */
case
225
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
225
);
{
yymsp
[
-
1
].
minor
.
yy
454
.
limit
=
yymsp
[
0
].
minor
.
yy109
;
yymsp
[
-
1
].
minor
.
yy454
.
offset
=
0
;}
{
yymsp
[
-
1
].
minor
.
yy
166
.
limit
=
yymsp
[
0
].
minor
.
yy325
;
yymsp
[
-
1
].
minor
.
yy166
.
offset
=
0
;}
break
;
case
222
:
/* limit_opt ::= LIMIT signed OFFSET signed */
{
yymsp
[
-
3
].
minor
.
yy
454
.
limit
=
yymsp
[
-
2
].
minor
.
yy109
;
yymsp
[
-
3
].
minor
.
yy454
.
offset
=
yymsp
[
0
].
minor
.
yy109
;}
{
yymsp
[
-
3
].
minor
.
yy
166
.
limit
=
yymsp
[
-
2
].
minor
.
yy325
;
yymsp
[
-
3
].
minor
.
yy166
.
offset
=
yymsp
[
0
].
minor
.
yy325
;}
break
;
case
223
:
/* limit_opt ::= LIMIT signed COMMA signed */
{
yymsp
[
-
3
].
minor
.
yy
454
.
limit
=
yymsp
[
0
].
minor
.
yy109
;
yymsp
[
-
3
].
minor
.
yy454
.
offset
=
yymsp
[
-
2
].
minor
.
yy109
;}
{
yymsp
[
-
3
].
minor
.
yy
166
.
limit
=
yymsp
[
0
].
minor
.
yy325
;
yymsp
[
-
3
].
minor
.
yy166
.
offset
=
yymsp
[
-
2
].
minor
.
yy325
;}
break
;
case
226
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
{
yymsp
[
-
3
].
minor
.
yy
454
.
limit
=
yymsp
[
-
2
].
minor
.
yy109
;
yymsp
[
-
3
].
minor
.
yy454
.
offset
=
yymsp
[
0
].
minor
.
yy109
;}
{
yymsp
[
-
3
].
minor
.
yy
166
.
limit
=
yymsp
[
-
2
].
minor
.
yy325
;
yymsp
[
-
3
].
minor
.
yy166
.
offset
=
yymsp
[
0
].
minor
.
yy325
;}
break
;
case
227
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
{
yymsp
[
-
3
].
minor
.
yy
454
.
limit
=
yymsp
[
0
].
minor
.
yy109
;
yymsp
[
-
3
].
minor
.
yy454
.
offset
=
yymsp
[
-
2
].
minor
.
yy109
;}
{
yymsp
[
-
3
].
minor
.
yy
166
.
limit
=
yymsp
[
0
].
minor
.
yy325
;
yymsp
[
-
3
].
minor
.
yy166
.
offset
=
yymsp
[
-
2
].
minor
.
yy325
;}
break
;
case
230
:
/* expr ::= LP expr RP */
{
yylhsminor
.
yy
146
=
yymsp
[
-
1
].
minor
.
yy146
;
yylhsminor
.
yy146
->
exprToken
.
z
=
yymsp
[
-
2
].
minor
.
yy0
.
z
;
yylhsminor
.
yy146
->
exprToken
.
n
=
(
yymsp
[
0
].
minor
.
yy0
.
z
-
yymsp
[
-
2
].
minor
.
yy0
.
z
+
1
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
yymsp
[
-
1
].
minor
.
yy439
;
yylhsminor
.
yy439
->
exprToken
.
z
=
yymsp
[
-
2
].
minor
.
yy0
.
z
;
yylhsminor
.
yy439
->
exprToken
.
n
=
(
yymsp
[
0
].
minor
.
yy0
.
z
-
yymsp
[
-
2
].
minor
.
yy0
.
z
+
1
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
231
:
/* expr ::= ID */
{
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
0
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
0
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
232
:
/* expr ::= ID DOT ID */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
233
:
/* expr ::= ID DOT STAR */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ALL
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ALL
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
234
:
/* expr ::= INTEGER */
{
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
0
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
0
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
235
:
/* expr ::= MINUS INTEGER */
case
236
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
236
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_INTEGER
;
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
-
1
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_INTEGER
;
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
-
1
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
237
:
/* expr ::= FLOAT */
{
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
0
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
0
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
238
:
/* expr ::= MINUS FLOAT */
case
239
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
239
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_FLOAT
;
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
-
1
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_FLOAT
;
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
-
1
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
240
:
/* expr ::= STRING */
{
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_STRING
);}
yymsp
[
0
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_STRING
);}
yymsp
[
0
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
241
:
/* expr ::= NOW */
{
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_NOW
);
}
yymsp
[
0
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_NOW
);
}
yymsp
[
0
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
242
:
/* expr ::= VARIABLE */
{
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
0
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
0
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
243
:
/* expr ::= PLUS VARIABLE */
case
244
:
/* expr ::= MINUS VARIABLE */
yytestcase
(
yyruleno
==
244
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_VARIABLE
;
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
-
1
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_VARIABLE
;
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
-
1
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
245
:
/* expr ::= BOOL */
{
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_BOOL
);}
yymsp
[
0
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_BOOL
);}
yymsp
[
0
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
246
:
/* expr ::= NULL */
{
yylhsminor
.
yy
146
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_NULL
);}
yymsp
[
0
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreateIdValue
(
pInfo
,
&
yymsp
[
0
].
minor
.
yy0
,
TK_NULL
);}
yymsp
[
0
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
247
:
/* expr ::= ID LP exprlist RP */
{
tStrTokenAppend
(
pInfo
->
funcs
,
&
yymsp
[
-
3
].
minor
.
yy0
);
yylhsminor
.
yy
146
=
tSqlExprCreateFunction
(
yymsp
[
-
1
].
minor
.
yy2
21
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
tStrTokenAppend
(
pInfo
->
funcs
,
&
yymsp
[
-
3
].
minor
.
yy0
);
yylhsminor
.
yy
439
=
tSqlExprCreateFunction
(
yymsp
[
-
1
].
minor
.
yy4
21
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
248
:
/* expr ::= ID LP STAR RP */
{
tStrTokenAppend
(
pInfo
->
funcs
,
&
yymsp
[
-
3
].
minor
.
yy0
);
yylhsminor
.
yy
146
=
tSqlExprCreateFunction
(
NULL
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
tStrTokenAppend
(
pInfo
->
funcs
,
&
yymsp
[
-
3
].
minor
.
yy0
);
yylhsminor
.
yy
439
=
tSqlExprCreateFunction
(
NULL
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
249
:
/* expr ::= expr IS NULL */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
NULL
,
TK_ISNULL
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
NULL
,
TK_ISNULL
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
250
:
/* expr ::= expr IS NOT NULL */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
3
].
minor
.
yy146
,
NULL
,
TK_NOTNULL
);}
yymsp
[
-
3
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
3
].
minor
.
yy439
,
NULL
,
TK_NOTNULL
);}
yymsp
[
-
3
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
251
:
/* expr ::= expr LT expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_LT
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_LT
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
252
:
/* expr ::= expr GT expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_GT
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_GT
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
253
:
/* expr ::= expr LE expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_LE
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_LE
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
254
:
/* expr ::= expr GE expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_GE
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_GE
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
255
:
/* expr ::= expr NE expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_NE
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_NE
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
256
:
/* expr ::= expr EQ expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_EQ
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_EQ
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
257
:
/* expr ::= expr BETWEEN expr AND expr */
{
tSqlExpr
*
X2
=
tSqlExprClone
(
yymsp
[
-
4
].
minor
.
yy
146
);
yylhsminor
.
yy146
=
tSqlExprCreate
(
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy146
,
yymsp
[
-
2
].
minor
.
yy146
,
TK_GE
),
tSqlExprCreate
(
X2
,
yymsp
[
0
].
minor
.
yy146
,
TK_LE
),
TK_AND
);}
yymsp
[
-
4
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
tSqlExpr
*
X2
=
tSqlExprClone
(
yymsp
[
-
4
].
minor
.
yy
439
);
yylhsminor
.
yy439
=
tSqlExprCreate
(
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy439
,
yymsp
[
-
2
].
minor
.
yy439
,
TK_GE
),
tSqlExprCreate
(
X2
,
yymsp
[
0
].
minor
.
yy439
,
TK_LE
),
TK_AND
);}
yymsp
[
-
4
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
258
:
/* expr ::= expr AND expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_AND
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_AND
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
259
:
/* expr ::= expr OR expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_OR
);
}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_OR
);
}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
260
:
/* expr ::= expr PLUS expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_PLUS
);
}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_PLUS
);
}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
261
:
/* expr ::= expr MINUS expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_MINUS
);
}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_MINUS
);
}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
262
:
/* expr ::= expr STAR expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_STAR
);
}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_STAR
);
}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
263
:
/* expr ::= expr SLASH expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_DIVIDE
);}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_DIVIDE
);}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
264
:
/* expr ::= expr REM expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_REM
);
}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_REM
);
}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
265
:
/* expr ::= expr LIKE expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_LIKE
);
}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_LIKE
);
}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
266
:
/* expr ::= expr MATCH expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_MATCH
);
}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_MATCH
);
}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
267
:
/* expr ::= expr NMATCH expr */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy146
,
yymsp
[
0
].
minor
.
yy146
,
TK_NMATCH
);
}
yymsp
[
-
2
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_NMATCH
);
}
yymsp
[
-
2
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
268
:
/* expr ::= expr IN LP exprlist RP */
{
yylhsminor
.
yy
146
=
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy146
,
(
tSqlExpr
*
)
yymsp
[
-
1
].
minor
.
yy2
21
,
TK_IN
);
}
yymsp
[
-
4
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy439
,
(
tSqlExpr
*
)
yymsp
[
-
1
].
minor
.
yy4
21
,
TK_IN
);
}
yymsp
[
-
4
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
269
:
/* exprlist ::= exprlist COMMA expritem */
{
yylhsminor
.
yy
221
=
tSqlExprListAppend
(
yymsp
[
-
2
].
minor
.
yy221
,
yymsp
[
0
].
minor
.
yy146
,
0
,
0
);}
yymsp
[
-
2
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
yylhsminor
.
yy
421
=
tSqlExprListAppend
(
yymsp
[
-
2
].
minor
.
yy421
,
yymsp
[
0
].
minor
.
yy439
,
0
,
0
);}
yymsp
[
-
2
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
270
:
/* exprlist ::= expritem */
{
yylhsminor
.
yy
221
=
tSqlExprListAppend
(
0
,
yymsp
[
0
].
minor
.
yy146
,
0
,
0
);}
yymsp
[
0
].
minor
.
yy
221
=
yylhsminor
.
yy2
21
;
{
yylhsminor
.
yy
421
=
tSqlExprListAppend
(
0
,
yymsp
[
0
].
minor
.
yy439
,
0
,
0
);}
yymsp
[
0
].
minor
.
yy
421
=
yylhsminor
.
yy4
21
;
break
;
case
271
:
/* expritem ::= expr */
{
yylhsminor
.
yy
146
=
yymsp
[
0
].
minor
.
yy146
;}
yymsp
[
0
].
minor
.
yy
146
=
yylhsminor
.
yy146
;
{
yylhsminor
.
yy
439
=
yymsp
[
0
].
minor
.
yy439
;}
yymsp
[
0
].
minor
.
yy
439
=
yylhsminor
.
yy439
;
break
;
case
273
:
/* cmd ::= RESET QUERY CACHE */
{
setDCLSqlElems
(
pInfo
,
TSDB_SQL_RESET_CACHE
,
0
);}
...
...
@@ -3160,7 +3477,7 @@ static void yy_reduce(
case
275
:
/* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
2
21
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
4
21
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3178,14 +3495,14 @@ static void yy_reduce(
case
277
:
/* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
2
21
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
4
21
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
278
:
/* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
2
21
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
4
21
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3220,7 +3537,7 @@ static void yy_reduce(
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
SArray
*
A
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
106
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
430
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
6
].
minor
.
yy0
,
NULL
,
A
,
TSDB_ALTER_TABLE_UPDATE_TAG_VAL
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
...
...
@@ -3229,14 +3546,14 @@ static void yy_reduce(
case
282
:
/* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
2
21
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
4
21
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
283
:
/* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
2
21
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
4
21
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3254,14 +3571,14 @@ static void yy_reduce(
case
285
:
/* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
2
21
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
4
21
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
286
:
/* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
2
21
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
4
21
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3296,7 +3613,7 @@ static void yy_reduce(
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
SArray
*
A
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
106
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
430
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
6
].
minor
.
yy0
,
NULL
,
A
,
TSDB_ALTER_TABLE_UPDATE_TAG_VAL
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
...
...
@@ -3305,7 +3622,7 @@ static void yy_reduce(
case
290
:
/* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
2
21
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
4
21
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3322,9 +3639,9 @@ static void yy_reduce(
break
;
/********** End reduce actions ************************************************/
};
assert
(
yyruleno
<
sizeof
(
yyRuleInfo
)
/
sizeof
(
yyRuleInfo
[
0
])
);
yygoto
=
yyRuleInfo
[
yyruleno
].
lhs
;
yysize
=
yyRuleInfo
[
yyruleno
].
nrhs
;
assert
(
yyruleno
<
sizeof
(
yyRuleInfo
Lhs
)
/
sizeof
(
yyRuleInfoLhs
[
0
])
);
yygoto
=
yyRuleInfo
Lhs
[
yyruleno
]
;
yysize
=
yyRuleInfo
NRhs
[
yyruleno
]
;
yyact
=
yy_find_reduce_action
(
yymsp
[
yysize
].
stateno
,(
YYCODETYPE
)
yygoto
);
/* There are no SHIFTREDUCE actions on nonterminals because the table
...
...
@@ -3339,6 +3656,7 @@ static void yy_reduce(
yymsp
->
stateno
=
(
YYACTIONTYPE
)
yyact
;
yymsp
->
major
=
(
YYCODETYPE
)
yygoto
;
yyTraceShift
(
yypParser
,
yyact
,
"... then shift"
);
return
yyact
;
}
/*
...
...
@@ -3348,7 +3666,8 @@ static void yy_reduce(
static
void
yy_parse_failed
(
yyParser
*
yypParser
/* The parser */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sFail!
\n
"
,
yyTracePrompt
);
...
...
@@ -3359,7 +3678,8 @@ static void yy_parse_failed(
** parser fails */
/************ Begin %parse_failure code ***************************************/
/************ End %parse_failure code *****************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
#endif
/* YYNOERRORRECOVERY */
...
...
@@ -3371,7 +3691,8 @@ static void yy_syntax_error(
int
yymajor
,
/* The major type of the error token */
ParseTOKENTYPE
yyminor
/* The minor type of the error token */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
...
...
@@ -3397,7 +3718,8 @@ static void yy_syntax_error(
assert
(
len
<=
outputBufLen
);
/************ End %syntax_error code ******************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
/*
...
...
@@ -3406,7 +3728,8 @@ static void yy_syntax_error(
static
void
yy_accept
(
yyParser
*
yypParser
/* The parser */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sAccept!
\n
"
,
yyTracePrompt
);
...
...
@@ -3421,7 +3744,8 @@ static void yy_accept(
/*********** Begin %parse_accept code *****************************************/
/*********** End %parse_accept code *******************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
/* The main parser program.
...
...
@@ -3450,45 +3774,47 @@ void Parse(
ParseARG_PDECL
/* Optional %extra_argument parameter */
){
YYMINORTYPE
yyminorunion
;
unsigned
int
yyact
;
/* The parser action. */
YYACTIONTYPE
yyact
;
/* The parser action. */
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
int
yyendofinput
;
/* True if we are at the end of input */
#endif
#ifdef YYERRORSYMBOL
int
yyerrorhit
=
0
;
/* True if yymajor has invoked an error */
#endif
yyParser
*
yypParser
;
/* The parser */
yyParser
*
yypParser
=
(
yyParser
*
)
yyp
;
/* The parser */
ParseCTX_FETCH
ParseARG_STORE
yypParser
=
(
yyParser
*
)
yyp
;
assert
(
yypParser
->
yytos
!=
0
);
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
yyendofinput
=
(
yymajor
==
0
);
#endif
ParseARG_STORE
;
yyact
=
yypParser
->
yytos
->
stateno
;
#ifndef NDEBUG
if
(
yyTraceFILE
){
int
stateno
=
yypParser
->
yytos
->
stateno
;
if
(
stateno
<
YY_MIN_REDUCE
){
if
(
yyact
<
YY_MIN_REDUCE
){
fprintf
(
yyTraceFILE
,
"%sInput '%s' in state %d
\n
"
,
yyTracePrompt
,
yyTokenName
[
yymajor
],
stateno
);
yyTracePrompt
,
yyTokenName
[
yymajor
],
yyact
);
}
else
{
fprintf
(
yyTraceFILE
,
"%sInput '%s' with pending reduce %d
\n
"
,
yyTracePrompt
,
yyTokenName
[
yymajor
],
stateno
-
YY_MIN_REDUCE
);
yyTracePrompt
,
yyTokenName
[
yymajor
],
yyact
-
YY_MIN_REDUCE
);
}
}
#endif
do
{
yyact
=
yy_find_shift_action
(
yypParser
,(
YYCODETYPE
)
yymajor
);
assert
(
yyact
==
yypParser
->
yytos
->
stateno
);
yyact
=
yy_find_shift_action
((
YYCODETYPE
)
yymajor
,
yyact
);
if
(
yyact
>=
YY_MIN_REDUCE
){
yy_reduce
(
yypParser
,
yyact
-
YY_MIN_REDUCE
,
yymajor
,
yyminor
);
yyact
=
yy_reduce
(
yypParser
,
yyact
-
YY_MIN_REDUCE
,
yymajor
,
yyminor
ParseCTX_PARAM
);
}
else
if
(
yyact
<=
YY_MAX_SHIFTREDUCE
){
yy_shift
(
yypParser
,
yyact
,
yymajor
,
yyminor
);
yy_shift
(
yypParser
,
yyact
,
(
YYCODETYPE
)
yymajor
,
yyminor
);
#ifndef YYNOERRORRECOVERY
yypParser
->
yyerrcnt
--
;
#endif
yymajor
=
YYNOCODE
;
break
;
}
else
if
(
yyact
==
YY_ACCEPT_ACTION
){
yypParser
->
yytos
--
;
yy_accept
(
yypParser
);
...
...
@@ -3539,10 +3865,9 @@ void Parse(
yymajor
=
YYNOCODE
;
}
else
{
while
(
yypParser
->
yytos
>=
yypParser
->
yystack
&&
yymx
!=
YYERRORSYMBOL
&&
(
yyact
=
yy_find_reduce_action
(
yypParser
->
yytos
->
stateno
,
YYERRORSYMBOL
))
>
=
YY_MIN_
REDUCE
YYERRORSYMBOL
))
>
YY_MAX_SHIFT
REDUCE
){
yy_pop_parser_stack
(
yypParser
);
}
...
...
@@ -3559,6 +3884,8 @@ void Parse(
}
yypParser
->
yyerrcnt
=
3
;
yyerrorhit
=
1
;
if
(
yymajor
==
YYNOCODE
)
break
;
yyact
=
yypParser
->
yytos
->
stateno
;
#elif defined(YYNOERRORRECOVERY)
/* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
** do any kind of error recovery. Instead, simply invoke the syntax
...
...
@@ -3569,8 +3896,7 @@ void Parse(
*/
yy_syntax_error
(
yypParser
,
yymajor
,
yyminor
);
yy_destructor
(
yypParser
,(
YYCODETYPE
)
yymajor
,
&
yyminorunion
);
yymajor
=
YYNOCODE
;
break
;
#else
/* YYERRORSYMBOL is not defined */
/* This is what we do if the grammar does not define ERROR:
**
...
...
@@ -3592,10 +3918,10 @@ void Parse(
yypParser
->
yyerrcnt
=
-
1
;
#endif
}
yymajor
=
YYNOCODE
;
break
;
#endif
}
}
while
(
yy
major
!=
YYNOCODE
&&
yy
pParser
->
yytos
>
yypParser
->
yystack
);
}
while
(
yypParser
->
yytos
>
yypParser
->
yystack
);
#ifndef NDEBUG
if
(
yyTraceFILE
){
yyStackEntry
*
i
;
...
...
@@ -3610,3 +3936,17 @@ void Parse(
#endif
return
;
}
/*
** Return the fallback token corresponding to canonical token iToken, or
** 0 if iToken has no fallback.
*/
int
ParseFallback
(
int
iToken
){
#ifdef YYFALLBACK
assert
(
iToken
<
(
int
)(
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
]))
);
return
yyFallback
[
iToken
];
#else
(
void
)
iToken
;
return
0
;
#endif
}
src/util/src/ttokenizer.c
浏览文件 @
67873662
...
...
@@ -72,7 +72,6 @@ static SKeyword keywordTable[] = {
{
"STAR"
,
TK_STAR
},
{
"SLASH"
,
TK_SLASH
},
{
"REM "
,
TK_REM
},
{
"CONCAT"
,
TK_CONCAT
},
{
"UMINUS"
,
TK_UMINUS
},
{
"UPLUS"
,
TK_UPLUS
},
{
"BITNOT"
,
TK_BITNOT
},
...
...
@@ -393,9 +392,6 @@ uint32_t tGetToken(char* z, uint32_t* tokenId) {
if
(
z
[
1
]
!=
'|'
)
{
*
tokenId
=
TK_BITOR
;
return
1
;
}
else
{
*
tokenId
=
TK_CONCAT
;
return
2
;
}
}
case
','
:
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录