Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
a4282fc2
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
a4282fc2
编写于
12月 28, 2021
作者:
H
Haojun Liao
提交者:
GitHub
12月 28, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #9456 from taosdata/feature/3.0_liaohj
Feature/3.0 liaohj
上级
b51819dd
c4424992
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
1200 addition
and
1198 deletion
+1200
-1198
source/client/test/clientTests.cpp
source/client/test/clientTests.cpp
+6
-6
source/libs/parser/inc/sql.y
source/libs/parser/inc/sql.y
+2
-1
source/libs/parser/inc/ttokendef.h
source/libs/parser/inc/ttokendef.h
+99
-98
source/libs/parser/src/astToMsg.c
source/libs/parser/src/astToMsg.c
+1
-1
source/libs/parser/src/dCDAstProcess.c
source/libs/parser/src/dCDAstProcess.c
+2
-6
source/libs/parser/src/sql.c
source/libs/parser/src/sql.c
+1090
-1086
未找到文件。
source/client/test/clientTests.cpp
浏览文件 @
a4282fc2
...
...
@@ -177,14 +177,14 @@ TEST(testCase, create_dnode_Test) {
if
(
taos_errno
(
pRes
)
!=
0
)
{
printf
(
"error in create dnode, reason:%s
\n
"
,
taos_errstr
(
pRes
));
}
taos_free_result
(
pRes
);
TAOS_FIELD
*
pFields
=
taos_fetch_fields
(
pRes
);
ASSERT_TRUE
(
pFields
==
NULL
);
int32_t
numOfFields
=
taos_num_fields
(
pRes
);
ASSERT_EQ
(
numOfFields
,
0
);
pRes
=
taos_query
(
pConn
,
"create dnode 1.1.1.1 port 9000"
);
if
(
taos_errno
(
pRes
)
!=
0
)
{
printf
(
"failed to create dnode, reason:%s
\n
"
,
taos_errstr
(
pRes
));
}
taos_free_result
(
pRes
);
taos_close
(
pConn
);
}
...
...
source/libs/parser/inc/sql.y
浏览文件 @
a4282fc2
...
...
@@ -201,6 +201,7 @@ ifnotexists(X) ::= . { X.n = 0;}
/////////////////////////////////THE CREATE STATEMENT///////////////////////////////////////
//create option for dnode/db/user/account
cmd ::= CREATE DNODE ids(X) PORT ids(Y). { setDCLSqlElems(pInfo, TSDB_SQL_CREATE_DNODE, 2, &X, &Y);}
cmd ::= CREATE DNODE IPTOKEN(X) PORT ids(Y). { setDCLSqlElems(pInfo, TSDB_SQL_CREATE_DNODE, 2, &X, &Y);}
cmd ::= CREATE ACCOUNT ids(X) PASS ids(Y) acct_optr(Z).
{ setCreateAcctSql(pInfo, TSDB_SQL_CREATE_ACCT, &X, &Y, &Z);}
cmd ::= CREATE DATABASE ifnotexists(Z) ids(X) db_optr(Y). { setCreateDbInfo(pInfo, TSDB_SQL_CREATE_DB, &X, &Y, &Z);}
...
...
source/libs/parser/inc/ttokendef.h
浏览文件 @
a4282fc2
...
...
@@ -104,104 +104,104 @@
#define TK_IF 86
#define TK_EXISTS 87
#define TK_PORT 88
#define TK_
AS
89
#define TK_
OUTPUTTYPE
90
#define TK_
AGGREGATE
91
#define TK_
BUFSIZE
92
#define TK_
PPS
93
#define TK_
TSERIES
94
#define TK_
DBS
95
#define TK_
STORAGE
96
#define TK_
QTIME
97
#define TK_
CONNS
98
#define TK_
STATE
99
#define TK_
COMMA
100
#define TK_
KEEP
101
#define TK_
CACHE
102
#define TK_
REPLICA
103
#define TK_
QUORUM
104
#define TK_
DAYS
105
#define TK_
MINROWS
106
#define TK_M
AX
ROWS 107
#define TK_
BLOCKS
108
#define TK_
CTIME
109
#define TK_
WAL
110
#define TK_
FSYNC
111
#define TK_
COMP
112
#define TK_
PRECISION
113
#define TK_
UPDATE
114
#define TK_
CACHELAST
115
#define TK_
UNSIGNED
116
#define TK_
TAGS
117
#define TK_
USING
118
#define TK_
NULL
119
#define TK_N
OW
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_S
TATE_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_
SLIMI
T 140
#define TK_S
OFFSET
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_A
FTER
157
#define TK_A
TTACH
158
#define TK_
BEFORE
159
#define TK_BE
GIN
160
#define TK_
CASCADE
161
#define TK_C
LUSTER
162
#define TK_C
ONFLICT
163
#define TK_CO
PY
164
#define TK_
DEFERRED
165
#define TK_DE
LIMITERS
166
#define TK_DE
TACH
167
#define TK_
EACH
168
#define TK_E
ND
169
#define TK_E
XPLAIN
170
#define TK_
FAIL
171
#define TK_F
OR
172
#define TK_
IGNORE
173
#define TK_I
MMEDIATE
174
#define TK_I
NITIALLY
175
#define TK_IN
STEAD
176
#define TK_
KEY
177
#define TK_
OF
178
#define TK_
RAISE
179
#define TK_R
EPLACE
180
#define TK_RE
STRICT
181
#define TK_R
OW
182
#define TK_
STATEMENT
183
#define TK_
TRIGGER
184
#define TK_
VIEW
185
#define TK_
IPTOKEN
186
#define TK_
IPTOKEN
89
#define TK_
AS
90
#define TK_
OUTPUTTYPE
91
#define TK_
AGGREGATE
92
#define TK_
BUFSIZE
93
#define TK_
PPS
94
#define TK_
TSERIES
95
#define TK_
DBS
96
#define TK_
STORAGE
97
#define TK_
QTIME
98
#define TK_
CONNS
99
#define TK_
STATE
100
#define TK_
COMMA
101
#define TK_
KEEP
102
#define TK_
CACHE
103
#define TK_
REPLICA
104
#define TK_
QUORUM
105
#define TK_
DAYS
106
#define TK_M
IN
ROWS 107
#define TK_
MAXROWS
108
#define TK_
BLOCKS
109
#define TK_
CTIME
110
#define TK_
WAL
111
#define TK_
FSYNC
112
#define TK_
COMP
113
#define TK_
PRECISION
114
#define TK_
UPDATE
115
#define TK_
CACHELAST
116
#define TK_
UNSIGNED
117
#define TK_
TAGS
118
#define TK_
USING
119
#define TK_N
ULL
120
#define TK_
NOW
121
#define TK_
SELECT
122
#define TK_
UNION
123
#define TK_
ALL
124
#define TK_
DISTINCT
125
#define TK_
FROM
126
#define TK_
VARIABLE
127
#define TK_
INTERVAL
128
#define TK_
EVERY
129
#define TK_S
ESSION
130
#define TK_
STATE_WINDOW
131
#define TK_
FILL
132
#define TK_
SLIDING
133
#define TK_
ORDER
134
#define TK_
BY
135
#define TK_
ASC
136
#define TK_
GROUP
137
#define TK_
HAVING
138
#define TK_
LIMIT
139
#define TK_
OFFSE
T 140
#define TK_S
LIMIT
141
#define TK_
SOFFSET
142
#define TK_
WHERE
143
#define TK_
RESET
144
#define TK_
QUERY
145
#define TK_
SYNCDB
146
#define TK_
ADD
147
#define TK_
COLUMN
148
#define TK_
MODIFY
149
#define TK_
TAG
150
#define TK_
CHANGE
151
#define TK_
SET
152
#define TK_
KILL
153
#define TK_
CONNECTION
154
#define TK_
STREAM
155
#define TK_
COLON
156
#define TK_A
BORT
157
#define TK_A
FTER
158
#define TK_
ATTACH
159
#define TK_BE
FORE
160
#define TK_
BEGIN
161
#define TK_C
ASCADE
162
#define TK_C
LUSTER
163
#define TK_CO
NFLICT
164
#define TK_
COPY
165
#define TK_DE
FERRED
166
#define TK_DE
LIMITERS
167
#define TK_
DETACH
168
#define TK_E
ACH
169
#define TK_E
ND
170
#define TK_
EXPLAIN
171
#define TK_F
AIL
172
#define TK_
FOR
173
#define TK_I
GNORE
174
#define TK_I
MMEDIATE
175
#define TK_IN
ITIALLY
176
#define TK_
INSTEAD
177
#define TK_
KEY
178
#define TK_
OF
179
#define TK_R
AISE
180
#define TK_RE
PLACE
181
#define TK_R
ESTRICT
182
#define TK_
ROW
183
#define TK_
STATEMENT
184
#define TK_
TRIGGER
185
#define TK_
VIEW
186
#define TK_SEMI 187
#define TK_NONE 188
#define TK_PREV 189
...
...
@@ -216,6 +216,7 @@
#define TK_SPACE 300
#define TK_COMMENT 301
#define TK_ILLEGAL 302
...
...
source/libs/parser/src/astToMsg.c
浏览文件 @
a4282fc2
...
...
@@ -388,7 +388,7 @@ SCreateDnodeMsg *buildCreateDnodeMsg(SSqlInfo* pInfo, int32_t* len, SMsgBuf* pMs
}
SToken
*
id
=
taosArrayGet
(
pInfo
->
pMiscInfo
->
a
,
0
);
if
(
id
->
type
!=
TK_ID
)
{
if
(
id
->
type
!=
TK_ID
&&
id
->
type
!=
TK_IPTOKEN
)
{
buildInvalidOperationMsg
(
pMsgBuf
,
msg2
);
return
NULL
;
}
...
...
source/libs/parser/src/dCDAstProcess.c
浏览文件 @
a4282fc2
...
...
@@ -313,12 +313,8 @@ int32_t doCheckForCreateCTable(SSqlInfo* pInfo, SParseBasicCtx *pCtx, SMsgBuf* p
return
code
;
}
const
char
*
pSTableName
=
tNameGetTableName
(
&
name
);
const
char
*
pStableName
=
tNameGetTableName
(
&
name
);
SArray
*
pValList
=
pCreateTableInfo
->
pTagVals
;
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
return
code
;
}
size_t
valSize
=
taosArrayGetSize
(
pValList
);
STableMeta
*
pSuperTableMeta
=
NULL
;
...
...
@@ -326,7 +322,7 @@ int32_t doCheckForCreateCTable(SSqlInfo* pInfo, SParseBasicCtx *pCtx, SMsgBuf* p
char
dbName
[
TSDB_DB_FNAME_LEN
]
=
{
0
};
tNameGetFullDbName
(
&
name
,
dbName
);
catalogGetTableMeta
(
pCtx
->
pCatalog
,
pCtx
->
pTransporter
,
&
pCtx
->
mgmtEpSet
,
dbName
,
pS
T
ableName
,
&
pSuperTableMeta
);
catalogGetTableMeta
(
pCtx
->
pCatalog
,
pCtx
->
pTransporter
,
&
pCtx
->
mgmtEpSet
,
dbName
,
pS
t
ableName
,
&
pSuperTableMeta
);
// too long tag values will return invalid sql, not be truncated automatically
SSchema
*
pTagSchema
=
getTableTagSchema
(
pSuperTableMeta
);
...
...
source/libs/parser/src/sql.c
浏览文件 @
a4282fc2
...
...
@@ -130,17 +130,17 @@ typedef union {
#define ParseARG_FETCH SSqlInfo* pInfo = yypParser->pInfo
#define ParseARG_STORE yypParser->pInfo = pInfo
#define YYFALLBACK 1
#define YYNSTATE 36
3
#define YYNRULE 30
0
#define YYNSTATE 36
5
#define YYNRULE 30
1
#define YYNTOKEN 197
#define YY_MAX_SHIFT 36
2
#define YY_MIN_SHIFTREDUCE 58
1
#define YY_MAX_SHIFTREDUCE 88
0
#define YY_ERROR_ACTION 88
1
#define YY_ACCEPT_ACTION 88
2
#define YY_NO_ACTION 88
3
#define YY_MIN_REDUCE 88
4
#define YY_MAX_REDUCE 118
3
#define YY_MAX_SHIFT 36
4
#define YY_MIN_SHIFTREDUCE 58
4
#define YY_MAX_SHIFTREDUCE 88
4
#define YY_ERROR_ACTION 88
5
#define YY_ACCEPT_ACTION 88
6
#define YY_NO_ACTION 88
7
#define YY_MIN_REDUCE 88
8
#define YY_MAX_REDUCE 118
8
/************* End control #defines *******************************************/
/* Define the yytestcase() macro to be a no-op if is not already defined
...
...
@@ -206,167 +206,168 @@ typedef union {
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (7
78
)
#define YY_ACTTAB_COUNT (7
83
)
static
const
YYACTIONTYPE
yy_action
[]
=
{
/* 0 */
95
,
632
,
36
,
1027
,
632
,
21
,
248
,
710
,
205
,
633
,
/* 10 */
361
,
229
,
633
,
55
,
56
,
1019
,
59
,
60
,
161
,
1159
,
/* 20 */
251
,
49
,
48
,
47
,
1068
,
58
,
320
,
63
,
61
,
64
,
/* 30 */
62
,
1016
,
1017
,
33
,
1020
,
54
,
53
,
340
,
339
,
52
,
/* 40 */
51
,
50
,
55
,
56
,
231
,
59
,
60
,
242
,
1030
,
251
,
/* 50 */
49
,
48
,
47
,
667
,
58
,
320
,
63
,
61
,
64
,
62
,
/* 60 */
202
,
247
,
882
,
362
,
54
,
53
,
205
,
260
,
52
,
51
,
/* 70 */
50
,
55
,
56
,
203
,
59
,
60
,
175
,
1160
,
251
,
49
,
/* 80 */
48
,
47
,
632
,
58
,
320
,
63
,
61
,
64
,
62
,
80
,
/* 90 */
633
,
1065
,
1106
,
54
,
53
,
235
,
1045
,
52
,
51
,
50
,
/* 100 */
632
,
317
,
317
,
55
,
57
,
161
,
59
,
60
,
633
,
1058
,
/* 110 */
251
,
49
,
48
,
47
,
817
,
58
,
320
,
63
,
61
,
64
,
/* 120 */
62
,
205
,
208
,
154
,
241
,
54
,
53
,
273
,
1033
,
52
,
/* 130 */
51
,
50
,
1160
,
196
,
194
,
192
,
161
,
52
,
51
,
50
,
/* 140 */
191
,
140
,
139
,
138
,
137
,
350
,
582
,
583
,
584
,
585
,
/* 150 */
586
,
587
,
588
,
589
,
590
,
591
,
592
,
593
,
594
,
595
,
/* 160 */
152
,
56
,
230
,
59
,
60
,
27
,
93
,
251
,
49
,
48
,
/* 170 */
47
,
98
,
58
,
320
,
63
,
61
,
64
,
62
,
32
,
1107
,
/* 180 */
81
,
291
,
54
,
53
,
161
,
36
,
52
,
51
,
50
,
59
,
/* 190 */
60
,
279
,
278
,
251
,
49
,
48
,
47
,
265
,
58
,
320
,
/* 200 */
63
,
61
,
64
,
62
,
252
,
1021
,
269
,
268
,
54
,
53
,
/* 210 */
92
,
299
,
52
,
51
,
50
,
42
,
315
,
356
,
355
,
314
,
/* 220 */
313
,
312
,
354
,
311
,
310
,
309
,
353
,
308
,
352
,
351
,
/* 230 */
22
,
1029
,
999
,
987
,
988
,
989
,
990
,
991
,
992
,
993
,
/* 240 */
994
,
995
,
996
,
997
,
998
,
1000
,
1001
,
214
,
245
,
250
,
/* 250 */
832
,
1060
,
1033
,
821
,
215
,
824
,
293
,
827
,
91
,
254
,
/* 260 */
136
,
135
,
134
,
216
,
205
,
250
,
832
,
325
,
86
,
821
,
/* 270 */
209
,
824
,
36
,
827
,
170
,
1160
,
12
,
63
,
61
,
64
,
/* 280 */
62
,
94
,
1044
,
227
,
228
,
54
,
53
,
321
,
36
,
52
,
/* 290 */
51
,
50
,
281
,
3
,
39
,
177
,
782
,
783
,
210
,
227
,
/* 300 */
228
,
104
,
109
,
100
,
107
,
43
,
86
,
823
,
746
,
826
,
/* 310 */
97
,
743
,
123
,
744
,
239
,
745
,
738
,
1154
,
1030
,
735
,
/* 320 */
304
,
736
,
86
,
737
,
259
,
350
,
822
,
272
,
825
,
78
,
/* 330 */
240
,
733
,
65
,
734
,
1030
,
255
,
223
,
253
,
1032
,
328
,
/* 340 */
327
,
256
,
257
,
43
,
42
,
85
,
356
,
355
,
65
,
243
,
/* 350 */
244
,
354
,
121
,
115
,
125
,
353
,
763
,
352
,
351
,
43
,
/* 360 */
74
,
130
,
133
,
124
,
36
,
36
,
36
,
833
,
828
,
1058
,
/* 370 */
127
,
36
,
357
,
969
,
829
,
1005
,
36
,
1003
,
1004
,
360
,
/* 380 */
359
,
145
,
1006
,
833
,
828
,
36
,
1007
,
232
,
1008
,
1009
,
/* 390 */
829
,
54
,
53
,
36
,
36
,
52
,
51
,
50
,
322
,
75
,
/* 400 */
261
,
1058
,
258
,
932
,
335
,
334
,
329
,
330
,
331
,
187
,
/* 410 */
1030
,
1030
,
1030
,
332
,
151
,
149
,
148
,
1030
,
336
,
233
,
/* 420 */
260
,
260
,
1030
,
79
,
799
,
747
,
748
,
337
,
830
,
176
,
/* 430 */
1031
,
1030
,
942
,
739
,
740
,
338
,
342
,
760
,
187
,
1030
,
/* 440 */
1030
,
767
,
933
,
274
,
779
,
83
,
720
,
831
,
187
,
84
,
/* 450 */
789
,
790
,
71
,
296
,
722
,
1018
,
298
,
819
,
37
,
156
,
/* 460 */
721
,
37
,
7
,
855
,
834
,
66
,
24
,
249
,
37
,
67
,
/* 470 */
631
,
96
,
731
,
77
,
732
,
67
,
132
,
131
,
23
,
23
,
/* 480 */
1153
,
798
,
70
,
1152
,
225
,
23
,
70
,
1099
,
14
,
4
,
/* 490 */
13
,
226
,
114
,
72
,
113
,
820
,
16
,
206
,
15
,
751
,
/* 500 */
207
,
752
,
836
,
1117
,
749
,
709
,
750
,
211
,
204
,
18
,
/* 510 */
120
,
17
,
119
,
212
,
20
,
213
,
19
,
218
,
1179
,
219
,
/* 520 */
1171
,
220
,
217
,
201
,
1116
,
270
,
237
,
1113
,
1112
,
238
,
/* 530 */
341
,
153
,
1067
,
44
,
1078
,
1075
,
1076
,
1098
,
1080
,
1059
,
/* 540 */
276
,
150
,
155
,
160
,
287
,
1028
,
280
,
171
,
172
,
275
,
/* 550 */
234
,
1026
,
282
,
173
,
174
,
946
,
284
,
301
,
162
,
778
,
/* 560 */
1056
,
163
,
164
,
165
,
166
,
167
,
168
,
169
,
286
,
294
,
/* 570 */
302
,
290
,
303
,
306
,
307
,
76
,
199
,
40
,
73
,
46
,
/* 580 */
318
,
941
,
319
,
292
,
326
,
288
,
1178
,
111
,
1177
,
283
,
/* 590 */
1174
,
178
,
333
,
1170
,
117
,
1169
,
45
,
1166
,
179
,
966
,
/* 600 */
41
,
38
,
200
,
930
,
126
,
305
,
928
,
128
,
129
,
926
,
/* 610 */
925
,
262
,
189
,
190
,
922
,
921
,
920
,
919
,
918
,
917
,
/* 620 */
916
,
193
,
195
,
913
,
911
,
909
,
907
,
197
,
904
,
198
,
/* 630 */
900
,
122
,
343
,
82
,
87
,
344
,
285
,
1100
,
345
,
346
,
/* 640 */
347
,
348
,
349
,
358
,
880
,
224
,
246
,
300
,
263
,
264
,
/* 650 */
879
,
221
,
266
,
222
,
267
,
878
,
945
,
105
,
944
,
861
,
/* 660 */
860
,
271
,
70
,
295
,
8
,
28
,
924
,
923
,
277
,
141
,
/* 670 */
181
,
967
,
182
,
142
,
184
,
915
,
180
,
183
,
185
,
143
,
/* 680 */
186
,
144
,
914
,
968
,
906
,
905
,
754
,
88
,
2
,
1
,
/* 690 */
780
,
157
,
158
,
31
,
791
,
785
,
159
,
89
,
236
,
787
,
/* 700 */
90
,
289
,
29
,
9
,
30
,
10
,
11
,
25
,
297
,
26
,
/* 710 */
97
,
99
,
102
,
645
,
34
,
101
,
680
,
35
,
103
,
678
,
/* 720 */
677
,
676
,
674
,
673
,
672
,
669
,
316
,
106
,
636
,
323
,
/* 730 */
108
,
835
,
5
,
324
,
837
,
6
,
37
,
68
,
110
,
112
,
/* 740 */
69
,
712
,
116
,
118
,
711
,
708
,
661
,
659
,
651
,
657
,
/* 750 */
653
,
655
,
649
,
647
,
682
,
681
,
679
,
675
,
671
,
670
,
/* 760 */
634
,
188
,
599
,
884
,
883
,
883
,
883
,
883
,
883
,
883
,
/* 770 */
883
,
883
,
883
,
883
,
883
,
883
,
146
,
147
,
/* 0 */
96
,
635
,
249
,
21
,
635
,
203
,
248
,
714
,
206
,
636
,
/* 10 */
363
,
230
,
636
,
55
,
56
,
1073
,
59
,
60
,
1024
,
1164
,
/* 20 */
252
,
49
,
48
,
47
,
671
,
58
,
322
,
63
,
61
,
64
,
/* 30 */
62
,
1021
,
1022
,
33
,
1025
,
54
,
53
,
342
,
341
,
52
,
/* 40 */
51
,
50
,
55
,
56
,
261
,
59
,
60
,
236
,
1050
,
252
,
/* 50 */
49
,
48
,
47
,
176
,
58
,
322
,
63
,
61
,
64
,
62
,
/* 60 */
155
,
827
,
206
,
830
,
54
,
53
,
206
,
204
,
52
,
51
,
/* 70 */
50
,
55
,
56
,
1165
,
59
,
60
,
99
,
1165
,
252
,
49
,
/* 80 */
48
,
47
,
1070
,
58
,
322
,
63
,
61
,
64
,
62
,
162
,
/* 90 */
81
,
36
,
635
,
54
,
53
,
318
,
162
,
52
,
51
,
50
,
/* 100 */
636
,
54
,
53
,
162
,
318
,
52
,
51
,
50
,
55
,
57
,
/* 110 */
1026
,
59
,
60
,
253
,
821
,
252
,
49
,
48
,
47
,
635
,
/* 120 */
58
,
322
,
63
,
61
,
64
,
62
,
936
,
636
,
280
,
279
,
/* 130 */
54
,
53
,
188
,
232
,
52
,
51
,
50
,
1035
,
585
,
586
,
/* 140 */
587
,
588
,
589
,
590
,
591
,
592
,
593
,
594
,
595
,
596
,
/* 150 */
597
,
598
,
153
,
56
,
231
,
59
,
60
,
162
,
74
,
252
,
/* 160 */
49
,
48
,
47
,
1111
,
58
,
322
,
63
,
61
,
64
,
62
,
/* 170 */
1112
,
1063
,
292
,
206
,
54
,
53
,
255
,
93
,
52
,
51
,
/* 180 */
50
,
59
,
60
,
834
,
1165
,
252
,
49
,
48
,
47
,
233
,
/* 190 */
58
,
322
,
63
,
61
,
64
,
62
,
42
,
75
,
358
,
357
,
/* 200 */
54
,
53
,
27
,
356
,
52
,
51
,
50
,
355
,
250
,
354
,
/* 210 */
353
,
42
,
316
,
358
,
357
,
315
,
314
,
313
,
356
,
312
,
/* 220 */
311
,
310
,
355
,
309
,
354
,
353
,
886
,
364
,
352
,
294
,
/* 230 */
4
,
92
,
1004
,
992
,
993
,
994
,
995
,
996
,
997
,
998
,
/* 240 */
999
,
1000
,
1001
,
1002
,
1003
,
1005
,
1006
,
22
,
251
,
836
,
/* 250 */
87
,
260
,
825
,
256
,
828
,
254
,
831
,
330
,
329
,
947
,
/* 260 */
635
,
52
,
51
,
50
,
215
,
188
,
251
,
836
,
636
,
36
,
/* 270 */
825
,
216
,
828
,
1063
,
831
,
786
,
787
,
137
,
136
,
135
,
/* 280 */
217
,
209
,
228
,
229
,
327
,
87
,
323
,
1063
,
43
,
210
,
/* 290 */
86
,
274
,
36
,
36
,
63
,
61
,
64
,
62
,
36
,
87
,
/* 300 */
228
,
229
,
54
,
53
,
211
,
234
,
52
,
51
,
50
,
750
,
/* 310 */
36
,
240
,
747
,
36
,
748
,
1035
,
749
,
742
,
1159
,
826
,
/* 320 */
739
,
829
,
740
,
43
,
741
,
362
,
361
,
146
,
262
,
1032
,
/* 330 */
259
,
65
,
337
,
336
,
241
,
331
,
36
,
43
,
1035
,
1035
,
/* 340 */
332
,
36
,
257
,
258
,
1035
,
273
,
1158
,
79
,
320
,
65
,
/* 350 */
244
,
245
,
333
,
36
,
224
,
334
,
1035
,
1049
,
12
,
1035
,
/* 360 */
1184
,
3
,
39
,
178
,
95
,
1157
,
266
,
837
,
832
,
105
,
/* 370 */
77
,
101
,
108
,
243
,
833
,
270
,
269
,
1010
,
338
,
1008
,
/* 380 */
1009
,
767
,
1035
,
339
,
1011
,
837
,
832
,
1035
,
1012
,
305
,
/* 390 */
1013
,
1014
,
833
,
98
,
803
,
340
,
197
,
195
,
193
,
1035
,
/* 400 */
36
,
226
,
36
,
192
,
141
,
140
,
139
,
138
,
122
,
116
,
/* 410 */
126
,
242
,
152
,
150
,
149
,
1038
,
246
,
131
,
134
,
125
,
/* 420 */
1038
,
80
,
171
,
261
,
261
,
124
,
128
,
751
,
752
,
94
,
/* 430 */
764
,
937
,
177
,
1036
,
84
,
743
,
744
,
188
,
275
,
352
,
/* 440 */
282
,
835
,
344
,
82
,
85
,
783
,
1035
,
793
,
1034
,
794
,
/* 450 */
359
,
974
,
802
,
1023
,
37
,
7
,
71
,
724
,
297
,
726
,
/* 460 */
299
,
157
,
737
,
66
,
738
,
24
,
735
,
771
,
736
,
725
,
/* 470 */
32
,
823
,
70
,
37
,
37
,
67
,
97
,
859
,
838
,
324
,
/* 480 */
634
,
14
,
70
,
13
,
115
,
67
,
114
,
16
,
755
,
15
,
/* 490 */
756
,
78
,
1037
,
23
,
23
,
227
,
23
,
72
,
18
,
753
,
/* 500 */
17
,
754
,
133
,
132
,
300
,
121
,
207
,
120
,
208
,
824
,
/* 510 */
212
,
20
,
205
,
19
,
213
,
214
,
219
,
220
,
221
,
218
,
/* 520 */
202
,
1176
,
1065
,
1122
,
713
,
1121
,
238
,
1118
,
1117
,
239
,
/* 530 */
321
,
343
,
1064
,
44
,
271
,
154
,
1104
,
1072
,
1083
,
1103
,
/* 540 */
1080
,
1081
,
151
,
277
,
172
,
1033
,
1085
,
156
,
281
,
235
,
/* 550 */
283
,
161
,
288
,
285
,
173
,
165
,
1031
,
1061
,
174
,
164
,
/* 560 */
782
,
175
,
163
,
166
,
168
,
951
,
302
,
303
,
304
,
307
,
/* 570 */
308
,
200
,
295
,
291
,
293
,
76
,
40
,
319
,
946
,
945
,
/* 580 */
328
,
1183
,
112
,
1182
,
840
,
1179
,
73
,
179
,
335
,
1175
,
/* 590 */
118
,
1174
,
46
,
289
,
1171
,
287
,
180
,
971
,
41
,
38
,
/* 600 */
201
,
934
,
127
,
932
,
129
,
130
,
930
,
284
,
929
,
263
,
/* 610 */
190
,
191
,
926
,
925
,
924
,
923
,
922
,
921
,
920
,
194
,
/* 620 */
196
,
917
,
45
,
915
,
913
,
911
,
198
,
908
,
199
,
904
,
/* 630 */
306
,
123
,
276
,
83
,
88
,
345
,
286
,
1105
,
346
,
347
,
/* 640 */
348
,
349
,
350
,
351
,
360
,
884
,
225
,
264
,
247
,
301
,
/* 650 */
265
,
883
,
267
,
222
,
223
,
268
,
882
,
106
,
950
,
949
,
/* 660 */
865
,
272
,
864
,
70
,
296
,
8
,
278
,
758
,
89
,
183
,
/* 670 */
928
,
927
,
972
,
181
,
186
,
182
,
184
,
185
,
187
,
142
,
/* 680 */
143
,
144
,
28
,
919
,
918
,
784
,
158
,
145
,
973
,
910
,
/* 690 */
909
,
795
,
159
,
1
,
31
,
169
,
167
,
170
,
789
,
2
,
/* 700 */
160
,
90
,
237
,
791
,
91
,
290
,
29
,
9
,
30
,
10
,
/* 710 */
11
,
25
,
298
,
26
,
98
,
100
,
34
,
649
,
102
,
103
,
/* 720 */
684
,
35
,
104
,
682
,
681
,
680
,
678
,
677
,
676
,
673
,
/* 730 */
639
,
317
,
107
,
325
,
841
,
326
,
109
,
110
,
5
,
111
,
/* 740 */
839
,
6
,
68
,
113
,
69
,
37
,
117
,
119
,
716
,
715
,
/* 750 */
712
,
665
,
663
,
655
,
661
,
657
,
659
,
653
,
651
,
686
,
/* 760 */
685
,
683
,
679
,
675
,
674
,
189
,
637
,
602
,
888
,
887
,
/* 770 */
887
,
887
,
887
,
887
,
887
,
887
,
887
,
887
,
887
,
887
,
/* 780 */
887
,
147
,
148
,
};
static
const
YYCODETYPE
yy_lookahead
[]
=
{
/* 0 */
207
,
1
,
20
0
,
200
,
1
,
266
,
206
,
5
,
266
,
9
,
/* 10 */
200
,
201
,
9
,
13
,
14
,
0
,
16
,
17
,
20
0
,
277
,
/* 20 */
20
,
21
,
22
,
23
,
200
,
25
,
26
,
27
,
28
,
29
,
/* 0 */
207
,
1
,
20
6
,
266
,
1
,
266
,
206
,
5
,
266
,
9
,
/* 10 */
200
,
201
,
9
,
13
,
14
,
200
,
16
,
17
,
0
,
277
,
/* 20 */
20
,
21
,
22
,
23
,
5
,
25
,
26
,
27
,
28
,
29
,
/* 30 */
30
,
238
,
239
,
240
,
241
,
35
,
36
,
35
,
36
,
39
,
/* 40 */
40
,
41
,
13
,
14
,
2
42
,
16
,
17
,
244
,
246
,
20
,
/* 50 */
21
,
22
,
23
,
5
,
25
,
26
,
27
,
28
,
29
,
30
,
/* 60 */
2
66
,
206
,
198
,
199
,
35
,
36
,
266
,
200
,
39
,
40
,
/* 70 */
41
,
13
,
14
,
2
66
,
16
,
17
,
209
,
277
,
20
,
21
,
/* 80 */
22
,
23
,
1
,
25
,
26
,
27
,
28
,
29
,
30
,
89
,
/* 90 */
9
,
267
,
274
,
35
,
36
,
248
,
249
,
39
,
40
,
41
,
/* 100 */
1
,
86
,
86
,
13
,
14
,
200
,
16
,
17
,
9
,
245
,
/* 110 */
20
,
21
,
22
,
23
,
85
,
25
,
26
,
27
,
28
,
29
,
/* 120 */
30
,
266
,
266
,
200
,
243
,
35
,
36
,
263
,
247
,
3
9
,
/* 130 */
40
,
41
,
277
,
64
,
65
,
66
,
200
,
39
,
40
,
41
,
/* 140 */
71
,
72
,
73
,
74
,
75
,
93
,
47
,
48
,
49
,
50
,
/* 150 */
5
1
,
52
,
53
,
54
,
55
,
56
,
57
,
58
,
59
,
6
0
,
/* 160 */
61
,
14
,
63
,
16
,
17
,
84
,
250
,
20
,
21
,
22
,
/* 170 */
23
,
207
,
25
,
26
,
27
,
28
,
29
,
30
,
84
,
274
,
/* 180 */
264
,
276
,
35
,
36
,
200
,
200
,
39
,
40
,
41
,
16
,
/* 190 */
17
,
268
,
269
,
20
,
21
,
22
,
23
,
144
,
25
,
26
,
/* 200 */
27
,
28
,
29
,
30
,
206
,
241
,
153
,
154
,
35
,
36
,
/* 210 */
274
,
117
,
39
,
40
,
41
,
101
,
102
,
103
,
104
,
105
,
/* 220 */
1
06
,
107
,
108
,
109
,
110
,
111
,
112
,
113
,
114
,
115
,
/* 230 */
46
,
246
,
222
,
223
,
224
,
225
,
226
,
227
,
228
,
229
,
/* 240 */
230
,
231
,
232
,
233
,
234
,
235
,
236
,
63
,
243
,
1
,
/* 250 */
2
,
245
,
247
,
5
,
70
,
7
,
272
,
9
,
274
,
70
,
/* 260 */
76
,
77
,
78
,
79
,
266
,
1
,
2
,
83
,
84
,
5
,
/* 270 */
266
,
7
,
200
,
9
,
253
,
277
,
84
,
27
,
28
,
29
,
/* 280 */
30
,
89
,
249
,
35
,
36
,
35
,
36
,
39
,
200
,
39
,
/* 290 */
40
,
41
,
271
,
64
,
65
,
66
,
127
,
128
,
266
,
35
,
/* 300 */
3
6
,
72
,
73
,
74
,
75
,
121
,
84
,
5
,
2
,
7
,
/* 310 */
118
,
5
,
80
,
7
,
242
,
9
,
2
,
266
,
24
6
,
5
,
/* 320 */
91
,
7
,
84
,
9
,
70
,
93
,
5
,
143
,
7
,
145
,
/* 330 */
242
,
5
,
84
,
7
,
246
,
146
,
152
,
148
,
247
,
150
,
/* 340 */
151
,
35
,
36
,
121
,
101
,
123
,
103
,
104
,
84
,
35
,
/* 350 */
3
6
,
108
,
64
,
65
,
66
,
112
,
39
,
114
,
115
,
121
,
/* 360 */
100
,
73
,
74
,
75
,
200
,
200
,
200
,
119
,
120
,
245
,
/* 370 */
82
,
200
,
220
,
221
,
126
,
222
,
200
,
224
,
225
,
67
,
/* 380 */
68
,
69
,
229
,
119
,
120
,
200
,
233
,
263
,
235
,
236
,
/* 390 */
126
,
35
,
36
,
200
,
200
,
39
,
40
,
41
,
15
,
139
,
/* 400 */
146
,
245
,
148
,
205
,
150
,
151
,
242
,
242
,
242
,
211
,
/* 410 */
246
,
246
,
246
,
242
,
64
,
65
,
66
,
246
,
242
,
263
,
/* 420 */
2
00
,
200
,
246
,
207
,
78
,
119
,
120
,
242
,
126
,
209
,
/* 430 */
209
,
246
,
205
,
119
,
120
,
242
,
242
,
100
,
211
,
246
,
/* 440 */
2
46
,
124
,
205
,
85
,
85
,
85
,
85
,
126
,
211
,
85
,
/* 450 */
85
,
85
,
100
,
85
,
85
,
239
,
85
,
1
,
100
,
100
,
/* 460 */
85
,
10
0
,
125
,
85
,
85
,
100
,
100
,
62
,
100
,
100
,
/* 470 */
8
5
,
100
,
5
,
84
,
7
,
100
,
80
,
81
,
100
,
100
,
/* 480 */
266
,
135
,
122
,
266
,
266
,
100
,
122
,
275
,
147
,
84
,
/* 490 */
149
,
266
,
147
,
141
,
149
,
39
,
147
,
266
,
149
,
5
,
/* 500 */
266
,
7
,
119
,
237
,
5
,
116
,
7
,
266
,
266
,
147
,
/* 510 */
147
,
149
,
149
,
266
,
147
,
266
,
149
,
266
,
249
,
266
,
/* 520 */
2
49
,
266
,
266
,
266
,
237
,
200
,
237
,
237
,
237
,
237
,
/* 530 */
2
37
,
200
,
200
,
265
,
200
,
200
,
200
,
275
,
200
,
24
5
,
/* 540 */
2
45
,
62
,
200
,
200
,
200
,
245
,
270
,
251
,
200
,
202
,
/* 550 */
270
,
200
,
2
70
,
200
,
200
,
200
,
270
,
200
,
261
,
126
,
/* 560 */
262
,
260
,
259
,
258
,
257
,
256
,
255
,
254
,
129
,
133
,
/* 570 */
200
,
131
,
200
,
200
,
200
,
138
,
200
,
200
,
140
,
137
,
/* 580 */
200
,
200
,
200
,
136
,
200
,
130
,
200
,
200
,
200
,
132
,
/* 590 */
200
,
200
,
200
,
200
,
200
,
200
,
142
,
200
,
200
,
200
,
/* 600 */
200
,
200
,
200
,
200
,
200
,
92
,
200
,
200
,
200
,
200
,
/* 40 */
40
,
41
,
13
,
14
,
2
00
,
16
,
17
,
248
,
249
,
20
,
/* 50 */
21
,
22
,
23
,
209
,
25
,
26
,
27
,
28
,
29
,
30
,
/* 60 */
2
00
,
5
,
266
,
7
,
35
,
36
,
266
,
266
,
39
,
40
,
/* 70 */
41
,
13
,
14
,
2
77
,
16
,
17
,
207
,
277
,
20
,
21
,
/* 80 */
22
,
23
,
267
,
25
,
26
,
27
,
28
,
29
,
30
,
200
,
/* 90 */
90
,
200
,
1
,
35
,
36
,
86
,
200
,
39
,
40
,
41
,
/* 100 */
9
,
35
,
36
,
200
,
86
,
39
,
40
,
41
,
13
,
14
,
/* 110 */
241
,
16
,
17
,
206
,
85
,
20
,
21
,
22
,
23
,
1
,
/* 120 */
25
,
26
,
27
,
28
,
29
,
30
,
205
,
9
,
268
,
26
9
,
/* 130 */
35
,
36
,
211
,
242
,
39
,
40
,
41
,
246
,
47
,
48
,
/* 140 */
49
,
50
,
51
,
52
,
53
,
54
,
55
,
56
,
57
,
58
,
/* 150 */
5
9
,
60
,
61
,
14
,
63
,
16
,
17
,
200
,
101
,
2
0
,
/* 160 */
21
,
22
,
23
,
274
,
25
,
26
,
27
,
28
,
29
,
30
,
/* 170 */
274
,
245
,
276
,
266
,
35
,
36
,
70
,
274
,
39
,
40
,
/* 180 */
41
,
16
,
17
,
127
,
277
,
20
,
21
,
22
,
23
,
263
,
/* 190 */
25
,
26
,
27
,
28
,
29
,
30
,
102
,
140
,
104
,
105
,
/* 200 */
35
,
36
,
84
,
109
,
39
,
40
,
41
,
113
,
62
,
115
,
/* 210 */
116
,
102
,
103
,
104
,
105
,
106
,
107
,
108
,
109
,
110
,
/* 220 */
1
11
,
112
,
113
,
114
,
115
,
116
,
198
,
199
,
94
,
272
,
/* 230 */
84
,
274
,
222
,
223
,
224
,
225
,
226
,
227
,
228
,
229
,
/* 240 */
230
,
231
,
232
,
233
,
234
,
235
,
236
,
46
,
1
,
2
,
/* 250 */
84
,
70
,
5
,
147
,
7
,
149
,
9
,
151
,
152
,
205
,
/* 260 */
1
,
39
,
40
,
41
,
63
,
211
,
1
,
2
,
9
,
200
,
/* 270 */
5
,
70
,
7
,
245
,
9
,
128
,
129
,
76
,
77
,
78
,
/* 280 */
79
,
266
,
35
,
36
,
83
,
84
,
39
,
245
,
122
,
266
,
/* 290 */
124
,
263
,
200
,
200
,
27
,
28
,
29
,
30
,
200
,
84
,
/* 300 */
3
5
,
36
,
35
,
36
,
266
,
263
,
39
,
40
,
41
,
2
,
/* 310 */
200
,
242
,
5
,
200
,
7
,
246
,
9
,
2
,
26
6
,
5
,
/* 320 */
5
,
7
,
7
,
122
,
9
,
67
,
68
,
69
,
147
,
200
,
/* 330 */
149
,
84
,
151
,
152
,
242
,
242
,
200
,
122
,
246
,
246
,
/* 340 */
242
,
200
,
35
,
36
,
246
,
144
,
266
,
146
,
89
,
84
,
/* 350 */
3
5
,
36
,
242
,
200
,
153
,
242
,
246
,
249
,
84
,
246
,
/* 360 */
249
,
64
,
65
,
66
,
90
,
266
,
145
,
120
,
121
,
72
,
/* 370 */
73
,
74
,
75
,
244
,
127
,
154
,
155
,
222
,
242
,
224
,
/* 380 */
225
,
39
,
246
,
242
,
229
,
120
,
121
,
246
,
233
,
92
,
/* 390 */
235
,
236
,
127
,
119
,
78
,
242
,
64
,
65
,
66
,
246
,
/* 400 */
200
,
266
,
200
,
71
,
72
,
73
,
74
,
75
,
64
,
65
,
/* 410 */
66
,
243
,
64
,
65
,
66
,
247
,
243
,
73
,
74
,
75
,
/* 420 */
2
47
,
207
,
253
,
200
,
200
,
80
,
82
,
120
,
121
,
250
,
/* 430 */
101
,
205
,
209
,
209
,
85
,
120
,
121
,
211
,
85
,
94
,
/* 440 */
2
71
,
127
,
242
,
264
,
85
,
85
,
246
,
85
,
246
,
85
,
/* 450 */
220
,
221
,
136
,
239
,
101
,
126
,
101
,
85
,
85
,
85
,
/* 460 */
85
,
10
1
,
5
,
101
,
7
,
101
,
5
,
125
,
7
,
85
,
/* 470 */
8
4
,
1
,
123
,
101
,
101
,
101
,
101
,
85
,
85
,
15
,
/* 480 */
85
,
148
,
123
,
150
,
148
,
101
,
150
,
148
,
5
,
150
,
/* 490 */
7
,
84
,
247
,
101
,
101
,
266
,
101
,
142
,
148
,
5
,
/* 500 */
150
,
7
,
80
,
81
,
118
,
148
,
266
,
150
,
266
,
39
,
/* 510 */
266
,
148
,
266
,
150
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 520 */
2
66
,
249
,
245
,
237
,
117
,
237
,
237
,
237
,
237
,
237
,
/* 530 */
2
00
,
237
,
245
,
265
,
200
,
200
,
275
,
200
,
200
,
27
5
,
/* 540 */
2
00
,
200
,
62
,
245
,
251
,
245
,
200
,
200
,
270
,
270
,
/* 550 */
270
,
200
,
2
00
,
270
,
200
,
259
,
200
,
262
,
200
,
260
,
/* 560 */
127
,
200
,
261
,
258
,
256
,
200
,
200
,
200
,
200
,
200
,
/* 570 */
200
,
200
,
134
,
132
,
137
,
139
,
200
,
200
,
200
,
200
,
/* 580 */
200
,
200
,
200
,
200
,
120
,
200
,
141
,
200
,
200
,
200
,
/* 590 */
200
,
200
,
138
,
131
,
200
,
130
,
200
,
200
,
200
,
200
,
/* 600 */
200
,
200
,
200
,
200
,
200
,
200
,
200
,
133
,
200
,
200
,
/* 610 */
200
,
200
,
200
,
200
,
200
,
200
,
200
,
200
,
200
,
200
,
/* 620 */
200
,
200
,
200
,
200
,
200
,
200
,
200
,
200
,
200
,
200
,
/* 630 */
200
,
99
,
98
,
202
,
202
,
53
,
202
,
202
,
95
,
97
,
/* 640 */
57
,
96
,
94
,
86
,
5
,
202
,
202
,
202
,
155
,
5
,
/* 650 */
5
,
202
,
155
,
202
,
5
,
5
,
210
,
207
,
210
,
103
,
/* 660 */
10
2
,
144
,
122
,
117
,
84
,
84
,
202
,
202
,
100
,
20
3
,
/* 670 */
2
17
,
219
,
213
,
203
,
214
,
202
,
218
,
216
,
215
,
203
,
/* 680 */
2
12
,
203
,
202
,
221
,
202
,
202
,
85
,
100
,
204
,
208
,
/* 690 */
85
,
84
,
84
,
252
,
85
,
85
,
100
,
84
,
1
,
85
,
/* 700 */
84
,
84
,
100
,
134
,
100
,
134
,
84
,
84
,
117
,
84
,
/* 710 */
118
,
80
,
72
,
5
,
90
,
89
,
9
,
90
,
89
,
5
,
/* 720 */
5
,
5
,
5
,
5
,
5
,
5
,
15
,
80
,
87
,
26
,
/* 730 */
8
8
,
85
,
84
,
61
,
119
,
84
,
100
,
16
,
149
,
149
,
/* 740 */
16
,
5
,
149
,
149
,
5
,
85
,
5
,
5
,
5
,
5
,
/* 750 */
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 760 */
87
,
100
,
62
,
0
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 770 */
278
,
278
,
278
,
278
,
278
,
278
,
21
,
21
,
278
,
278
,
/* 780 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 620 */
200
,
200
,
143
,
200
,
200
,
200
,
200
,
200
,
200
,
200
,
/* 630 */
93
,
100
,
202
,
202
,
202
,
99
,
202
,
202
,
53
,
96
,
/* 640 */
98
,
57
,
97
,
95
,
86
,
5
,
202
,
156
,
202
,
202
,
/* 650 */
5
,
5
,
156
,
202
,
202
,
5
,
5
,
207
,
210
,
210
,
/* 660 */
10
4
,
145
,
103
,
123
,
118
,
84
,
101
,
85
,
101
,
21
3
,
/* 670 */
2
02
,
202
,
219
,
218
,
215
,
217
,
216
,
214
,
212
,
203
,
/* 680 */
2
03
,
203
,
84
,
202
,
202
,
85
,
84
,
203
,
221
,
202
,
/* 690 */
202
,
85
,
84
,
208
,
252
,
255
,
257
,
254
,
85
,
204
,
/* 700 */
101
,
84
,
1
,
85
,
84
,
84
,
101
,
135
,
101
,
135
,
/* 710 */
84
,
84
,
118
,
84
,
119
,
80
,
91
,
5
,
90
,
72
,
/* 720 */
9
,
91
,
90
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 730 */
8
7
,
15
,
80
,
26
,
120
,
61
,
88
,
88
,
84
,
150
,
/* 740 */
85
,
84
,
16
,
150
,
16
,
101
,
150
,
150
,
5
,
5
,
/* 750 */
8
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 760 */
5
,
5
,
5
,
5
,
5
,
101
,
87
,
62
,
0
,
278
,
/* 770 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
/* 780 */
278
,
21
,
21
,
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
,
...
...
@@ -385,114 +386,114 @@ static const YYCODETYPE yy_lookahead[] = {
/* 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
,
/* 970 */
278
,
278
,
278
,
278
,
278
,
/* 970 */
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
278
,
};
#define YY_SHIFT_COUNT (36
2
)
#define YY_SHIFT_COUNT (36
4
)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (76
3
)
#define YY_SHIFT_MAX (76
8
)
static
const
unsigned
short
int
yy_shift_ofst
[]
=
{
/* 0 */
184
,
114
,
243
,
16
,
248
,
264
,
264
,
81
,
3
,
3
,
/* 0 */
201
,
109
,
94
,
9
,
247
,
265
,
265
,
118
,
3
,
3
,
/* 10 */
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
/* 20 */
3
,
0
,
9
9
,
264
,
306
,
314
,
314
,
238
,
238
,
3
,
/* 30 */
3
,
1
69
,
3
,
15
,
3
,
3
,
3
,
3
,
232
,
16
,
/* 40 */
52
,
52
,
48
,
778
,
264
,
264
,
264
,
264
,
264
,
264
,
/* 50 */
26
4
,
264
,
264
,
264
,
264
,
264
,
264
,
264
,
264
,
264
,
/* 60 */
26
4
,
264
,
264
,
264
,
264
,
264
,
306
,
314
,
306
,
306
,
/* 70 */
222
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
3
,
3
,
/* 80 */
3
,
317
,
3
,
3
,
3
,
238
,
238
,
3
,
3
,
3
,
/* 90 */
3
,
346
,
346
,
337
,
238
,
3
,
3
,
3
,
3
,
3
,
/* 20 */
3
,
0
,
9
1
,
265
,
307
,
315
,
315
,
215
,
215
,
3
,
/* 30 */
3
,
1
47
,
3
,
18
,
3
,
3
,
3
,
3
,
345
,
9
,
/* 40 */
134
,
134
,
19
,
783
,
265
,
265
,
265
,
265
,
265
,
265
,
/* 50 */
26
5
,
265
,
265
,
265
,
265
,
265
,
265
,
265
,
265
,
265
,
/* 60 */
26
5
,
265
,
265
,
265
,
265
,
265
,
307
,
315
,
307
,
307
,
/* 70 */
166
,
2
,
2
,
2
,
2
,
2
,
2
,
259
,
2
,
3
,
/* 80 */
3
,
3
,
342
,
3
,
3
,
3
,
215
,
215
,
3
,
3
,
/* 90 */
3
,
3
,
316
,
316
,
329
,
215
,
3
,
3
,
3
,
3
,
/* 100 */
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
/* 110 */
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
/* 120 */
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
/* 130 */
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
/* 140 */
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
/* 150 */
3
,
3
,
3
,
479
,
479
,
479
,
433
,
433
,
433
,
433
,
/* 160 */
4
79
,
479
,
437
,
438
,
436
,
442
,
447
,
440
,
455
,
439
,
/* 170 */
4
57
,
454
,
479
,
479
,
479
,
513
,
513
,
16
,
479
,
479
,
/* 180 */
532
,
534
,
582
,
543
,
542
,
583
,
545
,
548
,
48
,
47
9
,
/* 190 */
4
79
,
557
,
557
,
479
,
557
,
479
,
557
,
479
,
479
,
778
,
/* 200 */
7
78
,
29
,
58
,
58
,
90
,
58
,
147
,
173
,
250
,
250
,
/* 210 */
2
50
,
250
,
250
,
250
,
229
,
69
,
288
,
356
,
356
,
35
6
,
/* 220 */
356
,
189
,
254
,
53
,
192
,
98
,
98
,
302
,
321
,
312
,
/* 230 */
350
,
358
,
360
,
364
,
359
,
365
,
366
,
352
,
260
,
361
,
/* 240 */
3
68
,
369
,
371
,
326
,
467
,
375
,
94
,
378
,
379
,
456
,
/* 250 */
4
05
,
383
,
385
,
341
,
345
,
349
,
494
,
499
,
362
,
363
,
/* 260 */
3
89
,
367
,
396
,
639
,
493
,
644
,
645
,
497
,
649
,
650
,
/* 270 */
556
,
558
,
517
,
540
,
546
,
580
,
601
,
581
,
568
,
587
,
/* 280 */
605
,
607
,
609
,
608
,
610
,
596
,
613
,
614
,
616
,
697
,
/* 290 */
617
,
602
,
569
,
604
,
571
,
622
,
546
,
623
,
591
,
625
,
/* 300 */
592
,
631
,
624
,
626
,
640
,
708
,
627
,
629
,
707
,
714
,
/* 310 */
71
5
,
716
,
717
,
718
,
719
,
720
,
641
,
711
,
647
,
64
2
,
/* 320 */
648
,
64
6
,
615
,
651
,
703
,
672
,
721
,
589
,
590
,
636
,
/* 330 */
636
,
636
,
636
,
724
,
593
,
594
,
636
,
636
,
636
,
736
,
/* 340 */
739
,
660
,
636
,
741
,
742
,
743
,
744
,
745
,
746
,
747
,
/* 350 */
7
48
,
749
,
750
,
751
,
752
,
753
,
754
,
661
,
673
,
755
,
/* 360 */
756
,
700
,
763
,
/* 150 */
3
,
3
,
3
,
3
,
480
,
480
,
480
,
433
,
433
,
433
,
/* 160 */
4
33
,
480
,
480
,
436
,
445
,
438
,
454
,
437
,
441
,
462
,
/* 170 */
4
65
,
474
,
479
,
480
,
480
,
480
,
537
,
537
,
9
,
480
,
/* 180 */
480
,
531
,
536
,
585
,
543
,
542
,
584
,
545
,
548
,
1
9
,
/* 190 */
4
80
,
480
,
558
,
558
,
480
,
558
,
480
,
558
,
480
,
480
,
/* 200 */
7
83
,
783
,
29
,
58
,
58
,
95
,
58
,
139
,
165
,
267
,
/* 210 */
2
67
,
267
,
267
,
267
,
267
,
297
,
332
,
344
,
66
,
6
6
,
/* 220 */
66
,
66
,
106
,
181
,
221
,
274
,
222
,
222
,
56
,
314
,
/* 230 */
258
,
348
,
353
,
349
,
359
,
360
,
362
,
364
,
355
,
57
,
/* 240 */
3
72
,
373
,
374
,
375
,
457
,
461
,
384
,
386
,
392
,
393
,
/* 250 */
4
70
,
146
,
464
,
395
,
333
,
336
,
339
,
483
,
494
,
350
,
/* 260 */
3
57
,
407
,
363
,
422
,
640
,
491
,
645
,
646
,
496
,
650
,
/* 270 */
651
,
556
,
559
,
516
,
540
,
546
,
581
,
582
,
598
,
565
,
/* 280 */
567
,
600
,
602
,
606
,
608
,
613
,
599
,
617
,
618
,
620
,
/* 290 */
701
,
621
,
605
,
572
,
607
,
574
,
626
,
546
,
627
,
594
,
/* 300 */
629
,
595
,
635
,
625
,
628
,
647
,
712
,
630
,
632
,
711
,
/* 310 */
71
8
,
719
,
720
,
721
,
722
,
723
,
724
,
643
,
716
,
65
2
,
/* 320 */
648
,
64
9
,
654
,
655
,
614
,
657
,
707
,
674
,
726
,
589
,
/* 330 */
593
,
644
,
644
,
644
,
644
,
728
,
596
,
597
,
644
,
644
,
/* 340 */
644
,
743
,
744
,
665
,
644
,
746
,
747
,
748
,
749
,
750
,
/* 350 */
7
51
,
752
,
753
,
754
,
755
,
756
,
757
,
758
,
759
,
664
,
/* 360 */
679
,
760
,
761
,
705
,
768
,
};
#define YY_REDUCE_COUNT (20
0
)
#define YY_REDUCE_MIN (-26
1
)
#define YY_REDUCE_MAX (4
84
)
#define YY_REDUCE_COUNT (20
1
)
#define YY_REDUCE_MIN (-26
3
)
#define YY_REDUCE_MAX (4
95
)
static
const
short
yy_reduce_ofst
[]
=
{
/* 0 */
-
136
,
10
,
153
,
-
207
,
-
200
,
-
145
,
-
2
,
-
77
,
-
198
,
-
95
,
/* 10 */
-
16
,
72
,
88
,
164
,
165
,
166
,
171
,
176
,
185
,
19
3
,
/* 20 */
194
,
-
176
,
-
190
,
-
258
,
-
153
,
-
119
,
5
,
124
,
156
,
-
182
,
/* 30 */
-
64
,
21
,
-
197
,
-
36
,
-
133
,
220
,
221
,
-
15
,
198
,
216
,
/* 40 */
227
,
237
,
152
,
-
84
,
-
261
,
-
206
,
-
193
,
-
144
,
4
,
32
,
/* 50 */
5
1
,
214
,
217
,
218
,
225
,
231
,
234
,
241
,
242
,
247
,
/* 60 */
249
,
25
1
,
253
,
255
,
256
,
257
,
33
,
91
,
269
,
271
,
/* 70 */
6
,
266
,
287
,
289
,
290
,
291
,
292
,
293
,
325
,
331
,
/* 80 */
33
2
,
268
,
334
,
335
,
336
,
294
,
295
,
338
,
342
,
343
,
/* 90 */
3
44
,
212
,
262
,
296
,
300
,
348
,
351
,
353
,
354
,
355
,
/* 100 */
3
57
,
370
,
372
,
373
,
374
,
376
,
377
,
380
,
381
,
382
,
/* 110 */
3
84
,
386
,
387
,
388
,
390
,
391
,
392
,
393
,
394
,
395
,
/* 120 */
39
7
,
398
,
399
,
400
,
401
,
402
,
403
,
404
,
406
,
407
,
/* 130 */
40
8
,
409
,
410
,
411
,
412
,
413
,
414
,
415
,
416
,
417
,
/* 140 */
41
8
,
419
,
420
,
421
,
422
,
423
,
424
,
425
,
426
,
427
,
/* 150 */
42
8
,
429
,
430
,
347
,
431
,
432
,
276
,
280
,
282
,
286
,
/* 160 */
434
,
435
,
298
,
297
,
301
,
303
,
305
,
307
,
309
,
311
,
/* 170 */
313
,
441
,
443
,
444
,
445
,
446
,
448
,
450
,
449
,
451
,
/* 180 */
452
,
45
8
,
453
,
459
,
461
,
460
,
463
,
468
,
462
,
464
,
/* 190 */
46
5
,
466
,
470
,
473
,
476
,
480
,
478
,
482
,
483
,
481
,
/* 200 */
48
4
,
/* 0 */
28
,
10
,
155
,
-
207
,
-
204
,
-
200
,
-
93
,
-
140
,
-
109
,
-
104
,
/* 10 */
-
43
,
69
,
92
,
93
,
98
,
110
,
113
,
136
,
141
,
15
3
,
/* 20 */
200
,
-
185
,
-
190
,
-
258
,
-
201
,
168
,
173
,
-
74
,
42
,
-
111
,
/* 30 */
-
97
,
169
,
129
,
-
131
,
-
156
,
223
,
224
,
202
,
-
79
,
214
,
/* 40 */
54
,
226
,
230
,
179
,
-
263
,
-
261
,
-
199
,
15
,
23
,
38
,
/* 50 */
5
2
,
80
,
99
,
135
,
229
,
240
,
242
,
244
,
246
,
248
,
/* 60 */
249
,
25
0
,
251
,
252
,
253
,
254
,
108
,
245
,
111
,
272
,
/* 70 */
277
,
286
,
288
,
289
,
290
,
291
,
292
,
330
,
294
,
334
,
/* 80 */
33
5
,
337
,
268
,
338
,
340
,
341
,
287
,
298
,
346
,
347
,
/* 90 */
3
51
,
352
,
261
,
264
,
293
,
300
,
354
,
356
,
358
,
361
,
/* 100 */
3
65
,
366
,
367
,
368
,
369
,
370
,
371
,
376
,
377
,
378
,
/* 110 */
3
79
,
380
,
381
,
382
,
383
,
385
,
387
,
388
,
389
,
390
,
/* 120 */
39
1
,
394
,
396
,
397
,
398
,
399
,
400
,
401
,
402
,
403
,
/* 130 */
40
4
,
405
,
406
,
408
,
409
,
410
,
411
,
412
,
413
,
414
,
/* 140 */
41
5
,
416
,
417
,
418
,
419
,
420
,
421
,
423
,
424
,
425
,
/* 150 */
42
6
,
427
,
428
,
429
,
430
,
431
,
432
,
278
,
279
,
280
,
/* 160 */
283
,
434
,
435
,
295
,
301
,
299
,
296
,
305
,
439
,
308
,
/* 170 */
440
,
443
,
442
,
444
,
446
,
447
,
448
,
449
,
450
,
451
,
/* 180 */
452
,
45
3
,
455
,
458
,
456
,
460
,
463
,
459
,
466
,
467
,
/* 190 */
46
8
,
469
,
476
,
477
,
481
,
478
,
482
,
484
,
487
,
488
,
/* 200 */
48
5
,
495
,
};
static
const
YYACTIONTYPE
yy_default
[]
=
{
/* 0 */
88
1
,
943
,
931
,
940
,
1162
,
1162
,
1162
,
881
,
881
,
881
,
/* 10 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 20 */
88
1
,
1069
,
901
,
1162
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 30 */
88
1
,
1084
,
881
,
940
,
881
,
881
,
881
,
881
,
949
,
940
,
/* 40 */
9
49
,
949
,
881
,
1064
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 50 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 60 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 70 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 80 */
88
1
,
1071
,
1077
,
1074
,
881
,
881
,
881
,
1079
,
881
,
881
,
/* 90 */
88
1
,
1103
,
1103
,
1062
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 100 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 110 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 120 */
88
1
,
881
,
881
,
881
,
881
,
881
,
929
,
881
,
927
,
88
1
,
/* 130 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 140 */
88
1
,
881
,
881
,
881
,
881
,
912
,
881
,
881
,
881
,
881
,
/* 150 */
88
1
,
881
,
899
,
903
,
903
,
903
,
881
,
881
,
881
,
881
,
/* 160 */
903
,
903
,
1110
,
1114
,
1096
,
1108
,
1104
,
1091
,
1089
,
1087
,
/* 170 */
109
5
,
1118
,
903
,
903
,
903
,
947
,
947
,
940
,
903
,
903
,
/* 180 */
9
65
,
963
,
961
,
953
,
959
,
955
,
957
,
951
,
881
,
903
,
/* 190 */
90
3
,
938
,
938
,
903
,
938
,
903
,
938
,
903
,
903
,
986
,
/* 200 */
1002
,
881
,
1119
,
1109
,
881
,
1161
,
1149
,
1148
,
1157
,
1156
,
/* 210 */
11
55
,
1147
,
1146
,
1145
,
881
,
881
,
881
,
1141
,
1144
,
1143
,
/* 220 */
114
2
,
881
,
881
,
881
,
881
,
1151
,
1150
,
881
,
881
,
881
,
/* 230 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
1115
,
1111
,
881
,
/* 240 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 250 */
1121
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 260 */
1010
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 270 */
88
1
,
881
,
881
,
1061
,
881
,
881
,
881
,
881
,
1073
,
1072
,
/* 280 */
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 290 */
88
1
,
1105
,
881
,
1097
,
881
,
881
,
1022
,
881
,
881
,
881
,
/* 300 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 310 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 320 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
1180
,
/* 330 */
1175
,
1176
,
1173
,
881
,
881
,
881
,
1172
,
1167
,
1168
,
881
,
/* 340 */
881
,
881
,
1165
,
881
,
881
,
881
,
881
,
881
,
881
,
881
,
/* 350 */
88
1
,
881
,
881
,
881
,
881
,
881
,
881
,
971
,
881
,
910
,
/* 360 */
908
,
881
,
881
,
/* 0 */
88
5
,
948
,
935
,
944
,
1167
,
1167
,
1167
,
885
,
885
,
885
,
/* 10 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 20 */
88
5
,
1074
,
905
,
1167
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 30 */
88
5
,
1089
,
885
,
944
,
885
,
885
,
885
,
885
,
954
,
944
,
/* 40 */
9
54
,
954
,
885
,
1069
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 50 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 60 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 70 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 80 */
88
5
,
885
,
1076
,
1082
,
1079
,
885
,
885
,
885
,
1084
,
885
,
/* 90 */
88
5
,
885
,
1108
,
1108
,
1067
,
885
,
885
,
885
,
885
,
885
,
/* 100 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 110 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 120 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
933
,
885
,
93
1
,
/* 130 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 140 */
88
5
,
885
,
885
,
885
,
885
,
885
,
916
,
885
,
885
,
885
,
/* 150 */
88
5
,
885
,
885
,
903
,
907
,
907
,
907
,
885
,
885
,
885
,
/* 160 */
885
,
907
,
907
,
1115
,
1119
,
1101
,
1113
,
1109
,
1096
,
1094
,
/* 170 */
109
2
,
1100
,
1123
,
907
,
907
,
907
,
952
,
952
,
944
,
907
,
/* 180 */
9
07
,
970
,
968
,
966
,
958
,
964
,
960
,
962
,
956
,
885
,
/* 190 */
90
7
,
907
,
942
,
942
,
907
,
942
,
907
,
942
,
907
,
907
,
/* 200 */
991
,
1007
,
885
,
1124
,
1114
,
885
,
1166
,
1154
,
1153
,
1162
,
/* 210 */
11
61
,
1160
,
1152
,
1151
,
1150
,
885
,
885
,
885
,
1146
,
1149
,
/* 220 */
114
8
,
1147
,
885
,
885
,
885
,
885
,
1156
,
1155
,
885
,
885
,
/* 230 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
1120
,
1116
,
/* 240 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 250 */
885
,
1126
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 260 */
885
,
1015
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 270 */
88
5
,
885
,
885
,
885
,
1066
,
885
,
885
,
885
,
885
,
1078
,
/* 280 */
1077
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 290 */
88
5
,
885
,
1110
,
885
,
1102
,
885
,
885
,
1027
,
885
,
885
,
/* 300 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 310 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 320 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
/* 330 */
885
,
1185
,
1180
,
1181
,
1178
,
885
,
885
,
885
,
1177
,
1172
,
/* 340 */
1173
,
885
,
885
,
885
,
1170
,
885
,
885
,
885
,
885
,
885
,
/* 350 */
88
5
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
885
,
976
,
/* 360 */
885
,
914
,
912
,
885
,
885
,
};
/********** End of lemon-generated parsing tables *****************************/
...
...
@@ -601,6 +602,7 @@ static const YYCODETYPE yyFallback[] = {
0
,
/* IF => nothing */
0
,
/* EXISTS => nothing */
0
,
/* PORT => nothing */
1
,
/* IPTOKEN => ID */
0
,
/* AS => nothing */
0
,
/* OUTPUTTYPE => nothing */
0
,
/* AGGREGATE => nothing */
...
...
@@ -698,7 +700,6 @@ static const YYCODETYPE yyFallback[] = {
1
,
/* STATEMENT => ID */
1
,
/* TRIGGER => ID */
1
,
/* VIEW => ID */
1
,
/* IPTOKEN => ID */
1
,
/* SEMI => ID */
1
,
/* NONE => ID */
1
,
/* PREV => ID */
...
...
@@ -884,104 +885,104 @@ static const char *const yyTokenName[] = {
/* 86 */
"IF"
,
/* 87 */
"EXISTS"
,
/* 88 */
"PORT"
,
/* 89 */
"
AS
"
,
/* 90 */
"
OUTPUTTYPE
"
,
/* 91 */
"
AGGREGAT
E"
,
/* 92 */
"
BUFSIZ
E"
,
/* 93 */
"
PPS
"
,
/* 94 */
"
TSERIE
S"
,
/* 95 */
"
DB
S"
,
/* 96 */
"
STORAGE
"
,
/* 97 */
"
QTIM
E"
,
/* 98 */
"
CONNS
"
,
/* 99 */
"
STATE
"
,
/* 100 */
"
COMMA
"
,
/* 101 */
"
KEEP
"
,
/* 102 */
"
CACHE
"
,
/* 103 */
"
REPLICA
"
,
/* 104 */
"
QUORUM
"
,
/* 105 */
"
DAYS
"
,
/* 106 */
"
MINROW
S"
,
/* 107 */
"M
AX
ROWS"
,
/* 108 */
"
BLOCK
S"
,
/* 109 */
"
CTIME
"
,
/* 110 */
"
WAL
"
,
/* 111 */
"
FSYNC
"
,
/* 112 */
"
COMP
"
,
/* 113 */
"
PRECISION
"
,
/* 114 */
"
UPDATE
"
,
/* 115 */
"
CACHELAST
"
,
/* 116 */
"
UNSIGNED
"
,
/* 117 */
"
TAGS
"
,
/* 118 */
"
USING
"
,
/* 119 */
"
NULL
"
,
/* 120 */
"N
OW
"
,
/* 121 */
"
SELECT
"
,
/* 122 */
"
UNION
"
,
/* 123 */
"
ALL
"
,
/* 124 */
"
DISTINCT
"
,
/* 125 */
"
FROM
"
,
/* 126 */
"
VARIABLE
"
,
/* 127 */
"
INTERVAL
"
,
/* 128 */
"
EVERY
"
,
/* 129 */
"
SESSION
"
,
/* 130 */
"S
TATE_WINDOW
"
,
/* 131 */
"
FILL
"
,
/* 132 */
"
SLIDING
"
,
/* 133 */
"
ORDER
"
,
/* 134 */
"
BY
"
,
/* 135 */
"
ASC
"
,
/* 136 */
"
GROUP
"
,
/* 137 */
"
HAVING
"
,
/* 138 */
"
LIMIT
"
,
/* 139 */
"
OFFSE
T"
,
/* 140 */
"
SLIMI
T"
,
/* 141 */
"S
OFFSE
T"
,
/* 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 */
"A
FTER
"
,
/* 158 */
"A
TTACH
"
,
/* 159 */
"
BEFORE
"
,
/* 160 */
"BE
GIN
"
,
/* 161 */
"
CASCADE
"
,
/* 162 */
"C
LUSTER
"
,
/* 163 */
"C
ONFLICT
"
,
/* 164 */
"CO
PY
"
,
/* 165 */
"
DEFERRED
"
,
/* 166 */
"DE
LIMITERS
"
,
/* 167 */
"DE
TACH
"
,
/* 168 */
"
E
ACH"
,
/* 169 */
"E
ND
"
,
/* 170 */
"E
XPLAIN
"
,
/* 171 */
"
FAIL
"
,
/* 172 */
"F
OR
"
,
/* 173 */
"
IGNORE
"
,
/* 174 */
"I
MMEDIAT
E"
,
/* 175 */
"I
NITIALLY
"
,
/* 176 */
"IN
STEAD
"
,
/* 177 */
"
KEY
"
,
/* 178 */
"
OF
"
,
/* 179 */
"
RAISE
"
,
/* 180 */
"R
EPLAC
E"
,
/* 181 */
"RE
STRICT
"
,
/* 182 */
"R
OW
"
,
/* 183 */
"
STATEMENT
"
,
/* 184 */
"
TRIGGER
"
,
/* 185 */
"
VIEW
"
,
/* 186 */
"
IPTOKEN
"
,
/* 89 */
"
IPTOKEN
"
,
/* 90 */
"
AS
"
,
/* 91 */
"
OUTPUTTYP
E"
,
/* 92 */
"
AGGREGAT
E"
,
/* 93 */
"
BUFSIZE
"
,
/* 94 */
"
PP
S"
,
/* 95 */
"
TSERIE
S"
,
/* 96 */
"
DBS
"
,
/* 97 */
"
STORAG
E"
,
/* 98 */
"
QTIME
"
,
/* 99 */
"
CONNS
"
,
/* 100 */
"
STATE
"
,
/* 101 */
"
COMMA
"
,
/* 102 */
"
KEEP
"
,
/* 103 */
"
CACHE
"
,
/* 104 */
"
REPLICA
"
,
/* 105 */
"
QUORUM
"
,
/* 106 */
"
DAY
S"
,
/* 107 */
"M
IN
ROWS"
,
/* 108 */
"
MAXROW
S"
,
/* 109 */
"
BLOCKS
"
,
/* 110 */
"
CTIME
"
,
/* 111 */
"
WAL
"
,
/* 112 */
"
FSYNC
"
,
/* 113 */
"
COMP
"
,
/* 114 */
"
PRECISION
"
,
/* 115 */
"
UPDATE
"
,
/* 116 */
"
CACHELAST
"
,
/* 117 */
"
UNSIGNED
"
,
/* 118 */
"
TAGS
"
,
/* 119 */
"
USING
"
,
/* 120 */
"N
ULL
"
,
/* 121 */
"
NOW
"
,
/* 122 */
"
SELECT
"
,
/* 123 */
"
UNION
"
,
/* 124 */
"
ALL
"
,
/* 125 */
"
DISTINCT
"
,
/* 126 */
"
FROM
"
,
/* 127 */
"
VARIABLE
"
,
/* 128 */
"
INTERVAL
"
,
/* 129 */
"
EVERY
"
,
/* 130 */
"S
ESSION
"
,
/* 131 */
"
STATE_WINDOW
"
,
/* 132 */
"
FILL
"
,
/* 133 */
"
SLIDING
"
,
/* 134 */
"
ORDER
"
,
/* 135 */
"
BY
"
,
/* 136 */
"
ASC
"
,
/* 137 */
"
GROUP
"
,
/* 138 */
"
HAVING
"
,
/* 139 */
"
LIMI
T"
,
/* 140 */
"
OFFSE
T"
,
/* 141 */
"S
LIMI
T"
,
/* 142 */
"
SOFFSET
"
,
/* 143 */
"
WHERE
"
,
/* 144 */
"
RESET
"
,
/* 145 */
"
QUERY
"
,
/* 146 */
"
SYNCDB
"
,
/* 147 */
"
ADD
"
,
/* 148 */
"
COLUMN
"
,
/* 149 */
"
MODIFY
"
,
/* 150 */
"
TAG
"
,
/* 151 */
"
CHANGE
"
,
/* 152 */
"
SET
"
,
/* 153 */
"
KILL
"
,
/* 154 */
"
CONNECTION
"
,
/* 155 */
"
STREAM
"
,
/* 156 */
"
COLON
"
,
/* 157 */
"A
BORT
"
,
/* 158 */
"A
FTER
"
,
/* 159 */
"
ATTACH
"
,
/* 160 */
"BE
FORE
"
,
/* 161 */
"
BEGIN
"
,
/* 162 */
"C
ASCADE
"
,
/* 163 */
"C
LUSTER
"
,
/* 164 */
"CO
NFLICT
"
,
/* 165 */
"
COPY
"
,
/* 166 */
"DE
FERRED
"
,
/* 167 */
"DE
LIMITERS
"
,
/* 168 */
"
DET
ACH"
,
/* 169 */
"E
ACH
"
,
/* 170 */
"E
ND
"
,
/* 171 */
"
EXPLAIN
"
,
/* 172 */
"F
AIL
"
,
/* 173 */
"
FOR
"
,
/* 174 */
"I
GNOR
E"
,
/* 175 */
"I
MMEDIATE
"
,
/* 176 */
"IN
ITIALLY
"
,
/* 177 */
"
INSTEAD
"
,
/* 178 */
"
KEY
"
,
/* 179 */
"
OF
"
,
/* 180 */
"R
AIS
E"
,
/* 181 */
"RE
PLACE
"
,
/* 182 */
"R
ESTRICT
"
,
/* 183 */
"
ROW
"
,
/* 184 */
"
STATEMENT
"
,
/* 185 */
"
TRIGGER
"
,
/* 186 */
"
VIEW
"
,
/* 187 */
"SEMI"
,
/* 188 */
"NONE"
,
/* 189 */
"PREV"
,
...
...
@@ -1138,248 +1139,249 @@ static const char *const yyRuleName[] = {
/* 55 */
"ifnotexists ::= IF NOT EXISTS"
,
/* 56 */
"ifnotexists ::="
,
/* 57 */
"cmd ::= CREATE DNODE ids PORT ids"
,
/* 58 */
"cmd ::= CREATE ACCOUNT ids PASS ids acct_optr"
,
/* 59 */
"cmd ::= CREATE DATABASE ifnotexists ids db_optr"
,
/* 60 */
"cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize"
,
/* 61 */
"cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize"
,
/* 62 */
"cmd ::= CREATE USER ids PASS ids"
,
/* 63 */
"bufsize ::="
,
/* 64 */
"bufsize ::= BUFSIZE INTEGER"
,
/* 65 */
"pps ::="
,
/* 66 */
"pps ::= PPS INTEGER"
,
/* 67 */
"tseries ::="
,
/* 68 */
"tseries ::= TSERIES INTEGER"
,
/* 69 */
"dbs ::="
,
/* 70 */
"dbs ::= DBS INTEGER"
,
/* 71 */
"streams ::="
,
/* 72 */
"streams ::= STREAMS INTEGER"
,
/* 73 */
"storage ::="
,
/* 74 */
"storage ::= STORAGE INTEGER"
,
/* 75 */
"qtime ::="
,
/* 76 */
"qtime ::= QTIME INTEGER"
,
/* 77 */
"users ::="
,
/* 78 */
"users ::= USERS INTEGER"
,
/* 79 */
"conns ::="
,
/* 80 */
"conns ::= CONNS INTEGER"
,
/* 81 */
"state ::="
,
/* 82 */
"state ::= STATE ids"
,
/* 83 */
"acct_optr ::= pps tseries storage streams qtime dbs users conns state"
,
/* 84 */
"intitemlist ::= intitemlist COMMA intitem"
,
/* 85 */
"intitemlist ::= intitem"
,
/* 86 */
"intitem ::= INTEGER"
,
/* 87 */
"keep ::= KEEP intitemlist"
,
/* 88 */
"cache ::= CACHE INTEGER"
,
/* 89 */
"replica ::= REPLICA INTEGER"
,
/* 90 */
"quorum ::= QUORUM INTEGER"
,
/* 91 */
"days ::= DAYS INTEGER"
,
/* 92 */
"minrows ::= MINROWS INTEGER"
,
/* 93 */
"maxrows ::= MAXROWS INTEGER"
,
/* 94 */
"blocks ::= BLOCKS INTEGER"
,
/* 95 */
"ctime ::= CTIME INTEGER"
,
/* 96 */
"wal ::= WAL INTEGER"
,
/* 97 */
"fsync ::= FSYNC INTEGER"
,
/* 98 */
"comp ::= COMP INTEGER"
,
/* 99 */
"prec ::= PRECISION STRING"
,
/* 100 */
"update ::= UPDATE INTEGER"
,
/* 101 */
"cachelast ::= CACHELAST INTEGER"
,
/* 102 */
"db_optr ::="
,
/* 103 */
"db_optr ::= db_optr cache"
,
/* 104 */
"db_optr ::= db_optr replica"
,
/* 105 */
"db_optr ::= db_optr quorum"
,
/* 106 */
"db_optr ::= db_optr days"
,
/* 107 */
"db_optr ::= db_optr minrows"
,
/* 108 */
"db_optr ::= db_optr maxrows"
,
/* 109 */
"db_optr ::= db_optr blocks"
,
/* 110 */
"db_optr ::= db_optr ctime"
,
/* 111 */
"db_optr ::= db_optr wal"
,
/* 112 */
"db_optr ::= db_optr fsync"
,
/* 113 */
"db_optr ::= db_optr comp"
,
/* 114 */
"db_optr ::= db_optr prec"
,
/* 115 */
"db_optr ::= db_optr keep"
,
/* 116 */
"db_optr ::= db_optr update"
,
/* 117 */
"db_optr ::= db_optr cachelast"
,
/* 118 */
"alter_db_optr ::="
,
/* 119 */
"alter_db_optr ::= alter_db_optr replica"
,
/* 120 */
"alter_db_optr ::= alter_db_optr quorum"
,
/* 121 */
"alter_db_optr ::= alter_db_optr keep"
,
/* 122 */
"alter_db_optr ::= alter_db_optr blocks"
,
/* 123 */
"alter_db_optr ::= alter_db_optr comp"
,
/* 124 */
"alter_db_optr ::= alter_db_optr update"
,
/* 125 */
"alter_db_optr ::= alter_db_optr cachelast"
,
/* 126 */
"typename ::= ids"
,
/* 127 */
"typename ::= ids LP signed RP"
,
/* 128 */
"typename ::= ids UNSIGNED"
,
/* 129 */
"signed ::= INTEGER"
,
/* 130 */
"signed ::= PLUS INTEGER"
,
/* 131 */
"signed ::= MINUS INTEGER"
,
/* 132 */
"cmd ::= CREATE TABLE create_table_args"
,
/* 133 */
"cmd ::= CREATE TABLE create_stable_args"
,
/* 134 */
"cmd ::= CREATE STABLE create_stable_args"
,
/* 135 */
"cmd ::= CREATE TABLE create_table_list"
,
/* 136 */
"create_table_list ::= create_from_stable"
,
/* 137 */
"create_table_list ::= create_table_list create_from_stable"
,
/* 138 */
"create_table_args ::= ifnotexists ids cpxName LP columnlist RP"
,
/* 139 */
"create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP"
,
/* 140 */
"create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist1 RP"
,
/* 141 */
"create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist1 RP"
,
/* 142 */
"tagNamelist ::= tagNamelist COMMA ids"
,
/* 143 */
"tagNamelist ::= ids"
,
/* 144 */
"create_table_args ::= ifnotexists ids cpxName AS select"
,
/* 145 */
"columnlist ::= columnlist COMMA column"
,
/* 146 */
"columnlist ::= column"
,
/* 147 */
"column ::= ids typename"
,
/* 148 */
"tagitemlist1 ::= tagitemlist1 COMMA tagitem1"
,
/* 149 */
"tagitemlist1 ::= tagitem1"
,
/* 150 */
"tagitem1 ::= MINUS INTEGER"
,
/* 151 */
"tagitem1 ::= MINUS FLOAT"
,
/* 152 */
"tagitem1 ::= PLUS INTEGER"
,
/* 153 */
"tagitem1 ::= PLUS FLOAT"
,
/* 154 */
"tagitem1 ::= INTEGER"
,
/* 155 */
"tagitem1 ::= FLOAT"
,
/* 156 */
"tagitem1 ::= STRING"
,
/* 157 */
"tagitem1 ::= BOOL"
,
/* 158 */
"tagitem1 ::= NULL"
,
/* 159 */
"tagitem1 ::= NOW"
,
/* 160 */
"tagitemlist ::= tagitemlist COMMA tagitem"
,
/* 161 */
"tagitemlist ::= tagitem"
,
/* 162 */
"tagitem ::= INTEGER"
,
/* 163 */
"tagitem ::= FLOAT"
,
/* 164 */
"tagitem ::= STRING"
,
/* 165 */
"tagitem ::= BOOL"
,
/* 166 */
"tagitem ::= NULL"
,
/* 167 */
"tagitem ::= NOW"
,
/* 168 */
"tagitem ::= MINUS INTEGER"
,
/* 169 */
"tagitem ::= MINUS FLOAT"
,
/* 170 */
"tagitem ::= PLUS INTEGER"
,
/* 171 */
"tagitem ::= PLUS FLOAT"
,
/* 172 */
"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"
,
/* 173 */
"select ::= LP select RP"
,
/* 174 */
"union ::= select"
,
/* 175 */
"union ::= union UNION ALL select"
,
/* 176 */
"union ::= union UNION select"
,
/* 177 */
"cmd ::= union"
,
/* 178 */
"select ::= SELECT selcollist"
,
/* 179 */
"sclp ::= selcollist COMMA"
,
/* 180 */
"sclp ::="
,
/* 181 */
"selcollist ::= sclp distinct expr as"
,
/* 182 */
"selcollist ::= sclp STAR"
,
/* 183 */
"as ::= AS ids"
,
/* 184 */
"as ::= ids"
,
/* 185 */
"as ::="
,
/* 186 */
"distinct ::= DISTINCT"
,
/* 187 */
"distinct ::="
,
/* 188 */
"from ::= FROM tablelist"
,
/* 189 */
"from ::= FROM sub"
,
/* 190 */
"sub ::= LP union RP"
,
/* 191 */
"sub ::= LP union RP ids"
,
/* 192 */
"sub ::= sub COMMA LP union RP ids"
,
/* 193 */
"tablelist ::= ids cpxName"
,
/* 194 */
"tablelist ::= ids cpxName ids"
,
/* 195 */
"tablelist ::= tablelist COMMA ids cpxName"
,
/* 196 */
"tablelist ::= tablelist COMMA ids cpxName ids"
,
/* 197 */
"tmvar ::= VARIABLE"
,
/* 198 */
"interval_option ::= intervalKey LP tmvar RP"
,
/* 199 */
"interval_option ::= intervalKey LP tmvar COMMA tmvar RP"
,
/* 200 */
"interval_option ::="
,
/* 201 */
"intervalKey ::= INTERVAL"
,
/* 202 */
"intervalKey ::= EVERY"
,
/* 203 */
"session_option ::="
,
/* 204 */
"session_option ::= SESSION LP ids cpxName COMMA tmvar RP"
,
/* 205 */
"windowstate_option ::="
,
/* 206 */
"windowstate_option ::= STATE_WINDOW LP ids RP"
,
/* 207 */
"fill_opt ::="
,
/* 208 */
"fill_opt ::= FILL LP ID COMMA tagitemlist RP"
,
/* 209 */
"fill_opt ::= FILL LP ID RP"
,
/* 210 */
"sliding_opt ::= SLIDING LP tmvar RP"
,
/* 211 */
"sliding_opt ::="
,
/* 212 */
"orderby_opt ::="
,
/* 213 */
"orderby_opt ::= ORDER BY sortlist"
,
/* 214 */
"sortlist ::= sortlist COMMA item sortorder"
,
/* 215 */
"sortlist ::= item sortorder"
,
/* 216 */
"item ::= ids cpxName"
,
/* 217 */
"sortorder ::= ASC"
,
/* 218 */
"sortorder ::= DESC"
,
/* 219 */
"sortorder ::="
,
/* 220 */
"groupby_opt ::="
,
/* 221 */
"groupby_opt ::= GROUP BY grouplist"
,
/* 222 */
"grouplist ::= grouplist COMMA item"
,
/* 223 */
"grouplist ::= item"
,
/* 224 */
"having_opt ::="
,
/* 225 */
"having_opt ::= HAVING expr"
,
/* 226 */
"limit_opt ::="
,
/* 227 */
"limit_opt ::= LIMIT signed"
,
/* 228 */
"limit_opt ::= LIMIT signed OFFSET signed"
,
/* 229 */
"limit_opt ::= LIMIT signed COMMA signed"
,
/* 230 */
"slimit_opt ::="
,
/* 231 */
"slimit_opt ::= SLIMIT signed"
,
/* 232 */
"slimit_opt ::= SLIMIT signed SOFFSET signed"
,
/* 233 */
"slimit_opt ::= SLIMIT signed COMMA signed"
,
/* 234 */
"where_opt ::="
,
/* 235 */
"where_opt ::= WHERE expr"
,
/* 236 */
"expr ::= LP expr RP"
,
/* 237 */
"expr ::= ID"
,
/* 238 */
"expr ::= ID DOT ID"
,
/* 239 */
"expr ::= ID DOT STAR"
,
/* 240 */
"expr ::= INTEGER"
,
/* 241 */
"expr ::= MINUS INTEGER"
,
/* 242 */
"expr ::= PLUS INTEGER"
,
/* 243 */
"expr ::= FLOAT"
,
/* 244 */
"expr ::= MINUS FLOAT"
,
/* 245 */
"expr ::= PLUS FLOAT"
,
/* 246 */
"expr ::= STRING"
,
/* 247 */
"expr ::= NOW"
,
/* 248 */
"expr ::= VARIABLE"
,
/* 249 */
"expr ::= PLUS VARIABLE"
,
/* 250 */
"expr ::= MINUS VARIABLE"
,
/* 251 */
"expr ::= BOOL"
,
/* 252 */
"expr ::= NULL"
,
/* 253 */
"expr ::= ID LP exprlist RP"
,
/* 254 */
"expr ::= ID LP STAR RP"
,
/* 255 */
"expr ::= expr IS NULL"
,
/* 256 */
"expr ::= expr IS NOT NULL"
,
/* 257 */
"expr ::= expr LT expr"
,
/* 258 */
"expr ::= expr GT expr"
,
/* 259 */
"expr ::= expr LE expr"
,
/* 260 */
"expr ::= expr GE expr"
,
/* 261 */
"expr ::= expr NE expr"
,
/* 262 */
"expr ::= expr EQ expr"
,
/* 263 */
"expr ::= expr BETWEEN expr AND expr"
,
/* 264 */
"expr ::= expr AND expr"
,
/* 265 */
"expr ::= expr OR expr"
,
/* 266 */
"expr ::= expr PLUS expr"
,
/* 267 */
"expr ::= expr MINUS expr"
,
/* 268 */
"expr ::= expr STAR expr"
,
/* 269 */
"expr ::= expr SLASH expr"
,
/* 270 */
"expr ::= expr REM expr"
,
/* 271 */
"expr ::= expr LIKE expr"
,
/* 272 */
"expr ::= expr MATCH expr"
,
/* 273 */
"expr ::= expr NMATCH expr"
,
/* 274 */
"expr ::= expr IN LP exprlist RP"
,
/* 275 */
"exprlist ::= exprlist COMMA expritem"
,
/* 276 */
"exprlist ::= expritem"
,
/* 277 */
"expritem ::= expr"
,
/* 278 */
"expritem ::="
,
/* 279 */
"cmd ::= RESET QUERY CACHE"
,
/* 280 */
"cmd ::= SYNCDB ids REPLICA"
,
/* 281 */
"cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist"
,
/* 282 */
"cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids"
,
/* 283 */
"cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist"
,
/* 284 */
"cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist"
,
/* 285 */
"cmd ::= ALTER TABLE ids cpxName DROP TAG ids"
,
/* 286 */
"cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids"
,
/* 287 */
"cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 288 */
"cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist"
,
/* 289 */
"cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist"
,
/* 290 */
"cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids"
,
/* 291 */
"cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist"
,
/* 292 */
"cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist"
,
/* 293 */
"cmd ::= ALTER STABLE ids cpxName DROP TAG ids"
,
/* 294 */
"cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids"
,
/* 295 */
"cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 296 */
"cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist"
,
/* 297 */
"cmd ::= KILL CONNECTION INTEGER"
,
/* 298 */
"cmd ::= KILL STREAM INTEGER COLON INTEGER"
,
/* 299 */
"cmd ::= KILL QUERY INTEGER COLON INTEGER"
,
/* 58 */
"cmd ::= CREATE DNODE IPTOKEN PORT ids"
,
/* 59 */
"cmd ::= CREATE ACCOUNT ids PASS ids acct_optr"
,
/* 60 */
"cmd ::= CREATE DATABASE ifnotexists ids db_optr"
,
/* 61 */
"cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize"
,
/* 62 */
"cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize"
,
/* 63 */
"cmd ::= CREATE USER ids PASS ids"
,
/* 64 */
"bufsize ::="
,
/* 65 */
"bufsize ::= BUFSIZE INTEGER"
,
/* 66 */
"pps ::="
,
/* 67 */
"pps ::= PPS INTEGER"
,
/* 68 */
"tseries ::="
,
/* 69 */
"tseries ::= TSERIES INTEGER"
,
/* 70 */
"dbs ::="
,
/* 71 */
"dbs ::= DBS INTEGER"
,
/* 72 */
"streams ::="
,
/* 73 */
"streams ::= STREAMS INTEGER"
,
/* 74 */
"storage ::="
,
/* 75 */
"storage ::= STORAGE INTEGER"
,
/* 76 */
"qtime ::="
,
/* 77 */
"qtime ::= QTIME INTEGER"
,
/* 78 */
"users ::="
,
/* 79 */
"users ::= USERS INTEGER"
,
/* 80 */
"conns ::="
,
/* 81 */
"conns ::= CONNS INTEGER"
,
/* 82 */
"state ::="
,
/* 83 */
"state ::= STATE ids"
,
/* 84 */
"acct_optr ::= pps tseries storage streams qtime dbs users conns state"
,
/* 85 */
"intitemlist ::= intitemlist COMMA intitem"
,
/* 86 */
"intitemlist ::= intitem"
,
/* 87 */
"intitem ::= INTEGER"
,
/* 88 */
"keep ::= KEEP intitemlist"
,
/* 89 */
"cache ::= CACHE INTEGER"
,
/* 90 */
"replica ::= REPLICA INTEGER"
,
/* 91 */
"quorum ::= QUORUM INTEGER"
,
/* 92 */
"days ::= DAYS INTEGER"
,
/* 93 */
"minrows ::= MINROWS INTEGER"
,
/* 94 */
"maxrows ::= MAXROWS INTEGER"
,
/* 95 */
"blocks ::= BLOCKS INTEGER"
,
/* 96 */
"ctime ::= CTIME INTEGER"
,
/* 97 */
"wal ::= WAL INTEGER"
,
/* 98 */
"fsync ::= FSYNC INTEGER"
,
/* 99 */
"comp ::= COMP INTEGER"
,
/* 100 */
"prec ::= PRECISION STRING"
,
/* 101 */
"update ::= UPDATE INTEGER"
,
/* 102 */
"cachelast ::= CACHELAST INTEGER"
,
/* 103 */
"db_optr ::="
,
/* 104 */
"db_optr ::= db_optr cache"
,
/* 105 */
"db_optr ::= db_optr replica"
,
/* 106 */
"db_optr ::= db_optr quorum"
,
/* 107 */
"db_optr ::= db_optr days"
,
/* 108 */
"db_optr ::= db_optr minrows"
,
/* 109 */
"db_optr ::= db_optr maxrows"
,
/* 110 */
"db_optr ::= db_optr blocks"
,
/* 111 */
"db_optr ::= db_optr ctime"
,
/* 112 */
"db_optr ::= db_optr wal"
,
/* 113 */
"db_optr ::= db_optr fsync"
,
/* 114 */
"db_optr ::= db_optr comp"
,
/* 115 */
"db_optr ::= db_optr prec"
,
/* 116 */
"db_optr ::= db_optr keep"
,
/* 117 */
"db_optr ::= db_optr update"
,
/* 118 */
"db_optr ::= db_optr cachelast"
,
/* 119 */
"alter_db_optr ::="
,
/* 120 */
"alter_db_optr ::= alter_db_optr replica"
,
/* 121 */
"alter_db_optr ::= alter_db_optr quorum"
,
/* 122 */
"alter_db_optr ::= alter_db_optr keep"
,
/* 123 */
"alter_db_optr ::= alter_db_optr blocks"
,
/* 124 */
"alter_db_optr ::= alter_db_optr comp"
,
/* 125 */
"alter_db_optr ::= alter_db_optr update"
,
/* 126 */
"alter_db_optr ::= alter_db_optr cachelast"
,
/* 127 */
"typename ::= ids"
,
/* 128 */
"typename ::= ids LP signed RP"
,
/* 129 */
"typename ::= ids UNSIGNED"
,
/* 130 */
"signed ::= INTEGER"
,
/* 131 */
"signed ::= PLUS INTEGER"
,
/* 132 */
"signed ::= MINUS INTEGER"
,
/* 133 */
"cmd ::= CREATE TABLE create_table_args"
,
/* 134 */
"cmd ::= CREATE TABLE create_stable_args"
,
/* 135 */
"cmd ::= CREATE STABLE create_stable_args"
,
/* 136 */
"cmd ::= CREATE TABLE create_table_list"
,
/* 137 */
"create_table_list ::= create_from_stable"
,
/* 138 */
"create_table_list ::= create_table_list create_from_stable"
,
/* 139 */
"create_table_args ::= ifnotexists ids cpxName LP columnlist RP"
,
/* 140 */
"create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP"
,
/* 141 */
"create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist1 RP"
,
/* 142 */
"create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist1 RP"
,
/* 143 */
"tagNamelist ::= tagNamelist COMMA ids"
,
/* 144 */
"tagNamelist ::= ids"
,
/* 145 */
"create_table_args ::= ifnotexists ids cpxName AS select"
,
/* 146 */
"columnlist ::= columnlist COMMA column"
,
/* 147 */
"columnlist ::= column"
,
/* 148 */
"column ::= ids typename"
,
/* 149 */
"tagitemlist1 ::= tagitemlist1 COMMA tagitem1"
,
/* 150 */
"tagitemlist1 ::= tagitem1"
,
/* 151 */
"tagitem1 ::= MINUS INTEGER"
,
/* 152 */
"tagitem1 ::= MINUS FLOAT"
,
/* 153 */
"tagitem1 ::= PLUS INTEGER"
,
/* 154 */
"tagitem1 ::= PLUS FLOAT"
,
/* 155 */
"tagitem1 ::= INTEGER"
,
/* 156 */
"tagitem1 ::= FLOAT"
,
/* 157 */
"tagitem1 ::= STRING"
,
/* 158 */
"tagitem1 ::= BOOL"
,
/* 159 */
"tagitem1 ::= NULL"
,
/* 160 */
"tagitem1 ::= NOW"
,
/* 161 */
"tagitemlist ::= tagitemlist COMMA tagitem"
,
/* 162 */
"tagitemlist ::= tagitem"
,
/* 163 */
"tagitem ::= INTEGER"
,
/* 164 */
"tagitem ::= FLOAT"
,
/* 165 */
"tagitem ::= STRING"
,
/* 166 */
"tagitem ::= BOOL"
,
/* 167 */
"tagitem ::= NULL"
,
/* 168 */
"tagitem ::= NOW"
,
/* 169 */
"tagitem ::= MINUS INTEGER"
,
/* 170 */
"tagitem ::= MINUS FLOAT"
,
/* 171 */
"tagitem ::= PLUS INTEGER"
,
/* 172 */
"tagitem ::= PLUS FLOAT"
,
/* 173 */
"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"
,
/* 174 */
"select ::= LP select RP"
,
/* 175 */
"union ::= select"
,
/* 176 */
"union ::= union UNION ALL select"
,
/* 177 */
"union ::= union UNION select"
,
/* 178 */
"cmd ::= union"
,
/* 179 */
"select ::= SELECT selcollist"
,
/* 180 */
"sclp ::= selcollist COMMA"
,
/* 181 */
"sclp ::="
,
/* 182 */
"selcollist ::= sclp distinct expr as"
,
/* 183 */
"selcollist ::= sclp STAR"
,
/* 184 */
"as ::= AS ids"
,
/* 185 */
"as ::= ids"
,
/* 186 */
"as ::="
,
/* 187 */
"distinct ::= DISTINCT"
,
/* 188 */
"distinct ::="
,
/* 189 */
"from ::= FROM tablelist"
,
/* 190 */
"from ::= FROM sub"
,
/* 191 */
"sub ::= LP union RP"
,
/* 192 */
"sub ::= LP union RP ids"
,
/* 193 */
"sub ::= sub COMMA LP union RP ids"
,
/* 194 */
"tablelist ::= ids cpxName"
,
/* 195 */
"tablelist ::= ids cpxName ids"
,
/* 196 */
"tablelist ::= tablelist COMMA ids cpxName"
,
/* 197 */
"tablelist ::= tablelist COMMA ids cpxName ids"
,
/* 198 */
"tmvar ::= VARIABLE"
,
/* 199 */
"interval_option ::= intervalKey LP tmvar RP"
,
/* 200 */
"interval_option ::= intervalKey LP tmvar COMMA tmvar RP"
,
/* 201 */
"interval_option ::="
,
/* 202 */
"intervalKey ::= INTERVAL"
,
/* 203 */
"intervalKey ::= EVERY"
,
/* 204 */
"session_option ::="
,
/* 205 */
"session_option ::= SESSION LP ids cpxName COMMA tmvar RP"
,
/* 206 */
"windowstate_option ::="
,
/* 207 */
"windowstate_option ::= STATE_WINDOW LP ids RP"
,
/* 208 */
"fill_opt ::="
,
/* 209 */
"fill_opt ::= FILL LP ID COMMA tagitemlist RP"
,
/* 210 */
"fill_opt ::= FILL LP ID RP"
,
/* 211 */
"sliding_opt ::= SLIDING LP tmvar RP"
,
/* 212 */
"sliding_opt ::="
,
/* 213 */
"orderby_opt ::="
,
/* 214 */
"orderby_opt ::= ORDER BY sortlist"
,
/* 215 */
"sortlist ::= sortlist COMMA item sortorder"
,
/* 216 */
"sortlist ::= item sortorder"
,
/* 217 */
"item ::= ids cpxName"
,
/* 218 */
"sortorder ::= ASC"
,
/* 219 */
"sortorder ::= DESC"
,
/* 220 */
"sortorder ::="
,
/* 221 */
"groupby_opt ::="
,
/* 222 */
"groupby_opt ::= GROUP BY grouplist"
,
/* 223 */
"grouplist ::= grouplist COMMA item"
,
/* 224 */
"grouplist ::= item"
,
/* 225 */
"having_opt ::="
,
/* 226 */
"having_opt ::= HAVING expr"
,
/* 227 */
"limit_opt ::="
,
/* 228 */
"limit_opt ::= LIMIT signed"
,
/* 229 */
"limit_opt ::= LIMIT signed OFFSET signed"
,
/* 230 */
"limit_opt ::= LIMIT signed COMMA signed"
,
/* 231 */
"slimit_opt ::="
,
/* 232 */
"slimit_opt ::= SLIMIT signed"
,
/* 233 */
"slimit_opt ::= SLIMIT signed SOFFSET signed"
,
/* 234 */
"slimit_opt ::= SLIMIT signed COMMA signed"
,
/* 235 */
"where_opt ::="
,
/* 236 */
"where_opt ::= WHERE expr"
,
/* 237 */
"expr ::= LP expr RP"
,
/* 238 */
"expr ::= ID"
,
/* 239 */
"expr ::= ID DOT ID"
,
/* 240 */
"expr ::= ID DOT STAR"
,
/* 241 */
"expr ::= INTEGER"
,
/* 242 */
"expr ::= MINUS INTEGER"
,
/* 243 */
"expr ::= PLUS INTEGER"
,
/* 244 */
"expr ::= FLOAT"
,
/* 245 */
"expr ::= MINUS FLOAT"
,
/* 246 */
"expr ::= PLUS FLOAT"
,
/* 247 */
"expr ::= STRING"
,
/* 248 */
"expr ::= NOW"
,
/* 249 */
"expr ::= VARIABLE"
,
/* 250 */
"expr ::= PLUS VARIABLE"
,
/* 251 */
"expr ::= MINUS VARIABLE"
,
/* 252 */
"expr ::= BOOL"
,
/* 253 */
"expr ::= NULL"
,
/* 254 */
"expr ::= ID LP exprlist RP"
,
/* 255 */
"expr ::= ID LP STAR RP"
,
/* 256 */
"expr ::= expr IS NULL"
,
/* 257 */
"expr ::= expr IS NOT NULL"
,
/* 258 */
"expr ::= expr LT expr"
,
/* 259 */
"expr ::= expr GT expr"
,
/* 260 */
"expr ::= expr LE expr"
,
/* 261 */
"expr ::= expr GE expr"
,
/* 262 */
"expr ::= expr NE expr"
,
/* 263 */
"expr ::= expr EQ expr"
,
/* 264 */
"expr ::= expr BETWEEN expr AND expr"
,
/* 265 */
"expr ::= expr AND expr"
,
/* 266 */
"expr ::= expr OR expr"
,
/* 267 */
"expr ::= expr PLUS expr"
,
/* 268 */
"expr ::= expr MINUS expr"
,
/* 269 */
"expr ::= expr STAR expr"
,
/* 270 */
"expr ::= expr SLASH expr"
,
/* 271 */
"expr ::= expr REM expr"
,
/* 272 */
"expr ::= expr LIKE expr"
,
/* 273 */
"expr ::= expr MATCH expr"
,
/* 274 */
"expr ::= expr NMATCH expr"
,
/* 275 */
"expr ::= expr IN LP exprlist RP"
,
/* 276 */
"exprlist ::= exprlist COMMA expritem"
,
/* 277 */
"exprlist ::= expritem"
,
/* 278 */
"expritem ::= expr"
,
/* 279 */
"expritem ::="
,
/* 280 */
"cmd ::= RESET QUERY CACHE"
,
/* 281 */
"cmd ::= SYNCDB ids REPLICA"
,
/* 282 */
"cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist"
,
/* 283 */
"cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids"
,
/* 284 */
"cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist"
,
/* 285 */
"cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist"
,
/* 286 */
"cmd ::= ALTER TABLE ids cpxName DROP TAG ids"
,
/* 287 */
"cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids"
,
/* 288 */
"cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 289 */
"cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist"
,
/* 290 */
"cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist"
,
/* 291 */
"cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids"
,
/* 292 */
"cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist"
,
/* 293 */
"cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist"
,
/* 294 */
"cmd ::= ALTER STABLE ids cpxName DROP TAG ids"
,
/* 295 */
"cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids"
,
/* 296 */
"cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 297 */
"cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist"
,
/* 298 */
"cmd ::= KILL CONNECTION INTEGER"
,
/* 299 */
"cmd ::= KILL STREAM INTEGER COLON INTEGER"
,
/* 300 */
"cmd ::= KILL QUERY INTEGER COLON INTEGER"
,
};
#endif
/* NDEBUG */
...
...
@@ -1906,248 +1908,249 @@ static const struct {
{
207
,
-
3
},
/* (55) ifnotexists ::= IF NOT EXISTS */
{
207
,
0
},
/* (56) ifnotexists ::= */
{
199
,
-
5
},
/* (57) cmd ::= CREATE DNODE ids PORT ids */
{
199
,
-
6
},
/* (58) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
199
,
-
5
},
/* (59) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
199
,
-
8
},
/* (60) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
{
199
,
-
9
},
/* (61) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
{
199
,
-
5
},
/* (62) cmd ::= CREATE USER ids PASS ids */
{
210
,
0
},
/* (63) bufsize ::= */
{
210
,
-
2
},
/* (64) bufsize ::= BUFSIZE INTEGER */
{
211
,
0
},
/* (65) pps ::= */
{
211
,
-
2
},
/* (66) pps ::= PPS INTEGER */
{
212
,
0
},
/* (67) tseries ::= */
{
212
,
-
2
},
/* (68) tseries ::= TSERIES INTEGER */
{
213
,
0
},
/* (69) dbs ::= */
{
213
,
-
2
},
/* (70) dbs ::= DBS INTEGER */
{
214
,
0
},
/* (71) streams ::= */
{
214
,
-
2
},
/* (72) streams ::= STREAMS INTEGER */
{
215
,
0
},
/* (73) storage ::= */
{
215
,
-
2
},
/* (74) storage ::= STORAGE INTEGER */
{
216
,
0
},
/* (75) qtime ::= */
{
216
,
-
2
},
/* (76) qtime ::= QTIME INTEGER */
{
217
,
0
},
/* (77) users ::= */
{
217
,
-
2
},
/* (78) users ::= USERS INTEGER */
{
218
,
0
},
/* (79) conns ::= */
{
218
,
-
2
},
/* (80) conns ::= CONNS INTEGER */
{
219
,
0
},
/* (81) state ::= */
{
219
,
-
2
},
/* (82) state ::= STATE ids */
{
205
,
-
9
},
/* (83) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
220
,
-
3
},
/* (84) intitemlist ::= intitemlist COMMA intitem */
{
220
,
-
1
},
/* (85) intitemlist ::= intitem */
{
221
,
-
1
},
/* (86) intitem ::= INTEGER */
{
222
,
-
2
},
/* (87) keep ::= KEEP intitemlist */
{
223
,
-
2
},
/* (88) cache ::= CACHE INTEGER */
{
224
,
-
2
},
/* (89) replica ::= REPLICA INTEGER */
{
225
,
-
2
},
/* (90) quorum ::= QUORUM INTEGER */
{
226
,
-
2
},
/* (91) days ::= DAYS INTEGER */
{
227
,
-
2
},
/* (92) minrows ::= MINROWS INTEGER */
{
228
,
-
2
},
/* (93) maxrows ::= MAXROWS INTEGER */
{
229
,
-
2
},
/* (94) blocks ::= BLOCKS INTEGER */
{
230
,
-
2
},
/* (95) ctime ::= CTIME INTEGER */
{
231
,
-
2
},
/* (96) wal ::= WAL INTEGER */
{
232
,
-
2
},
/* (97) fsync ::= FSYNC INTEGER */
{
233
,
-
2
},
/* (98) comp ::= COMP INTEGER */
{
234
,
-
2
},
/* (99) prec ::= PRECISION STRING */
{
235
,
-
2
},
/* (100) update ::= UPDATE INTEGER */
{
236
,
-
2
},
/* (101) cachelast ::= CACHELAST INTEGER */
{
208
,
0
},
/* (102) db_optr ::= */
{
208
,
-
2
},
/* (103) db_optr ::= db_optr cache */
{
208
,
-
2
},
/* (104) db_optr ::= db_optr replica */
{
208
,
-
2
},
/* (105) db_optr ::= db_optr quorum */
{
208
,
-
2
},
/* (106) db_optr ::= db_optr days */
{
208
,
-
2
},
/* (107) db_optr ::= db_optr minrows */
{
208
,
-
2
},
/* (108) db_optr ::= db_optr maxrows */
{
208
,
-
2
},
/* (109) db_optr ::= db_optr blocks */
{
208
,
-
2
},
/* (110) db_optr ::= db_optr ctime */
{
208
,
-
2
},
/* (111) db_optr ::= db_optr wal */
{
208
,
-
2
},
/* (112) db_optr ::= db_optr fsync */
{
208
,
-
2
},
/* (113) db_optr ::= db_optr comp */
{
208
,
-
2
},
/* (114) db_optr ::= db_optr prec */
{
208
,
-
2
},
/* (115) db_optr ::= db_optr keep */
{
208
,
-
2
},
/* (116) db_optr ::= db_optr update */
{
208
,
-
2
},
/* (117) db_optr ::= db_optr cachelast */
{
204
,
0
},
/* (118) alter_db_optr ::= */
{
204
,
-
2
},
/* (119) alter_db_optr ::= alter_db_optr replica */
{
204
,
-
2
},
/* (120) alter_db_optr ::= alter_db_optr quorum */
{
204
,
-
2
},
/* (121) alter_db_optr ::= alter_db_optr keep */
{
204
,
-
2
},
/* (122) alter_db_optr ::= alter_db_optr blocks */
{
204
,
-
2
},
/* (123) alter_db_optr ::= alter_db_optr comp */
{
204
,
-
2
},
/* (124) alter_db_optr ::= alter_db_optr update */
{
204
,
-
2
},
/* (125) alter_db_optr ::= alter_db_optr cachelast */
{
209
,
-
1
},
/* (126) typename ::= ids */
{
209
,
-
4
},
/* (127) typename ::= ids LP signed RP */
{
209
,
-
2
},
/* (128) typename ::= ids UNSIGNED */
{
237
,
-
1
},
/* (129) signed ::= INTEGER */
{
237
,
-
2
},
/* (130) signed ::= PLUS INTEGER */
{
237
,
-
2
},
/* (131) signed ::= MINUS INTEGER */
{
199
,
-
3
},
/* (132) cmd ::= CREATE TABLE create_table_args */
{
199
,
-
3
},
/* (133) cmd ::= CREATE TABLE create_stable_args */
{
199
,
-
3
},
/* (134) cmd ::= CREATE STABLE create_stable_args */
{
199
,
-
3
},
/* (135) cmd ::= CREATE TABLE create_table_list */
{
240
,
-
1
},
/* (136) create_table_list ::= create_from_stable */
{
240
,
-
2
},
/* (137) create_table_list ::= create_table_list create_from_stable */
{
238
,
-
6
},
/* (138) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{
239
,
-
10
},
/* (139) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{
241
,
-
10
},
/* (140) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist1 RP */
{
241
,
-
13
},
/* (141) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist1 RP */
{
244
,
-
3
},
/* (142) tagNamelist ::= tagNamelist COMMA ids */
{
244
,
-
1
},
/* (143) tagNamelist ::= ids */
{
238
,
-
5
},
/* (144) create_table_args ::= ifnotexists ids cpxName AS select */
{
242
,
-
3
},
/* (145) columnlist ::= columnlist COMMA column */
{
242
,
-
1
},
/* (146) columnlist ::= column */
{
246
,
-
2
},
/* (147) column ::= ids typename */
{
243
,
-
3
},
/* (148) tagitemlist1 ::= tagitemlist1 COMMA tagitem1 */
{
243
,
-
1
},
/* (149) tagitemlist1 ::= tagitem1 */
{
247
,
-
2
},
/* (150) tagitem1 ::= MINUS INTEGER */
{
247
,
-
2
},
/* (151) tagitem1 ::= MINUS FLOAT */
{
247
,
-
2
},
/* (152) tagitem1 ::= PLUS INTEGER */
{
247
,
-
2
},
/* (153) tagitem1 ::= PLUS FLOAT */
{
247
,
-
1
},
/* (154) tagitem1 ::= INTEGER */
{
247
,
-
1
},
/* (155) tagitem1 ::= FLOAT */
{
247
,
-
1
},
/* (156) tagitem1 ::= STRING */
{
247
,
-
1
},
/* (157) tagitem1 ::= BOOL */
{
247
,
-
1
},
/* (158) tagitem1 ::= NULL */
{
247
,
-
1
},
/* (159) tagitem1 ::= NOW */
{
248
,
-
3
},
/* (160) tagitemlist ::= tagitemlist COMMA tagitem */
{
248
,
-
1
},
/* (161) tagitemlist ::= tagitem */
{
249
,
-
1
},
/* (162) tagitem ::= INTEGER */
{
249
,
-
1
},
/* (163) tagitem ::= FLOAT */
{
249
,
-
1
},
/* (164) tagitem ::= STRING */
{
249
,
-
1
},
/* (165) tagitem ::= BOOL */
{
249
,
-
1
},
/* (166) tagitem ::= NULL */
{
249
,
-
1
},
/* (167) tagitem ::= NOW */
{
249
,
-
2
},
/* (168) tagitem ::= MINUS INTEGER */
{
249
,
-
2
},
/* (169) tagitem ::= MINUS FLOAT */
{
249
,
-
2
},
/* (170) tagitem ::= PLUS INTEGER */
{
249
,
-
2
},
/* (171) tagitem ::= PLUS FLOAT */
{
245
,
-
14
},
/* (172) 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 */
{
245
,
-
3
},
/* (173) select ::= LP select RP */
{
263
,
-
1
},
/* (174) union ::= select */
{
263
,
-
4
},
/* (175) union ::= union UNION ALL select */
{
263
,
-
3
},
/* (176) union ::= union UNION select */
{
199
,
-
1
},
/* (177) cmd ::= union */
{
245
,
-
2
},
/* (178) select ::= SELECT selcollist */
{
264
,
-
2
},
/* (179) sclp ::= selcollist COMMA */
{
264
,
0
},
/* (180) sclp ::= */
{
250
,
-
4
},
/* (181) selcollist ::= sclp distinct expr as */
{
250
,
-
2
},
/* (182) selcollist ::= sclp STAR */
{
267
,
-
2
},
/* (183) as ::= AS ids */
{
267
,
-
1
},
/* (184) as ::= ids */
{
267
,
0
},
/* (185) as ::= */
{
265
,
-
1
},
/* (186) distinct ::= DISTINCT */
{
265
,
0
},
/* (187) distinct ::= */
{
251
,
-
2
},
/* (188) from ::= FROM tablelist */
{
251
,
-
2
},
/* (189) from ::= FROM sub */
{
269
,
-
3
},
/* (190) sub ::= LP union RP */
{
269
,
-
4
},
/* (191) sub ::= LP union RP ids */
{
269
,
-
6
},
/* (192) sub ::= sub COMMA LP union RP ids */
{
268
,
-
2
},
/* (193) tablelist ::= ids cpxName */
{
268
,
-
3
},
/* (194) tablelist ::= ids cpxName ids */
{
268
,
-
4
},
/* (195) tablelist ::= tablelist COMMA ids cpxName */
{
268
,
-
5
},
/* (196) tablelist ::= tablelist COMMA ids cpxName ids */
{
270
,
-
1
},
/* (197) tmvar ::= VARIABLE */
{
253
,
-
4
},
/* (198) interval_option ::= intervalKey LP tmvar RP */
{
253
,
-
6
},
/* (199) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
{
253
,
0
},
/* (200) interval_option ::= */
{
271
,
-
1
},
/* (201) intervalKey ::= INTERVAL */
{
271
,
-
1
},
/* (202) intervalKey ::= EVERY */
{
255
,
0
},
/* (203) session_option ::= */
{
255
,
-
7
},
/* (204) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
256
,
0
},
/* (205) windowstate_option ::= */
{
256
,
-
4
},
/* (206) windowstate_option ::= STATE_WINDOW LP ids RP */
{
257
,
0
},
/* (207) fill_opt ::= */
{
257
,
-
6
},
/* (208) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
257
,
-
4
},
/* (209) fill_opt ::= FILL LP ID RP */
{
254
,
-
4
},
/* (210) sliding_opt ::= SLIDING LP tmvar RP */
{
254
,
0
},
/* (211) sliding_opt ::= */
{
260
,
0
},
/* (212) orderby_opt ::= */
{
260
,
-
3
},
/* (213) orderby_opt ::= ORDER BY sortlist */
{
272
,
-
4
},
/* (214) sortlist ::= sortlist COMMA item sortorder */
{
272
,
-
2
},
/* (215) sortlist ::= item sortorder */
{
274
,
-
2
},
/* (216) item ::= ids cpxName */
{
275
,
-
1
},
/* (217) sortorder ::= ASC */
{
275
,
-
1
},
/* (218) sortorder ::= DESC */
{
275
,
0
},
/* (219) sortorder ::= */
{
258
,
0
},
/* (220) groupby_opt ::= */
{
258
,
-
3
},
/* (221) groupby_opt ::= GROUP BY grouplist */
{
276
,
-
3
},
/* (222) grouplist ::= grouplist COMMA item */
{
276
,
-
1
},
/* (223) grouplist ::= item */
{
259
,
0
},
/* (224) having_opt ::= */
{
259
,
-
2
},
/* (225) having_opt ::= HAVING expr */
{
262
,
0
},
/* (226) limit_opt ::= */
{
262
,
-
2
},
/* (227) limit_opt ::= LIMIT signed */
{
262
,
-
4
},
/* (228) limit_opt ::= LIMIT signed OFFSET signed */
{
262
,
-
4
},
/* (229) limit_opt ::= LIMIT signed COMMA signed */
{
261
,
0
},
/* (230) slimit_opt ::= */
{
261
,
-
2
},
/* (231) slimit_opt ::= SLIMIT signed */
{
261
,
-
4
},
/* (232) slimit_opt ::= SLIMIT signed SOFFSET signed */
{
261
,
-
4
},
/* (233) slimit_opt ::= SLIMIT signed COMMA signed */
{
252
,
0
},
/* (234) where_opt ::= */
{
252
,
-
2
},
/* (235) where_opt ::= WHERE expr */
{
266
,
-
3
},
/* (236) expr ::= LP expr RP */
{
266
,
-
1
},
/* (237) expr ::= ID */
{
266
,
-
3
},
/* (238) expr ::= ID DOT ID */
{
266
,
-
3
},
/* (239) expr ::= ID DOT STAR */
{
266
,
-
1
},
/* (240) expr ::= INTEGER */
{
266
,
-
2
},
/* (241) expr ::= MINUS INTEGER */
{
266
,
-
2
},
/* (242) expr ::= PLUS INTEGER */
{
266
,
-
1
},
/* (243) expr ::= FLOAT */
{
266
,
-
2
},
/* (244) expr ::= MINUS FLOAT */
{
266
,
-
2
},
/* (245) expr ::= PLUS FLOAT */
{
266
,
-
1
},
/* (246) expr ::= STRING */
{
266
,
-
1
},
/* (247) expr ::= NOW */
{
266
,
-
1
},
/* (248) expr ::= VARIABLE */
{
266
,
-
2
},
/* (249) expr ::= PLUS VARIABLE */
{
266
,
-
2
},
/* (250) expr ::= MINUS VARIABLE */
{
266
,
-
1
},
/* (251) expr ::= BOOL */
{
266
,
-
1
},
/* (252) expr ::= NULL */
{
266
,
-
4
},
/* (253) expr ::= ID LP exprlist RP */
{
266
,
-
4
},
/* (254) expr ::= ID LP STAR RP */
{
266
,
-
3
},
/* (255) expr ::= expr IS NULL */
{
266
,
-
4
},
/* (256) expr ::= expr IS NOT NULL */
{
266
,
-
3
},
/* (257) expr ::= expr LT expr */
{
266
,
-
3
},
/* (258) expr ::= expr GT expr */
{
266
,
-
3
},
/* (259) expr ::= expr LE expr */
{
266
,
-
3
},
/* (260) expr ::= expr GE expr */
{
266
,
-
3
},
/* (261) expr ::= expr NE expr */
{
266
,
-
3
},
/* (262) expr ::= expr EQ expr */
{
266
,
-
5
},
/* (263) expr ::= expr BETWEEN expr AND expr */
{
266
,
-
3
},
/* (264) expr ::= expr AND expr */
{
266
,
-
3
},
/* (265) expr ::= expr OR expr */
{
266
,
-
3
},
/* (266) expr ::= expr PLUS expr */
{
266
,
-
3
},
/* (267) expr ::= expr MINUS expr */
{
266
,
-
3
},
/* (268) expr ::= expr STAR expr */
{
266
,
-
3
},
/* (269) expr ::= expr SLASH expr */
{
266
,
-
3
},
/* (270) expr ::= expr REM expr */
{
266
,
-
3
},
/* (271) expr ::= expr LIKE expr */
{
266
,
-
3
},
/* (272) expr ::= expr MATCH expr */
{
266
,
-
3
},
/* (273) expr ::= expr NMATCH expr */
{
266
,
-
5
},
/* (274) expr ::= expr IN LP exprlist RP */
{
206
,
-
3
},
/* (275) exprlist ::= exprlist COMMA expritem */
{
206
,
-
1
},
/* (276) exprlist ::= expritem */
{
277
,
-
1
},
/* (277) expritem ::= expr */
{
277
,
0
},
/* (278) expritem ::= */
{
199
,
-
3
},
/* (279) cmd ::= RESET QUERY CACHE */
{
199
,
-
3
},
/* (280) cmd ::= SYNCDB ids REPLICA */
{
199
,
-
7
},
/* (281) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
199
,
-
7
},
/* (282) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
199
,
-
7
},
/* (283) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
{
199
,
-
7
},
/* (284) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
199
,
-
7
},
/* (285) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
199
,
-
8
},
/* (286) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
199
,
-
9
},
/* (287) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
199
,
-
7
},
/* (288) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
{
199
,
-
7
},
/* (289) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{
199
,
-
7
},
/* (290) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{
199
,
-
7
},
/* (291) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
{
199
,
-
7
},
/* (292) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{
199
,
-
7
},
/* (293) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{
199
,
-
8
},
/* (294) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{
199
,
-
9
},
/* (295) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
{
199
,
-
7
},
/* (296) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
{
199
,
-
3
},
/* (297) cmd ::= KILL CONNECTION INTEGER */
{
199
,
-
5
},
/* (298) cmd ::= KILL STREAM INTEGER COLON INTEGER */
{
199
,
-
5
},
/* (299) cmd ::= KILL QUERY INTEGER COLON INTEGER */
{
199
,
-
5
},
/* (58) cmd ::= CREATE DNODE IPTOKEN PORT ids */
{
199
,
-
6
},
/* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
199
,
-
5
},
/* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
199
,
-
8
},
/* (61) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
{
199
,
-
9
},
/* (62) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
{
199
,
-
5
},
/* (63) cmd ::= CREATE USER ids PASS ids */
{
210
,
0
},
/* (64) bufsize ::= */
{
210
,
-
2
},
/* (65) bufsize ::= BUFSIZE INTEGER */
{
211
,
0
},
/* (66) pps ::= */
{
211
,
-
2
},
/* (67) pps ::= PPS INTEGER */
{
212
,
0
},
/* (68) tseries ::= */
{
212
,
-
2
},
/* (69) tseries ::= TSERIES INTEGER */
{
213
,
0
},
/* (70) dbs ::= */
{
213
,
-
2
},
/* (71) dbs ::= DBS INTEGER */
{
214
,
0
},
/* (72) streams ::= */
{
214
,
-
2
},
/* (73) streams ::= STREAMS INTEGER */
{
215
,
0
},
/* (74) storage ::= */
{
215
,
-
2
},
/* (75) storage ::= STORAGE INTEGER */
{
216
,
0
},
/* (76) qtime ::= */
{
216
,
-
2
},
/* (77) qtime ::= QTIME INTEGER */
{
217
,
0
},
/* (78) users ::= */
{
217
,
-
2
},
/* (79) users ::= USERS INTEGER */
{
218
,
0
},
/* (80) conns ::= */
{
218
,
-
2
},
/* (81) conns ::= CONNS INTEGER */
{
219
,
0
},
/* (82) state ::= */
{
219
,
-
2
},
/* (83) state ::= STATE ids */
{
205
,
-
9
},
/* (84) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
220
,
-
3
},
/* (85) intitemlist ::= intitemlist COMMA intitem */
{
220
,
-
1
},
/* (86) intitemlist ::= intitem */
{
221
,
-
1
},
/* (87) intitem ::= INTEGER */
{
222
,
-
2
},
/* (88) keep ::= KEEP intitemlist */
{
223
,
-
2
},
/* (89) cache ::= CACHE INTEGER */
{
224
,
-
2
},
/* (90) replica ::= REPLICA INTEGER */
{
225
,
-
2
},
/* (91) quorum ::= QUORUM INTEGER */
{
226
,
-
2
},
/* (92) days ::= DAYS INTEGER */
{
227
,
-
2
},
/* (93) minrows ::= MINROWS INTEGER */
{
228
,
-
2
},
/* (94) maxrows ::= MAXROWS INTEGER */
{
229
,
-
2
},
/* (95) blocks ::= BLOCKS INTEGER */
{
230
,
-
2
},
/* (96) ctime ::= CTIME INTEGER */
{
231
,
-
2
},
/* (97) wal ::= WAL INTEGER */
{
232
,
-
2
},
/* (98) fsync ::= FSYNC INTEGER */
{
233
,
-
2
},
/* (99) comp ::= COMP INTEGER */
{
234
,
-
2
},
/* (100) prec ::= PRECISION STRING */
{
235
,
-
2
},
/* (101) update ::= UPDATE INTEGER */
{
236
,
-
2
},
/* (102) cachelast ::= CACHELAST INTEGER */
{
208
,
0
},
/* (103) db_optr ::= */
{
208
,
-
2
},
/* (104) db_optr ::= db_optr cache */
{
208
,
-
2
},
/* (105) db_optr ::= db_optr replica */
{
208
,
-
2
},
/* (106) db_optr ::= db_optr quorum */
{
208
,
-
2
},
/* (107) db_optr ::= db_optr days */
{
208
,
-
2
},
/* (108) db_optr ::= db_optr minrows */
{
208
,
-
2
},
/* (109) db_optr ::= db_optr maxrows */
{
208
,
-
2
},
/* (110) db_optr ::= db_optr blocks */
{
208
,
-
2
},
/* (111) db_optr ::= db_optr ctime */
{
208
,
-
2
},
/* (112) db_optr ::= db_optr wal */
{
208
,
-
2
},
/* (113) db_optr ::= db_optr fsync */
{
208
,
-
2
},
/* (114) db_optr ::= db_optr comp */
{
208
,
-
2
},
/* (115) db_optr ::= db_optr prec */
{
208
,
-
2
},
/* (116) db_optr ::= db_optr keep */
{
208
,
-
2
},
/* (117) db_optr ::= db_optr update */
{
208
,
-
2
},
/* (118) db_optr ::= db_optr cachelast */
{
204
,
0
},
/* (119) alter_db_optr ::= */
{
204
,
-
2
},
/* (120) alter_db_optr ::= alter_db_optr replica */
{
204
,
-
2
},
/* (121) alter_db_optr ::= alter_db_optr quorum */
{
204
,
-
2
},
/* (122) alter_db_optr ::= alter_db_optr keep */
{
204
,
-
2
},
/* (123) alter_db_optr ::= alter_db_optr blocks */
{
204
,
-
2
},
/* (124) alter_db_optr ::= alter_db_optr comp */
{
204
,
-
2
},
/* (125) alter_db_optr ::= alter_db_optr update */
{
204
,
-
2
},
/* (126) alter_db_optr ::= alter_db_optr cachelast */
{
209
,
-
1
},
/* (127) typename ::= ids */
{
209
,
-
4
},
/* (128) typename ::= ids LP signed RP */
{
209
,
-
2
},
/* (129) typename ::= ids UNSIGNED */
{
237
,
-
1
},
/* (130) signed ::= INTEGER */
{
237
,
-
2
},
/* (131) signed ::= PLUS INTEGER */
{
237
,
-
2
},
/* (132) signed ::= MINUS INTEGER */
{
199
,
-
3
},
/* (133) cmd ::= CREATE TABLE create_table_args */
{
199
,
-
3
},
/* (134) cmd ::= CREATE TABLE create_stable_args */
{
199
,
-
3
},
/* (135) cmd ::= CREATE STABLE create_stable_args */
{
199
,
-
3
},
/* (136) cmd ::= CREATE TABLE create_table_list */
{
240
,
-
1
},
/* (137) create_table_list ::= create_from_stable */
{
240
,
-
2
},
/* (138) create_table_list ::= create_table_list create_from_stable */
{
238
,
-
6
},
/* (139) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{
239
,
-
10
},
/* (140) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{
241
,
-
10
},
/* (141) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist1 RP */
{
241
,
-
13
},
/* (142) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist1 RP */
{
244
,
-
3
},
/* (143) tagNamelist ::= tagNamelist COMMA ids */
{
244
,
-
1
},
/* (144) tagNamelist ::= ids */
{
238
,
-
5
},
/* (145) create_table_args ::= ifnotexists ids cpxName AS select */
{
242
,
-
3
},
/* (146) columnlist ::= columnlist COMMA column */
{
242
,
-
1
},
/* (147) columnlist ::= column */
{
246
,
-
2
},
/* (148) column ::= ids typename */
{
243
,
-
3
},
/* (149) tagitemlist1 ::= tagitemlist1 COMMA tagitem1 */
{
243
,
-
1
},
/* (150) tagitemlist1 ::= tagitem1 */
{
247
,
-
2
},
/* (151) tagitem1 ::= MINUS INTEGER */
{
247
,
-
2
},
/* (152) tagitem1 ::= MINUS FLOAT */
{
247
,
-
2
},
/* (153) tagitem1 ::= PLUS INTEGER */
{
247
,
-
2
},
/* (154) tagitem1 ::= PLUS FLOAT */
{
247
,
-
1
},
/* (155) tagitem1 ::= INTEGER */
{
247
,
-
1
},
/* (156) tagitem1 ::= FLOAT */
{
247
,
-
1
},
/* (157) tagitem1 ::= STRING */
{
247
,
-
1
},
/* (158) tagitem1 ::= BOOL */
{
247
,
-
1
},
/* (159) tagitem1 ::= NULL */
{
247
,
-
1
},
/* (160) tagitem1 ::= NOW */
{
248
,
-
3
},
/* (161) tagitemlist ::= tagitemlist COMMA tagitem */
{
248
,
-
1
},
/* (162) tagitemlist ::= tagitem */
{
249
,
-
1
},
/* (163) tagitem ::= INTEGER */
{
249
,
-
1
},
/* (164) tagitem ::= FLOAT */
{
249
,
-
1
},
/* (165) tagitem ::= STRING */
{
249
,
-
1
},
/* (166) tagitem ::= BOOL */
{
249
,
-
1
},
/* (167) tagitem ::= NULL */
{
249
,
-
1
},
/* (168) tagitem ::= NOW */
{
249
,
-
2
},
/* (169) tagitem ::= MINUS INTEGER */
{
249
,
-
2
},
/* (170) tagitem ::= MINUS FLOAT */
{
249
,
-
2
},
/* (171) tagitem ::= PLUS INTEGER */
{
249
,
-
2
},
/* (172) tagitem ::= PLUS FLOAT */
{
245
,
-
14
},
/* (173) 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 */
{
245
,
-
3
},
/* (174) select ::= LP select RP */
{
263
,
-
1
},
/* (175) union ::= select */
{
263
,
-
4
},
/* (176) union ::= union UNION ALL select */
{
263
,
-
3
},
/* (177) union ::= union UNION select */
{
199
,
-
1
},
/* (178) cmd ::= union */
{
245
,
-
2
},
/* (179) select ::= SELECT selcollist */
{
264
,
-
2
},
/* (180) sclp ::= selcollist COMMA */
{
264
,
0
},
/* (181) sclp ::= */
{
250
,
-
4
},
/* (182) selcollist ::= sclp distinct expr as */
{
250
,
-
2
},
/* (183) selcollist ::= sclp STAR */
{
267
,
-
2
},
/* (184) as ::= AS ids */
{
267
,
-
1
},
/* (185) as ::= ids */
{
267
,
0
},
/* (186) as ::= */
{
265
,
-
1
},
/* (187) distinct ::= DISTINCT */
{
265
,
0
},
/* (188) distinct ::= */
{
251
,
-
2
},
/* (189) from ::= FROM tablelist */
{
251
,
-
2
},
/* (190) from ::= FROM sub */
{
269
,
-
3
},
/* (191) sub ::= LP union RP */
{
269
,
-
4
},
/* (192) sub ::= LP union RP ids */
{
269
,
-
6
},
/* (193) sub ::= sub COMMA LP union RP ids */
{
268
,
-
2
},
/* (194) tablelist ::= ids cpxName */
{
268
,
-
3
},
/* (195) tablelist ::= ids cpxName ids */
{
268
,
-
4
},
/* (196) tablelist ::= tablelist COMMA ids cpxName */
{
268
,
-
5
},
/* (197) tablelist ::= tablelist COMMA ids cpxName ids */
{
270
,
-
1
},
/* (198) tmvar ::= VARIABLE */
{
253
,
-
4
},
/* (199) interval_option ::= intervalKey LP tmvar RP */
{
253
,
-
6
},
/* (200) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
{
253
,
0
},
/* (201) interval_option ::= */
{
271
,
-
1
},
/* (202) intervalKey ::= INTERVAL */
{
271
,
-
1
},
/* (203) intervalKey ::= EVERY */
{
255
,
0
},
/* (204) session_option ::= */
{
255
,
-
7
},
/* (205) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
256
,
0
},
/* (206) windowstate_option ::= */
{
256
,
-
4
},
/* (207) windowstate_option ::= STATE_WINDOW LP ids RP */
{
257
,
0
},
/* (208) fill_opt ::= */
{
257
,
-
6
},
/* (209) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
257
,
-
4
},
/* (210) fill_opt ::= FILL LP ID RP */
{
254
,
-
4
},
/* (211) sliding_opt ::= SLIDING LP tmvar RP */
{
254
,
0
},
/* (212) sliding_opt ::= */
{
260
,
0
},
/* (213) orderby_opt ::= */
{
260
,
-
3
},
/* (214) orderby_opt ::= ORDER BY sortlist */
{
272
,
-
4
},
/* (215) sortlist ::= sortlist COMMA item sortorder */
{
272
,
-
2
},
/* (216) sortlist ::= item sortorder */
{
274
,
-
2
},
/* (217) item ::= ids cpxName */
{
275
,
-
1
},
/* (218) sortorder ::= ASC */
{
275
,
-
1
},
/* (219) sortorder ::= DESC */
{
275
,
0
},
/* (220) sortorder ::= */
{
258
,
0
},
/* (221) groupby_opt ::= */
{
258
,
-
3
},
/* (222) groupby_opt ::= GROUP BY grouplist */
{
276
,
-
3
},
/* (223) grouplist ::= grouplist COMMA item */
{
276
,
-
1
},
/* (224) grouplist ::= item */
{
259
,
0
},
/* (225) having_opt ::= */
{
259
,
-
2
},
/* (226) having_opt ::= HAVING expr */
{
262
,
0
},
/* (227) limit_opt ::= */
{
262
,
-
2
},
/* (228) limit_opt ::= LIMIT signed */
{
262
,
-
4
},
/* (229) limit_opt ::= LIMIT signed OFFSET signed */
{
262
,
-
4
},
/* (230) limit_opt ::= LIMIT signed COMMA signed */
{
261
,
0
},
/* (231) slimit_opt ::= */
{
261
,
-
2
},
/* (232) slimit_opt ::= SLIMIT signed */
{
261
,
-
4
},
/* (233) slimit_opt ::= SLIMIT signed SOFFSET signed */
{
261
,
-
4
},
/* (234) slimit_opt ::= SLIMIT signed COMMA signed */
{
252
,
0
},
/* (235) where_opt ::= */
{
252
,
-
2
},
/* (236) where_opt ::= WHERE expr */
{
266
,
-
3
},
/* (237) expr ::= LP expr RP */
{
266
,
-
1
},
/* (238) expr ::= ID */
{
266
,
-
3
},
/* (239) expr ::= ID DOT ID */
{
266
,
-
3
},
/* (240) expr ::= ID DOT STAR */
{
266
,
-
1
},
/* (241) expr ::= INTEGER */
{
266
,
-
2
},
/* (242) expr ::= MINUS INTEGER */
{
266
,
-
2
},
/* (243) expr ::= PLUS INTEGER */
{
266
,
-
1
},
/* (244) expr ::= FLOAT */
{
266
,
-
2
},
/* (245) expr ::= MINUS FLOAT */
{
266
,
-
2
},
/* (246) expr ::= PLUS FLOAT */
{
266
,
-
1
},
/* (247) expr ::= STRING */
{
266
,
-
1
},
/* (248) expr ::= NOW */
{
266
,
-
1
},
/* (249) expr ::= VARIABLE */
{
266
,
-
2
},
/* (250) expr ::= PLUS VARIABLE */
{
266
,
-
2
},
/* (251) expr ::= MINUS VARIABLE */
{
266
,
-
1
},
/* (252) expr ::= BOOL */
{
266
,
-
1
},
/* (253) expr ::= NULL */
{
266
,
-
4
},
/* (254) expr ::= ID LP exprlist RP */
{
266
,
-
4
},
/* (255) expr ::= ID LP STAR RP */
{
266
,
-
3
},
/* (256) expr ::= expr IS NULL */
{
266
,
-
4
},
/* (257) expr ::= expr IS NOT NULL */
{
266
,
-
3
},
/* (258) expr ::= expr LT expr */
{
266
,
-
3
},
/* (259) expr ::= expr GT expr */
{
266
,
-
3
},
/* (260) expr ::= expr LE expr */
{
266
,
-
3
},
/* (261) expr ::= expr GE expr */
{
266
,
-
3
},
/* (262) expr ::= expr NE expr */
{
266
,
-
3
},
/* (263) expr ::= expr EQ expr */
{
266
,
-
5
},
/* (264) expr ::= expr BETWEEN expr AND expr */
{
266
,
-
3
},
/* (265) expr ::= expr AND expr */
{
266
,
-
3
},
/* (266) expr ::= expr OR expr */
{
266
,
-
3
},
/* (267) expr ::= expr PLUS expr */
{
266
,
-
3
},
/* (268) expr ::= expr MINUS expr */
{
266
,
-
3
},
/* (269) expr ::= expr STAR expr */
{
266
,
-
3
},
/* (270) expr ::= expr SLASH expr */
{
266
,
-
3
},
/* (271) expr ::= expr REM expr */
{
266
,
-
3
},
/* (272) expr ::= expr LIKE expr */
{
266
,
-
3
},
/* (273) expr ::= expr MATCH expr */
{
266
,
-
3
},
/* (274) expr ::= expr NMATCH expr */
{
266
,
-
5
},
/* (275) expr ::= expr IN LP exprlist RP */
{
206
,
-
3
},
/* (276) exprlist ::= exprlist COMMA expritem */
{
206
,
-
1
},
/* (277) exprlist ::= expritem */
{
277
,
-
1
},
/* (278) expritem ::= expr */
{
277
,
0
},
/* (279) expritem ::= */
{
199
,
-
3
},
/* (280) cmd ::= RESET QUERY CACHE */
{
199
,
-
3
},
/* (281) cmd ::= SYNCDB ids REPLICA */
{
199
,
-
7
},
/* (282) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
199
,
-
7
},
/* (283) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
199
,
-
7
},
/* (284) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
{
199
,
-
7
},
/* (285) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
199
,
-
7
},
/* (286) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
199
,
-
8
},
/* (287) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
199
,
-
9
},
/* (288) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
199
,
-
7
},
/* (289) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
{
199
,
-
7
},
/* (290) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{
199
,
-
7
},
/* (291) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{
199
,
-
7
},
/* (292) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
{
199
,
-
7
},
/* (293) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{
199
,
-
7
},
/* (294) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{
199
,
-
8
},
/* (295) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{
199
,
-
9
},
/* (296) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
{
199
,
-
7
},
/* (297) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
{
199
,
-
3
},
/* (298) cmd ::= KILL CONNECTION INTEGER */
{
199
,
-
5
},
/* (299) cmd ::= KILL STREAM INTEGER COLON INTEGER */
{
199
,
-
5
},
/* (300) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
static
void
yy_accept
(
yyParser
*
);
/* Forward Declaration */
...
...
@@ -2228,9 +2231,9 @@ static void yy_reduce(
/********** Begin reduce actions **********************************************/
YYMINORTYPE
yylhsminor
;
case
0
:
/* program ::= cmd */
case
13
2
:
/* cmd ::= CREATE TABLE create_table_args */
yytestcase
(
yyruleno
==
132
);
case
13
3
:
/* cmd ::= CREATE TABLE create_stable_args */
yytestcase
(
yyruleno
==
133
);
case
13
4
:
/* cmd ::= CREATE STABLE create_stable_args */
yytestcase
(
yyruleno
==
134
);
case
13
3
:
/* cmd ::= CREATE TABLE create_table_args */
yytestcase
(
yyruleno
==
133
);
case
13
4
:
/* cmd ::= CREATE TABLE create_stable_args */
yytestcase
(
yyruleno
==
134
);
case
13
5
:
/* cmd ::= CREATE STABLE create_stable_args */
yytestcase
(
yyruleno
==
135
);
{}
break
;
case
1
:
/* cmd ::= SHOW DATABASES */
...
...
@@ -2427,55 +2430,56 @@ static void yy_reduce(
break
;
case
54
:
/* ifexists ::= */
case
56
:
/* ifnotexists ::= */
yytestcase
(
yyruleno
==
56
);
case
18
7
:
/* distinct ::= */
yytestcase
(
yyruleno
==
187
);
case
18
8
:
/* distinct ::= */
yytestcase
(
yyruleno
==
188
);
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;}
break
;
case
55
:
/* ifnotexists ::= IF NOT EXISTS */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
=
1
;}
break
;
case
57
:
/* cmd ::= CREATE DNODE ids PORT ids */
case
58
:
/* cmd ::= CREATE DNODE IPTOKEN PORT ids */
yytestcase
(
yyruleno
==
58
);
{
setDCLSqlElems
(
pInfo
,
TSDB_SQL_CREATE_DNODE
,
2
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
5
8
:
/* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
case
5
9
:
/* 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
.
yy171
);}
break
;
case
59
:
/* cmd ::= CREATE DATABASE ifnotexists ids db_optr */
case
60
:
/* cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
setCreateDbInfo
(
pInfo
,
TSDB_SQL_CREATE_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy90
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
case
6
0
:
/* cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
case
6
1
:
/* 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
.
yy100
,
&
yymsp
[
0
].
minor
.
yy0
,
1
);}
break
;
case
6
1
:
/* cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
case
6
2
:
/* 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
.
yy100
,
&
yymsp
[
0
].
minor
.
yy0
,
2
);}
break
;
case
6
2
:
/* cmd ::= CREATE USER ids PASS ids */
case
6
3
:
/* cmd ::= CREATE USER ids PASS ids */
{
setCreateUserSql
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
6
3
:
/* bufsize ::= */
case
6
5
:
/* pps ::= */
yytestcase
(
yyruleno
==
65
);
case
6
7
:
/* tseries ::= */
yytestcase
(
yyruleno
==
67
);
case
69
:
/* dbs ::= */
yytestcase
(
yyruleno
==
69
);
case
7
1
:
/* streams ::= */
yytestcase
(
yyruleno
==
71
);
case
7
3
:
/* storage ::= */
yytestcase
(
yyruleno
==
73
);
case
7
5
:
/* qtime ::= */
yytestcase
(
yyruleno
==
75
);
case
7
7
:
/* users ::= */
yytestcase
(
yyruleno
==
77
);
case
79
:
/* conns ::= */
yytestcase
(
yyruleno
==
79
);
case
8
1
:
/* state ::= */
yytestcase
(
yyruleno
==
81
);
case
6
4
:
/* bufsize ::= */
case
6
6
:
/* pps ::= */
yytestcase
(
yyruleno
==
66
);
case
6
8
:
/* tseries ::= */
yytestcase
(
yyruleno
==
68
);
case
70
:
/* dbs ::= */
yytestcase
(
yyruleno
==
70
);
case
7
2
:
/* streams ::= */
yytestcase
(
yyruleno
==
72
);
case
7
4
:
/* storage ::= */
yytestcase
(
yyruleno
==
74
);
case
7
6
:
/* qtime ::= */
yytestcase
(
yyruleno
==
76
);
case
7
8
:
/* users ::= */
yytestcase
(
yyruleno
==
78
);
case
80
:
/* conns ::= */
yytestcase
(
yyruleno
==
80
);
case
8
2
:
/* state ::= */
yytestcase
(
yyruleno
==
82
);
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
}
break
;
case
6
4
:
/* bufsize ::= BUFSIZE INTEGER */
case
6
6
:
/* pps ::= PPS INTEGER */
yytestcase
(
yyruleno
==
66
);
case
6
8
:
/* tseries ::= TSERIES INTEGER */
yytestcase
(
yyruleno
==
68
);
case
7
0
:
/* dbs ::= DBS INTEGER */
yytestcase
(
yyruleno
==
70
);
case
7
2
:
/* streams ::= STREAMS INTEGER */
yytestcase
(
yyruleno
==
72
);
case
7
4
:
/* storage ::= STORAGE INTEGER */
yytestcase
(
yyruleno
==
74
);
case
7
6
:
/* qtime ::= QTIME INTEGER */
yytestcase
(
yyruleno
==
76
);
case
7
8
:
/* users ::= USERS INTEGER */
yytestcase
(
yyruleno
==
78
);
case
8
0
:
/* conns ::= CONNS INTEGER */
yytestcase
(
yyruleno
==
80
);
case
8
2
:
/* state ::= STATE ids */
yytestcase
(
yyruleno
==
82
);
case
6
5
:
/* bufsize ::= BUFSIZE INTEGER */
case
6
7
:
/* pps ::= PPS INTEGER */
yytestcase
(
yyruleno
==
67
);
case
6
9
:
/* tseries ::= TSERIES INTEGER */
yytestcase
(
yyruleno
==
69
);
case
7
1
:
/* dbs ::= DBS INTEGER */
yytestcase
(
yyruleno
==
71
);
case
7
3
:
/* streams ::= STREAMS INTEGER */
yytestcase
(
yyruleno
==
73
);
case
7
5
:
/* storage ::= STORAGE INTEGER */
yytestcase
(
yyruleno
==
75
);
case
7
7
:
/* qtime ::= QTIME INTEGER */
yytestcase
(
yyruleno
==
77
);
case
7
9
:
/* users ::= USERS INTEGER */
yytestcase
(
yyruleno
==
79
);
case
8
1
:
/* conns ::= CONNS INTEGER */
yytestcase
(
yyruleno
==
81
);
case
8
3
:
/* state ::= STATE ids */
yytestcase
(
yyruleno
==
83
);
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
break
;
case
8
3
:
/* acct_optr ::= pps tseries storage streams qtime dbs users conns state */
case
8
4
:
/* acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
yylhsminor
.
yy171
.
maxUsers
=
(
yymsp
[
-
2
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
2
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy171
.
maxDbs
=
(
yymsp
[
-
3
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
3
].
minor
.
yy0
.
z
)
:-
1
;
...
...
@@ -2489,124 +2493,124 @@ static void yy_reduce(
}
yymsp
[
-
8
].
minor
.
yy171
=
yylhsminor
.
yy171
;
break
;
case
8
4
:
/* intitemlist ::= intitemlist COMMA intitem */
case
16
0
:
/* tagitemlist ::= tagitemlist COMMA tagitem */
yytestcase
(
yyruleno
==
160
);
case
8
5
:
/* intitemlist ::= intitemlist COMMA intitem */
case
16
1
:
/* tagitemlist ::= tagitemlist COMMA tagitem */
yytestcase
(
yyruleno
==
161
);
{
yylhsminor
.
yy421
=
tListItemAppend
(
yymsp
[
-
2
].
minor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy69
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
8
5
:
/* intitemlist ::= intitem */
case
16
1
:
/* tagitemlist ::= tagitem */
yytestcase
(
yyruleno
==
161
);
case
8
6
:
/* intitemlist ::= intitem */
case
16
2
:
/* tagitemlist ::= tagitem */
yytestcase
(
yyruleno
==
162
);
{
yylhsminor
.
yy421
=
tListItemAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy69
,
-
1
);
}
yymsp
[
0
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
8
6
:
/* intitem ::= INTEGER */
case
16
2
:
/* tagitem ::= INTEGER */
yytestcase
(
yyruleno
==
162
);
case
16
3
:
/* tagitem ::= FLOAT */
yytestcase
(
yyruleno
==
163
);
case
16
4
:
/* tagitem ::= STRING */
yytestcase
(
yyruleno
==
164
);
case
16
5
:
/* tagitem ::= BOOL */
yytestcase
(
yyruleno
==
165
);
case
8
7
:
/* intitem ::= INTEGER */
case
16
3
:
/* tagitem ::= INTEGER */
yytestcase
(
yyruleno
==
163
);
case
16
4
:
/* tagitem ::= FLOAT */
yytestcase
(
yyruleno
==
164
);
case
16
5
:
/* tagitem ::= STRING */
yytestcase
(
yyruleno
==
165
);
case
16
6
:
/* tagitem ::= BOOL */
yytestcase
(
yyruleno
==
166
);
{
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
taosVariantCreate
(
&
yylhsminor
.
yy69
,
yymsp
[
0
].
minor
.
yy0
.
z
,
yymsp
[
0
].
minor
.
yy0
.
n
,
yymsp
[
0
].
minor
.
yy0
.
type
);
}
yymsp
[
0
].
minor
.
yy69
=
yylhsminor
.
yy69
;
break
;
case
8
7
:
/* keep ::= KEEP intitemlist */
case
8
8
:
/* keep ::= KEEP intitemlist */
{
yymsp
[
-
1
].
minor
.
yy421
=
yymsp
[
0
].
minor
.
yy421
;
}
break
;
case
8
8
:
/* cache ::= CACHE INTEGER */
case
89
:
/* replica ::= REPLICA INTEGER */
yytestcase
(
yyruleno
==
89
);
case
9
0
:
/* quorum ::= QUORUM INTEGER */
yytestcase
(
yyruleno
==
90
);
case
9
1
:
/* days ::= DAYS INTEGER */
yytestcase
(
yyruleno
==
91
);
case
9
2
:
/* minrows ::= MINROWS INTEGER */
yytestcase
(
yyruleno
==
92
);
case
9
3
:
/* maxrows ::= MAXROWS INTEGER */
yytestcase
(
yyruleno
==
93
);
case
9
4
:
/* blocks ::= BLOCKS INTEGER */
yytestcase
(
yyruleno
==
94
);
case
9
5
:
/* ctime ::= CTIME INTEGER */
yytestcase
(
yyruleno
==
95
);
case
9
6
:
/* wal ::= WAL INTEGER */
yytestcase
(
yyruleno
==
96
);
case
9
7
:
/* fsync ::= FSYNC INTEGER */
yytestcase
(
yyruleno
==
97
);
case
9
8
:
/* comp ::= COMP INTEGER */
yytestcase
(
yyruleno
==
98
);
case
99
:
/* prec ::= PRECISION STRING */
yytestcase
(
yyruleno
==
99
);
case
10
0
:
/* update ::= UPDATE INTEGER */
yytestcase
(
yyruleno
==
100
);
case
10
1
:
/* cachelast ::= CACHELAST INTEGER */
yytestcase
(
yyruleno
==
101
);
case
8
9
:
/* cache ::= CACHE INTEGER */
case
90
:
/* replica ::= REPLICA INTEGER */
yytestcase
(
yyruleno
==
90
);
case
9
1
:
/* quorum ::= QUORUM INTEGER */
yytestcase
(
yyruleno
==
91
);
case
9
2
:
/* days ::= DAYS INTEGER */
yytestcase
(
yyruleno
==
92
);
case
9
3
:
/* minrows ::= MINROWS INTEGER */
yytestcase
(
yyruleno
==
93
);
case
9
4
:
/* maxrows ::= MAXROWS INTEGER */
yytestcase
(
yyruleno
==
94
);
case
9
5
:
/* blocks ::= BLOCKS INTEGER */
yytestcase
(
yyruleno
==
95
);
case
9
6
:
/* ctime ::= CTIME INTEGER */
yytestcase
(
yyruleno
==
96
);
case
9
7
:
/* wal ::= WAL INTEGER */
yytestcase
(
yyruleno
==
97
);
case
9
8
:
/* fsync ::= FSYNC INTEGER */
yytestcase
(
yyruleno
==
98
);
case
9
9
:
/* comp ::= COMP INTEGER */
yytestcase
(
yyruleno
==
99
);
case
100
:
/* prec ::= PRECISION STRING */
yytestcase
(
yyruleno
==
100
);
case
10
1
:
/* update ::= UPDATE INTEGER */
yytestcase
(
yyruleno
==
101
);
case
10
2
:
/* cachelast ::= CACHELAST INTEGER */
yytestcase
(
yyruleno
==
102
);
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
break
;
case
10
2
:
/* db_optr ::= */
case
10
3
:
/* db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy90
);}
break
;
case
10
3
:
/* db_optr ::= db_optr cache */
case
10
4
:
/* db_optr ::= db_optr cache */
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
cacheBlockSize
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
10
4
:
/* db_optr ::= db_optr replica */
case
1
19
:
/* alter_db_optr ::= alter_db_optr replica */
yytestcase
(
yyruleno
==
119
);
case
10
5
:
/* db_optr ::= db_optr replica */
case
1
20
:
/* alter_db_optr ::= alter_db_optr replica */
yytestcase
(
yyruleno
==
120
);
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
replica
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
10
5
:
/* db_optr ::= db_optr quorum */
case
12
0
:
/* alter_db_optr ::= alter_db_optr quorum */
yytestcase
(
yyruleno
==
120
);
case
10
6
:
/* db_optr ::= db_optr quorum */
case
12
1
:
/* alter_db_optr ::= alter_db_optr quorum */
yytestcase
(
yyruleno
==
121
);
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
quorum
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
10
6
:
/* db_optr ::= db_optr days */
case
10
7
:
/* db_optr ::= db_optr days */
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
daysPerFile
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
10
7
:
/* db_optr ::= db_optr minrows */
case
10
8
:
/* db_optr ::= db_optr minrows */
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
minRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
10
8
:
/* db_optr ::= db_optr maxrows */
case
10
9
:
/* db_optr ::= db_optr maxrows */
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
maxRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
1
09
:
/* db_optr ::= db_optr blocks */
case
12
2
:
/* alter_db_optr ::= alter_db_optr blocks */
yytestcase
(
yyruleno
==
122
);
case
1
10
:
/* db_optr ::= db_optr blocks */
case
12
3
:
/* alter_db_optr ::= alter_db_optr blocks */
yytestcase
(
yyruleno
==
123
);
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
numOfBlocks
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
11
0
:
/* db_optr ::= db_optr ctime */
case
11
1
:
/* db_optr ::= db_optr ctime */
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
commitTime
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
11
1
:
/* db_optr ::= db_optr wal */
case
11
2
:
/* db_optr ::= db_optr wal */
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
walLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
11
2
:
/* db_optr ::= db_optr fsync */
case
11
3
:
/* db_optr ::= db_optr fsync */
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
fsyncPeriod
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
11
3
:
/* db_optr ::= db_optr comp */
case
12
3
:
/* alter_db_optr ::= alter_db_optr comp */
yytestcase
(
yyruleno
==
123
);
case
11
4
:
/* db_optr ::= db_optr comp */
case
12
4
:
/* alter_db_optr ::= alter_db_optr comp */
yytestcase
(
yyruleno
==
124
);
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
compressionLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
11
4
:
/* db_optr ::= db_optr prec */
case
11
5
:
/* db_optr ::= db_optr prec */
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
precision
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
11
5
:
/* db_optr ::= db_optr keep */
case
12
1
:
/* alter_db_optr ::= alter_db_optr keep */
yytestcase
(
yyruleno
==
121
);
case
11
6
:
/* db_optr ::= db_optr keep */
case
12
2
:
/* alter_db_optr ::= alter_db_optr keep */
yytestcase
(
yyruleno
==
122
);
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
keep
=
yymsp
[
0
].
minor
.
yy421
;
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
11
6
:
/* db_optr ::= db_optr update */
case
12
4
:
/* alter_db_optr ::= alter_db_optr update */
yytestcase
(
yyruleno
==
124
);
case
11
7
:
/* db_optr ::= db_optr update */
case
12
5
:
/* alter_db_optr ::= alter_db_optr update */
yytestcase
(
yyruleno
==
125
);
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
update
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
11
7
:
/* db_optr ::= db_optr cachelast */
case
12
5
:
/* alter_db_optr ::= alter_db_optr cachelast */
yytestcase
(
yyruleno
==
125
);
case
11
8
:
/* db_optr ::= db_optr cachelast */
case
12
6
:
/* alter_db_optr ::= alter_db_optr cachelast */
yytestcase
(
yyruleno
==
126
);
{
yylhsminor
.
yy90
=
yymsp
[
-
1
].
minor
.
yy90
;
yylhsminor
.
yy90
.
cachelast
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy90
=
yylhsminor
.
yy90
;
break
;
case
11
8
:
/* alter_db_optr ::= */
case
11
9
:
/* alter_db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy90
);}
break
;
case
12
6
:
/* typename ::= ids */
case
12
7
:
/* typename ::= ids */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tSetColumnType
(
&
yylhsminor
.
yy100
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy100
=
yylhsminor
.
yy100
;
break
;
case
12
7
:
/* typename ::= ids LP signed RP */
case
12
8
:
/* typename ::= ids LP signed RP */
{
if
(
yymsp
[
-
1
].
minor
.
yy325
<=
0
)
{
yymsp
[
-
3
].
minor
.
yy0
.
type
=
0
;
...
...
@@ -2618,7 +2622,7 @@ static void yy_reduce(
}
yymsp
[
-
3
].
minor
.
yy100
=
yylhsminor
.
yy100
;
break
;
case
12
8
:
/* typename ::= ids UNSIGNED */
case
12
9
:
/* 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
);
...
...
@@ -2626,20 +2630,20 @@ static void yy_reduce(
}
yymsp
[
-
1
].
minor
.
yy100
=
yylhsminor
.
yy100
;
break
;
case
1
29
:
/* signed ::= INTEGER */
case
1
30
:
/* signed ::= INTEGER */
{
yylhsminor
.
yy325
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
0
].
minor
.
yy325
=
yylhsminor
.
yy325
;
break
;
case
13
0
:
/* signed ::= PLUS INTEGER */
case
13
1
:
/* signed ::= PLUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy325
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
break
;
case
13
1
:
/* signed ::= MINUS INTEGER */
case
13
2
:
/* signed ::= MINUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy325
=
-
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);}
break
;
case
13
5
:
/* cmd ::= CREATE TABLE create_table_list */
case
13
6
:
/* cmd ::= CREATE TABLE create_table_list */
{
pInfo
->
type
=
TSDB_SQL_CREATE_TABLE
;
pInfo
->
pCreateTableInfo
=
yymsp
[
0
].
minor
.
yy438
;}
break
;
case
13
6
:
/* create_table_list ::= create_from_stable */
case
13
7
:
/* create_table_list ::= create_from_stable */
{
SCreateTableSql
*
pCreateTable
=
calloc
(
1
,
sizeof
(
SCreateTableSql
));
pCreateTable
->
childTableInfo
=
taosArrayInit
(
4
,
sizeof
(
SCreatedTableInfo
));
...
...
@@ -2650,14 +2654,14 @@ static void yy_reduce(
}
yymsp
[
0
].
minor
.
yy438
=
yylhsminor
.
yy438
;
break
;
case
13
7
:
/* create_table_list ::= create_table_list create_from_stable */
case
13
8
:
/* create_table_list ::= create_table_list create_from_stable */
{
taosArrayPush
(
yymsp
[
-
1
].
minor
.
yy438
->
childTableInfo
,
&
yymsp
[
0
].
minor
.
yy152
);
yylhsminor
.
yy438
=
yymsp
[
-
1
].
minor
.
yy438
;
}
yymsp
[
-
1
].
minor
.
yy438
=
yylhsminor
.
yy438
;
break
;
case
13
8
:
/* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
case
13
9
:
/* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{
yylhsminor
.
yy438
=
tSetCreateTableInfo
(
yymsp
[
-
1
].
minor
.
yy421
,
NULL
,
NULL
,
TSQL_CREATE_TABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy438
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
...
...
@@ -2667,7 +2671,7 @@ static void yy_reduce(
}
yymsp
[
-
5
].
minor
.
yy438
=
yylhsminor
.
yy438
;
break
;
case
1
39
:
/* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
case
1
40
:
/* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{
yylhsminor
.
yy438
=
tSetCreateTableInfo
(
yymsp
[
-
5
].
minor
.
yy421
,
yymsp
[
-
1
].
minor
.
yy421
,
NULL
,
TSQL_CREATE_STABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy438
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
...
...
@@ -2677,7 +2681,7 @@ static void yy_reduce(
}
yymsp
[
-
9
].
minor
.
yy438
=
yylhsminor
.
yy438
;
break
;
case
14
0
:
/* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist1 RP */
case
14
1
:
/* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist1 RP */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
yymsp
[
-
8
].
minor
.
yy0
.
n
+=
yymsp
[
-
7
].
minor
.
yy0
.
n
;
...
...
@@ -2685,7 +2689,7 @@ static void yy_reduce(
}
yymsp
[
-
9
].
minor
.
yy152
=
yylhsminor
.
yy152
;
break
;
case
14
1
:
/* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist1 RP */
case
14
2
:
/* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist1 RP */
{
yymsp
[
-
8
].
minor
.
yy0
.
n
+=
yymsp
[
-
7
].
minor
.
yy0
.
n
;
yymsp
[
-
11
].
minor
.
yy0
.
n
+=
yymsp
[
-
10
].
minor
.
yy0
.
n
;
...
...
@@ -2693,15 +2697,15 @@ static void yy_reduce(
}
yymsp
[
-
12
].
minor
.
yy152
=
yylhsminor
.
yy152
;
break
;
case
14
2
:
/* tagNamelist ::= tagNamelist COMMA ids */
case
14
3
:
/* tagNamelist ::= tagNamelist COMMA ids */
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy421
=
yymsp
[
-
2
].
minor
.
yy421
;
}
yymsp
[
-
2
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
14
3
:
/* tagNamelist ::= ids */
case
14
4
:
/* tagNamelist ::= ids */
{
yylhsminor
.
yy421
=
taosArrayInit
(
4
,
sizeof
(
SToken
));
taosArrayPush
(
yylhsminor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
0
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
14
4
:
/* create_table_args ::= ifnotexists ids cpxName AS select */
case
14
5
:
/* create_table_args ::= ifnotexists ids cpxName AS select */
{
yylhsminor
.
yy438
=
tSetCreateTableInfo
(
NULL
,
NULL
,
yymsp
[
0
].
minor
.
yy56
,
TSQL_CREATE_STREAM
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy438
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
...
...
@@ -2711,56 +2715,56 @@ static void yy_reduce(
}
yymsp
[
-
4
].
minor
.
yy438
=
yylhsminor
.
yy438
;
break
;
case
14
5
:
/* columnlist ::= columnlist COMMA column */
case
14
6
:
/* columnlist ::= columnlist COMMA column */
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy100
);
yylhsminor
.
yy421
=
yymsp
[
-
2
].
minor
.
yy421
;
}
yymsp
[
-
2
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
14
6
:
/* columnlist ::= column */
case
14
7
:
/* columnlist ::= column */
{
yylhsminor
.
yy421
=
taosArrayInit
(
4
,
sizeof
(
SField
));
taosArrayPush
(
yylhsminor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy100
);}
yymsp
[
0
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
14
7
:
/* column ::= ids typename */
case
14
8
:
/* column ::= ids typename */
{
tSetColumnInfo
(
&
yylhsminor
.
yy100
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy100
);
}
yymsp
[
-
1
].
minor
.
yy100
=
yylhsminor
.
yy100
;
break
;
case
14
8
:
/* tagitemlist1 ::= tagitemlist1 COMMA tagitem1 */
case
14
9
:
/* tagitemlist1 ::= tagitemlist1 COMMA tagitem1 */
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy421
=
yymsp
[
-
2
].
minor
.
yy421
;}
yymsp
[
-
2
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
1
49
:
/* tagitemlist1 ::= tagitem1 */
case
1
50
:
/* tagitemlist1 ::= tagitem1 */
{
yylhsminor
.
yy421
=
taosArrayInit
(
4
,
sizeof
(
SToken
));
taosArrayPush
(
yylhsminor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
15
0
:
/* tagitem1 ::= MINUS INTEGER */
case
15
1
:
/* tagitem1 ::= MINUS FLOAT */
yytestcase
(
yyruleno
==
151
);
case
15
2
:
/* tagitem1 ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
152
);
case
15
3
:
/* tagitem1 ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
153
);
case
15
1
:
/* tagitem1 ::= MINUS INTEGER */
case
15
2
:
/* tagitem1 ::= MINUS FLOAT */
yytestcase
(
yyruleno
==
152
);
case
15
3
:
/* tagitem1 ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
153
);
case
15
4
:
/* tagitem1 ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
154
);
{
yylhsminor
.
yy0
.
n
=
yymsp
[
-
1
].
minor
.
yy0
.
n
+
yymsp
[
0
].
minor
.
yy0
.
n
;
yylhsminor
.
yy0
.
type
=
yymsp
[
0
].
minor
.
yy0
.
type
;
}
yymsp
[
-
1
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
15
4
:
/* tagitem1 ::= INTEGER */
case
15
5
:
/* tagitem1 ::= FLOAT */
yytestcase
(
yyruleno
==
155
);
case
15
6
:
/* tagitem1 ::= STRING */
yytestcase
(
yyruleno
==
156
);
case
15
7
:
/* tagitem1 ::= BOOL */
yytestcase
(
yyruleno
==
157
);
case
15
8
:
/* tagitem1 ::= NULL */
yytestcase
(
yyruleno
==
158
);
case
1
59
:
/* tagitem1 ::= NOW */
yytestcase
(
yyruleno
==
159
);
case
15
5
:
/* tagitem1 ::= INTEGER */
case
15
6
:
/* tagitem1 ::= FLOAT */
yytestcase
(
yyruleno
==
156
);
case
15
7
:
/* tagitem1 ::= STRING */
yytestcase
(
yyruleno
==
157
);
case
15
8
:
/* tagitem1 ::= BOOL */
yytestcase
(
yyruleno
==
158
);
case
15
9
:
/* tagitem1 ::= NULL */
yytestcase
(
yyruleno
==
159
);
case
1
60
:
/* tagitem1 ::= NOW */
yytestcase
(
yyruleno
==
160
);
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
16
6
:
/* tagitem ::= NULL */
case
16
7
:
/* tagitem ::= NULL */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
taosVariantCreate
(
&
yylhsminor
.
yy69
,
yymsp
[
0
].
minor
.
yy0
.
z
,
yymsp
[
0
].
minor
.
yy0
.
n
,
yymsp
[
0
].
minor
.
yy0
.
type
);
}
yymsp
[
0
].
minor
.
yy69
=
yylhsminor
.
yy69
;
break
;
case
16
7
:
/* tagitem ::= NOW */
case
16
8
:
/* tagitem ::= NOW */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
TSDB_DATA_TYPE_TIMESTAMP
;
taosVariantCreate
(
&
yylhsminor
.
yy69
,
yymsp
[
0
].
minor
.
yy0
.
z
,
yymsp
[
0
].
minor
.
yy0
.
n
,
yymsp
[
0
].
minor
.
yy0
.
type
);}
yymsp
[
0
].
minor
.
yy69
=
yylhsminor
.
yy69
;
break
;
case
16
8
:
/* tagitem ::= MINUS INTEGER */
case
1
69
:
/* tagitem ::= MINUS FLOAT */
yytestcase
(
yyruleno
==
169
);
case
17
0
:
/* tagitem ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
170
);
case
17
1
:
/* tagitem ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
171
);
case
16
9
:
/* tagitem ::= MINUS INTEGER */
case
1
70
:
/* tagitem ::= MINUS FLOAT */
yytestcase
(
yyruleno
==
170
);
case
17
1
:
/* tagitem ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
171
);
case
17
2
:
/* tagitem ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
172
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
yymsp
[
0
].
minor
.
yy0
.
type
;
...
...
@@ -2769,154 +2773,154 @@ static void yy_reduce(
}
yymsp
[
-
1
].
minor
.
yy69
=
yylhsminor
.
yy69
;
break
;
case
17
2
:
/* 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 */
case
17
3
:
/* 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
.
yy56
=
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
.
yy231
,
&
yymsp
[
-
1
].
minor
.
yy231
,
yymsp
[
-
3
].
minor
.
yy439
);
}
yymsp
[
-
13
].
minor
.
yy56
=
yylhsminor
.
yy56
;
break
;
case
17
3
:
/* select ::= LP select RP */
case
17
4
:
/* select ::= LP select RP */
{
yymsp
[
-
2
].
minor
.
yy56
=
yymsp
[
-
1
].
minor
.
yy56
;}
break
;
case
17
4
:
/* union ::= select */
case
17
5
:
/* union ::= select */
{
yylhsminor
.
yy149
=
setSubclause
(
NULL
,
yymsp
[
0
].
minor
.
yy56
);
}
yymsp
[
0
].
minor
.
yy149
=
yylhsminor
.
yy149
;
break
;
case
17
5
:
/* union ::= union UNION ALL select */
case
17
6
:
/* union ::= union UNION ALL select */
{
yylhsminor
.
yy149
=
appendSelectClause
(
yymsp
[
-
3
].
minor
.
yy149
,
SQL_TYPE_UNIONALL
,
yymsp
[
0
].
minor
.
yy56
);
}
yymsp
[
-
3
].
minor
.
yy149
=
yylhsminor
.
yy149
;
break
;
case
17
6
:
/* union ::= union UNION select */
case
17
7
:
/* union ::= union UNION select */
{
yylhsminor
.
yy149
=
appendSelectClause
(
yymsp
[
-
2
].
minor
.
yy149
,
SQL_TYPE_UNION
,
yymsp
[
0
].
minor
.
yy56
);
}
yymsp
[
-
2
].
minor
.
yy149
=
yylhsminor
.
yy149
;
break
;
case
17
7
:
/* cmd ::= union */
case
17
8
:
/* cmd ::= union */
{
setSqlInfo
(
pInfo
,
yymsp
[
0
].
minor
.
yy149
,
NULL
,
TSDB_SQL_SELECT
);
}
break
;
case
17
8
:
/* select ::= SELECT selcollist */
case
17
9
:
/* select ::= SELECT selcollist */
{
yylhsminor
.
yy56
=
tSetQuerySqlNode
(
&
yymsp
[
-
1
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy421
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy56
=
yylhsminor
.
yy56
;
break
;
case
1
79
:
/* sclp ::= selcollist COMMA */
case
1
80
:
/* sclp ::= selcollist COMMA */
{
yylhsminor
.
yy421
=
yymsp
[
-
1
].
minor
.
yy421
;}
yymsp
[
-
1
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
18
0
:
/* sclp ::= */
case
21
2
:
/* orderby_opt ::= */
yytestcase
(
yyruleno
==
212
);
case
18
1
:
/* sclp ::= */
case
21
3
:
/* orderby_opt ::= */
yytestcase
(
yyruleno
==
213
);
{
yymsp
[
1
].
minor
.
yy421
=
0
;}
break
;
case
18
1
:
/* selcollist ::= sclp distinct expr as */
case
18
2
:
/* selcollist ::= sclp distinct expr as */
{
yylhsminor
.
yy421
=
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
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
18
2
:
/* selcollist ::= sclp STAR */
case
18
3
:
/* selcollist ::= sclp STAR */
{
tSqlExpr
*
pNode
=
tSqlExprCreateIdValue
(
NULL
,
TK_ALL
);
yylhsminor
.
yy421
=
tSqlExprListAppend
(
yymsp
[
-
1
].
minor
.
yy421
,
pNode
,
0
,
0
);
}
yymsp
[
-
1
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
18
3
:
/* as ::= AS ids */
case
18
4
:
/* as ::= AS ids */
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
break
;
case
18
4
:
/* as ::= ids */
case
18
5
:
/* as ::= ids */
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
18
5
:
/* as ::= */
case
18
6
:
/* as ::= */
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
}
break
;
case
18
6
:
/* distinct ::= DISTINCT */
case
18
7
:
/* distinct ::= DISTINCT */
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
18
8
:
/* from ::= FROM tablelist */
case
1
89
:
/* from ::= FROM sub */
yytestcase
(
yyruleno
==
189
);
case
18
9
:
/* from ::= FROM tablelist */
case
1
90
:
/* from ::= FROM sub */
yytestcase
(
yyruleno
==
190
);
{
yymsp
[
-
1
].
minor
.
yy8
=
yymsp
[
0
].
minor
.
yy8
;}
break
;
case
19
0
:
/* sub ::= LP union RP */
case
19
1
:
/* sub ::= LP union RP */
{
yymsp
[
-
2
].
minor
.
yy8
=
addSubquery
(
NULL
,
yymsp
[
-
1
].
minor
.
yy149
,
NULL
);}
break
;
case
19
1
:
/* sub ::= LP union RP ids */
case
19
2
:
/* sub ::= LP union RP ids */
{
yymsp
[
-
3
].
minor
.
yy8
=
addSubquery
(
NULL
,
yymsp
[
-
2
].
minor
.
yy149
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
19
2
:
/* sub ::= sub COMMA LP union RP ids */
case
19
3
:
/* sub ::= sub COMMA LP union RP ids */
{
yylhsminor
.
yy8
=
addSubquery
(
yymsp
[
-
5
].
minor
.
yy8
,
yymsp
[
-
2
].
minor
.
yy149
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
-
5
].
minor
.
yy8
=
yylhsminor
.
yy8
;
break
;
case
19
3
:
/* tablelist ::= ids cpxName */
case
19
4
:
/* tablelist ::= ids cpxName */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yylhsminor
.
yy8
=
setTableNameList
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy8
=
yylhsminor
.
yy8
;
break
;
case
19
4
:
/* tablelist ::= ids cpxName ids */
case
19
5
:
/* tablelist ::= ids cpxName ids */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
yymsp
[
-
1
].
minor
.
yy0
.
n
;
yylhsminor
.
yy8
=
setTableNameList
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
-
2
].
minor
.
yy8
=
yylhsminor
.
yy8
;
break
;
case
19
5
:
/* tablelist ::= tablelist COMMA ids cpxName */
case
19
6
:
/* tablelist ::= tablelist COMMA ids cpxName */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yylhsminor
.
yy8
=
setTableNameList
(
yymsp
[
-
3
].
minor
.
yy8
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
}
yymsp
[
-
3
].
minor
.
yy8
=
yylhsminor
.
yy8
;
break
;
case
19
6
:
/* tablelist ::= tablelist COMMA ids cpxName ids */
case
19
7
:
/* tablelist ::= tablelist COMMA ids cpxName ids */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
yymsp
[
-
1
].
minor
.
yy0
.
n
;
yylhsminor
.
yy8
=
setTableNameList
(
yymsp
[
-
4
].
minor
.
yy8
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
-
4
].
minor
.
yy8
=
yylhsminor
.
yy8
;
break
;
case
19
7
:
/* tmvar ::= VARIABLE */
case
19
8
:
/* tmvar ::= VARIABLE */
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
19
8
:
/* interval_option ::= intervalKey LP tmvar RP */
case
19
9
:
/* interval_option ::= intervalKey LP tmvar RP */
{
yylhsminor
.
yy400
.
interval
=
yymsp
[
-
1
].
minor
.
yy0
;
yylhsminor
.
yy400
.
offset
.
n
=
0
;
yylhsminor
.
yy400
.
token
=
yymsp
[
-
3
].
minor
.
yy104
;}
yymsp
[
-
3
].
minor
.
yy400
=
yylhsminor
.
yy400
;
break
;
case
199
:
/* interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
case
200
:
/* interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
{
yylhsminor
.
yy400
.
interval
=
yymsp
[
-
3
].
minor
.
yy0
;
yylhsminor
.
yy400
.
offset
=
yymsp
[
-
1
].
minor
.
yy0
;
yylhsminor
.
yy400
.
token
=
yymsp
[
-
5
].
minor
.
yy104
;}
yymsp
[
-
5
].
minor
.
yy400
=
yylhsminor
.
yy400
;
break
;
case
20
0
:
/* interval_option ::= */
case
20
1
:
/* interval_option ::= */
{
memset
(
&
yymsp
[
1
].
minor
.
yy400
,
0
,
sizeof
(
yymsp
[
1
].
minor
.
yy400
));}
break
;
case
20
1
:
/* intervalKey ::= INTERVAL */
case
20
2
:
/* intervalKey ::= INTERVAL */
{
yymsp
[
0
].
minor
.
yy104
=
TK_INTERVAL
;}
break
;
case
20
2
:
/* intervalKey ::= EVERY */
case
20
3
:
/* intervalKey ::= EVERY */
{
yymsp
[
0
].
minor
.
yy104
=
TK_EVERY
;
}
break
;
case
20
3
:
/* session_option ::= */
case
20
4
:
/* session_option ::= */
{
yymsp
[
1
].
minor
.
yy147
.
col
.
n
=
0
;
yymsp
[
1
].
minor
.
yy147
.
gap
.
n
=
0
;}
break
;
case
20
4
:
/* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
case
20
5
:
/* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
6
].
minor
.
yy147
.
col
=
yymsp
[
-
4
].
minor
.
yy0
;
yymsp
[
-
6
].
minor
.
yy147
.
gap
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
20
5
:
/* windowstate_option ::= */
case
20
6
:
/* windowstate_option ::= */
{
yymsp
[
1
].
minor
.
yy40
.
col
.
n
=
0
;
yymsp
[
1
].
minor
.
yy40
.
col
.
z
=
NULL
;}
break
;
case
20
6
:
/* windowstate_option ::= STATE_WINDOW LP ids RP */
case
20
7
:
/* windowstate_option ::= STATE_WINDOW LP ids RP */
{
yymsp
[
-
3
].
minor
.
yy40
.
col
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
20
7
:
/* fill_opt ::= */
case
20
8
:
/* fill_opt ::= */
{
yymsp
[
1
].
minor
.
yy421
=
0
;
}
break
;
case
20
8
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
case
20
9
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
SVariant
A
=
{
0
};
toTSDBType
(
yymsp
[
-
3
].
minor
.
yy0
.
type
);
...
...
@@ -2926,34 +2930,34 @@ static void yy_reduce(
yymsp
[
-
5
].
minor
.
yy421
=
yymsp
[
-
1
].
minor
.
yy421
;
}
break
;
case
2
09
:
/* fill_opt ::= FILL LP ID RP */
case
2
10
:
/* fill_opt ::= FILL LP ID RP */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
3
].
minor
.
yy421
=
tListItemAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
}
break
;
case
21
0
:
/* sliding_opt ::= SLIDING LP tmvar RP */
case
21
1
:
/* sliding_opt ::= SLIDING LP tmvar RP */
{
yymsp
[
-
3
].
minor
.
yy0
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
21
1
:
/* sliding_opt ::= */
case
21
2
:
/* sliding_opt ::= */
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
yymsp
[
1
].
minor
.
yy0
.
z
=
NULL
;
yymsp
[
1
].
minor
.
yy0
.
type
=
0
;
}
break
;
case
21
3
:
/* orderby_opt ::= ORDER BY sortlist */
case
21
4
:
/* orderby_opt ::= ORDER BY sortlist */
{
yymsp
[
-
2
].
minor
.
yy421
=
yymsp
[
0
].
minor
.
yy421
;}
break
;
case
21
4
:
/* sortlist ::= sortlist COMMA item sortorder */
case
21
5
:
/* sortlist ::= sortlist COMMA item sortorder */
{
yylhsminor
.
yy421
=
tListItemAppend
(
yymsp
[
-
3
].
minor
.
yy421
,
&
yymsp
[
-
1
].
minor
.
yy69
,
yymsp
[
0
].
minor
.
yy96
);
}
yymsp
[
-
3
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
21
5
:
/* sortlist ::= item sortorder */
case
21
6
:
/* sortlist ::= item sortorder */
{
yylhsminor
.
yy421
=
tListItemAppend
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy69
,
yymsp
[
0
].
minor
.
yy96
);
}
yymsp
[
-
1
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
21
6
:
/* item ::= ids cpxName */
case
21
7
:
/* item ::= ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
...
...
@@ -2962,235 +2966,235 @@ static void yy_reduce(
}
yymsp
[
-
1
].
minor
.
yy69
=
yylhsminor
.
yy69
;
break
;
case
21
7
:
/* sortorder ::= ASC */
case
21
8
:
/* sortorder ::= ASC */
{
yymsp
[
0
].
minor
.
yy96
=
TSDB_ORDER_ASC
;
}
break
;
case
21
8
:
/* sortorder ::= DESC */
case
21
9
:
/* sortorder ::= DESC */
{
yymsp
[
0
].
minor
.
yy96
=
TSDB_ORDER_DESC
;}
break
;
case
2
19
:
/* sortorder ::= */
case
2
20
:
/* sortorder ::= */
{
yymsp
[
1
].
minor
.
yy96
=
TSDB_ORDER_ASC
;
}
break
;
case
22
0
:
/* groupby_opt ::= */
case
22
1
:
/* groupby_opt ::= */
{
yymsp
[
1
].
minor
.
yy421
=
0
;}
break
;
case
22
1
:
/* groupby_opt ::= GROUP BY grouplist */
case
22
2
:
/* groupby_opt ::= GROUP BY grouplist */
{
yymsp
[
-
2
].
minor
.
yy421
=
yymsp
[
0
].
minor
.
yy421
;}
break
;
case
22
2
:
/* grouplist ::= grouplist COMMA item */
case
22
3
:
/* grouplist ::= grouplist COMMA item */
{
yylhsminor
.
yy421
=
tListItemAppend
(
yymsp
[
-
2
].
minor
.
yy421
,
&
yymsp
[
0
].
minor
.
yy69
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
22
3
:
/* grouplist ::= item */
case
22
4
:
/* grouplist ::= item */
{
yylhsminor
.
yy421
=
tListItemAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy69
,
-
1
);
}
yymsp
[
0
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
22
4
:
/* having_opt ::= */
case
23
4
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
234
);
case
27
8
:
/* expritem ::= */
yytestcase
(
yyruleno
==
278
);
case
22
5
:
/* having_opt ::= */
case
23
5
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
235
);
case
27
9
:
/* expritem ::= */
yytestcase
(
yyruleno
==
279
);
{
yymsp
[
1
].
minor
.
yy439
=
0
;}
break
;
case
22
5
:
/* having_opt ::= HAVING expr */
case
23
5
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
235
);
case
22
6
:
/* having_opt ::= HAVING expr */
case
23
6
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
236
);
{
yymsp
[
-
1
].
minor
.
yy439
=
yymsp
[
0
].
minor
.
yy439
;}
break
;
case
22
6
:
/* limit_opt ::= */
case
23
0
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
230
);
case
22
7
:
/* limit_opt ::= */
case
23
1
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
231
);
{
yymsp
[
1
].
minor
.
yy231
.
limit
=
-
1
;
yymsp
[
1
].
minor
.
yy231
.
offset
=
0
;}
break
;
case
22
7
:
/* limit_opt ::= LIMIT signed */
case
23
1
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
231
);
case
22
8
:
/* limit_opt ::= LIMIT signed */
case
23
2
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
232
);
{
yymsp
[
-
1
].
minor
.
yy231
.
limit
=
yymsp
[
0
].
minor
.
yy325
;
yymsp
[
-
1
].
minor
.
yy231
.
offset
=
0
;}
break
;
case
22
8
:
/* limit_opt ::= LIMIT signed OFFSET signed */
case
22
9
:
/* limit_opt ::= LIMIT signed OFFSET signed */
{
yymsp
[
-
3
].
minor
.
yy231
.
limit
=
yymsp
[
-
2
].
minor
.
yy325
;
yymsp
[
-
3
].
minor
.
yy231
.
offset
=
yymsp
[
0
].
minor
.
yy325
;}
break
;
case
2
29
:
/* limit_opt ::= LIMIT signed COMMA signed */
case
2
30
:
/* limit_opt ::= LIMIT signed COMMA signed */
{
yymsp
[
-
3
].
minor
.
yy231
.
limit
=
yymsp
[
0
].
minor
.
yy325
;
yymsp
[
-
3
].
minor
.
yy231
.
offset
=
yymsp
[
-
2
].
minor
.
yy325
;}
break
;
case
23
2
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
case
23
3
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
{
yymsp
[
-
3
].
minor
.
yy231
.
limit
=
yymsp
[
-
2
].
minor
.
yy325
;
yymsp
[
-
3
].
minor
.
yy231
.
offset
=
yymsp
[
0
].
minor
.
yy325
;}
break
;
case
23
3
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
case
23
4
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
{
yymsp
[
-
3
].
minor
.
yy231
.
limit
=
yymsp
[
0
].
minor
.
yy325
;
yymsp
[
-
3
].
minor
.
yy231
.
offset
=
yymsp
[
-
2
].
minor
.
yy325
;}
break
;
case
23
6
:
/* expr ::= LP expr RP */
case
23
7
:
/* expr ::= LP expr RP */
{
yylhsminor
.
yy439
=
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
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
23
7
:
/* expr ::= ID */
case
23
8
:
/* expr ::= ID */
{
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
0
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
23
8
:
/* expr ::= ID DOT ID */
case
23
9
:
/* expr ::= ID DOT ID */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
2
39
:
/* expr ::= ID DOT STAR */
case
2
40
:
/* expr ::= ID DOT STAR */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ALL
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
24
0
:
/* expr ::= INTEGER */
case
24
1
:
/* expr ::= INTEGER */
{
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
0
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
24
1
:
/* expr ::= MINUS INTEGER */
case
24
2
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
242
);
case
24
2
:
/* expr ::= MINUS INTEGER */
case
24
3
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
243
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_INTEGER
;
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
-
1
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
24
3
:
/* expr ::= FLOAT */
case
24
4
:
/* expr ::= FLOAT */
{
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
0
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
24
4
:
/* expr ::= MINUS FLOAT */
case
24
5
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
245
);
case
24
5
:
/* expr ::= MINUS FLOAT */
case
24
6
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
246
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_FLOAT
;
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
-
1
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
24
6
:
/* expr ::= STRING */
case
24
7
:
/* expr ::= STRING */
{
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_STRING
);}
yymsp
[
0
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
24
7
:
/* expr ::= NOW */
case
24
8
:
/* expr ::= NOW */
{
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NOW
);
}
yymsp
[
0
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
24
8
:
/* expr ::= VARIABLE */
case
24
9
:
/* expr ::= VARIABLE */
{
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
0
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
2
49
:
/* expr ::= PLUS VARIABLE */
case
25
0
:
/* expr ::= MINUS VARIABLE */
yytestcase
(
yyruleno
==
250
);
case
2
50
:
/* expr ::= PLUS VARIABLE */
case
25
1
:
/* expr ::= MINUS VARIABLE */
yytestcase
(
yyruleno
==
251
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_VARIABLE
;
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
-
1
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
25
1
:
/* expr ::= BOOL */
case
25
2
:
/* expr ::= BOOL */
{
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_BOOL
);}
yymsp
[
0
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
25
2
:
/* expr ::= NULL */
case
25
3
:
/* expr ::= NULL */
{
yylhsminor
.
yy439
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NULL
);}
yymsp
[
0
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
25
3
:
/* expr ::= ID LP exprlist RP */
case
25
4
:
/* expr ::= ID LP exprlist RP */
{
tRecordFuncName
(
pInfo
->
funcs
,
&
yymsp
[
-
3
].
minor
.
yy0
);
yylhsminor
.
yy439
=
tSqlExprCreateFunction
(
yymsp
[
-
1
].
minor
.
yy421
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
25
4
:
/* expr ::= ID LP STAR RP */
case
25
5
:
/* expr ::= ID LP STAR RP */
{
tRecordFuncName
(
pInfo
->
funcs
,
&
yymsp
[
-
3
].
minor
.
yy0
);
yylhsminor
.
yy439
=
tSqlExprCreateFunction
(
NULL
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
25
5
:
/* expr ::= expr IS NULL */
case
25
6
:
/* expr ::= expr IS NULL */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
NULL
,
TK_ISNULL
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
25
6
:
/* expr ::= expr IS NOT NULL */
case
25
7
:
/* expr ::= expr IS NOT NULL */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
3
].
minor
.
yy439
,
NULL
,
TK_NOTNULL
);}
yymsp
[
-
3
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
25
7
:
/* expr ::= expr LT expr */
case
25
8
:
/* expr ::= expr LT expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_LT
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
25
8
:
/* expr ::= expr GT expr */
case
25
9
:
/* expr ::= expr GT expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_GT
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
2
59
:
/* expr ::= expr LE expr */
case
2
60
:
/* expr ::= expr LE expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_LE
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
26
0
:
/* expr ::= expr GE expr */
case
26
1
:
/* expr ::= expr GE expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_GE
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
26
1
:
/* expr ::= expr NE expr */
case
26
2
:
/* expr ::= expr NE expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_NE
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
26
2
:
/* expr ::= expr EQ expr */
case
26
3
:
/* expr ::= expr EQ expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_EQ
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
26
3
:
/* expr ::= expr BETWEEN expr AND expr */
case
26
4
:
/* expr ::= expr BETWEEN expr AND expr */
{
tSqlExpr
*
X2
=
tSqlExprClone
(
yymsp
[
-
4
].
minor
.
yy439
);
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
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
26
4
:
/* expr ::= expr AND expr */
case
26
5
:
/* expr ::= expr AND expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_AND
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
26
5
:
/* expr ::= expr OR expr */
case
26
6
:
/* expr ::= expr OR expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_OR
);
}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
26
6
:
/* expr ::= expr PLUS expr */
case
26
7
:
/* expr ::= expr PLUS expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_PLUS
);
}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
26
7
:
/* expr ::= expr MINUS expr */
case
26
8
:
/* expr ::= expr MINUS expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_MINUS
);
}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
26
8
:
/* expr ::= expr STAR expr */
case
26
9
:
/* expr ::= expr STAR expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_STAR
);
}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
2
69
:
/* expr ::= expr SLASH expr */
case
2
70
:
/* expr ::= expr SLASH expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_DIVIDE
);}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
27
0
:
/* expr ::= expr REM expr */
case
27
1
:
/* expr ::= expr REM expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_REM
);
}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
27
1
:
/* expr ::= expr LIKE expr */
case
27
2
:
/* expr ::= expr LIKE expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_LIKE
);
}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
27
2
:
/* expr ::= expr MATCH expr */
case
27
3
:
/* expr ::= expr MATCH expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_MATCH
);
}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
27
3
:
/* expr ::= expr NMATCH expr */
case
27
4
:
/* expr ::= expr NMATCH expr */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy439
,
yymsp
[
0
].
minor
.
yy439
,
TK_NMATCH
);
}
yymsp
[
-
2
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
27
4
:
/* expr ::= expr IN LP exprlist RP */
case
27
5
:
/* expr ::= expr IN LP exprlist RP */
{
yylhsminor
.
yy439
=
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy439
,
(
tSqlExpr
*
)
yymsp
[
-
1
].
minor
.
yy421
,
TK_IN
);
}
yymsp
[
-
4
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
27
5
:
/* exprlist ::= exprlist COMMA expritem */
case
27
6
:
/* exprlist ::= exprlist COMMA expritem */
{
yylhsminor
.
yy421
=
tSqlExprListAppend
(
yymsp
[
-
2
].
minor
.
yy421
,
yymsp
[
0
].
minor
.
yy439
,
0
,
0
);}
yymsp
[
-
2
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
27
6
:
/* exprlist ::= expritem */
case
27
7
:
/* exprlist ::= expritem */
{
yylhsminor
.
yy421
=
tSqlExprListAppend
(
0
,
yymsp
[
0
].
minor
.
yy439
,
0
,
0
);}
yymsp
[
0
].
minor
.
yy421
=
yylhsminor
.
yy421
;
break
;
case
27
7
:
/* expritem ::= expr */
case
27
8
:
/* expritem ::= expr */
{
yylhsminor
.
yy439
=
yymsp
[
0
].
minor
.
yy439
;}
yymsp
[
0
].
minor
.
yy439
=
yylhsminor
.
yy439
;
break
;
case
2
79
:
/* cmd ::= RESET QUERY CACHE */
case
2
80
:
/* cmd ::= RESET QUERY CACHE */
{
setDCLSqlElems
(
pInfo
,
TSDB_SQL_RESET_CACHE
,
0
);}
break
;
case
28
0
:
/* cmd ::= SYNCDB ids REPLICA */
case
28
1
:
/* cmd ::= SYNCDB ids REPLICA */
{
setDCLSqlElems
(
pInfo
,
TSDB_SQL_SYNC_DB_REPLICA
,
1
,
&
yymsp
[
-
1
].
minor
.
yy0
);}
break
;
case
28
1
:
/* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
case
28
2
:
/* 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
.
yy421
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
28
2
:
/* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
case
28
3
:
/* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
...
...
@@ -3199,21 +3203,21 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
28
3
:
/* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
case
28
4
:
/* 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
.
yy421
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
28
4
:
/* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
case
28
5
:
/* 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
.
yy421
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
28
5
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
case
28
6
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -3224,7 +3228,7 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
28
6
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
case
28
7
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
...
...
@@ -3238,7 +3242,7 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
28
7
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
case
28
8
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
yymsp
[
-
6
].
minor
.
yy0
.
n
+=
yymsp
[
-
5
].
minor
.
yy0
.
n
;
...
...
@@ -3250,21 +3254,21 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
28
8
:
/* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
case
28
9
:
/* 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
.
yy421
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
2
89
:
/* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
case
2
90
:
/* 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
.
yy421
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
29
0
:
/* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
case
29
1
:
/* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -3275,21 +3279,21 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
29
1
:
/* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
case
29
2
:
/* 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
.
yy421
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
29
2
:
/* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
case
29
3
:
/* 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
.
yy421
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
29
3
:
/* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
case
29
4
:
/* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -3300,7 +3304,7 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
29
4
:
/* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
case
29
5
:
/* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
...
...
@@ -3314,7 +3318,7 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
29
5
:
/* cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
case
29
6
:
/* cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
{
yymsp
[
-
6
].
minor
.
yy0
.
n
+=
yymsp
[
-
5
].
minor
.
yy0
.
n
;
...
...
@@ -3326,20 +3330,20 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
29
6
:
/* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
case
29
7
:
/* 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
.
yy421
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
29
7
:
/* cmd ::= KILL CONNECTION INTEGER */
case
29
8
:
/* cmd ::= KILL CONNECTION INTEGER */
{
setKillSql
(
pInfo
,
TSDB_SQL_KILL_CONNECTION
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
29
8
:
/* cmd ::= KILL STREAM INTEGER COLON INTEGER */
case
29
9
:
/* cmd ::= KILL STREAM INTEGER COLON INTEGER */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
+
yymsp
[
0
].
minor
.
yy0
.
n
);
setKillSql
(
pInfo
,
TSDB_SQL_KILL_STREAM
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
case
299
:
/* cmd ::= KILL QUERY INTEGER COLON INTEGER */
case
300
:
/* cmd ::= KILL QUERY INTEGER COLON INTEGER */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
+
yymsp
[
0
].
minor
.
yy0
.
n
);
setKillSql
(
pInfo
,
TSDB_SQL_KILL_QUERY
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
default:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录