Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
f2e01999
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f2e01999
编写于
6月 11, 2021
作者:
Y
yihaoDeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "[td-225]update the sql.y"
This reverts commit
bdbc873f
.
上级
bdbc873f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
1285 addition
and
948 deletion
+1285
-948
src/inc/ttokendef.h
src/inc/ttokendef.h
+7
-0
src/query/src/sql.c
src/query/src/sql.c
+1278
-948
未找到文件。
src/inc/ttokendef.h
浏览文件 @
f2e01999
...
...
@@ -206,6 +206,13 @@
#define TK_INTO 187
#define TK_VALUES 188
#define TK_SPACE 300
#define TK_COMMENT 301
#define TK_ILLEGAL 302
...
...
src/query/src/sql.c
浏览文件 @
f2e01999
...
...
@@ -23,6 +23,7 @@
** input grammar file:
*/
#include <stdio.h>
#include <assert.h>
/************ Begin %include sections from the grammar ************************/
#include <stdio.h>
...
...
@@ -76,8 +77,10 @@
** zero the stack is dynamically sized using realloc()
** ParseARG_SDECL A static variable declaration for the %extra_argument
** ParseARG_PDECL A parameter declaration for the %extra_argument
** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter
** ParseARG_STORE Code to store %extra_argument into yypParser
** ParseARG_FETCH Code to extract %extra_argument from yypParser
** ParseCTX_* As ParseARG_ except for %extra_context
** YYERRORSYMBOL is the code number of the error symbol. If not
** defined, then do no error processing.
** YYNSTATE the combined number of states.
...
...
@@ -97,39 +100,46 @@
#endif
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned short int
#define YYNOCODE 26
8
#define YYNOCODE 26
6
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SStrToken
typedef
union
{
int
yyinit
;
ParseTOKENTYPE
yy0
;
SArray
*
yy15
;
SWindowStateVal
yy
9
6
;
S
SqlNode
*
yy13
4
;
S
LimitVal
yy150
;
S
SessionWindowVal
yy151
;
S
RelationInfo
*
yy160
;
int
yy250
;
tSqlExpr
*
yy328
;
tVariant
yy380
;
S
CreatedTableInfo
yy390
;
S
CreateAcctInfo
yy397
;
SCreateDbInfo
yy454
;
S
CreateTableSql
*
yy482
;
int64_t
yy489
;
SIntervalVal
yy496
;
TAOS_FIELD
yy505
;
TAOS_FIELD
yy27
;
SWindowStateVal
yy
7
6
;
S
CreateDbInfo
yy11
4
;
S
SqlNode
*
yy124
;
S
CreateAcctInfo
yy183
;
S
CreatedTableInfo
yy192
;
SArray
*
yy193
;
SCreateTableSql
*
yy270
;
int
yy312
;
S
RelationInfo
*
yy332
;
S
IntervalVal
yy392
;
tVariant
yy442
;
S
SessionWindowVal
yy447
;
tSqlExpr
*
yy454
;
int64_t
yy473
;
SLimitVal
yy482
;
}
YYMINORTYPE
;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
#define ParseARG_SDECL SSqlInfo* pInfo;
#define ParseARG_PDECL ,SSqlInfo* pInfo
#define ParseARG_FETCH SSqlInfo* pInfo = yypParser->pInfo
#define ParseARG_STORE yypParser->pInfo = pInfo
#define ParseARG_PARAM ,pInfo
#define ParseARG_FETCH SSqlInfo* pInfo=yypParser->pInfo;
#define ParseARG_STORE yypParser->pInfo=pInfo;
#define ParseCTX_SDECL
#define ParseCTX_PDECL
#define ParseCTX_PARAM
#define ParseCTX_FETCH
#define ParseCTX_STORE
#define YYFALLBACK 1
#define YYNSTATE 341
#define YYNRULE 280
#define YYNRULE_WITH_ACTION 280
#define YYNTOKEN 189
#define YY_MAX_SHIFT 340
#define YY_MIN_SHIFTREDUCE 538
...
...
@@ -140,6 +150,7 @@ typedef union {
#define YY_MIN_REDUCE 821
#define YY_MAX_REDUCE 1100
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
/* Define the yytestcase() macro to be a no-op if is not already defined
** otherwise.
...
...
@@ -204,11 +215,11 @@ typedef union {
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (72
1
)
#define YY_ACTTAB_COUNT (72
2
)
static
const
YYACTIONTYPE
yy_action
[]
=
{
/* 0 */
989
,
586
,
217
,
338
,
954
,
22
,
223
,
192
,
194
,
587
,
/* 10 */
819
,
340
,
198
,
52
,
53
,
151
,
56
,
57
,
226
,
1077
,
/* 20 */
229
,
46
,
1073
,
55
,
282
,
60
,
58
,
62
,
59
,
1072
,
/* 20 */
229
,
46
,
283
,
55
,
282
,
60
,
58
,
62
,
59
,
1073
,
/* 30 */
665
,
194
,
968
,
51
,
50
,
194
,
234
,
49
,
48
,
47
,
/* 40 */
52
,
53
,
1076
,
56
,
57
,
225
,
1077
,
229
,
46
,
586
,
/* 50 */
55
,
282
,
60
,
58
,
62
,
59
,
980
,
587
,
314
,
313
,
...
...
@@ -217,161 +228,162 @@ static const YYACTIONTYPE yy_action[] = {
/* 80 */
62
,
59
,
279
,
298
,
87
,
867
,
51
,
50
,
94
,
178
,
/* 90 */
49
,
48
,
47
,
539
,
540
,
541
,
542
,
543
,
544
,
545
,
/* 100 */
546
,
547
,
548
,
549
,
550
,
551
,
339
,
953
,
298
,
218
,
/* 110 */
76
,
586
,
964
,
52
,
53
,
35
,
56
,
57
,
324
,
587
,
/* 110 */
76
,
586
,
964
,
52
,
53
,
35
,
56
,
57
,
775
,
587
,
/* 120 */
229
,
46
,
956
,
55
,
282
,
60
,
58
,
62
,
59
,
49
,
/* 130 */
48
,
47
,
756
,
51
,
50
,
265
,
264
,
49
,
48
,
47
,
/* 140 */
52
,
54
,
980
,
56
,
57
,
1071
,
980
,
229
,
46
,
586
,
/* 140 */
52
,
54
,
980
,
56
,
57
,
324
,
980
,
229
,
46
,
586
,
/* 150 */
55
,
282
,
60
,
58
,
62
,
59
,
219
,
587
,
220
,
965
,
/* 160 */
51
,
50
,
221
,
21
2
,
49
,
48
,
47
,
28
,
296
,
333
,
/* 160 */
51
,
50
,
221
,
107
2
,
49
,
48
,
47
,
28
,
296
,
333
,
/* 170 */
332
,
295
,
294
,
293
,
331
,
292
,
330
,
329
,
328
,
291
,
/* 180 */
327
,
326
,
928
,
35
,
916
,
917
,
918
,
919
,
920
,
921
,
/* 190 */
922
,
923
,
924
,
925
,
926
,
927
,
929
,
930
,
56
,
57
,
/* 200 */
151
,
213
,
229
,
46
,
151
,
55
,
282
,
60
,
58
,
62
,
/* 210 */
59
,
962
,
23
,
91
,
29
,
51
,
50
,
243
,
19
6
,
49
,
/* 220 */
48
,
47
,
228
,
771
,
232
,
197
,
760
,
965
,
763
,
203
,
/* 230 */
766
,
228
,
771
,
15
1
,
13
,
760
,
204
,
763
,
93
,
766
,
/* 200 */
876
,
1071
,
229
,
46
,
178
,
55
,
282
,
60
,
58
,
62
,
/* 210 */
59
,
962
,
23
,
91
,
29
,
51
,
50
,
1
,
16
6
,
49
,
/* 220 */
48
,
47
,
228
,
771
,
232
,
79
,
760
,
965
,
763
,
203
,
/* 230 */
766
,
228
,
771
,
26
1
,
13
,
760
,
204
,
763
,
93
,
766
,
/* 240 */
90
,
128
,
127
,
202
,
951
,
952
,
34
,
955
,
60
,
58
,
/* 250 */
62
,
59
,
966
,
235
,
214
,
215
,
51
,
50
,
281
,
1096
,
/* 260 */
49
,
48
,
47
,
214
,
215
,
337
,
336
,
136
,
28
,
1025
,
/* 270 */
333
,
332
,
82
,
88
,
250
,
331
,
704
,
330
,
329
,
328
,
/* 280 */
41
,
327
,
326
,
254
,
253
,
936
,
35
,
199
,
934
,
935
,
/* 290 */
142
,
140
,
139
,
937
,
876
,
939
,
940
,
938
,
178
,
941
,
/* 300 */
942
,
82
,
1026
,
257
,
277
,
74
,
113
,
107
,
118
,
41
,
/* 310 */
236
,
334
,
211
,
117
,
123
,
126
,
116
,
239
,
762
,
193
,
/* 320 */
765
,
35
,
120
,
242
,
761
,
61
,
764
,
233
,
689
,
1088
,
/* 330 */
965
,
686
,
772
,
687
,
61
,
688
,
968
,
968
,
768
,
200
,
/* 340 */
1
15
,
772
,
5
,
38
,
168
,
324
,
283
,
768
,
79
,
167
,
/* 350 */
101
,
96
,
100
,
868
,
708
,
767
,
261
,
178
,
35
,
245
,
/* 360 */
246
,
201
,
303
,
35
,
767
,
965
,
186
,
184
,
182
,
35
,
/* 370 */
35
,
35
,
89
,
181
,
131
,
130
,
129
,
51
,
50
,
35
,
/* 380 */
35
,
49
,
48
,
47
,
1
,
166
,
77
,
240
,
967
,
238
,
/* 390 */
259
,
302
,
301
,
244
,
36
,
241
,
701
,
309
,
308
,
304
,
/* 400 */
3
,
179
,
965
,
8
,
305
,
758
,
227
,
965
,
737
,
738
,
/* 410 */
3
06
,
310
,
311
,
965
,
965
,
965
,
67
,
80
,
207
,
70
,
/* 420 */
312
,
316
,
720
,
965
,
965
,
261
,
146
,
728
,
729
,
792
,
/* 430 */
769
,
66
,
25
,
24
,
773
,
1036
,
770
,
690
,
24
,
68
,
/* 440 */
71
,
759
,
775
,
675
,
285
,
208
,
33
,
36
,
36
,
288
,
/* 450 */
6
,
206
,
677
,
287
,
676
,
255
,
66
,
92
,
66
,
73
,
/* 460 */
1
5
,
664
,
14
,
693
,
106
,
694
,
105
,
17
,
691
,
16
,
/* 470 */
69
2
,
19
,
112
,
18
,
111
,
21
,
1035
,
20
,
125
,
124
,
/* 480 */
19
1
,
205
,
195
,
230
,
143
,
1032
,
1031
,
231
,
315
,
988
,
/* 490 */
44
,
999
,
996
,
997
,
1001
,
145
,
981
,
262
,
149
,
271
,
/* 500 */
1018
,
1017
,
963
,
162
,
163
,
141
,
932
,
961
,
164
,
165
,
/* 510 */
719
,
879
,
266
,
290
,
325
,
160
,
158
,
276
,
153
,
978
,
/* 520 */
42
,
152
,
63
,
189
,
222
,
72
,
268
,
39
,
299
,
275
,
/* 530 */
875
,
69
,
280
,
300
,
1095
,
278
,
103
,
154
,
1094
,
155
,
/* 540 */
156
,
274
,
157
,
1091
,
169
,
307
,
1087
,
109
,
272
,
1086
,
/* 550 */
1083
,
170
,
897
,
40
,
37
,
43
,
190
,
864
,
119
,
86
2
,
/* 560 */
121
,
122
,
860
,
859
,
247
,
180
,
857
,
856
,
855
,
854
,
/* 570 */
85
3
,
852
,
183
,
185
,
849
,
847
,
845
,
843
,
187
,
840
,
/* 580 */
188
,
270
,
260
,
78
,
83
,
269
,
1019
,
267
,
45
,
114
,
/* 590 */
3
17
,
318
,
319
,
216
,
321
,
237
,
320
,
289
,
322
,
323
,
/* 600 */
335
,
209
,
817
,
248
,
97
,
98
,
210
,
249
,
816
,
252
,
/* 610 */
815
,
251
,
798
,
797
,
256
,
858
,
261
,
132
,
173
,
133
,
/* 620 */
898
,
175
,
171
,
172
,
174
,
176
,
177
,
851
,
4
,
13
4
,
/* 630 */
850
,
2
,
135
,
842
,
841
,
284
,
9
,
81
,
696
,
16
1
,
/* 640 */
159
,
30
,
147
,
263
,
84
,
944
,
224
,
721
,
724
,
85
,
/* 650 */
10
,
726
,
86
,
148
,
273
,
11
,
730
,
150
,
31
,
774
,
/* 660 */
7
,
32
,
12
,
26
,
286
,
27
,
776
,
95
,
93
,
628
,
/* 670 */
624
,
622
,
621
,
620
,
617
,
590
,
297
,
99
,
64
,
36
,
/* 680 */
102
,
667
,
666
,
663
,
612
,
610
,
65
,
602
,
104
,
608
,
/* 690 */
60
4
,
606
,
600
,
598
,
631
,
630
,
629
,
627
,
626
,
625
,
/* 700 */
62
3
,
619
,
618
,
108
,
110
,
66
,
588
,
555
,
553
,
821
,
/* 710 */
820
,
820
,
820
,
820
,
820
,
820
,
820
,
820
,
820
,
137
,
/* 720 */
138
,
/* 250 */
62
,
59
,
89
,
235
,
214
,
215
,
51
,
50
,
281
,
151
,
/* 260 */
49
,
48
,
47
,
214
,
215
,
762
,
77
,
765
,
28
,
1096
,
/* 270 */
333
,
332
,
82
,
35
,
35
,
331
,
701
,
330
,
329
,
328
,
/* 280 */
41
,
327
,
326
,
8
,
936
,
51
,
50
,
934
,
935
,
49
,
/* 290 */
48
,
47
,
937
,
868
,
939
,
940
,
938
,
178
,
941
,
942
,
/* 300 */
113
,
107
,
118
,
257
,
239
,
74
,
704
,
117
,
123
,
126
,
/* 310 */
116
,
242
,
211
,
35
,
233
,
303
,
120
,
965
,
965
,
689
,
/* 320 */
212
,
761
,
686
,
764
,
687
,
61
,
688
,
213
,
1026
,
35
,
/* 330 */
277
,
35
,
772
,
1036
,
61
,
5
,
38
,
168
,
768
,
151
,
/* 340 */
1
96
,
772
,
167
,
101
,
96
,
100
,
35
,
768
,
35
,
151
,
/* 350 */
245
,
246
,
35
,
35
,
304
,
767
,
236
,
965
,
186
,
184
,
/* 360 */
182
,
142
,
140
,
139
,
767
,
181
,
131
,
130
,
129
,
334
,
/* 370 */
305
,
243
,
306
,
965
,
240
,
965
,
238
,
769
,
302
,
301
,
/* 380 */
82
,
244
,
968
,
241
,
708
,
309
,
308
,
310
,
41
,
311
,
/* 390 */
965
,
250
,
965
,
312
,
316
,
968
,
965
,
965
,
3
,
179
,
/* 400 */
254
,
253
,
337
,
336
,
136
,
115
,
966
,
80
,
1025
,
259
,
/* 410 */
3
24
,
737
,
738
,
36
,
758
,
261
,
720
,
728
,
88
,
729
,
/* 420 */
146
,
66
,
227
,
25
,
67
,
792
,
197
,
773
,
690
,
24
,
/* 430 */
675
,
24
,
70
,
770
,
36
,
285
,
677
,
287
,
676
,
36
,
/* 440 */
66
,
92
,
66
,
33
,
125
,
124
,
288
,
68
,
199
,
15
,
/* 450 */
759
,
14
,
106
,
71
,
105
,
193
,
200
,
17
,
19
,
16
,
/* 460 */
1
8
,
201
,
73
,
112
,
664
,
111
,
6
,
207
,
693
,
691
,
/* 470 */
69
4
,
692
,
208
,
206
,
21
,
1035
,
20
,
1088
,
191
,
205
,
/* 480 */
19
5
,
967
,
230
,
255
,
1032
,
1031
,
231
,
315
,
44
,
143
,
/* 490 */
988
,
1018
,
999
,
996
,
1017
,
997
,
981
,
262
,
1001
,
145
,
/* 500 */
149
,
271
,
162
,
963
,
141
,
114
,
266
,
222
,
719
,
268
,
/* 510 */
158
,
275
,
154
,
163
,
978
,
152
,
155
,
276
,
961
,
164
,
/* 520 */
165
,
280
,
153
,
72
,
156
,
63
,
879
,
69
,
290
,
278
,
/* 530 */
42
,
274
,
189
,
39
,
299
,
875
,
300
,
1095
,
103
,
1094
,
/* 540 */
1091
,
169
,
307
,
1087
,
109
,
1086
,
1083
,
170
,
897
,
40
,
/* 550 */
272
,
37
,
43
,
190
,
270
,
864
,
119
,
862
,
121
,
12
2
,
/* 560 */
267
,
860
,
859
,
247
,
180
,
857
,
856
,
855
,
854
,
853
,
/* 570 */
85
2
,
183
,
185
,
849
,
847
,
845
,
843
,
187
,
840
,
188
,
/* 580 */
45
,
260
,
78
,
83
,
325
,
269
,
1019
,
317
,
318
,
319
,
/* 590 */
3
20
,
321
,
322
,
323
,
335
,
817
,
248
,
216
,
237
,
289
,
/* 600 */
249
,
816
,
251
,
252
,
209
,
210
,
97
,
98
,
815
,
798
,
/* 610 */
797
,
256
,
261
,
263
,
858
,
696
,
284
,
9
,
132
,
851
,
/* 620 */
173
,
133
,
172
,
898
,
171
,
174
,
175
,
177
,
176
,
4
,
/* 630 */
134
,
850
,
842
,
932
,
135
,
30
,
841
,
81
,
84
,
72
1
,
/* 640 */
2
,
161
,
159
,
157
,
160
,
147
,
944
,
724
,
148
,
85
,
/* 650 */
224
,
726
,
86
,
273
,
10
,
730
,
150
,
11
,
776
,
774
,
/* 660 */
31
,
7
,
32
,
12
,
26
,
286
,
27
,
95
,
628
,
93
,
/* 670 */
624
,
622
,
621
,
620
,
617
,
297
,
99
,
590
,
64
,
36
,
/* 680 */
65
,
102
,
667
,
666
,
104
,
108
,
663
,
612
,
610
,
602
,
/* 690 */
60
8
,
604
,
606
,
600
,
598
,
631
,
110
,
630
,
629
,
627
,
/* 700 */
62
6
,
625
,
623
,
619
,
618
,
588
,
555
,
553
,
66
,
821
,
/* 710 */
820
,
820
,
137
,
820
,
820
,
820
,
820
,
820
,
820
,
820
,
/* 720 */
820
,
138
,
};
static
const
YYCODETYPE
yy_lookahead
[]
=
{
/* 0 */
19
3
,
1
,
192
,
193
,
0
,
255
,
212
,
255
,
255
,
9
,
/* 10 */
1
90
,
191
,
255
,
13
,
14
,
193
,
16
,
17
,
265
,
266
,
/* 20 */
20
,
21
,
255
,
23
,
24
,
25
,
26
,
27
,
28
,
255
,
/* 30 */
5
,
25
5
,
238
,
33
,
34
,
255
,
212
,
37
,
38
,
39
,
/* 40 */
13
,
14
,
26
6
,
16
,
17
,
265
,
266
,
20
,
21
,
1
,
/* 50 */
23
,
24
,
25
,
26
,
27
,
28
,
23
6
,
9
,
33
,
34
,
/* 60 */
33
,
34
,
23
8
,
256
,
37
,
38
,
39
,
14
,
193
,
16
,
/* 70 */
17
,
19
3
,
252
,
20
,
21
,
199
,
23
,
24
,
25
,
26
,
/* 80 */
27
,
28
,
2
60
,
79
,
262
,
198
,
33
,
34
,
199
,
202
,
/* 0 */
19
2
,
1
,
191
,
192
,
0
,
254
,
211
,
254
,
254
,
9
,
/* 10 */
1
89
,
190
,
254
,
13
,
14
,
192
,
16
,
17
,
264
,
265
,
/* 20 */
20
,
21
,
15
,
23
,
24
,
25
,
26
,
27
,
28
,
254
,
/* 30 */
5
,
25
4
,
237
,
33
,
34
,
254
,
211
,
37
,
38
,
39
,
/* 40 */
13
,
14
,
26
5
,
16
,
17
,
264
,
265
,
20
,
21
,
1
,
/* 50 */
23
,
24
,
25
,
26
,
27
,
28
,
23
5
,
9
,
33
,
34
,
/* 60 */
33
,
34
,
23
7
,
255
,
37
,
38
,
39
,
14
,
192
,
16
,
/* 70 */
17
,
19
2
,
251
,
20
,
21
,
198
,
23
,
24
,
25
,
26
,
/* 80 */
27
,
28
,
2
59
,
79
,
261
,
197
,
33
,
34
,
198
,
201
,
/* 90 */
37
,
38
,
39
,
45
,
46
,
47
,
48
,
49
,
50
,
51
,
/* 100 */
52
,
53
,
54
,
55
,
56
,
57
,
58
,
23
1
,
79
,
61
,
/* 110 */
110
,
1
,
23
7
,
13
,
14
,
193
,
16
,
17
,
8
1
,
9
,
/* 120 */
20
,
21
,
23
3
,
23
,
24
,
25
,
26
,
27
,
28
,
37
,
/* 130 */
38
,
39
,
105
,
33
,
34
,
25
7
,
258
,
37
,
38
,
39
,
/* 140 */
13
,
14
,
23
6
,
16
,
17
,
255
,
236
,
20
,
21
,
1
,
/* 150 */
23
,
24
,
25
,
26
,
27
,
28
,
23
4
,
9
,
252
,
237
,
/* 160 */
33
,
34
,
25
2
,
255
,
37
,
38
,
39
,
88
,
89
,
90
,
/* 100 */
52
,
53
,
54
,
55
,
56
,
57
,
58
,
23
0
,
79
,
61
,
/* 110 */
110
,
1
,
23
6
,
13
,
14
,
192
,
16
,
17
,
11
1
,
9
,
/* 120 */
20
,
21
,
23
2
,
23
,
24
,
25
,
26
,
27
,
28
,
37
,
/* 130 */
38
,
39
,
105
,
33
,
34
,
25
6
,
257
,
37
,
38
,
39
,
/* 140 */
13
,
14
,
23
5
,
16
,
17
,
81
,
235
,
20
,
21
,
1
,
/* 150 */
23
,
24
,
25
,
26
,
27
,
28
,
23
3
,
9
,
251
,
236
,
/* 160 */
33
,
34
,
25
1
,
254
,
37
,
38
,
39
,
88
,
89
,
90
,
/* 170 */
91
,
92
,
93
,
94
,
95
,
96
,
97
,
98
,
99
,
100
,
/* 180 */
101
,
102
,
211
,
193
,
213
,
214
,
215
,
216
,
217
,
218
,
/* 190 */
219
,
220
,
221
,
222
,
223
,
224
,
225
,
226
,
16
,
17
,
/* 200 */
193
,
255
,
20
,
21
,
193
,
23
,
24
,
25
,
26
,
27
,
/* 210 */
28
,
193
,
44
,
199
,
104
,
33
,
34
,
193
,
255
,
37
,
/* 220 */
38
,
39
,
1
,
2
,
234
,
255
,
5
,
237
,
7
,
61
,
/* 230 */
9
,
1
,
2
,
193
,
104
,
5
,
68
,
7
,
108
,
9
,
/* 240 */
110
,
73
,
74
,
75
,
230
,
231
,
232
,
233
,
25
,
26
,
/* 250 */
27
,
28
,
228
,
235
,
33
,
34
,
33
,
34
,
37
,
238
,
/* 260 */
37
,
38
,
39
,
33
,
34
,
65
,
66
,
67
,
88
,
262
,
/* 270 */
90
,
91
,
104
,
262
,
136
,
95
,
37
,
97
,
98
,
99
,
/* 280 */
112
,
101
,
102
,
145
,
146
,
211
,
193
,
255
,
214
,
215
,
/* 290 */
62
,
63
,
64
,
219
,
198
,
221
,
222
,
223
,
202
,
225
,
/* 300 */
226
,
104
,
262
,
135
,
264
,
137
,
62
,
63
,
64
,
112
,
/* 310 */
212
,
212
,
144
,
69
,
70
,
71
,
72
,
68
,
5
,
255
,
/* 320 */
7
,
193
,
78
,
68
,
5
,
104
,
7
,
234
,
2
,
238
,
/* 330 */
237
,
5
,
111
,
7
,
104
,
9
,
238
,
238
,
117
,
255
,
/* 340 */
76
,
111
,
62
,
63
,
64
,
81
,
15
,
117
,
105
,
69
,
/* 350 */
70
,
71
,
72
,
198
,
115
,
134
,
113
,
202
,
193
,
33
,
/* 360 */
34
,
255
,
234
,
193
,
134
,
237
,
62
,
63
,
64
,
193
,
/* 370 */
193
,
193
,
239
,
69
,
70
,
71
,
72
,
33
,
34
,
193
,
/* 380 */
193
,
37
,
38
,
39
,
200
,
201
,
253
,
138
,
238
,
140
,
/* 390 */
105
,
142
,
143
,
138
,
109
,
140
,
109
,
142
,
143
,
234
,
/* 400 */
196
,
197
,
237
,
116
,
234
,
1
,
60
,
237
,
125
,
126
,
/* 410 */
234
,
234
,
234
,
237
,
237
,
237
,
109
,
105
,
255
,
109
,
/* 420 */
234
,
234
,
105
,
237
,
237
,
113
,
109
,
105
,
105
,
105
,
/* 430 */
117
,
109
,
109
,
109
,
105
,
229
,
117
,
111
,
109
,
132
,
/* 440 */
130
,
37
,
111
,
105
,
105
,
255
,
104
,
109
,
109
,
107
,
/* 450 */
104
,
255
,
105
,
105
,
105
,
193
,
109
,
109
,
109
,
104
,
/* 460 */
139
,
106
,
141
,
5
,
139
,
7
,
141
,
139
,
5
,
141
,
/* 470 */
7
,
139
,
139
,
141
,
141
,
139
,
229
,
141
,
76
,
77
,
/* 480 */
255
,
255
,
255
,
229
,
193
,
229
,
229
,
229
,
229
,
193
,
/* 490 */
254
,
193
,
193
,
193
,
193
,
193
,
236
,
236
,
193
,
193
,
/* 500 */
263
,
263
,
236
,
240
,
193
,
60
,
227
,
193
,
193
,
193
,
/* 510 */
117
,
193
,
259
,
193
,
103
,
242
,
244
,
122
,
249
,
251
,
/* 520 */
193
,
250
,
128
,
193
,
259
,
129
,
259
,
193
,
193
,
259
,
/* 530 */
193
,
131
,
123
,
193
,
193
,
127
,
193
,
248
,
193
,
247
,
/* 540 */
246
,
121
,
245
,
193
,
193
,
193
,
193
,
193
,
120
,
193
,
/* 550 */
193
,
193
,
193
,
193
,
193
,
193
,
193
,
193
,
193
,
193
,
/* 560 */
193
,
193
,
193
,
193
,
193
,
193
,
193
,
193
,
193
,
193
,
/* 570 */
193
,
193
,
193
,
193
,
193
,
193
,
193
,
193
,
193
,
193
,
/* 580 */
193
,
119
,
194
,
194
,
194
,
194
,
194
,
118
,
133
,
87
,
/* 590 */
86
,
50
,
83
,
194
,
54
,
194
,
85
,
194
,
84
,
82
,
/* 600 */
79
,
194
,
5
,
147
,
199
,
199
,
194
,
5
,
5
,
5
,
/* 610 */
5
,
147
,
90
,
89
,
136
,
194
,
113
,
195
,
204
,
195
,
/* 620 */
210
,
205
,
209
,
208
,
207
,
206
,
203
,
194
,
196
,
195
,
/* 630 */
194
,
200
,
195
,
194
,
194
,
107
,
104
,
114
,
105
,
241
,
/* 640 */
243
,
104
,
104
,
109
,
109
,
227
,
1
,
105
,
105
,
104
,
/* 650 */
124
,
105
,
104
,
109
,
104
,
124
,
105
,
104
,
109
,
105
,
/* 660 */
104
,
109
,
104
,
104
,
107
,
104
,
111
,
76
,
108
,
9
,
/* 670 */
5
,
5
,
5
,
5
,
5
,
80
,
15
,
76
,
16
,
109
,
/* 680 */
141
,
5
,
5
,
105
,
5
,
5
,
16
,
5
,
141
,
5
,
/* 690 */
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 700 */
5
,
5
,
5
,
141
,
141
,
109
,
80
,
60
,
59
,
0
,
/* 710 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
21
,
/* 720 */
21
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 730 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 740 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 750 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 760 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 770 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 780 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 790 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 800 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 810 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 820 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 830 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 840 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 850 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 860 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 870 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 880 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 890 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 900 */
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
267
,
/* 180 */
101
,
102
,
210
,
192
,
212
,
213
,
214
,
215
,
216
,
217
,
/* 190 */
218
,
219
,
220
,
221
,
222
,
223
,
224
,
225
,
16
,
17
,
/* 200 */
197
,
254
,
20
,
21
,
201
,
23
,
24
,
25
,
26
,
27
,
/* 210 */
28
,
192
,
44
,
198
,
104
,
33
,
34
,
199
,
200
,
37
,
/* 220 */
38
,
39
,
1
,
2
,
233
,
105
,
5
,
236
,
7
,
61
,
/* 230 */
9
,
1
,
2
,
113
,
104
,
5
,
68
,
7
,
108
,
9
,
/* 240 */
110
,
73
,
74
,
75
,
229
,
230
,
231
,
232
,
25
,
26
,
/* 250 */
27
,
28
,
238
,
234
,
33
,
34
,
33
,
34
,
37
,
192
,
/* 260 */
37
,
38
,
39
,
33
,
34
,
5
,
252
,
7
,
88
,
237
,
/* 270 */
90
,
91
,
104
,
192
,
192
,
95
,
109
,
97
,
98
,
99
,
/* 280 */
112
,
101
,
102
,
116
,
210
,
33
,
34
,
213
,
214
,
37
,
/* 290 */
38
,
39
,
218
,
197
,
220
,
221
,
222
,
201
,
224
,
225
,
/* 300 */
62
,
63
,
64
,
135
,
68
,
137
,
37
,
69
,
70
,
71
,
/* 310 */
72
,
68
,
144
,
192
,
233
,
233
,
78
,
236
,
236
,
2
,
/* 320 */
254
,
5
,
5
,
7
,
7
,
104
,
9
,
254
,
261
,
192
,
/* 330 */
263
,
192
,
111
,
228
,
104
,
62
,
63
,
64
,
117
,
192
,
/* 340 */
254
,
111
,
69
,
70
,
71
,
72
,
192
,
117
,
192
,
192
,
/* 350 */
33
,
34
,
192
,
192
,
233
,
134
,
211
,
236
,
62
,
63
,
/* 360 */
64
,
62
,
63
,
64
,
134
,
69
,
70
,
71
,
72
,
211
,
/* 370 */
233
,
192
,
233
,
236
,
138
,
236
,
140
,
117
,
142
,
143
,
/* 380 */
104
,
138
,
237
,
140
,
115
,
142
,
143
,
233
,
112
,
233
,
/* 390 */
236
,
136
,
236
,
233
,
233
,
237
,
236
,
236
,
195
,
196
,
/* 400 */
145
,
146
,
65
,
66
,
67
,
76
,
227
,
105
,
261
,
105
,
/* 410 */
81
,
125
,
126
,
109
,
1
,
113
,
105
,
105
,
261
,
105
,
/* 420 */
109
,
109
,
60
,
109
,
109
,
105
,
254
,
105
,
111
,
109
,
/* 430 */
105
,
109
,
109
,
117
,
109
,
105
,
105
,
105
,
105
,
109
,
/* 440 */
109
,
109
,
109
,
104
,
76
,
77
,
107
,
132
,
254
,
139
,
/* 450 */
37
,
141
,
139
,
130
,
141
,
254
,
254
,
139
,
139
,
141
,
/* 460 */
141
,
254
,
104
,
139
,
106
,
141
,
104
,
254
,
5
,
5
,
/* 470 */
7
,
7
,
254
,
254
,
139
,
228
,
141
,
237
,
254
,
254
,
/* 480 */
254
,
237
,
228
,
192
,
228
,
228
,
228
,
228
,
253
,
192
,
/* 490 */
192
,
262
,
192
,
192
,
262
,
192
,
235
,
235
,
192
,
192
,
/* 500 */
192
,
192
,
239
,
235
,
60
,
87
,
258
,
258
,
117
,
258
,
/* 510 */
243
,
258
,
247
,
192
,
250
,
249
,
246
,
122
,
192
,
192
,
/* 520 */
192
,
123
,
248
,
129
,
245
,
128
,
192
,
131
,
192
,
127
,
/* 530 */
192
,
121
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 540 */
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 550 */
120
,
192
,
192
,
192
,
119
,
192
,
192
,
192
,
192
,
192
,
/* 560 */
118
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 570 */
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 580 */
133
,
193
,
193
,
193
,
103
,
193
,
193
,
86
,
50
,
83
,
/* 590 */
85
,
54
,
84
,
82
,
79
,
5
,
147
,
193
,
193
,
193
,
/* 600 */
5
,
5
,
147
,
5
,
193
,
193
,
198
,
198
,
5
,
90
,
/* 610 */
89
,
136
,
113
,
109
,
193
,
105
,
107
,
104
,
194
,
193
,
/* 620 */
203
,
194
,
207
,
209
,
208
,
206
,
204
,
202
,
205
,
195
,
/* 630 */
194
,
193
,
193
,
226
,
194
,
104
,
193
,
114
,
109
,
105
,
/* 640 */
199
,
240
,
242
,
244
,
241
,
104
,
226
,
105
,
109
,
104
,
/* 650 */
1
,
105
,
104
,
104
,
124
,
105
,
104
,
124
,
111
,
105
,
/* 660 */
109
,
104
,
109
,
104
,
104
,
107
,
104
,
76
,
9
,
108
,
/* 670 */
5
,
5
,
5
,
5
,
5
,
15
,
76
,
80
,
16
,
109
,
/* 680 */
16
,
141
,
5
,
5
,
141
,
141
,
105
,
5
,
5
,
5
,
/* 690 */
5
,
5
,
5
,
5
,
5
,
5
,
141
,
5
,
5
,
5
,
/* 700 */
5
,
5
,
5
,
5
,
5
,
80
,
60
,
59
,
109
,
0
,
/* 710 */
266
,
266
,
21
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 720 */
266
,
21
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 730 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 740 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 750 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 760 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 770 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 780 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 790 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 800 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 810 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 820 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 830 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 840 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 850 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 860 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 870 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 880 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 890 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 900 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 910 */
266
,
};
#define YY_SHIFT_COUNT (340)
#define YY_SHIFT_MIN (0)
...
...
@@ -379,64 +391,64 @@ static const YYCODETYPE yy_lookahead[] = {
static
const
unsigned
short
int
yy_shift_ofst
[]
=
{
/* 0 */
168
,
79
,
79
,
180
,
180
,
29
,
221
,
230
,
110
,
148
,
/* 10 */
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 20 */
148
,
148
,
0
,
48
,
230
,
3
26
,
326
,
326
,
326
,
197
,
/* 30 */
197
,
148
,
148
,
148
,
4
,
148
,
148
,
264
,
29
,
37
,
/* 40 */
37
,
721
,
721
,
721
,
230
,
230
,
230
,
230
,
230
,
230
,
/* 20 */
148
,
148
,
0
,
48
,
230
,
3
17
,
317
,
317
,
317
,
276
,
/* 30 */
276
,
148
,
148
,
148
,
4
,
148
,
148
,
329
,
29
,
64
,
/* 40 */
64
,
722
,
722
,
722
,
230
,
230
,
230
,
230
,
230
,
230
,
/* 50 */
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
/* 60 */
230
,
230
,
230
,
230
,
3
26
,
326
,
326
,
25
,
25
,
25
,
/* 70 */
25
,
25
,
25
,
25
,
148
,
148
,
148
,
2
3
9
,
148
,
148
,
/* 80 */
148
,
197
,
197
,
148
,
148
,
148
,
148
,
283
,
283
,
28
7
,
/* 90 */
197
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 60 */
230
,
230
,
230
,
230
,
3
17
,
317
,
317
,
25
,
25
,
25
,
/* 70 */
25
,
25
,
25
,
25
,
148
,
148
,
148
,
2
6
9
,
148
,
148
,
/* 80 */
148
,
276
,
276
,
148
,
148
,
148
,
148
,
286
,
286
,
16
7
,
/* 90 */
276
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 100 */
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 110 */
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 120 */
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 130 */
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 140 */
148
,
148
,
148
,
44
5
,
445
,
445
,
393
,
393
,
393
,
445
,
/* 150 */
39
3
,
445
,
396
,
400
,
394
,
409
,
408
,
395
,
420
,
428
,
/* 160 */
4
62
,
469
,
455
,
445
,
445
,
445
,
411
,
29
,
29
,
445
,
/* 170 */
44
5
,
502
,
504
,
541
,
509
,
511
,
540
,
514
,
517
,
41
1
,
/* 180 */
44
5
,
521
,
521
,
445
,
521
,
445
,
521
,
445
,
445
,
721
,
/* 190 */
72
1
,
27
,
100
,
127
,
100
,
100
,
53
,
182
,
223
,
223
,
/* 200 */
223
,
223
,
2
44
,
280
,
304
,
344
,
344
,
344
,
344
,
249
,
/* 210 */
2
55
,
138
,
92
,
92
,
313
,
319
,
130
,
200
,
228
,
285
,
/* 220 */
243
,
312
,
317
,
322
,
323
,
324
,
329
,
404
,
346
,
331
,
/* 230 */
3
07
,
310
,
338
,
339
,
347
,
348
,
349
,
342
,
321
,
325
,
/* 240 */
3
28
,
332
,
333
,
355
,
336
,
458
,
463
,
402
,
597
,
456
,
/* 250 */
602
,
603
,
464
,
604
,
605
,
522
,
524
,
478
,
503
,
528
,
/* 260 */
5
32
,
523
,
533
,
537
,
534
,
535
,
542
,
538
,
543
,
544
,
/* 270 */
545
,
546
,
548
,
64
5
,
550
,
551
,
553
,
549
,
526
,
552
,
/* 280 */
53
1
,
554
,
556
,
555
,
558
,
528
,
559
,
557
,
561
,
560
,
/* 290 */
591
,
6
60
,
665
,
666
,
667
,
668
,
669
,
595
,
661
,
601
,
/* 300 */
662
,
5
39
,
547
,
570
,
570
,
570
,
570
,
670
,
562
,
563
,
/* 310 */
570
,
570
,
570
,
67
6
,
677
,
578
,
570
,
679
,
680
,
682
,
/* 320 */
68
4
,
685
,
686
,
687
,
688
,
689
,
690
,
691
,
692
,
693
,
/* 330 */
69
4
,
695
,
696
,
697
,
596
,
626
,
698
,
699
,
647
,
649
,
/* 140 */
148
,
148
,
148
,
44
4
,
444
,
444
,
391
,
391
,
391
,
444
,
/* 150 */
39
1
,
444
,
394
,
396
,
397
,
398
,
402
,
395
,
410
,
430
,
/* 160 */
4
35
,
442
,
447
,
444
,
444
,
444
,
481
,
29
,
29
,
444
,
/* 170 */
44
4
,
418
,
501
,
538
,
506
,
505
,
537
,
508
,
511
,
48
1
,
/* 180 */
44
4
,
515
,
515
,
444
,
515
,
444
,
515
,
444
,
444
,
722
,
/* 190 */
72
2
,
27
,
100
,
127
,
100
,
100
,
53
,
182
,
223
,
223
,
/* 200 */
223
,
223
,
2
38
,
273
,
296
,
252
,
252
,
252
,
252
,
236
,
/* 210 */
2
43
,
255
,
92
,
92
,
260
,
316
,
130
,
337
,
299
,
304
,
/* 220 */
120
,
302
,
311
,
312
,
314
,
320
,
322
,
413
,
362
,
7
,
/* 230 */
3
15
,
323
,
325
,
330
,
331
,
332
,
333
,
339
,
310
,
313
,
/* 240 */
3
18
,
319
,
324
,
358
,
335
,
463
,
464
,
368
,
590
,
449
,
/* 250 */
595
,
596
,
455
,
598
,
603
,
519
,
521
,
475
,
499
,
509
,
/* 260 */
5
13
,
523
,
510
,
531
,
504
,
529
,
534
,
541
,
542
,
539
,
/* 270 */
545
,
546
,
548
,
64
9
,
549
,
550
,
552
,
551
,
530
,
553
,
/* 280 */
53
3
,
554
,
557
,
547
,
559
,
509
,
560
,
558
,
562
,
561
,
/* 290 */
591
,
6
59
,
665
,
666
,
667
,
668
,
669
,
597
,
660
,
600
,
/* 300 */
662
,
5
40
,
543
,
570
,
570
,
570
,
570
,
664
,
544
,
555
,
/* 310 */
570
,
570
,
570
,
67
7
,
678
,
581
,
570
,
682
,
683
,
684
,
/* 320 */
68
5
,
686
,
687
,
688
,
689
,
690
,
692
,
693
,
694
,
695
,
/* 330 */
69
6
,
697
,
698
,
699
,
599
,
625
,
691
,
700
,
646
,
648
,
/* 340 */
709
,
};
#define YY_REDUCE_COUNT (190)
#define YY_REDUCE_MIN (-2
50
)
#define YY_REDUCE_MAX (44
0
)
#define YY_REDUCE_MIN (-2
49
)
#define YY_REDUCE_MAX (44
3
)
static
const
short
yy_reduce_ofst
[]
=
{
/* 0 */
-
1
80
,
-
29
,
-
29
,
74
,
74
,
14
,
-
247
,
-
220
,
-
122
,
-
78
,
/* 10 */
40
,
-
178
,
-
10
,
93
,
128
,
165
,
170
,
176
,
177
,
178
,
/* 20 */
1
86
,
187
,
-
193
,
-
190
,
-
224
,
-
206
,
-
176
,
98
,
99
,
-
94
,
/* 30 */
-
90
,
7
,
11
,
18
,
-
111
,
24
,
-
125
,
-
113
,
-
124
,
96
,
/* 40 */
155
,
133
,
184
,
204
,
-
250
,
-
248
,
-
243
,
-
233
,
-
226
,
-
110
,
/* 50 */
-
92
,
-
54
,
-
37
,
-
30
,
32
,
64
,
84
,
106
,
163
,
190
,
/* 60 */
196
,
225
,
226
,
227
,
21
,
91
,
150
,
206
,
247
,
254
,
/* 70 */
256
,
257
,
258
,
259
,
2
62
,
291
,
296
,
236
,
298
,
299
,
/* 80 */
30
0
,
260
,
261
,
301
,
302
,
305
,
306
,
237
,
238
,
263
,
/* 90 */
26
6
,
311
,
314
,
315
,
316
,
318
,
320
,
327
,
330
,
334
,
/* 100 */
3
35
,
337
,
340
,
341
,
343
,
345
,
350
,
351
,
352
,
353
,
/* 110 */
35
4
,
356
,
357
,
358
,
359
,
360
,
361
,
362
,
363
,
364
,
/* 120 */
36
5
,
366
,
367
,
368
,
369
,
370
,
371
,
372
,
373
,
374
,
/* 0 */
-
1
79
,
-
28
,
-
28
,
74
,
74
,
15
,
-
246
,
-
219
,
-
121
,
-
77
,
/* 10 */
67
,
-
177
,
-
9
,
81
,
82
,
121
,
137
,
139
,
154
,
156
,
/* 20 */
1
60
,
161
,
-
192
,
-
189
,
-
223
,
-
205
,
-
175
,
145
,
158
,
-
93
,
/* 30 */
-
89
,
147
,
157
,
19
,
-
110
,
179
,
-
124
,
-
112
,
-
123
,
3
,
/* 40 */
96
,
14
,
18
,
203
,
-
249
,
-
247
,
-
242
,
-
225
,
-
91
,
-
53
,
/* 50 */
66
,
73
,
86
,
172
,
194
,
201
,
202
,
207
,
213
,
218
,
/* 60 */
219
,
224
,
225
,
226
,
32
,
240
,
244
,
105
,
247
,
254
,
/* 70 */
256
,
257
,
258
,
259
,
2
91
,
297
,
298
,
235
,
300
,
301
,
/* 80 */
30
3
,
261
,
262
,
306
,
307
,
308
,
309
,
229
,
232
,
263
,
/* 90 */
26
8
,
321
,
326
,
327
,
328
,
334
,
336
,
338
,
340
,
341
,
/* 100 */
3
42
,
343
,
344
,
345
,
346
,
347
,
348
,
349
,
350
,
351
,
/* 110 */
35
2
,
353
,
354
,
355
,
356
,
357
,
359
,
360
,
361
,
363
,
/* 120 */
36
4
,
365
,
366
,
367
,
369
,
370
,
371
,
372
,
373
,
374
,
/* 130 */
375
,
376
,
377
,
378
,
379
,
380
,
381
,
382
,
383
,
384
,
/* 140 */
385
,
386
,
387
,
388
,
389
,
390
,
2
53
,
265
,
267
,
391
,
/* 150 */
2
70
,
392
,
268
,
271
,
269
,
289
,
292
,
294
,
297
,
272
,
/* 160 */
397
,
273
,
398
,
399
,
401
,
403
,
279
,
405
,
406
,
407
,
/* 170 */
412
,
41
0
,
413
,
415
,
414
,
417
,
416
,
419
,
423
,
418
,
/* 180 */
421
,
42
2
,
424
,
433
,
434
,
436
,
437
,
439
,
440
,
43
1
,
/* 190 */
43
2
,
/* 140 */
385
,
386
,
387
,
388
,
389
,
390
,
2
48
,
249
,
251
,
392
,
/* 150 */
2
53
,
393
,
264
,
266
,
274
,
265
,
270
,
279
,
399
,
267
,
/* 160 */
400
,
403
,
401
,
404
,
405
,
406
,
407
,
408
,
409
,
411
,
/* 170 */
412
,
41
4
,
416
,
415
,
417
,
419
,
422
,
423
,
425
,
420
,
/* 180 */
421
,
42
4
,
427
,
426
,
436
,
438
,
440
,
439
,
443
,
44
1
,
/* 190 */
43
4
,
};
static
const
YYACTIONTYPE
yy_default
[]
=
{
/* 0 */
818
,
931
,
877
,
943
,
865
,
874
,
1079
,
1079
,
818
,
818
,
...
...
@@ -721,6 +733,7 @@ struct yyParser {
int
yyerrcnt
;
/* Shifts left before out of the error */
#endif
ParseARG_SDECL
/* A place to hold %extra_argument */
ParseCTX_SDECL
/* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
int
yystksz
;
/* Current side of the stack */
yyStackEntry
*
yystack
;
/* The parser's stack */
...
...
@@ -957,84 +970,83 @@ static const char *const yyTokenName[] = {
/* 186 */
"INSERT"
,
/* 187 */
"INTO"
,
/* 188 */
"VALUES"
,
/* 189 */
"error"
,
/* 190 */
"program"
,
/* 191 */
"cmd"
,
/* 192 */
"dbPrefix"
,
/* 193 */
"ids"
,
/* 194 */
"cpxName"
,
/* 195 */
"ifexists"
,
/* 196 */
"alter_db_optr"
,
/* 197 */
"alter_topic_optr"
,
/* 198 */
"acct_optr"
,
/* 199 */
"ifnotexists"
,
/* 200 */
"db_optr"
,
/* 201 */
"topic_optr"
,
/* 202 */
"pps"
,
/* 203 */
"tseries"
,
/* 204 */
"dbs"
,
/* 205 */
"streams"
,
/* 206 */
"storage"
,
/* 207 */
"qtime"
,
/* 208 */
"users"
,
/* 209 */
"conns"
,
/* 210 */
"state"
,
/* 211 */
"keep"
,
/* 212 */
"tagitemlist"
,
/* 213 */
"cache"
,
/* 214 */
"replica"
,
/* 215 */
"quorum"
,
/* 216 */
"days"
,
/* 217 */
"minrows"
,
/* 218 */
"maxrows"
,
/* 219 */
"blocks"
,
/* 220 */
"ctime"
,
/* 221 */
"wal"
,
/* 222 */
"fsync"
,
/* 223 */
"comp"
,
/* 224 */
"prec"
,
/* 225 */
"update"
,
/* 226 */
"cachelast"
,
/* 227 */
"partitions"
,
/* 228 */
"typename"
,
/* 229 */
"signed"
,
/* 230 */
"create_table_args"
,
/* 231 */
"create_stable_args"
,
/* 232 */
"create_table_list"
,
/* 233 */
"create_from_stable"
,
/* 234 */
"columnlist"
,
/* 235 */
"tagNamelist"
,
/* 236 */
"select"
,
/* 237 */
"column"
,
/* 238 */
"tagitem"
,
/* 239 */
"selcollist"
,
/* 240 */
"from"
,
/* 241 */
"where_opt"
,
/* 242 */
"interval_opt"
,
/* 243 */
"session_option"
,
/* 244 */
"windowstate_option"
,
/* 245 */
"fill_opt"
,
/* 246 */
"sliding_opt"
,
/* 247 */
"groupby_opt"
,
/* 248 */
"orderby_opt"
,
/* 249 */
"having_opt"
,
/* 250 */
"slimit_opt"
,
/* 251 */
"limit_opt"
,
/* 252 */
"union"
,
/* 253 */
"sclp"
,
/* 254 */
"distinct"
,
/* 255 */
"expr"
,
/* 256 */
"as"
,
/* 257 */
"tablelist"
,
/* 258 */
"sub"
,
/* 259 */
"tmvar"
,
/* 260 */
"sortlist"
,
/* 261 */
"sortitem"
,
/* 262 */
"item"
,
/* 263 */
"sortorder"
,
/* 264 */
"grouplist"
,
/* 265 */
"exprlist"
,
/* 266 */
"expritem"
,
/* 189 */
"program"
,
/* 190 */
"cmd"
,
/* 191 */
"dbPrefix"
,
/* 192 */
"ids"
,
/* 193 */
"cpxName"
,
/* 194 */
"ifexists"
,
/* 195 */
"alter_db_optr"
,
/* 196 */
"alter_topic_optr"
,
/* 197 */
"acct_optr"
,
/* 198 */
"ifnotexists"
,
/* 199 */
"db_optr"
,
/* 200 */
"topic_optr"
,
/* 201 */
"pps"
,
/* 202 */
"tseries"
,
/* 203 */
"dbs"
,
/* 204 */
"streams"
,
/* 205 */
"storage"
,
/* 206 */
"qtime"
,
/* 207 */
"users"
,
/* 208 */
"conns"
,
/* 209 */
"state"
,
/* 210 */
"keep"
,
/* 211 */
"tagitemlist"
,
/* 212 */
"cache"
,
/* 213 */
"replica"
,
/* 214 */
"quorum"
,
/* 215 */
"days"
,
/* 216 */
"minrows"
,
/* 217 */
"maxrows"
,
/* 218 */
"blocks"
,
/* 219 */
"ctime"
,
/* 220 */
"wal"
,
/* 221 */
"fsync"
,
/* 222 */
"comp"
,
/* 223 */
"prec"
,
/* 224 */
"update"
,
/* 225 */
"cachelast"
,
/* 226 */
"partitions"
,
/* 227 */
"typename"
,
/* 228 */
"signed"
,
/* 229 */
"create_table_args"
,
/* 230 */
"create_stable_args"
,
/* 231 */
"create_table_list"
,
/* 232 */
"create_from_stable"
,
/* 233 */
"columnlist"
,
/* 234 */
"tagNamelist"
,
/* 235 */
"select"
,
/* 236 */
"column"
,
/* 237 */
"tagitem"
,
/* 238 */
"selcollist"
,
/* 239 */
"from"
,
/* 240 */
"where_opt"
,
/* 241 */
"interval_opt"
,
/* 242 */
"session_option"
,
/* 243 */
"windowstate_option"
,
/* 244 */
"fill_opt"
,
/* 245 */
"sliding_opt"
,
/* 246 */
"groupby_opt"
,
/* 247 */
"orderby_opt"
,
/* 248 */
"having_opt"
,
/* 249 */
"slimit_opt"
,
/* 250 */
"limit_opt"
,
/* 251 */
"union"
,
/* 252 */
"sclp"
,
/* 253 */
"distinct"
,
/* 254 */
"expr"
,
/* 255 */
"as"
,
/* 256 */
"tablelist"
,
/* 257 */
"sub"
,
/* 258 */
"tmvar"
,
/* 259 */
"sortlist"
,
/* 260 */
"sortitem"
,
/* 261 */
"item"
,
/* 262 */
"sortorder"
,
/* 263 */
"grouplist"
,
/* 264 */
"exprlist"
,
/* 265 */
"expritem"
,
};
#endif
/* defined(YYCOVERAGE) || !defined(NDEBUG) */
...
...
@@ -1370,28 +1382,29 @@ static int yyGrowStack(yyParser *p){
/* Initialize a new parser that has already been allocated.
*/
void
ParseInit
(
void
*
yypParser
){
yyParser
*
pParser
=
(
yyParser
*
)
yypParser
;
void
ParseInit
(
void
*
yypRawParser
ParseCTX_PDECL
){
yyParser
*
yypParser
=
(
yyParser
*
)
yypRawParser
;
ParseCTX_STORE
#ifdef YYTRACKMAXSTACKDEPTH
pParser
->
yyhwm
=
0
;
yy
pParser
->
yyhwm
=
0
;
#endif
#if YYSTACKDEPTH<=0
pParser
->
yytos
=
NULL
;
pParser
->
yystack
=
NULL
;
pParser
->
yystksz
=
0
;
if
(
yyGrowStack
(
pParser
)
){
pParser
->
yystack
=
&
pParser
->
yystk0
;
pParser
->
yystksz
=
1
;
yy
pParser
->
yytos
=
NULL
;
yy
pParser
->
yystack
=
NULL
;
yy
pParser
->
yystksz
=
0
;
if
(
yyGrowStack
(
yy
pParser
)
){
yypParser
->
yystack
=
&
yy
pParser
->
yystk0
;
yy
pParser
->
yystksz
=
1
;
}
#endif
#ifndef YYNOERRORRECOVERY
pParser
->
yyerrcnt
=
-
1
;
yy
pParser
->
yyerrcnt
=
-
1
;
#endif
pParser
->
yytos
=
pParser
->
yystack
;
pParser
->
yystack
[
0
].
stateno
=
0
;
pParser
->
yystack
[
0
].
major
=
0
;
yypParser
->
yytos
=
yy
pParser
->
yystack
;
yy
pParser
->
yystack
[
0
].
stateno
=
0
;
yy
pParser
->
yystack
[
0
].
major
=
0
;
#if YYSTACKDEPTH>0
pParser
->
yystackEnd
=
&
pParser
->
yystack
[
YYSTACKDEPTH
-
1
];
yypParser
->
yystackEnd
=
&
yy
pParser
->
yystack
[
YYSTACKDEPTH
-
1
];
#endif
}
...
...
@@ -1408,11 +1421,14 @@ void ParseInit(void *yypParser){
** A pointer to a parser. This pointer is used in subsequent calls
** to Parse and ParseFree.
*/
void
*
ParseAlloc
(
void
*
(
*
mallocProc
)(
YYMALLOCARGTYPE
)){
yyParser
*
pParser
;
pParser
=
(
yyParser
*
)(
*
mallocProc
)(
(
YYMALLOCARGTYPE
)
sizeof
(
yyParser
)
);
if
(
pParser
)
ParseInit
(
pParser
);
return
pParser
;
void
*
ParseAlloc
(
void
*
(
*
mallocProc
)(
YYMALLOCARGTYPE
)
ParseCTX_PDECL
){
yyParser
*
yypParser
;
yypParser
=
(
yyParser
*
)(
*
mallocProc
)(
(
YYMALLOCARGTYPE
)
sizeof
(
yyParser
)
);
if
(
yypParser
){
ParseCTX_STORE
ParseInit
(
yypParser
ParseCTX_PARAM
);
}
return
(
void
*
)
yypParser
;
}
#endif
/* Parse_ENGINEALWAYSONSTACK */
...
...
@@ -1429,7 +1445,8 @@ static void yy_destructor(
YYCODETYPE
yymajor
,
/* Type code for object to destroy */
YYMINORTYPE
*
yypminor
/* The object to be destroyed */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
switch
(
yymajor
){
/* Here is inserted the actions which take place when a
** terminal or non-terminal is destroyed. This can happen
...
...
@@ -1442,59 +1459,59 @@ static void yy_destructor(
** inside the C code.
*/
/********* Begin destructor definitions ***************************************/
case
21
1
:
/* keep */
case
21
2
:
/* tagitemlist */
case
23
4
:
/* columnlist */
case
23
5
:
/* tagNamelist */
case
24
5
:
/* fill_opt */
case
24
7
:
/* groupby_opt */
case
24
8
:
/* orderby_opt */
case
2
60
:
/* sortlist */
case
26
4
:
/* grouplist */
{
taosArrayDestroy
((
yypminor
->
yy1
5
));
case
21
0
:
/* keep */
case
21
1
:
/* tagitemlist */
case
23
3
:
/* columnlist */
case
23
4
:
/* tagNamelist */
case
24
4
:
/* fill_opt */
case
24
6
:
/* groupby_opt */
case
24
7
:
/* orderby_opt */
case
2
59
:
/* sortlist */
case
26
3
:
/* grouplist */
{
taosArrayDestroy
((
yypminor
->
yy1
93
));
}
break
;
case
23
2
:
/* create_table_list */
case
23
1
:
/* create_table_list */
{
destroyCreateTableSql
((
yypminor
->
yy
482
));
destroyCreateTableSql
((
yypminor
->
yy
270
));
}
break
;
case
23
6
:
/* select */
case
23
5
:
/* select */
{
destroySqlNode
((
yypminor
->
yy1
3
4
));
destroySqlNode
((
yypminor
->
yy1
2
4
));
}
break
;
case
23
9
:
/* selcollist */
case
25
3
:
/* sclp */
case
26
5
:
/* exprlist */
case
23
8
:
/* selcollist */
case
25
2
:
/* sclp */
case
26
4
:
/* exprlist */
{
tSqlExprListDestroy
((
yypminor
->
yy1
5
));
tSqlExprListDestroy
((
yypminor
->
yy1
93
));
}
break
;
case
2
40
:
/* from */
case
25
7
:
/* tablelist */
case
25
8
:
/* sub */
case
2
39
:
/* from */
case
25
6
:
/* tablelist */
case
25
7
:
/* sub */
{
destroyRelationInfo
((
yypminor
->
yy
160
));
destroyRelationInfo
((
yypminor
->
yy
332
));
}
break
;
case
24
1
:
/* where_opt */
case
24
9
:
/* having_opt */
case
25
5
:
/* expr */
case
26
6
:
/* expritem */
case
24
0
:
/* where_opt */
case
24
8
:
/* having_opt */
case
25
4
:
/* expr */
case
26
5
:
/* expritem */
{
tSqlExprDestroy
((
yypminor
->
yy
328
));
tSqlExprDestroy
((
yypminor
->
yy
454
));
}
break
;
case
25
2
:
/* union */
case
25
1
:
/* union */
{
destroyAllSqlNode
((
yypminor
->
yy1
5
));
destroyAllSqlNode
((
yypminor
->
yy1
93
));
}
break
;
case
26
1
:
/* sortitem */
case
26
0
:
/* sortitem */
{
tVariantDestroy
(
&
(
yypminor
->
yy
380
));
tVariantDestroy
(
&
(
yypminor
->
yy
442
));
}
break
;
/********* End destructor definitions *****************************************/
...
...
@@ -1606,13 +1623,12 @@ int ParseCoverage(FILE *out){
** Find the appropriate action for a parser given the terminal
** look-ahead token iLookAhead.
*/
static
unsigned
int
yy_find_shift_action
(
yyParser
*
pParser
,
/* The parser
*/
YY
CODETYPE
iLookAhead
/* The look-ahead token
*/
static
YYACTIONTYPE
yy_find_shift_action
(
YYCODETYPE
iLookAhead
,
/* The look-ahead token
*/
YY
ACTIONTYPE
stateno
/* Current state number
*/
){
int
i
;
int
stateno
=
pParser
->
yytos
->
stateno
;
if
(
stateno
>
YY_MAX_SHIFT
)
return
stateno
;
assert
(
stateno
<=
YY_SHIFT_COUNT
);
#if defined(YYCOVERAGE)
...
...
@@ -1620,15 +1636,19 @@ static unsigned int yy_find_shift_action(
#endif
do
{
i
=
yy_shift_ofst
[
stateno
];
assert
(
i
>=
0
&&
i
+
YYNTOKEN
<=
sizeof
(
yy_lookahead
)
/
sizeof
(
yy_lookahead
[
0
])
);
assert
(
i
>=
0
);
assert
(
i
<=
YY_ACTTAB_COUNT
);
assert
(
i
+
YYNTOKEN
<=
(
int
)
YY_NLOOKAHEAD
);
assert
(
iLookAhead
!=
YYNOCODE
);
assert
(
iLookAhead
<
YYNTOKEN
);
i
+=
iLookAhead
;
assert
(
i
<
(
int
)
YY_NLOOKAHEAD
);
if
(
yy_lookahead
[
i
]
!=
iLookAhead
){
#ifdef YYFALLBACK
YYCODETYPE
iFallback
;
/* Fallback token */
if
(
iLookAhead
<
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
])
&&
(
iFallback
=
yyFallback
[
iLookAhead
])
!=
0
){
assert
(
iLookAhead
<
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
])
);
iFallback
=
yyFallback
[
iLookAhead
];
if
(
iFallback
!=
0
){
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sFALLBACK %s => %s
\n
"
,
...
...
@@ -1643,15 +1663,8 @@ static unsigned int yy_find_shift_action(
#ifdef YYWILDCARD
{
int
j
=
i
-
iLookAhead
+
YYWILDCARD
;
if
(
#if YY_SHIFT_MIN+YYWILDCARD<0
j
>=
0
&&
#endif
#if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT
j
<
YY_ACTTAB_COUNT
&&
#endif
yy_lookahead
[
j
]
==
YYWILDCARD
&&
iLookAhead
>
0
){
assert
(
j
<
(
int
)(
sizeof
(
yy_lookahead
)
/
sizeof
(
yy_lookahead
[
0
]))
);
if
(
yy_lookahead
[
j
]
==
YYWILDCARD
&&
iLookAhead
>
0
){
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sWILDCARD %s => %s
\n
"
,
...
...
@@ -1665,6 +1678,7 @@ static unsigned int yy_find_shift_action(
#endif
/* YYWILDCARD */
return
yy_default
[
stateno
];
}
else
{
assert
(
i
>=
0
&&
i
<
sizeof
(
yy_action
)
/
sizeof
(
yy_action
[
0
])
);
return
yy_action
[
i
];
}
}
while
(
1
);
...
...
@@ -1674,8 +1688,8 @@ static unsigned int yy_find_shift_action(
** Find the appropriate action for a parser given the non-terminal
** look-ahead token iLookAhead.
*/
static
int
yy_find_reduce_action
(
int
stateno
,
/* Current state number */
static
YYACTIONTYPE
yy_find_reduce_action
(
YYACTIONTYPE
stateno
,
/* Current state number */
YYCODETYPE
iLookAhead
/* The look-ahead token */
){
int
i
;
...
...
@@ -1704,7 +1718,8 @@ static int yy_find_reduce_action(
** The following routine is called if the stack overflows.
*/
static
void
yyStackOverflow
(
yyParser
*
yypParser
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sStack Overflow!
\n
"
,
yyTracePrompt
);
...
...
@@ -1715,7 +1730,8 @@ static void yyStackOverflow(yyParser *yypParser){
** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
/******** End %stack_overflow code ********************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument var */
ParseARG_STORE
/* Suppress warning about unused %extra_argument var */
ParseCTX_STORE
}
/*
...
...
@@ -1744,8 +1760,8 @@ static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
*/
static
void
yy_shift
(
yyParser
*
yypParser
,
/* The parser to be shifted */
int
yyNewState
,
/* The new state to shift in */
int
yyMajor
,
/* The major token to shift in */
YYACTIONTYPE
yyNewState
,
/* The new state to shift in */
YYCODETYPE
yyMajor
,
/* The major token to shift in */
ParseTOKENTYPE
yyMinor
/* The minor token to shift in */
){
yyStackEntry
*
yytos
;
...
...
@@ -1775,299 +1791,580 @@ static void yy_shift(
yyNewState
+=
YY_MIN_REDUCE
-
YY_MIN_SHIFTREDUCE
;
}
yytos
=
yypParser
->
yytos
;
yytos
->
stateno
=
(
YYACTIONTYPE
)
yyNewState
;
yytos
->
major
=
(
YYCODETYPE
)
yyMajor
;
yytos
->
stateno
=
yyNewState
;
yytos
->
major
=
yyMajor
;
yytos
->
minor
.
yy0
=
yyMinor
;
yyTraceShift
(
yypParser
,
yyNewState
,
"Shift"
);
}
/* The following table contains information about every rule that
** is used during the reduce.
*/
static
const
struct
{
YYCODETYPE
lhs
;
/* Symbol on the left-hand side of the rule */
signed
char
nrhs
;
/* Negative of the number of RHS symbols in the rule */
}
yyRuleInfo
[]
=
{
{
190
,
-
1
},
/* (0) program ::= cmd */
{
191
,
-
2
},
/* (1) cmd ::= SHOW DATABASES */
{
191
,
-
2
},
/* (2) cmd ::= SHOW TOPICS */
{
191
,
-
2
},
/* (3) cmd ::= SHOW MNODES */
{
191
,
-
2
},
/* (4) cmd ::= SHOW DNODES */
{
191
,
-
2
},
/* (5) cmd ::= SHOW ACCOUNTS */
{
191
,
-
2
},
/* (6) cmd ::= SHOW USERS */
{
191
,
-
2
},
/* (7) cmd ::= SHOW MODULES */
{
191
,
-
2
},
/* (8) cmd ::= SHOW QUERIES */
{
191
,
-
2
},
/* (9) cmd ::= SHOW CONNECTIONS */
{
191
,
-
2
},
/* (10) cmd ::= SHOW STREAMS */
{
191
,
-
2
},
/* (11) cmd ::= SHOW VARIABLES */
{
191
,
-
2
},
/* (12) cmd ::= SHOW SCORES */
{
191
,
-
2
},
/* (13) cmd ::= SHOW GRANTS */
{
191
,
-
2
},
/* (14) cmd ::= SHOW VNODES */
{
191
,
-
3
},
/* (15) cmd ::= SHOW VNODES IPTOKEN */
{
192
,
0
},
/* (16) dbPrefix ::= */
{
192
,
-
2
},
/* (17) dbPrefix ::= ids DOT */
{
194
,
0
},
/* (18) cpxName ::= */
{
194
,
-
2
},
/* (19) cpxName ::= DOT ids */
{
191
,
-
5
},
/* (20) cmd ::= SHOW CREATE TABLE ids cpxName */
{
191
,
-
5
},
/* (21) cmd ::= SHOW CREATE STABLE ids cpxName */
{
191
,
-
4
},
/* (22) cmd ::= SHOW CREATE DATABASE ids */
{
191
,
-
3
},
/* (23) cmd ::= SHOW dbPrefix TABLES */
{
191
,
-
5
},
/* (24) cmd ::= SHOW dbPrefix TABLES LIKE ids */
{
191
,
-
3
},
/* (25) cmd ::= SHOW dbPrefix STABLES */
{
191
,
-
5
},
/* (26) cmd ::= SHOW dbPrefix STABLES LIKE ids */
{
191
,
-
3
},
/* (27) cmd ::= SHOW dbPrefix VGROUPS */
{
191
,
-
4
},
/* (28) cmd ::= SHOW dbPrefix VGROUPS ids */
{
191
,
-
5
},
/* (29) cmd ::= DROP TABLE ifexists ids cpxName */
{
191
,
-
5
},
/* (30) cmd ::= DROP STABLE ifexists ids cpxName */
{
191
,
-
4
},
/* (31) cmd ::= DROP DATABASE ifexists ids */
{
191
,
-
4
},
/* (32) cmd ::= DROP TOPIC ifexists ids */
{
191
,
-
3
},
/* (33) cmd ::= DROP DNODE ids */
{
191
,
-
3
},
/* (34) cmd ::= DROP USER ids */
{
191
,
-
3
},
/* (35) cmd ::= DROP ACCOUNT ids */
{
191
,
-
2
},
/* (36) cmd ::= USE ids */
{
191
,
-
3
},
/* (37) cmd ::= DESCRIBE ids cpxName */
{
191
,
-
5
},
/* (38) cmd ::= ALTER USER ids PASS ids */
{
191
,
-
5
},
/* (39) cmd ::= ALTER USER ids PRIVILEGE ids */
{
191
,
-
4
},
/* (40) cmd ::= ALTER DNODE ids ids */
{
191
,
-
5
},
/* (41) cmd ::= ALTER DNODE ids ids ids */
{
191
,
-
3
},
/* (42) cmd ::= ALTER LOCAL ids */
{
191
,
-
4
},
/* (43) cmd ::= ALTER LOCAL ids ids */
{
191
,
-
4
},
/* (44) cmd ::= ALTER DATABASE ids alter_db_optr */
{
191
,
-
4
},
/* (45) cmd ::= ALTER TOPIC ids alter_topic_optr */
{
191
,
-
4
},
/* (46) cmd ::= ALTER ACCOUNT ids acct_optr */
{
191
,
-
6
},
/* (47) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
{
193
,
-
1
},
/* (48) ids ::= ID */
{
193
,
-
1
},
/* (49) ids ::= STRING */
{
195
,
-
2
},
/* (50) ifexists ::= IF EXISTS */
{
195
,
0
},
/* (51) ifexists ::= */
{
199
,
-
3
},
/* (52) ifnotexists ::= IF NOT EXISTS */
{
199
,
0
},
/* (53) ifnotexists ::= */
{
191
,
-
3
},
/* (54) cmd ::= CREATE DNODE ids */
{
191
,
-
6
},
/* (55) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
191
,
-
5
},
/* (56) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
191
,
-
5
},
/* (57) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
{
191
,
-
5
},
/* (58) cmd ::= CREATE USER ids PASS ids */
{
202
,
0
},
/* (59) pps ::= */
{
202
,
-
2
},
/* (60) pps ::= PPS INTEGER */
{
203
,
0
},
/* (61) tseries ::= */
{
203
,
-
2
},
/* (62) tseries ::= TSERIES INTEGER */
{
204
,
0
},
/* (63) dbs ::= */
{
204
,
-
2
},
/* (64) dbs ::= DBS INTEGER */
{
205
,
0
},
/* (65) streams ::= */
{
205
,
-
2
},
/* (66) streams ::= STREAMS INTEGER */
{
206
,
0
},
/* (67) storage ::= */
{
206
,
-
2
},
/* (68) storage ::= STORAGE INTEGER */
{
207
,
0
},
/* (69) qtime ::= */
{
207
,
-
2
},
/* (70) qtime ::= QTIME INTEGER */
{
208
,
0
},
/* (71) users ::= */
{
208
,
-
2
},
/* (72) users ::= USERS INTEGER */
{
209
,
0
},
/* (73) conns ::= */
{
209
,
-
2
},
/* (74) conns ::= CONNS INTEGER */
{
210
,
0
},
/* (75) state ::= */
{
210
,
-
2
},
/* (76) state ::= STATE ids */
{
198
,
-
9
},
/* (77) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
211
,
-
2
},
/* (78) keep ::= KEEP tagitemlist */
{
213
,
-
2
},
/* (79) cache ::= CACHE INTEGER */
{
214
,
-
2
},
/* (80) replica ::= REPLICA INTEGER */
{
215
,
-
2
},
/* (81) quorum ::= QUORUM INTEGER */
{
216
,
-
2
},
/* (82) days ::= DAYS INTEGER */
{
217
,
-
2
},
/* (83) minrows ::= MINROWS INTEGER */
{
218
,
-
2
},
/* (84) maxrows ::= MAXROWS INTEGER */
{
219
,
-
2
},
/* (85) blocks ::= BLOCKS INTEGER */
{
220
,
-
2
},
/* (86) ctime ::= CTIME INTEGER */
{
221
,
-
2
},
/* (87) wal ::= WAL INTEGER */
{
222
,
-
2
},
/* (88) fsync ::= FSYNC INTEGER */
{
223
,
-
2
},
/* (89) comp ::= COMP INTEGER */
{
224
,
-
2
},
/* (90) prec ::= PRECISION STRING */
{
225
,
-
2
},
/* (91) update ::= UPDATE INTEGER */
{
226
,
-
2
},
/* (92) cachelast ::= CACHELAST INTEGER */
{
227
,
-
2
},
/* (93) partitions ::= PARTITIONS INTEGER */
{
200
,
0
},
/* (94) db_optr ::= */
{
200
,
-
2
},
/* (95) db_optr ::= db_optr cache */
{
200
,
-
2
},
/* (96) db_optr ::= db_optr replica */
{
200
,
-
2
},
/* (97) db_optr ::= db_optr quorum */
{
200
,
-
2
},
/* (98) db_optr ::= db_optr days */
{
200
,
-
2
},
/* (99) db_optr ::= db_optr minrows */
{
200
,
-
2
},
/* (100) db_optr ::= db_optr maxrows */
{
200
,
-
2
},
/* (101) db_optr ::= db_optr blocks */
{
200
,
-
2
},
/* (102) db_optr ::= db_optr ctime */
{
200
,
-
2
},
/* (103) db_optr ::= db_optr wal */
{
200
,
-
2
},
/* (104) db_optr ::= db_optr fsync */
{
200
,
-
2
},
/* (105) db_optr ::= db_optr comp */
{
200
,
-
2
},
/* (106) db_optr ::= db_optr prec */
{
200
,
-
2
},
/* (107) db_optr ::= db_optr keep */
{
200
,
-
2
},
/* (108) db_optr ::= db_optr update */
{
200
,
-
2
},
/* (109) db_optr ::= db_optr cachelast */
{
201
,
-
1
},
/* (110) topic_optr ::= db_optr */
{
201
,
-
2
},
/* (111) topic_optr ::= topic_optr partitions */
{
196
,
0
},
/* (112) alter_db_optr ::= */
{
196
,
-
2
},
/* (113) alter_db_optr ::= alter_db_optr replica */
{
196
,
-
2
},
/* (114) alter_db_optr ::= alter_db_optr quorum */
{
196
,
-
2
},
/* (115) alter_db_optr ::= alter_db_optr keep */
{
196
,
-
2
},
/* (116) alter_db_optr ::= alter_db_optr blocks */
{
196
,
-
2
},
/* (117) alter_db_optr ::= alter_db_optr comp */
{
196
,
-
2
},
/* (118) alter_db_optr ::= alter_db_optr wal */
{
196
,
-
2
},
/* (119) alter_db_optr ::= alter_db_optr fsync */
{
196
,
-
2
},
/* (120) alter_db_optr ::= alter_db_optr update */
{
196
,
-
2
},
/* (121) alter_db_optr ::= alter_db_optr cachelast */
{
197
,
-
1
},
/* (122) alter_topic_optr ::= alter_db_optr */
{
197
,
-
2
},
/* (123) alter_topic_optr ::= alter_topic_optr partitions */
{
228
,
-
1
},
/* (124) typename ::= ids */
{
228
,
-
4
},
/* (125) typename ::= ids LP signed RP */
{
228
,
-
2
},
/* (126) typename ::= ids UNSIGNED */
{
229
,
-
1
},
/* (127) signed ::= INTEGER */
{
229
,
-
2
},
/* (128) signed ::= PLUS INTEGER */
{
229
,
-
2
},
/* (129) signed ::= MINUS INTEGER */
{
191
,
-
3
},
/* (130) cmd ::= CREATE TABLE create_table_args */
{
191
,
-
3
},
/* (131) cmd ::= CREATE TABLE create_stable_args */
{
191
,
-
3
},
/* (132) cmd ::= CREATE STABLE create_stable_args */
{
191
,
-
3
},
/* (133) cmd ::= CREATE TABLE create_table_list */
{
232
,
-
1
},
/* (134) create_table_list ::= create_from_stable */
{
232
,
-
2
},
/* (135) create_table_list ::= create_table_list create_from_stable */
{
230
,
-
6
},
/* (136) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{
231
,
-
10
},
/* (137) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{
233
,
-
10
},
/* (138) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
{
233
,
-
13
},
/* (139) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
{
235
,
-
3
},
/* (140) tagNamelist ::= tagNamelist COMMA ids */
{
235
,
-
1
},
/* (141) tagNamelist ::= ids */
{
230
,
-
5
},
/* (142) create_table_args ::= ifnotexists ids cpxName AS select */
{
234
,
-
3
},
/* (143) columnlist ::= columnlist COMMA column */
{
234
,
-
1
},
/* (144) columnlist ::= column */
{
237
,
-
2
},
/* (145) column ::= ids typename */
{
212
,
-
3
},
/* (146) tagitemlist ::= tagitemlist COMMA tagitem */
{
212
,
-
1
},
/* (147) tagitemlist ::= tagitem */
{
238
,
-
1
},
/* (148) tagitem ::= INTEGER */
{
238
,
-
1
},
/* (149) tagitem ::= FLOAT */
{
238
,
-
1
},
/* (150) tagitem ::= STRING */
{
238
,
-
1
},
/* (151) tagitem ::= BOOL */
{
238
,
-
1
},
/* (152) tagitem ::= NULL */
{
238
,
-
2
},
/* (153) tagitem ::= MINUS INTEGER */
{
238
,
-
2
},
/* (154) tagitem ::= MINUS FLOAT */
{
238
,
-
2
},
/* (155) tagitem ::= PLUS INTEGER */
{
238
,
-
2
},
/* (156) tagitem ::= PLUS FLOAT */
{
236
,
-
14
},
/* (157) select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
{
236
,
-
3
},
/* (158) select ::= LP select RP */
{
252
,
-
1
},
/* (159) union ::= select */
{
252
,
-
4
},
/* (160) union ::= union UNION ALL select */
{
191
,
-
1
},
/* (161) cmd ::= union */
{
236
,
-
2
},
/* (162) select ::= SELECT selcollist */
{
253
,
-
2
},
/* (163) sclp ::= selcollist COMMA */
{
253
,
0
},
/* (164) sclp ::= */
{
239
,
-
4
},
/* (165) selcollist ::= sclp distinct expr as */
{
239
,
-
2
},
/* (166) selcollist ::= sclp STAR */
{
256
,
-
2
},
/* (167) as ::= AS ids */
{
256
,
-
1
},
/* (168) as ::= ids */
{
256
,
0
},
/* (169) as ::= */
{
254
,
-
1
},
/* (170) distinct ::= DISTINCT */
{
254
,
0
},
/* (171) distinct ::= */
{
240
,
-
2
},
/* (172) from ::= FROM tablelist */
{
240
,
-
2
},
/* (173) from ::= FROM sub */
{
258
,
-
3
},
/* (174) sub ::= LP union RP */
{
258
,
-
4
},
/* (175) sub ::= LP union RP ids */
{
258
,
-
6
},
/* (176) sub ::= sub COMMA LP union RP ids */
{
257
,
-
2
},
/* (177) tablelist ::= ids cpxName */
{
257
,
-
3
},
/* (178) tablelist ::= ids cpxName ids */
{
257
,
-
4
},
/* (179) tablelist ::= tablelist COMMA ids cpxName */
{
257
,
-
5
},
/* (180) tablelist ::= tablelist COMMA ids cpxName ids */
{
259
,
-
1
},
/* (181) tmvar ::= VARIABLE */
{
242
,
-
4
},
/* (182) interval_opt ::= INTERVAL LP tmvar RP */
{
242
,
-
6
},
/* (183) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
{
242
,
0
},
/* (184) interval_opt ::= */
{
243
,
0
},
/* (185) session_option ::= */
{
243
,
-
7
},
/* (186) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
244
,
0
},
/* (187) windowstate_option ::= */
{
244
,
-
4
},
/* (188) windowstate_option ::= STATE_WINDOW LP ids RP */
{
245
,
0
},
/* (189) fill_opt ::= */
{
245
,
-
6
},
/* (190) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
245
,
-
4
},
/* (191) fill_opt ::= FILL LP ID RP */
{
246
,
-
4
},
/* (192) sliding_opt ::= SLIDING LP tmvar RP */
{
246
,
0
},
/* (193) sliding_opt ::= */
{
248
,
0
},
/* (194) orderby_opt ::= */
{
248
,
-
3
},
/* (195) orderby_opt ::= ORDER BY sortlist */
{
260
,
-
4
},
/* (196) sortlist ::= sortlist COMMA item sortorder */
{
260
,
-
2
},
/* (197) sortlist ::= item sortorder */
{
262
,
-
2
},
/* (198) item ::= ids cpxName */
{
263
,
-
1
},
/* (199) sortorder ::= ASC */
{
263
,
-
1
},
/* (200) sortorder ::= DESC */
{
263
,
0
},
/* (201) sortorder ::= */
{
247
,
0
},
/* (202) groupby_opt ::= */
{
247
,
-
3
},
/* (203) groupby_opt ::= GROUP BY grouplist */
{
264
,
-
3
},
/* (204) grouplist ::= grouplist COMMA item */
{
264
,
-
1
},
/* (205) grouplist ::= item */
{
249
,
0
},
/* (206) having_opt ::= */
{
249
,
-
2
},
/* (207) having_opt ::= HAVING expr */
{
251
,
0
},
/* (208) limit_opt ::= */
{
251
,
-
2
},
/* (209) limit_opt ::= LIMIT signed */
{
251
,
-
4
},
/* (210) limit_opt ::= LIMIT signed OFFSET signed */
{
251
,
-
4
},
/* (211) limit_opt ::= LIMIT signed COMMA signed */
{
250
,
0
},
/* (212) slimit_opt ::= */
{
250
,
-
2
},
/* (213) slimit_opt ::= SLIMIT signed */
{
250
,
-
4
},
/* (214) slimit_opt ::= SLIMIT signed SOFFSET signed */
{
250
,
-
4
},
/* (215) slimit_opt ::= SLIMIT signed COMMA signed */
{
241
,
0
},
/* (216) where_opt ::= */
{
241
,
-
2
},
/* (217) where_opt ::= WHERE expr */
{
255
,
-
3
},
/* (218) expr ::= LP expr RP */
{
255
,
-
1
},
/* (219) expr ::= ID */
{
255
,
-
3
},
/* (220) expr ::= ID DOT ID */
{
255
,
-
3
},
/* (221) expr ::= ID DOT STAR */
{
255
,
-
1
},
/* (222) expr ::= INTEGER */
{
255
,
-
2
},
/* (223) expr ::= MINUS INTEGER */
{
255
,
-
2
},
/* (224) expr ::= PLUS INTEGER */
{
255
,
-
1
},
/* (225) expr ::= FLOAT */
{
255
,
-
2
},
/* (226) expr ::= MINUS FLOAT */
{
255
,
-
2
},
/* (227) expr ::= PLUS FLOAT */
{
255
,
-
1
},
/* (228) expr ::= STRING */
{
255
,
-
1
},
/* (229) expr ::= NOW */
{
255
,
-
1
},
/* (230) expr ::= VARIABLE */
{
255
,
-
2
},
/* (231) expr ::= PLUS VARIABLE */
{
255
,
-
2
},
/* (232) expr ::= MINUS VARIABLE */
{
255
,
-
1
},
/* (233) expr ::= BOOL */
{
255
,
-
1
},
/* (234) expr ::= NULL */
{
255
,
-
4
},
/* (235) expr ::= ID LP exprlist RP */
{
255
,
-
4
},
/* (236) expr ::= ID LP STAR RP */
{
255
,
-
3
},
/* (237) expr ::= expr IS NULL */
{
255
,
-
4
},
/* (238) expr ::= expr IS NOT NULL */
{
255
,
-
3
},
/* (239) expr ::= expr LT expr */
{
255
,
-
3
},
/* (240) expr ::= expr GT expr */
{
255
,
-
3
},
/* (241) expr ::= expr LE expr */
{
255
,
-
3
},
/* (242) expr ::= expr GE expr */
{
255
,
-
3
},
/* (243) expr ::= expr NE expr */
{
255
,
-
3
},
/* (244) expr ::= expr EQ expr */
{
255
,
-
5
},
/* (245) expr ::= expr BETWEEN expr AND expr */
{
255
,
-
3
},
/* (246) expr ::= expr AND expr */
{
255
,
-
3
},
/* (247) expr ::= expr OR expr */
{
255
,
-
3
},
/* (248) expr ::= expr PLUS expr */
{
255
,
-
3
},
/* (249) expr ::= expr MINUS expr */
{
255
,
-
3
},
/* (250) expr ::= expr STAR expr */
{
255
,
-
3
},
/* (251) expr ::= expr SLASH expr */
{
255
,
-
3
},
/* (252) expr ::= expr REM expr */
{
255
,
-
3
},
/* (253) expr ::= expr LIKE expr */
{
255
,
-
5
},
/* (254) expr ::= expr IN LP exprlist RP */
{
265
,
-
3
},
/* (255) exprlist ::= exprlist COMMA expritem */
{
265
,
-
1
},
/* (256) exprlist ::= expritem */
{
266
,
-
1
},
/* (257) expritem ::= expr */
{
266
,
0
},
/* (258) expritem ::= */
{
191
,
-
3
},
/* (259) cmd ::= RESET QUERY CACHE */
{
191
,
-
3
},
/* (260) cmd ::= SYNCDB ids REPLICA */
{
191
,
-
7
},
/* (261) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
191
,
-
7
},
/* (262) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
191
,
-
7
},
/* (263) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
{
191
,
-
7
},
/* (264) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
191
,
-
7
},
/* (265) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
191
,
-
8
},
/* (266) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
191
,
-
9
},
/* (267) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
191
,
-
7
},
/* (268) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
{
191
,
-
7
},
/* (269) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{
191
,
-
7
},
/* (270) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{
191
,
-
7
},
/* (271) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
{
191
,
-
7
},
/* (272) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{
191
,
-
7
},
/* (273) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{
191
,
-
8
},
/* (274) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{
191
,
-
9
},
/* (275) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
{
191
,
-
7
},
/* (276) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
{
191
,
-
3
},
/* (277) cmd ::= KILL CONNECTION INTEGER */
{
191
,
-
5
},
/* (278) cmd ::= KILL STREAM INTEGER COLON INTEGER */
{
191
,
-
5
},
/* (279) cmd ::= KILL QUERY INTEGER COLON INTEGER */
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static
const
YYCODETYPE
yyRuleInfoLhs
[]
=
{
189
,
/* (0) program ::= cmd */
190
,
/* (1) cmd ::= SHOW DATABASES */
190
,
/* (2) cmd ::= SHOW TOPICS */
190
,
/* (3) cmd ::= SHOW MNODES */
190
,
/* (4) cmd ::= SHOW DNODES */
190
,
/* (5) cmd ::= SHOW ACCOUNTS */
190
,
/* (6) cmd ::= SHOW USERS */
190
,
/* (7) cmd ::= SHOW MODULES */
190
,
/* (8) cmd ::= SHOW QUERIES */
190
,
/* (9) cmd ::= SHOW CONNECTIONS */
190
,
/* (10) cmd ::= SHOW STREAMS */
190
,
/* (11) cmd ::= SHOW VARIABLES */
190
,
/* (12) cmd ::= SHOW SCORES */
190
,
/* (13) cmd ::= SHOW GRANTS */
190
,
/* (14) cmd ::= SHOW VNODES */
190
,
/* (15) cmd ::= SHOW VNODES IPTOKEN */
191
,
/* (16) dbPrefix ::= */
191
,
/* (17) dbPrefix ::= ids DOT */
193
,
/* (18) cpxName ::= */
193
,
/* (19) cpxName ::= DOT ids */
190
,
/* (20) cmd ::= SHOW CREATE TABLE ids cpxName */
190
,
/* (21) cmd ::= SHOW CREATE STABLE ids cpxName */
190
,
/* (22) cmd ::= SHOW CREATE DATABASE ids */
190
,
/* (23) cmd ::= SHOW dbPrefix TABLES */
190
,
/* (24) cmd ::= SHOW dbPrefix TABLES LIKE ids */
190
,
/* (25) cmd ::= SHOW dbPrefix STABLES */
190
,
/* (26) cmd ::= SHOW dbPrefix STABLES LIKE ids */
190
,
/* (27) cmd ::= SHOW dbPrefix VGROUPS */
190
,
/* (28) cmd ::= SHOW dbPrefix VGROUPS ids */
190
,
/* (29) cmd ::= DROP TABLE ifexists ids cpxName */
190
,
/* (30) cmd ::= DROP STABLE ifexists ids cpxName */
190
,
/* (31) cmd ::= DROP DATABASE ifexists ids */
190
,
/* (32) cmd ::= DROP TOPIC ifexists ids */
190
,
/* (33) cmd ::= DROP DNODE ids */
190
,
/* (34) cmd ::= DROP USER ids */
190
,
/* (35) cmd ::= DROP ACCOUNT ids */
190
,
/* (36) cmd ::= USE ids */
190
,
/* (37) cmd ::= DESCRIBE ids cpxName */
190
,
/* (38) cmd ::= ALTER USER ids PASS ids */
190
,
/* (39) cmd ::= ALTER USER ids PRIVILEGE ids */
190
,
/* (40) cmd ::= ALTER DNODE ids ids */
190
,
/* (41) cmd ::= ALTER DNODE ids ids ids */
190
,
/* (42) cmd ::= ALTER LOCAL ids */
190
,
/* (43) cmd ::= ALTER LOCAL ids ids */
190
,
/* (44) cmd ::= ALTER DATABASE ids alter_db_optr */
190
,
/* (45) cmd ::= ALTER TOPIC ids alter_topic_optr */
190
,
/* (46) cmd ::= ALTER ACCOUNT ids acct_optr */
190
,
/* (47) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
192
,
/* (48) ids ::= ID */
192
,
/* (49) ids ::= STRING */
194
,
/* (50) ifexists ::= IF EXISTS */
194
,
/* (51) ifexists ::= */
198
,
/* (52) ifnotexists ::= IF NOT EXISTS */
198
,
/* (53) ifnotexists ::= */
190
,
/* (54) cmd ::= CREATE DNODE ids */
190
,
/* (55) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
190
,
/* (56) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
190
,
/* (57) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
190
,
/* (58) cmd ::= CREATE USER ids PASS ids */
201
,
/* (59) pps ::= */
201
,
/* (60) pps ::= PPS INTEGER */
202
,
/* (61) tseries ::= */
202
,
/* (62) tseries ::= TSERIES INTEGER */
203
,
/* (63) dbs ::= */
203
,
/* (64) dbs ::= DBS INTEGER */
204
,
/* (65) streams ::= */
204
,
/* (66) streams ::= STREAMS INTEGER */
205
,
/* (67) storage ::= */
205
,
/* (68) storage ::= STORAGE INTEGER */
206
,
/* (69) qtime ::= */
206
,
/* (70) qtime ::= QTIME INTEGER */
207
,
/* (71) users ::= */
207
,
/* (72) users ::= USERS INTEGER */
208
,
/* (73) conns ::= */
208
,
/* (74) conns ::= CONNS INTEGER */
209
,
/* (75) state ::= */
209
,
/* (76) state ::= STATE ids */
197
,
/* (77) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
210
,
/* (78) keep ::= KEEP tagitemlist */
212
,
/* (79) cache ::= CACHE INTEGER */
213
,
/* (80) replica ::= REPLICA INTEGER */
214
,
/* (81) quorum ::= QUORUM INTEGER */
215
,
/* (82) days ::= DAYS INTEGER */
216
,
/* (83) minrows ::= MINROWS INTEGER */
217
,
/* (84) maxrows ::= MAXROWS INTEGER */
218
,
/* (85) blocks ::= BLOCKS INTEGER */
219
,
/* (86) ctime ::= CTIME INTEGER */
220
,
/* (87) wal ::= WAL INTEGER */
221
,
/* (88) fsync ::= FSYNC INTEGER */
222
,
/* (89) comp ::= COMP INTEGER */
223
,
/* (90) prec ::= PRECISION STRING */
224
,
/* (91) update ::= UPDATE INTEGER */
225
,
/* (92) cachelast ::= CACHELAST INTEGER */
226
,
/* (93) partitions ::= PARTITIONS INTEGER */
199
,
/* (94) db_optr ::= */
199
,
/* (95) db_optr ::= db_optr cache */
199
,
/* (96) db_optr ::= db_optr replica */
199
,
/* (97) db_optr ::= db_optr quorum */
199
,
/* (98) db_optr ::= db_optr days */
199
,
/* (99) db_optr ::= db_optr minrows */
199
,
/* (100) db_optr ::= db_optr maxrows */
199
,
/* (101) db_optr ::= db_optr blocks */
199
,
/* (102) db_optr ::= db_optr ctime */
199
,
/* (103) db_optr ::= db_optr wal */
199
,
/* (104) db_optr ::= db_optr fsync */
199
,
/* (105) db_optr ::= db_optr comp */
199
,
/* (106) db_optr ::= db_optr prec */
199
,
/* (107) db_optr ::= db_optr keep */
199
,
/* (108) db_optr ::= db_optr update */
199
,
/* (109) db_optr ::= db_optr cachelast */
200
,
/* (110) topic_optr ::= db_optr */
200
,
/* (111) topic_optr ::= topic_optr partitions */
195
,
/* (112) alter_db_optr ::= */
195
,
/* (113) alter_db_optr ::= alter_db_optr replica */
195
,
/* (114) alter_db_optr ::= alter_db_optr quorum */
195
,
/* (115) alter_db_optr ::= alter_db_optr keep */
195
,
/* (116) alter_db_optr ::= alter_db_optr blocks */
195
,
/* (117) alter_db_optr ::= alter_db_optr comp */
195
,
/* (118) alter_db_optr ::= alter_db_optr wal */
195
,
/* (119) alter_db_optr ::= alter_db_optr fsync */
195
,
/* (120) alter_db_optr ::= alter_db_optr update */
195
,
/* (121) alter_db_optr ::= alter_db_optr cachelast */
196
,
/* (122) alter_topic_optr ::= alter_db_optr */
196
,
/* (123) alter_topic_optr ::= alter_topic_optr partitions */
227
,
/* (124) typename ::= ids */
227
,
/* (125) typename ::= ids LP signed RP */
227
,
/* (126) typename ::= ids UNSIGNED */
228
,
/* (127) signed ::= INTEGER */
228
,
/* (128) signed ::= PLUS INTEGER */
228
,
/* (129) signed ::= MINUS INTEGER */
190
,
/* (130) cmd ::= CREATE TABLE create_table_args */
190
,
/* (131) cmd ::= CREATE TABLE create_stable_args */
190
,
/* (132) cmd ::= CREATE STABLE create_stable_args */
190
,
/* (133) cmd ::= CREATE TABLE create_table_list */
231
,
/* (134) create_table_list ::= create_from_stable */
231
,
/* (135) create_table_list ::= create_table_list create_from_stable */
229
,
/* (136) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
230
,
/* (137) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
232
,
/* (138) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
232
,
/* (139) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
234
,
/* (140) tagNamelist ::= tagNamelist COMMA ids */
234
,
/* (141) tagNamelist ::= ids */
229
,
/* (142) create_table_args ::= ifnotexists ids cpxName AS select */
233
,
/* (143) columnlist ::= columnlist COMMA column */
233
,
/* (144) columnlist ::= column */
236
,
/* (145) column ::= ids typename */
211
,
/* (146) tagitemlist ::= tagitemlist COMMA tagitem */
211
,
/* (147) tagitemlist ::= tagitem */
237
,
/* (148) tagitem ::= INTEGER */
237
,
/* (149) tagitem ::= FLOAT */
237
,
/* (150) tagitem ::= STRING */
237
,
/* (151) tagitem ::= BOOL */
237
,
/* (152) tagitem ::= NULL */
237
,
/* (153) tagitem ::= MINUS INTEGER */
237
,
/* (154) tagitem ::= MINUS FLOAT */
237
,
/* (155) tagitem ::= PLUS INTEGER */
237
,
/* (156) tagitem ::= PLUS FLOAT */
235
,
/* (157) select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
235
,
/* (158) select ::= LP select RP */
251
,
/* (159) union ::= select */
251
,
/* (160) union ::= union UNION ALL select */
190
,
/* (161) cmd ::= union */
235
,
/* (162) select ::= SELECT selcollist */
252
,
/* (163) sclp ::= selcollist COMMA */
252
,
/* (164) sclp ::= */
238
,
/* (165) selcollist ::= sclp distinct expr as */
238
,
/* (166) selcollist ::= sclp STAR */
255
,
/* (167) as ::= AS ids */
255
,
/* (168) as ::= ids */
255
,
/* (169) as ::= */
253
,
/* (170) distinct ::= DISTINCT */
253
,
/* (171) distinct ::= */
239
,
/* (172) from ::= FROM tablelist */
239
,
/* (173) from ::= FROM sub */
257
,
/* (174) sub ::= LP union RP */
257
,
/* (175) sub ::= LP union RP ids */
257
,
/* (176) sub ::= sub COMMA LP union RP ids */
256
,
/* (177) tablelist ::= ids cpxName */
256
,
/* (178) tablelist ::= ids cpxName ids */
256
,
/* (179) tablelist ::= tablelist COMMA ids cpxName */
256
,
/* (180) tablelist ::= tablelist COMMA ids cpxName ids */
258
,
/* (181) tmvar ::= VARIABLE */
241
,
/* (182) interval_opt ::= INTERVAL LP tmvar RP */
241
,
/* (183) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
241
,
/* (184) interval_opt ::= */
242
,
/* (185) session_option ::= */
242
,
/* (186) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
243
,
/* (187) windowstate_option ::= */
243
,
/* (188) windowstate_option ::= STATE_WINDOW LP ids RP */
244
,
/* (189) fill_opt ::= */
244
,
/* (190) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
244
,
/* (191) fill_opt ::= FILL LP ID RP */
245
,
/* (192) sliding_opt ::= SLIDING LP tmvar RP */
245
,
/* (193) sliding_opt ::= */
247
,
/* (194) orderby_opt ::= */
247
,
/* (195) orderby_opt ::= ORDER BY sortlist */
259
,
/* (196) sortlist ::= sortlist COMMA item sortorder */
259
,
/* (197) sortlist ::= item sortorder */
261
,
/* (198) item ::= ids cpxName */
262
,
/* (199) sortorder ::= ASC */
262
,
/* (200) sortorder ::= DESC */
262
,
/* (201) sortorder ::= */
246
,
/* (202) groupby_opt ::= */
246
,
/* (203) groupby_opt ::= GROUP BY grouplist */
263
,
/* (204) grouplist ::= grouplist COMMA item */
263
,
/* (205) grouplist ::= item */
248
,
/* (206) having_opt ::= */
248
,
/* (207) having_opt ::= HAVING expr */
250
,
/* (208) limit_opt ::= */
250
,
/* (209) limit_opt ::= LIMIT signed */
250
,
/* (210) limit_opt ::= LIMIT signed OFFSET signed */
250
,
/* (211) limit_opt ::= LIMIT signed COMMA signed */
249
,
/* (212) slimit_opt ::= */
249
,
/* (213) slimit_opt ::= SLIMIT signed */
249
,
/* (214) slimit_opt ::= SLIMIT signed SOFFSET signed */
249
,
/* (215) slimit_opt ::= SLIMIT signed COMMA signed */
240
,
/* (216) where_opt ::= */
240
,
/* (217) where_opt ::= WHERE expr */
254
,
/* (218) expr ::= LP expr RP */
254
,
/* (219) expr ::= ID */
254
,
/* (220) expr ::= ID DOT ID */
254
,
/* (221) expr ::= ID DOT STAR */
254
,
/* (222) expr ::= INTEGER */
254
,
/* (223) expr ::= MINUS INTEGER */
254
,
/* (224) expr ::= PLUS INTEGER */
254
,
/* (225) expr ::= FLOAT */
254
,
/* (226) expr ::= MINUS FLOAT */
254
,
/* (227) expr ::= PLUS FLOAT */
254
,
/* (228) expr ::= STRING */
254
,
/* (229) expr ::= NOW */
254
,
/* (230) expr ::= VARIABLE */
254
,
/* (231) expr ::= PLUS VARIABLE */
254
,
/* (232) expr ::= MINUS VARIABLE */
254
,
/* (233) expr ::= BOOL */
254
,
/* (234) expr ::= NULL */
254
,
/* (235) expr ::= ID LP exprlist RP */
254
,
/* (236) expr ::= ID LP STAR RP */
254
,
/* (237) expr ::= expr IS NULL */
254
,
/* (238) expr ::= expr IS NOT NULL */
254
,
/* (239) expr ::= expr LT expr */
254
,
/* (240) expr ::= expr GT expr */
254
,
/* (241) expr ::= expr LE expr */
254
,
/* (242) expr ::= expr GE expr */
254
,
/* (243) expr ::= expr NE expr */
254
,
/* (244) expr ::= expr EQ expr */
254
,
/* (245) expr ::= expr BETWEEN expr AND expr */
254
,
/* (246) expr ::= expr AND expr */
254
,
/* (247) expr ::= expr OR expr */
254
,
/* (248) expr ::= expr PLUS expr */
254
,
/* (249) expr ::= expr MINUS expr */
254
,
/* (250) expr ::= expr STAR expr */
254
,
/* (251) expr ::= expr SLASH expr */
254
,
/* (252) expr ::= expr REM expr */
254
,
/* (253) expr ::= expr LIKE expr */
254
,
/* (254) expr ::= expr IN LP exprlist RP */
264
,
/* (255) exprlist ::= exprlist COMMA expritem */
264
,
/* (256) exprlist ::= expritem */
265
,
/* (257) expritem ::= expr */
265
,
/* (258) expritem ::= */
190
,
/* (259) cmd ::= RESET QUERY CACHE */
190
,
/* (260) cmd ::= SYNCDB ids REPLICA */
190
,
/* (261) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
190
,
/* (262) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
190
,
/* (263) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
190
,
/* (264) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
190
,
/* (265) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
190
,
/* (266) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
190
,
/* (267) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
190
,
/* (268) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
190
,
/* (269) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
190
,
/* (270) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
190
,
/* (271) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
190
,
/* (272) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
190
,
/* (273) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
190
,
/* (274) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
190
,
/* (275) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
190
,
/* (276) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
190
,
/* (277) cmd ::= KILL CONNECTION INTEGER */
190
,
/* (278) cmd ::= KILL STREAM INTEGER COLON INTEGER */
190
,
/* (279) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static
const
signed
char
yyRuleInfoNRhs
[]
=
{
-
1
,
/* (0) program ::= cmd */
-
2
,
/* (1) cmd ::= SHOW DATABASES */
-
2
,
/* (2) cmd ::= SHOW TOPICS */
-
2
,
/* (3) cmd ::= SHOW MNODES */
-
2
,
/* (4) cmd ::= SHOW DNODES */
-
2
,
/* (5) cmd ::= SHOW ACCOUNTS */
-
2
,
/* (6) cmd ::= SHOW USERS */
-
2
,
/* (7) cmd ::= SHOW MODULES */
-
2
,
/* (8) cmd ::= SHOW QUERIES */
-
2
,
/* (9) cmd ::= SHOW CONNECTIONS */
-
2
,
/* (10) cmd ::= SHOW STREAMS */
-
2
,
/* (11) cmd ::= SHOW VARIABLES */
-
2
,
/* (12) cmd ::= SHOW SCORES */
-
2
,
/* (13) cmd ::= SHOW GRANTS */
-
2
,
/* (14) cmd ::= SHOW VNODES */
-
3
,
/* (15) cmd ::= SHOW VNODES IPTOKEN */
0
,
/* (16) dbPrefix ::= */
-
2
,
/* (17) dbPrefix ::= ids DOT */
0
,
/* (18) cpxName ::= */
-
2
,
/* (19) cpxName ::= DOT ids */
-
5
,
/* (20) cmd ::= SHOW CREATE TABLE ids cpxName */
-
5
,
/* (21) cmd ::= SHOW CREATE STABLE ids cpxName */
-
4
,
/* (22) cmd ::= SHOW CREATE DATABASE ids */
-
3
,
/* (23) cmd ::= SHOW dbPrefix TABLES */
-
5
,
/* (24) cmd ::= SHOW dbPrefix TABLES LIKE ids */
-
3
,
/* (25) cmd ::= SHOW dbPrefix STABLES */
-
5
,
/* (26) cmd ::= SHOW dbPrefix STABLES LIKE ids */
-
3
,
/* (27) cmd ::= SHOW dbPrefix VGROUPS */
-
4
,
/* (28) cmd ::= SHOW dbPrefix VGROUPS ids */
-
5
,
/* (29) cmd ::= DROP TABLE ifexists ids cpxName */
-
5
,
/* (30) cmd ::= DROP STABLE ifexists ids cpxName */
-
4
,
/* (31) cmd ::= DROP DATABASE ifexists ids */
-
4
,
/* (32) cmd ::= DROP TOPIC ifexists ids */
-
3
,
/* (33) cmd ::= DROP DNODE ids */
-
3
,
/* (34) cmd ::= DROP USER ids */
-
3
,
/* (35) cmd ::= DROP ACCOUNT ids */
-
2
,
/* (36) cmd ::= USE ids */
-
3
,
/* (37) cmd ::= DESCRIBE ids cpxName */
-
5
,
/* (38) cmd ::= ALTER USER ids PASS ids */
-
5
,
/* (39) cmd ::= ALTER USER ids PRIVILEGE ids */
-
4
,
/* (40) cmd ::= ALTER DNODE ids ids */
-
5
,
/* (41) cmd ::= ALTER DNODE ids ids ids */
-
3
,
/* (42) cmd ::= ALTER LOCAL ids */
-
4
,
/* (43) cmd ::= ALTER LOCAL ids ids */
-
4
,
/* (44) cmd ::= ALTER DATABASE ids alter_db_optr */
-
4
,
/* (45) cmd ::= ALTER TOPIC ids alter_topic_optr */
-
4
,
/* (46) cmd ::= ALTER ACCOUNT ids acct_optr */
-
6
,
/* (47) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
-
1
,
/* (48) ids ::= ID */
-
1
,
/* (49) ids ::= STRING */
-
2
,
/* (50) ifexists ::= IF EXISTS */
0
,
/* (51) ifexists ::= */
-
3
,
/* (52) ifnotexists ::= IF NOT EXISTS */
0
,
/* (53) ifnotexists ::= */
-
3
,
/* (54) cmd ::= CREATE DNODE ids */
-
6
,
/* (55) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
-
5
,
/* (56) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
-
5
,
/* (57) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
-
5
,
/* (58) cmd ::= CREATE USER ids PASS ids */
0
,
/* (59) pps ::= */
-
2
,
/* (60) pps ::= PPS INTEGER */
0
,
/* (61) tseries ::= */
-
2
,
/* (62) tseries ::= TSERIES INTEGER */
0
,
/* (63) dbs ::= */
-
2
,
/* (64) dbs ::= DBS INTEGER */
0
,
/* (65) streams ::= */
-
2
,
/* (66) streams ::= STREAMS INTEGER */
0
,
/* (67) storage ::= */
-
2
,
/* (68) storage ::= STORAGE INTEGER */
0
,
/* (69) qtime ::= */
-
2
,
/* (70) qtime ::= QTIME INTEGER */
0
,
/* (71) users ::= */
-
2
,
/* (72) users ::= USERS INTEGER */
0
,
/* (73) conns ::= */
-
2
,
/* (74) conns ::= CONNS INTEGER */
0
,
/* (75) state ::= */
-
2
,
/* (76) state ::= STATE ids */
-
9
,
/* (77) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
-
2
,
/* (78) keep ::= KEEP tagitemlist */
-
2
,
/* (79) cache ::= CACHE INTEGER */
-
2
,
/* (80) replica ::= REPLICA INTEGER */
-
2
,
/* (81) quorum ::= QUORUM INTEGER */
-
2
,
/* (82) days ::= DAYS INTEGER */
-
2
,
/* (83) minrows ::= MINROWS INTEGER */
-
2
,
/* (84) maxrows ::= MAXROWS INTEGER */
-
2
,
/* (85) blocks ::= BLOCKS INTEGER */
-
2
,
/* (86) ctime ::= CTIME INTEGER */
-
2
,
/* (87) wal ::= WAL INTEGER */
-
2
,
/* (88) fsync ::= FSYNC INTEGER */
-
2
,
/* (89) comp ::= COMP INTEGER */
-
2
,
/* (90) prec ::= PRECISION STRING */
-
2
,
/* (91) update ::= UPDATE INTEGER */
-
2
,
/* (92) cachelast ::= CACHELAST INTEGER */
-
2
,
/* (93) partitions ::= PARTITIONS INTEGER */
0
,
/* (94) db_optr ::= */
-
2
,
/* (95) db_optr ::= db_optr cache */
-
2
,
/* (96) db_optr ::= db_optr replica */
-
2
,
/* (97) db_optr ::= db_optr quorum */
-
2
,
/* (98) db_optr ::= db_optr days */
-
2
,
/* (99) db_optr ::= db_optr minrows */
-
2
,
/* (100) db_optr ::= db_optr maxrows */
-
2
,
/* (101) db_optr ::= db_optr blocks */
-
2
,
/* (102) db_optr ::= db_optr ctime */
-
2
,
/* (103) db_optr ::= db_optr wal */
-
2
,
/* (104) db_optr ::= db_optr fsync */
-
2
,
/* (105) db_optr ::= db_optr comp */
-
2
,
/* (106) db_optr ::= db_optr prec */
-
2
,
/* (107) db_optr ::= db_optr keep */
-
2
,
/* (108) db_optr ::= db_optr update */
-
2
,
/* (109) db_optr ::= db_optr cachelast */
-
1
,
/* (110) topic_optr ::= db_optr */
-
2
,
/* (111) topic_optr ::= topic_optr partitions */
0
,
/* (112) alter_db_optr ::= */
-
2
,
/* (113) alter_db_optr ::= alter_db_optr replica */
-
2
,
/* (114) alter_db_optr ::= alter_db_optr quorum */
-
2
,
/* (115) alter_db_optr ::= alter_db_optr keep */
-
2
,
/* (116) alter_db_optr ::= alter_db_optr blocks */
-
2
,
/* (117) alter_db_optr ::= alter_db_optr comp */
-
2
,
/* (118) alter_db_optr ::= alter_db_optr wal */
-
2
,
/* (119) alter_db_optr ::= alter_db_optr fsync */
-
2
,
/* (120) alter_db_optr ::= alter_db_optr update */
-
2
,
/* (121) alter_db_optr ::= alter_db_optr cachelast */
-
1
,
/* (122) alter_topic_optr ::= alter_db_optr */
-
2
,
/* (123) alter_topic_optr ::= alter_topic_optr partitions */
-
1
,
/* (124) typename ::= ids */
-
4
,
/* (125) typename ::= ids LP signed RP */
-
2
,
/* (126) typename ::= ids UNSIGNED */
-
1
,
/* (127) signed ::= INTEGER */
-
2
,
/* (128) signed ::= PLUS INTEGER */
-
2
,
/* (129) signed ::= MINUS INTEGER */
-
3
,
/* (130) cmd ::= CREATE TABLE create_table_args */
-
3
,
/* (131) cmd ::= CREATE TABLE create_stable_args */
-
3
,
/* (132) cmd ::= CREATE STABLE create_stable_args */
-
3
,
/* (133) cmd ::= CREATE TABLE create_table_list */
-
1
,
/* (134) create_table_list ::= create_from_stable */
-
2
,
/* (135) create_table_list ::= create_table_list create_from_stable */
-
6
,
/* (136) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
-
10
,
/* (137) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
-
10
,
/* (138) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
-
13
,
/* (139) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
-
3
,
/* (140) tagNamelist ::= tagNamelist COMMA ids */
-
1
,
/* (141) tagNamelist ::= ids */
-
5
,
/* (142) create_table_args ::= ifnotexists ids cpxName AS select */
-
3
,
/* (143) columnlist ::= columnlist COMMA column */
-
1
,
/* (144) columnlist ::= column */
-
2
,
/* (145) column ::= ids typename */
-
3
,
/* (146) tagitemlist ::= tagitemlist COMMA tagitem */
-
1
,
/* (147) tagitemlist ::= tagitem */
-
1
,
/* (148) tagitem ::= INTEGER */
-
1
,
/* (149) tagitem ::= FLOAT */
-
1
,
/* (150) tagitem ::= STRING */
-
1
,
/* (151) tagitem ::= BOOL */
-
1
,
/* (152) tagitem ::= NULL */
-
2
,
/* (153) tagitem ::= MINUS INTEGER */
-
2
,
/* (154) tagitem ::= MINUS FLOAT */
-
2
,
/* (155) tagitem ::= PLUS INTEGER */
-
2
,
/* (156) tagitem ::= PLUS FLOAT */
-
14
,
/* (157) select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
-
3
,
/* (158) select ::= LP select RP */
-
1
,
/* (159) union ::= select */
-
4
,
/* (160) union ::= union UNION ALL select */
-
1
,
/* (161) cmd ::= union */
-
2
,
/* (162) select ::= SELECT selcollist */
-
2
,
/* (163) sclp ::= selcollist COMMA */
0
,
/* (164) sclp ::= */
-
4
,
/* (165) selcollist ::= sclp distinct expr as */
-
2
,
/* (166) selcollist ::= sclp STAR */
-
2
,
/* (167) as ::= AS ids */
-
1
,
/* (168) as ::= ids */
0
,
/* (169) as ::= */
-
1
,
/* (170) distinct ::= DISTINCT */
0
,
/* (171) distinct ::= */
-
2
,
/* (172) from ::= FROM tablelist */
-
2
,
/* (173) from ::= FROM sub */
-
3
,
/* (174) sub ::= LP union RP */
-
4
,
/* (175) sub ::= LP union RP ids */
-
6
,
/* (176) sub ::= sub COMMA LP union RP ids */
-
2
,
/* (177) tablelist ::= ids cpxName */
-
3
,
/* (178) tablelist ::= ids cpxName ids */
-
4
,
/* (179) tablelist ::= tablelist COMMA ids cpxName */
-
5
,
/* (180) tablelist ::= tablelist COMMA ids cpxName ids */
-
1
,
/* (181) tmvar ::= VARIABLE */
-
4
,
/* (182) interval_opt ::= INTERVAL LP tmvar RP */
-
6
,
/* (183) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
0
,
/* (184) interval_opt ::= */
0
,
/* (185) session_option ::= */
-
7
,
/* (186) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
0
,
/* (187) windowstate_option ::= */
-
4
,
/* (188) windowstate_option ::= STATE_WINDOW LP ids RP */
0
,
/* (189) fill_opt ::= */
-
6
,
/* (190) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
-
4
,
/* (191) fill_opt ::= FILL LP ID RP */
-
4
,
/* (192) sliding_opt ::= SLIDING LP tmvar RP */
0
,
/* (193) sliding_opt ::= */
0
,
/* (194) orderby_opt ::= */
-
3
,
/* (195) orderby_opt ::= ORDER BY sortlist */
-
4
,
/* (196) sortlist ::= sortlist COMMA item sortorder */
-
2
,
/* (197) sortlist ::= item sortorder */
-
2
,
/* (198) item ::= ids cpxName */
-
1
,
/* (199) sortorder ::= ASC */
-
1
,
/* (200) sortorder ::= DESC */
0
,
/* (201) sortorder ::= */
0
,
/* (202) groupby_opt ::= */
-
3
,
/* (203) groupby_opt ::= GROUP BY grouplist */
-
3
,
/* (204) grouplist ::= grouplist COMMA item */
-
1
,
/* (205) grouplist ::= item */
0
,
/* (206) having_opt ::= */
-
2
,
/* (207) having_opt ::= HAVING expr */
0
,
/* (208) limit_opt ::= */
-
2
,
/* (209) limit_opt ::= LIMIT signed */
-
4
,
/* (210) limit_opt ::= LIMIT signed OFFSET signed */
-
4
,
/* (211) limit_opt ::= LIMIT signed COMMA signed */
0
,
/* (212) slimit_opt ::= */
-
2
,
/* (213) slimit_opt ::= SLIMIT signed */
-
4
,
/* (214) slimit_opt ::= SLIMIT signed SOFFSET signed */
-
4
,
/* (215) slimit_opt ::= SLIMIT signed COMMA signed */
0
,
/* (216) where_opt ::= */
-
2
,
/* (217) where_opt ::= WHERE expr */
-
3
,
/* (218) expr ::= LP expr RP */
-
1
,
/* (219) expr ::= ID */
-
3
,
/* (220) expr ::= ID DOT ID */
-
3
,
/* (221) expr ::= ID DOT STAR */
-
1
,
/* (222) expr ::= INTEGER */
-
2
,
/* (223) expr ::= MINUS INTEGER */
-
2
,
/* (224) expr ::= PLUS INTEGER */
-
1
,
/* (225) expr ::= FLOAT */
-
2
,
/* (226) expr ::= MINUS FLOAT */
-
2
,
/* (227) expr ::= PLUS FLOAT */
-
1
,
/* (228) expr ::= STRING */
-
1
,
/* (229) expr ::= NOW */
-
1
,
/* (230) expr ::= VARIABLE */
-
2
,
/* (231) expr ::= PLUS VARIABLE */
-
2
,
/* (232) expr ::= MINUS VARIABLE */
-
1
,
/* (233) expr ::= BOOL */
-
1
,
/* (234) expr ::= NULL */
-
4
,
/* (235) expr ::= ID LP exprlist RP */
-
4
,
/* (236) expr ::= ID LP STAR RP */
-
3
,
/* (237) expr ::= expr IS NULL */
-
4
,
/* (238) expr ::= expr IS NOT NULL */
-
3
,
/* (239) expr ::= expr LT expr */
-
3
,
/* (240) expr ::= expr GT expr */
-
3
,
/* (241) expr ::= expr LE expr */
-
3
,
/* (242) expr ::= expr GE expr */
-
3
,
/* (243) expr ::= expr NE expr */
-
3
,
/* (244) expr ::= expr EQ expr */
-
5
,
/* (245) expr ::= expr BETWEEN expr AND expr */
-
3
,
/* (246) expr ::= expr AND expr */
-
3
,
/* (247) expr ::= expr OR expr */
-
3
,
/* (248) expr ::= expr PLUS expr */
-
3
,
/* (249) expr ::= expr MINUS expr */
-
3
,
/* (250) expr ::= expr STAR expr */
-
3
,
/* (251) expr ::= expr SLASH expr */
-
3
,
/* (252) expr ::= expr REM expr */
-
3
,
/* (253) expr ::= expr LIKE expr */
-
5
,
/* (254) expr ::= expr IN LP exprlist RP */
-
3
,
/* (255) exprlist ::= exprlist COMMA expritem */
-
1
,
/* (256) exprlist ::= expritem */
-
1
,
/* (257) expritem ::= expr */
0
,
/* (258) expritem ::= */
-
3
,
/* (259) cmd ::= RESET QUERY CACHE */
-
3
,
/* (260) cmd ::= SYNCDB ids REPLICA */
-
7
,
/* (261) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (262) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (263) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
-
7
,
/* (264) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (265) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
-
8
,
/* (266) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
-
9
,
/* (267) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
-
7
,
/* (268) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
-
7
,
/* (269) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (270) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (271) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
-
7
,
/* (272) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (273) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
-
8
,
/* (274) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
-
9
,
/* (275) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
-
7
,
/* (276) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
-
3
,
/* (277) cmd ::= KILL CONNECTION INTEGER */
-
5
,
/* (278) cmd ::= KILL STREAM INTEGER COLON INTEGER */
-
5
,
/* (279) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
static
void
yy_accept
(
yyParser
*
);
/* Forward Declaration */
...
...
@@ -2082,30 +2379,34 @@ static void yy_accept(yyParser*); /* Forward Declaration */
** only called from one place, optimizing compilers will in-line it, which
** means that the extra parameters have no performance impact.
*/
static
void
yy_reduce
(
static
YYACTIONTYPE
yy_reduce
(
yyParser
*
yypParser
,
/* The parser */
unsigned
int
yyruleno
,
/* Number of the rule by which to reduce */
int
yyLookahead
,
/* Lookahead token, or YYNOCODE if none */
ParseTOKENTYPE
yyLookaheadToken
/* Value of the lookahead token */
ParseCTX_PDECL
/* %extra_context */
){
int
yygoto
;
/* The next state */
int
yyact
;
/* The next action */
YYACTIONTYPE
yyact
;
/* The next action */
yyStackEntry
*
yymsp
;
/* The top of the parser's stack */
int
yysize
;
/* Amount to pop the stack */
ParseARG_FETCH
;
ParseARG_FETCH
(
void
)
yyLookahead
;
(
void
)
yyLookaheadToken
;
yymsp
=
yypParser
->
yytos
;
#ifndef NDEBUG
if
(
yyTraceFILE
&&
yyruleno
<
(
int
)(
sizeof
(
yyRuleName
)
/
sizeof
(
yyRuleName
[
0
]))
){
yysize
=
yyRuleInfo
[
yyruleno
].
nrhs
;
yysize
=
yyRuleInfo
NRhs
[
yyruleno
]
;
if
(
yysize
){
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]
, go
to state %d.
\n
"
,
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]
%s, pop back
to state %d.
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
],
yymsp
[
yysize
].
stateno
);
yyruleno
,
yyRuleName
[
yyruleno
],
yyruleno
<
YYNRULE_WITH_ACTION
?
""
:
" without external action"
,
yymsp
[
yysize
].
stateno
);
}
else
{
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s].
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
]);
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]%s.
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
],
yyruleno
<
YYNRULE_WITH_ACTION
?
""
:
" without external action"
);
}
}
#endif
/* NDEBUG */
...
...
@@ -2113,7 +2414,7 @@ static void yy_reduce(
/* Check that the stack is large enough to grow by a single entry
** if the RHS of the rule is empty. This ensures that there is room
** enough on the stack to push the LHS value */
if
(
yyRuleInfo
[
yyruleno
].
nrhs
==
0
){
if
(
yyRuleInfo
NRhs
[
yyruleno
]
==
0
){
#ifdef YYTRACKMAXSTACKDEPTH
if
(
(
int
)(
yypParser
->
yytos
-
yypParser
->
yystack
)
>
yypParser
->
yyhwm
){
yypParser
->
yyhwm
++
;
...
...
@@ -2123,13 +2424,19 @@ static void yy_reduce(
#if YYSTACKDEPTH>0
if
(
yypParser
->
yytos
>=
yypParser
->
yystackEnd
){
yyStackOverflow
(
yypParser
);
return
;
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return
0
;
}
#else
if
(
yypParser
->
yytos
>=&
yypParser
->
yystack
[
yypParser
->
yystksz
-
1
]
){
if
(
yyGrowStack
(
yypParser
)
){
yyStackOverflow
(
yypParser
);
return
;
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return
0
;
}
yymsp
=
yypParser
->
yytos
;
}
...
...
@@ -2320,13 +2627,13 @@ static void yy_reduce(
break
;
case
44
:
/* cmd ::= ALTER DATABASE ids alter_db_optr */
case
45
:
/* cmd ::= ALTER TOPIC ids alter_topic_optr */
yytestcase
(
yyruleno
==
45
);
{
SStrToken
t
=
{
0
};
setCreateDbInfo
(
pInfo
,
TSDB_SQL_ALTER_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
45
4
,
&
t
);}
{
SStrToken
t
=
{
0
};
setCreateDbInfo
(
pInfo
,
TSDB_SQL_ALTER_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
11
4
,
&
t
);}
break
;
case
46
:
/* cmd ::= ALTER ACCOUNT ids acct_optr */
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
,
&
yymsp
[
0
].
minor
.
yy
397
);}
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
,
&
yymsp
[
0
].
minor
.
yy
183
);}
break
;
case
47
:
/* cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
397
);}
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
183
);}
break
;
case
48
:
/* ids ::= ID */
case
49
:
/* ids ::= STRING */
yytestcase
(
yyruleno
==
49
);
...
...
@@ -2348,11 +2655,11 @@ static void yy_reduce(
{
setDCLSqlElems
(
pInfo
,
TSDB_SQL_CREATE_DNODE
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
55
:
/* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_CREATE_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
397
);}
{
setCreateAcctSql
(
pInfo
,
TSDB_SQL_CREATE_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
183
);}
break
;
case
56
:
/* cmd ::= CREATE DATABASE ifnotexists ids db_optr */
case
57
:
/* cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
yytestcase
(
yyruleno
==
57
);
{
setCreateDbInfo
(
pInfo
,
TSDB_SQL_CREATE_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
45
4
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
{
setCreateDbInfo
(
pInfo
,
TSDB_SQL_CREATE_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
11
4
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
case
58
:
/* cmd ::= CREATE USER ids PASS ids */
{
setCreateUserSql
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);}
...
...
@@ -2381,20 +2688,20 @@ static void yy_reduce(
break
;
case
77
:
/* acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
yylhsminor
.
yy
397
.
maxUsers
=
(
yymsp
[
-
2
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
2
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
397
.
maxDbs
=
(
yymsp
[
-
3
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
3
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
397
.
maxTimeSeries
=
(
yymsp
[
-
7
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
7
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
397
.
maxStreams
=
(
yymsp
[
-
5
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
5
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
397
.
maxPointsPerSecond
=
(
yymsp
[
-
8
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
8
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
397
.
maxStorage
=
(
yymsp
[
-
6
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
6
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
397
.
maxQueryTime
=
(
yymsp
[
-
4
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
4
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
397
.
maxConnections
=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
1
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
397
.
stat
=
yymsp
[
0
].
minor
.
yy0
;
yylhsminor
.
yy
183
.
maxUsers
=
(
yymsp
[
-
2
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
2
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
183
.
maxDbs
=
(
yymsp
[
-
3
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
3
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
183
.
maxTimeSeries
=
(
yymsp
[
-
7
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
7
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
183
.
maxStreams
=
(
yymsp
[
-
5
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
5
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
183
.
maxPointsPerSecond
=
(
yymsp
[
-
8
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
8
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
183
.
maxStorage
=
(
yymsp
[
-
6
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
6
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
183
.
maxQueryTime
=
(
yymsp
[
-
4
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
4
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
183
.
maxConnections
=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
1
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
183
.
stat
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
8
].
minor
.
yy
397
=
yylhsminor
.
yy397
;
yymsp
[
-
8
].
minor
.
yy
183
=
yylhsminor
.
yy183
;
break
;
case
78
:
/* keep ::= KEEP tagitemlist */
{
yymsp
[
-
1
].
minor
.
yy1
5
=
yymsp
[
0
].
minor
.
yy15
;
}
{
yymsp
[
-
1
].
minor
.
yy1
93
=
yymsp
[
0
].
minor
.
yy193
;
}
break
;
case
79
:
/* cache ::= CACHE INTEGER */
case
80
:
/* replica ::= REPLICA INTEGER */
yytestcase
(
yyruleno
==
80
);
...
...
@@ -2414,234 +2721,234 @@ static void yy_reduce(
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
break
;
case
94
:
/* db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy
454
);
yymsp
[
1
].
minor
.
yy45
4
.
dbType
=
TSDB_DB_TYPE_DEFAULT
;}
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy
114
);
yymsp
[
1
].
minor
.
yy11
4
.
dbType
=
TSDB_DB_TYPE_DEFAULT
;}
break
;
case
95
:
/* db_optr ::= db_optr cache */
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
cacheBlockSize
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
cacheBlockSize
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
96
:
/* db_optr ::= db_optr replica */
case
113
:
/* alter_db_optr ::= alter_db_optr replica */
yytestcase
(
yyruleno
==
113
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
replica
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
replica
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
97
:
/* db_optr ::= db_optr quorum */
case
114
:
/* alter_db_optr ::= alter_db_optr quorum */
yytestcase
(
yyruleno
==
114
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
quorum
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
quorum
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
98
:
/* db_optr ::= db_optr days */
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
daysPerFile
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
daysPerFile
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
99
:
/* db_optr ::= db_optr minrows */
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
minRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
minRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
100
:
/* db_optr ::= db_optr maxrows */
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
maxRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
maxRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
101
:
/* db_optr ::= db_optr blocks */
case
116
:
/* alter_db_optr ::= alter_db_optr blocks */
yytestcase
(
yyruleno
==
116
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
numOfBlocks
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
numOfBlocks
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
102
:
/* db_optr ::= db_optr ctime */
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
commitTime
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
commitTime
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
103
:
/* db_optr ::= db_optr wal */
case
118
:
/* alter_db_optr ::= alter_db_optr wal */
yytestcase
(
yyruleno
==
118
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
walLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
walLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
104
:
/* db_optr ::= db_optr fsync */
case
119
:
/* alter_db_optr ::= alter_db_optr fsync */
yytestcase
(
yyruleno
==
119
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
fsyncPeriod
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
fsyncPeriod
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
105
:
/* db_optr ::= db_optr comp */
case
117
:
/* alter_db_optr ::= alter_db_optr comp */
yytestcase
(
yyruleno
==
117
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
compressionLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
compressionLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
106
:
/* db_optr ::= db_optr prec */
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
precision
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
precision
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
107
:
/* db_optr ::= db_optr keep */
case
115
:
/* alter_db_optr ::= alter_db_optr keep */
yytestcase
(
yyruleno
==
115
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy454
.
keep
=
yymsp
[
0
].
minor
.
yy15
;
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy114
.
keep
=
yymsp
[
0
].
minor
.
yy193
;
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
108
:
/* db_optr ::= db_optr update */
case
120
:
/* alter_db_optr ::= alter_db_optr update */
yytestcase
(
yyruleno
==
120
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
update
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
update
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
109
:
/* db_optr ::= db_optr cachelast */
case
121
:
/* alter_db_optr ::= alter_db_optr cachelast */
yytestcase
(
yyruleno
==
121
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
cachelast
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
cachelast
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
110
:
/* topic_optr ::= db_optr */
case
122
:
/* alter_topic_optr ::= alter_db_optr */
yytestcase
(
yyruleno
==
122
);
{
yylhsminor
.
yy
454
=
yymsp
[
0
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
dbType
=
TSDB_DB_TYPE_TOPIC
;
}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
0
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
dbType
=
TSDB_DB_TYPE_TOPIC
;
}
yymsp
[
0
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
111
:
/* topic_optr ::= topic_optr partitions */
case
123
:
/* alter_topic_optr ::= alter_topic_optr partitions */
yytestcase
(
yyruleno
==
123
);
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy45
4
.
partitions
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy45
4
;
{
yylhsminor
.
yy
114
=
yymsp
[
-
1
].
minor
.
yy114
;
yylhsminor
.
yy11
4
.
partitions
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy
114
=
yylhsminor
.
yy11
4
;
break
;
case
112
:
/* alter_db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy
454
);
yymsp
[
1
].
minor
.
yy45
4
.
dbType
=
TSDB_DB_TYPE_DEFAULT
;}
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy
114
);
yymsp
[
1
].
minor
.
yy11
4
.
dbType
=
TSDB_DB_TYPE_DEFAULT
;}
break
;
case
124
:
/* typename ::= ids */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tSetColumnType
(
&
yylhsminor
.
yy
505
,
&
yymsp
[
0
].
minor
.
yy0
);
tSetColumnType
(
&
yylhsminor
.
yy
27
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
505
=
yylhsminor
.
yy505
;
yymsp
[
0
].
minor
.
yy
27
=
yylhsminor
.
yy27
;
break
;
case
125
:
/* typename ::= ids LP signed RP */
{
if
(
yymsp
[
-
1
].
minor
.
yy4
89
<=
0
)
{
if
(
yymsp
[
-
1
].
minor
.
yy4
73
<=
0
)
{
yymsp
[
-
3
].
minor
.
yy0
.
type
=
0
;
tSetColumnType
(
&
yylhsminor
.
yy
505
,
&
yymsp
[
-
3
].
minor
.
yy0
);
tSetColumnType
(
&
yylhsminor
.
yy
27
,
&
yymsp
[
-
3
].
minor
.
yy0
);
}
else
{
yymsp
[
-
3
].
minor
.
yy0
.
type
=
-
yymsp
[
-
1
].
minor
.
yy4
89
;
// negative value of name length
tSetColumnType
(
&
yylhsminor
.
yy
505
,
&
yymsp
[
-
3
].
minor
.
yy0
);
yymsp
[
-
3
].
minor
.
yy0
.
type
=
-
yymsp
[
-
1
].
minor
.
yy4
73
;
// negative value of name length
tSetColumnType
(
&
yylhsminor
.
yy
27
,
&
yymsp
[
-
3
].
minor
.
yy0
);
}
}
yymsp
[
-
3
].
minor
.
yy
505
=
yylhsminor
.
yy505
;
yymsp
[
-
3
].
minor
.
yy
27
=
yylhsminor
.
yy27
;
break
;
case
126
:
/* typename ::= ids UNSIGNED */
{
yymsp
[
-
1
].
minor
.
yy0
.
type
=
0
;
yymsp
[
-
1
].
minor
.
yy0
.
n
=
((
yymsp
[
0
].
minor
.
yy0
.
z
+
yymsp
[
0
].
minor
.
yy0
.
n
)
-
yymsp
[
-
1
].
minor
.
yy0
.
z
);
tSetColumnType
(
&
yylhsminor
.
yy
505
,
&
yymsp
[
-
1
].
minor
.
yy0
);
tSetColumnType
(
&
yylhsminor
.
yy
27
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
yymsp
[
-
1
].
minor
.
yy
505
=
yylhsminor
.
yy505
;
yymsp
[
-
1
].
minor
.
yy
27
=
yylhsminor
.
yy27
;
break
;
case
127
:
/* signed ::= INTEGER */
{
yylhsminor
.
yy4
89
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
0
].
minor
.
yy4
89
=
yylhsminor
.
yy489
;
{
yylhsminor
.
yy4
73
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
0
].
minor
.
yy4
73
=
yylhsminor
.
yy473
;
break
;
case
128
:
/* signed ::= PLUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy4
89
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
{
yymsp
[
-
1
].
minor
.
yy4
73
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
break
;
case
129
:
/* signed ::= MINUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy4
89
=
-
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);}
{
yymsp
[
-
1
].
minor
.
yy4
73
=
-
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);}
break
;
case
133
:
/* cmd ::= CREATE TABLE create_table_list */
{
pInfo
->
type
=
TSDB_SQL_CREATE_TABLE
;
pInfo
->
pCreateTableInfo
=
yymsp
[
0
].
minor
.
yy
482
;}
{
pInfo
->
type
=
TSDB_SQL_CREATE_TABLE
;
pInfo
->
pCreateTableInfo
=
yymsp
[
0
].
minor
.
yy
270
;}
break
;
case
134
:
/* create_table_list ::= create_from_stable */
{
SCreateTableSql
*
pCreateTable
=
calloc
(
1
,
sizeof
(
SCreateTableSql
));
pCreateTable
->
childTableInfo
=
taosArrayInit
(
4
,
sizeof
(
SCreatedTableInfo
));
taosArrayPush
(
pCreateTable
->
childTableInfo
,
&
yymsp
[
0
].
minor
.
yy
390
);
taosArrayPush
(
pCreateTable
->
childTableInfo
,
&
yymsp
[
0
].
minor
.
yy
192
);
pCreateTable
->
type
=
TSQL_CREATE_TABLE_FROM_STABLE
;
yylhsminor
.
yy
482
=
pCreateTable
;
yylhsminor
.
yy
270
=
pCreateTable
;
}
yymsp
[
0
].
minor
.
yy
482
=
yylhsminor
.
yy482
;
yymsp
[
0
].
minor
.
yy
270
=
yylhsminor
.
yy270
;
break
;
case
135
:
/* create_table_list ::= create_table_list create_from_stable */
{
taosArrayPush
(
yymsp
[
-
1
].
minor
.
yy
482
->
childTableInfo
,
&
yymsp
[
0
].
minor
.
yy390
);
yylhsminor
.
yy
482
=
yymsp
[
-
1
].
minor
.
yy482
;
taosArrayPush
(
yymsp
[
-
1
].
minor
.
yy
270
->
childTableInfo
,
&
yymsp
[
0
].
minor
.
yy192
);
yylhsminor
.
yy
270
=
yymsp
[
-
1
].
minor
.
yy270
;
}
yymsp
[
-
1
].
minor
.
yy
482
=
yylhsminor
.
yy482
;
yymsp
[
-
1
].
minor
.
yy
270
=
yylhsminor
.
yy270
;
break
;
case
136
:
/* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{
yylhsminor
.
yy
482
=
tSetCreateTableInfo
(
yymsp
[
-
1
].
minor
.
yy15
,
NULL
,
NULL
,
TSQL_CREATE_TABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
482
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yylhsminor
.
yy
270
=
tSetCreateTableInfo
(
yymsp
[
-
1
].
minor
.
yy193
,
NULL
,
NULL
,
TSQL_CREATE_TABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
270
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
setCreatedTableName
(
pInfo
,
&
yymsp
[
-
4
].
minor
.
yy0
,
&
yymsp
[
-
5
].
minor
.
yy0
);
}
yymsp
[
-
5
].
minor
.
yy
482
=
yylhsminor
.
yy482
;
yymsp
[
-
5
].
minor
.
yy
270
=
yylhsminor
.
yy270
;
break
;
case
137
:
/* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{
yylhsminor
.
yy
482
=
tSetCreateTableInfo
(
yymsp
[
-
5
].
minor
.
yy15
,
yymsp
[
-
1
].
minor
.
yy15
,
NULL
,
TSQL_CREATE_STABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
482
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yylhsminor
.
yy
270
=
tSetCreateTableInfo
(
yymsp
[
-
5
].
minor
.
yy193
,
yymsp
[
-
1
].
minor
.
yy193
,
NULL
,
TSQL_CREATE_STABLE
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
270
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
8
].
minor
.
yy0
.
n
+=
yymsp
[
-
7
].
minor
.
yy0
.
n
;
setCreatedTableName
(
pInfo
,
&
yymsp
[
-
8
].
minor
.
yy0
,
&
yymsp
[
-
9
].
minor
.
yy0
);
}
yymsp
[
-
9
].
minor
.
yy
482
=
yylhsminor
.
yy482
;
yymsp
[
-
9
].
minor
.
yy
270
=
yylhsminor
.
yy270
;
break
;
case
138
:
/* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
yymsp
[
-
8
].
minor
.
yy0
.
n
+=
yymsp
[
-
7
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
390
=
createNewChildTableInfo
(
&
yymsp
[
-
5
].
minor
.
yy0
,
NULL
,
yymsp
[
-
1
].
minor
.
yy15
,
&
yymsp
[
-
8
].
minor
.
yy0
,
&
yymsp
[
-
9
].
minor
.
yy0
);
yylhsminor
.
yy
192
=
createNewChildTableInfo
(
&
yymsp
[
-
5
].
minor
.
yy0
,
NULL
,
yymsp
[
-
1
].
minor
.
yy193
,
&
yymsp
[
-
8
].
minor
.
yy0
,
&
yymsp
[
-
9
].
minor
.
yy0
);
}
yymsp
[
-
9
].
minor
.
yy
390
=
yylhsminor
.
yy390
;
yymsp
[
-
9
].
minor
.
yy
192
=
yylhsminor
.
yy192
;
break
;
case
139
:
/* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
{
yymsp
[
-
8
].
minor
.
yy0
.
n
+=
yymsp
[
-
7
].
minor
.
yy0
.
n
;
yymsp
[
-
11
].
minor
.
yy0
.
n
+=
yymsp
[
-
10
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
390
=
createNewChildTableInfo
(
&
yymsp
[
-
8
].
minor
.
yy0
,
yymsp
[
-
5
].
minor
.
yy15
,
yymsp
[
-
1
].
minor
.
yy15
,
&
yymsp
[
-
11
].
minor
.
yy0
,
&
yymsp
[
-
12
].
minor
.
yy0
);
yylhsminor
.
yy
192
=
createNewChildTableInfo
(
&
yymsp
[
-
8
].
minor
.
yy0
,
yymsp
[
-
5
].
minor
.
yy193
,
yymsp
[
-
1
].
minor
.
yy193
,
&
yymsp
[
-
11
].
minor
.
yy0
,
&
yymsp
[
-
12
].
minor
.
yy0
);
}
yymsp
[
-
12
].
minor
.
yy
390
=
yylhsminor
.
yy390
;
yymsp
[
-
12
].
minor
.
yy
192
=
yylhsminor
.
yy192
;
break
;
case
140
:
/* tagNamelist ::= tagNamelist COMMA ids */
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy1
5
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy15
=
yymsp
[
-
2
].
minor
.
yy15
;
}
yymsp
[
-
2
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy1
93
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy193
=
yymsp
[
-
2
].
minor
.
yy193
;
}
yymsp
[
-
2
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
141
:
/* tagNamelist ::= ids */
{
yylhsminor
.
yy1
5
=
taosArrayInit
(
4
,
sizeof
(
SStrToken
));
taosArrayPush
(
yylhsminor
.
yy15
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
0
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
yylhsminor
.
yy1
93
=
taosArrayInit
(
4
,
sizeof
(
SStrToken
));
taosArrayPush
(
yylhsminor
.
yy193
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
0
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
142
:
/* create_table_args ::= ifnotexists ids cpxName AS select */
{
yylhsminor
.
yy
482
=
tSetCreateTableInfo
(
NULL
,
NULL
,
yymsp
[
0
].
minor
.
yy13
4
,
TSQL_CREATE_STREAM
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
482
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yylhsminor
.
yy
270
=
tSetCreateTableInfo
(
NULL
,
NULL
,
yymsp
[
0
].
minor
.
yy12
4
,
TSQL_CREATE_STREAM
);
setSqlInfo
(
pInfo
,
yylhsminor
.
yy
270
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
3
].
minor
.
yy0
.
n
+=
yymsp
[
-
2
].
minor
.
yy0
.
n
;
setCreatedTableName
(
pInfo
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
4
].
minor
.
yy0
);
}
yymsp
[
-
4
].
minor
.
yy
482
=
yylhsminor
.
yy482
;
yymsp
[
-
4
].
minor
.
yy
270
=
yylhsminor
.
yy270
;
break
;
case
143
:
/* columnlist ::= columnlist COMMA column */
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy1
5
,
&
yymsp
[
0
].
minor
.
yy505
);
yylhsminor
.
yy15
=
yymsp
[
-
2
].
minor
.
yy15
;
}
yymsp
[
-
2
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
taosArrayPush
(
yymsp
[
-
2
].
minor
.
yy1
93
,
&
yymsp
[
0
].
minor
.
yy27
);
yylhsminor
.
yy193
=
yymsp
[
-
2
].
minor
.
yy193
;
}
yymsp
[
-
2
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
144
:
/* columnlist ::= column */
{
yylhsminor
.
yy1
5
=
taosArrayInit
(
4
,
sizeof
(
TAOS_FIELD
));
taosArrayPush
(
yylhsminor
.
yy15
,
&
yymsp
[
0
].
minor
.
yy505
);}
yymsp
[
0
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
yylhsminor
.
yy1
93
=
taosArrayInit
(
4
,
sizeof
(
TAOS_FIELD
));
taosArrayPush
(
yylhsminor
.
yy193
,
&
yymsp
[
0
].
minor
.
yy27
);}
yymsp
[
0
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
145
:
/* column ::= ids typename */
{
tSetColumnInfo
(
&
yylhsminor
.
yy
505
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy505
);
tSetColumnInfo
(
&
yylhsminor
.
yy
27
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy27
);
}
yymsp
[
-
1
].
minor
.
yy
505
=
yylhsminor
.
yy505
;
yymsp
[
-
1
].
minor
.
yy
27
=
yylhsminor
.
yy27
;
break
;
case
146
:
/* tagitemlist ::= tagitemlist COMMA tagitem */
{
yylhsminor
.
yy1
5
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy15
,
&
yymsp
[
0
].
minor
.
yy380
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
yylhsminor
.
yy1
93
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy193
,
&
yymsp
[
0
].
minor
.
yy442
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
147
:
/* tagitemlist ::= tagitem */
{
yylhsminor
.
yy1
5
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy380
,
-
1
);
}
yymsp
[
0
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
yylhsminor
.
yy1
93
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy442
,
-
1
);
}
yymsp
[
0
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
148
:
/* tagitem ::= INTEGER */
case
149
:
/* tagitem ::= FLOAT */
yytestcase
(
yyruleno
==
149
);
case
150
:
/* tagitem ::= STRING */
yytestcase
(
yyruleno
==
150
);
case
151
:
/* tagitem ::= BOOL */
yytestcase
(
yyruleno
==
151
);
{
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy
380
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
380
=
yylhsminor
.
yy380
;
{
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy
442
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
442
=
yylhsminor
.
yy442
;
break
;
case
152
:
/* tagitem ::= NULL */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tVariantCreate
(
&
yylhsminor
.
yy
380
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
380
=
yylhsminor
.
yy380
;
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tVariantCreate
(
&
yylhsminor
.
yy
442
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
442
=
yylhsminor
.
yy442
;
break
;
case
153
:
/* tagitem ::= MINUS INTEGER */
case
154
:
/* tagitem ::= MINUS FLOAT */
yytestcase
(
yyruleno
==
154
);
...
...
@@ -2651,56 +2958,56 @@ static void yy_reduce(
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
yymsp
[
0
].
minor
.
yy0
.
type
;
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy
380
,
&
yymsp
[
-
1
].
minor
.
yy0
);
tVariantCreate
(
&
yylhsminor
.
yy
442
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
yymsp
[
-
1
].
minor
.
yy
380
=
yylhsminor
.
yy380
;
yymsp
[
-
1
].
minor
.
yy
442
=
yylhsminor
.
yy442
;
break
;
case
157
:
/* select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
{
yylhsminor
.
yy1
34
=
tSetQuerySqlNode
(
&
yymsp
[
-
13
].
minor
.
yy0
,
yymsp
[
-
12
].
minor
.
yy15
,
yymsp
[
-
11
].
minor
.
yy160
,
yymsp
[
-
10
].
minor
.
yy328
,
yymsp
[
-
4
].
minor
.
yy15
,
yymsp
[
-
3
].
minor
.
yy15
,
&
yymsp
[
-
9
].
minor
.
yy496
,
&
yymsp
[
-
8
].
minor
.
yy151
,
&
yymsp
[
-
7
].
minor
.
yy96
,
&
yymsp
[
-
5
].
minor
.
yy0
,
yymsp
[
-
6
].
minor
.
yy15
,
&
yymsp
[
0
].
minor
.
yy150
,
&
yymsp
[
-
1
].
minor
.
yy150
,
yymsp
[
-
2
].
minor
.
yy328
);
yylhsminor
.
yy1
24
=
tSetQuerySqlNode
(
&
yymsp
[
-
13
].
minor
.
yy0
,
yymsp
[
-
12
].
minor
.
yy193
,
yymsp
[
-
11
].
minor
.
yy332
,
yymsp
[
-
10
].
minor
.
yy454
,
yymsp
[
-
4
].
minor
.
yy193
,
yymsp
[
-
3
].
minor
.
yy193
,
&
yymsp
[
-
9
].
minor
.
yy392
,
&
yymsp
[
-
8
].
minor
.
yy447
,
&
yymsp
[
-
7
].
minor
.
yy76
,
&
yymsp
[
-
5
].
minor
.
yy0
,
yymsp
[
-
6
].
minor
.
yy193
,
&
yymsp
[
0
].
minor
.
yy482
,
&
yymsp
[
-
1
].
minor
.
yy482
,
yymsp
[
-
2
].
minor
.
yy454
);
}
yymsp
[
-
13
].
minor
.
yy1
34
=
yylhsminor
.
yy13
4
;
yymsp
[
-
13
].
minor
.
yy1
24
=
yylhsminor
.
yy12
4
;
break
;
case
158
:
/* select ::= LP select RP */
{
yymsp
[
-
2
].
minor
.
yy1
34
=
yymsp
[
-
1
].
minor
.
yy13
4
;}
{
yymsp
[
-
2
].
minor
.
yy1
24
=
yymsp
[
-
1
].
minor
.
yy12
4
;}
break
;
case
159
:
/* union ::= select */
{
yylhsminor
.
yy1
5
=
setSubclause
(
NULL
,
yymsp
[
0
].
minor
.
yy13
4
);
}
yymsp
[
0
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
yylhsminor
.
yy1
93
=
setSubclause
(
NULL
,
yymsp
[
0
].
minor
.
yy12
4
);
}
yymsp
[
0
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
160
:
/* union ::= union UNION ALL select */
{
yylhsminor
.
yy1
5
=
appendSelectClause
(
yymsp
[
-
3
].
minor
.
yy15
,
yymsp
[
0
].
minor
.
yy13
4
);
}
yymsp
[
-
3
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
yylhsminor
.
yy1
93
=
appendSelectClause
(
yymsp
[
-
3
].
minor
.
yy193
,
yymsp
[
0
].
minor
.
yy12
4
);
}
yymsp
[
-
3
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
161
:
/* cmd ::= union */
{
setSqlInfo
(
pInfo
,
yymsp
[
0
].
minor
.
yy1
5
,
NULL
,
TSDB_SQL_SELECT
);
}
{
setSqlInfo
(
pInfo
,
yymsp
[
0
].
minor
.
yy1
93
,
NULL
,
TSDB_SQL_SELECT
);
}
break
;
case
162
:
/* select ::= SELECT selcollist */
{
yylhsminor
.
yy1
34
=
tSetQuerySqlNode
(
&
yymsp
[
-
1
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy15
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
yylhsminor
.
yy1
24
=
tSetQuerySqlNode
(
&
yymsp
[
-
1
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy1
34
=
yylhsminor
.
yy13
4
;
yymsp
[
-
1
].
minor
.
yy1
24
=
yylhsminor
.
yy12
4
;
break
;
case
163
:
/* sclp ::= selcollist COMMA */
{
yylhsminor
.
yy1
5
=
yymsp
[
-
1
].
minor
.
yy15
;}
yymsp
[
-
1
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
yylhsminor
.
yy1
93
=
yymsp
[
-
1
].
minor
.
yy193
;}
yymsp
[
-
1
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
164
:
/* sclp ::= */
case
194
:
/* orderby_opt ::= */
yytestcase
(
yyruleno
==
194
);
{
yymsp
[
1
].
minor
.
yy1
5
=
0
;}
{
yymsp
[
1
].
minor
.
yy1
93
=
0
;}
break
;
case
165
:
/* selcollist ::= sclp distinct expr as */
{
yylhsminor
.
yy1
5
=
tSqlExprListAppend
(
yymsp
[
-
3
].
minor
.
yy15
,
yymsp
[
-
1
].
minor
.
yy328
,
yymsp
[
-
2
].
minor
.
yy0
.
n
?
&
yymsp
[
-
2
].
minor
.
yy0
:
0
,
yymsp
[
0
].
minor
.
yy0
.
n
?&
yymsp
[
0
].
minor
.
yy0
:
0
);
yylhsminor
.
yy1
93
=
tSqlExprListAppend
(
yymsp
[
-
3
].
minor
.
yy193
,
yymsp
[
-
1
].
minor
.
yy454
,
yymsp
[
-
2
].
minor
.
yy0
.
n
?
&
yymsp
[
-
2
].
minor
.
yy0
:
0
,
yymsp
[
0
].
minor
.
yy0
.
n
?&
yymsp
[
0
].
minor
.
yy0
:
0
);
}
yymsp
[
-
3
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
yymsp
[
-
3
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
166
:
/* selcollist ::= sclp STAR */
{
tSqlExpr
*
pNode
=
tSqlExprCreateIdValue
(
NULL
,
TK_ALL
);
yylhsminor
.
yy1
5
=
tSqlExprListAppend
(
yymsp
[
-
1
].
minor
.
yy15
,
pNode
,
0
,
0
);
yylhsminor
.
yy1
93
=
tSqlExprListAppend
(
yymsp
[
-
1
].
minor
.
yy193
,
pNode
,
0
,
0
);
}
yymsp
[
-
1
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
yymsp
[
-
1
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
167
:
/* as ::= AS ids */
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
...
...
@@ -2718,79 +3025,79 @@ static void yy_reduce(
break
;
case
172
:
/* from ::= FROM tablelist */
case
173
:
/* from ::= FROM sub */
yytestcase
(
yyruleno
==
173
);
{
yymsp
[
-
1
].
minor
.
yy
160
=
yymsp
[
0
].
minor
.
yy160
;}
{
yymsp
[
-
1
].
minor
.
yy
332
=
yymsp
[
0
].
minor
.
yy332
;}
break
;
case
174
:
/* sub ::= LP union RP */
{
yymsp
[
-
2
].
minor
.
yy
160
=
addSubqueryElem
(
NULL
,
yymsp
[
-
1
].
minor
.
yy15
,
NULL
);}
{
yymsp
[
-
2
].
minor
.
yy
332
=
addSubqueryElem
(
NULL
,
yymsp
[
-
1
].
minor
.
yy193
,
NULL
);}
break
;
case
175
:
/* sub ::= LP union RP ids */
{
yymsp
[
-
3
].
minor
.
yy
160
=
addSubqueryElem
(
NULL
,
yymsp
[
-
2
].
minor
.
yy15
,
&
yymsp
[
0
].
minor
.
yy0
);}
{
yymsp
[
-
3
].
minor
.
yy
332
=
addSubqueryElem
(
NULL
,
yymsp
[
-
2
].
minor
.
yy193
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
176
:
/* sub ::= sub COMMA LP union RP ids */
{
yylhsminor
.
yy
160
=
addSubqueryElem
(
yymsp
[
-
5
].
minor
.
yy160
,
yymsp
[
-
2
].
minor
.
yy15
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
-
5
].
minor
.
yy
160
=
yylhsminor
.
yy160
;
{
yylhsminor
.
yy
332
=
addSubqueryElem
(
yymsp
[
-
5
].
minor
.
yy332
,
yymsp
[
-
2
].
minor
.
yy193
,
&
yymsp
[
0
].
minor
.
yy0
);}
yymsp
[
-
5
].
minor
.
yy
332
=
yylhsminor
.
yy332
;
break
;
case
177
:
/* tablelist ::= ids cpxName */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
160
=
setTableNameList
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
yylhsminor
.
yy
332
=
setTableNameList
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
160
=
yylhsminor
.
yy160
;
yymsp
[
-
1
].
minor
.
yy
332
=
yylhsminor
.
yy332
;
break
;
case
178
:
/* tablelist ::= ids cpxName ids */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
yymsp
[
-
1
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
160
=
setTableNameList
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy
332
=
setTableNameList
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
-
2
].
minor
.
yy
160
=
yylhsminor
.
yy160
;
yymsp
[
-
2
].
minor
.
yy
332
=
yylhsminor
.
yy332
;
break
;
case
179
:
/* tablelist ::= tablelist COMMA ids cpxName */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
160
=
setTableNameList
(
yymsp
[
-
3
].
minor
.
yy160
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
yylhsminor
.
yy
332
=
setTableNameList
(
yymsp
[
-
3
].
minor
.
yy332
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
);
}
yymsp
[
-
3
].
minor
.
yy
160
=
yylhsminor
.
yy160
;
yymsp
[
-
3
].
minor
.
yy
332
=
yylhsminor
.
yy332
;
break
;
case
180
:
/* tablelist ::= tablelist COMMA ids cpxName ids */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
yymsp
[
-
1
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
160
=
setTableNameList
(
yymsp
[
-
4
].
minor
.
yy160
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
yylhsminor
.
yy
332
=
setTableNameList
(
yymsp
[
-
4
].
minor
.
yy332
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
-
4
].
minor
.
yy
160
=
yylhsminor
.
yy160
;
yymsp
[
-
4
].
minor
.
yy
332
=
yylhsminor
.
yy332
;
break
;
case
181
:
/* tmvar ::= VARIABLE */
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
182
:
/* interval_opt ::= INTERVAL LP tmvar RP */
{
yymsp
[
-
3
].
minor
.
yy
496
.
interval
=
yymsp
[
-
1
].
minor
.
yy0
;
yymsp
[
-
3
].
minor
.
yy496
.
offset
.
n
=
0
;}
{
yymsp
[
-
3
].
minor
.
yy
392
.
interval
=
yymsp
[
-
1
].
minor
.
yy0
;
yymsp
[
-
3
].
minor
.
yy392
.
offset
.
n
=
0
;}
break
;
case
183
:
/* interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
{
yymsp
[
-
5
].
minor
.
yy
496
.
interval
=
yymsp
[
-
3
].
minor
.
yy0
;
yymsp
[
-
5
].
minor
.
yy496
.
offset
=
yymsp
[
-
1
].
minor
.
yy0
;}
{
yymsp
[
-
5
].
minor
.
yy
392
.
interval
=
yymsp
[
-
3
].
minor
.
yy0
;
yymsp
[
-
5
].
minor
.
yy392
.
offset
=
yymsp
[
-
1
].
minor
.
yy0
;}
break
;
case
184
:
/* interval_opt ::= */
{
memset
(
&
yymsp
[
1
].
minor
.
yy
496
,
0
,
sizeof
(
yymsp
[
1
].
minor
.
yy496
));}
{
memset
(
&
yymsp
[
1
].
minor
.
yy
392
,
0
,
sizeof
(
yymsp
[
1
].
minor
.
yy392
));}
break
;
case
185
:
/* session_option ::= */
{
yymsp
[
1
].
minor
.
yy
151
.
col
.
n
=
0
;
yymsp
[
1
].
minor
.
yy151
.
gap
.
n
=
0
;}
{
yymsp
[
1
].
minor
.
yy
447
.
col
.
n
=
0
;
yymsp
[
1
].
minor
.
yy447
.
gap
.
n
=
0
;}
break
;
case
186
:
/* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
6
].
minor
.
yy
151
.
col
=
yymsp
[
-
4
].
minor
.
yy0
;
yymsp
[
-
6
].
minor
.
yy
151
.
gap
=
yymsp
[
-
1
].
minor
.
yy0
;
yymsp
[
-
6
].
minor
.
yy
447
.
col
=
yymsp
[
-
4
].
minor
.
yy0
;
yymsp
[
-
6
].
minor
.
yy
447
.
gap
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
187
:
/* windowstate_option ::= */
{
yymsp
[
1
].
minor
.
yy
9
6
.
col
.
n
=
0
;}
{
yymsp
[
1
].
minor
.
yy
7
6
.
col
.
n
=
0
;}
break
;
case
188
:
/* windowstate_option ::= STATE_WINDOW LP ids RP */
{
yymsp
[
-
3
].
minor
.
yy
9
6
.
col
=
yymsp
[
-
1
].
minor
.
yy0
;
yymsp
[
-
3
].
minor
.
yy
7
6
.
col
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
189
:
/* fill_opt ::= */
{
yymsp
[
1
].
minor
.
yy1
5
=
0
;
}
{
yymsp
[
1
].
minor
.
yy1
93
=
0
;
}
break
;
case
190
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
...
...
@@ -2798,14 +3105,14 @@ static void yy_reduce(
toTSDBType
(
yymsp
[
-
3
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
A
,
&
yymsp
[
-
3
].
minor
.
yy0
);
tVariantListInsert
(
yymsp
[
-
1
].
minor
.
yy1
5
,
&
A
,
-
1
,
0
);
yymsp
[
-
5
].
minor
.
yy1
5
=
yymsp
[
-
1
].
minor
.
yy15
;
tVariantListInsert
(
yymsp
[
-
1
].
minor
.
yy1
93
,
&
A
,
-
1
,
0
);
yymsp
[
-
5
].
minor
.
yy1
93
=
yymsp
[
-
1
].
minor
.
yy193
;
}
break
;
case
191
:
/* fill_opt ::= FILL LP ID RP */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
3
].
minor
.
yy1
5
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
yymsp
[
-
3
].
minor
.
yy1
93
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
}
break
;
case
192
:
/* sliding_opt ::= SLIDING LP tmvar RP */
...
...
@@ -2815,235 +3122,235 @@ static void yy_reduce(
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
yymsp
[
1
].
minor
.
yy0
.
z
=
NULL
;
yymsp
[
1
].
minor
.
yy0
.
type
=
0
;
}
break
;
case
195
:
/* orderby_opt ::= ORDER BY sortlist */
{
yymsp
[
-
2
].
minor
.
yy1
5
=
yymsp
[
0
].
minor
.
yy15
;}
{
yymsp
[
-
2
].
minor
.
yy1
93
=
yymsp
[
0
].
minor
.
yy193
;}
break
;
case
196
:
/* sortlist ::= sortlist COMMA item sortorder */
{
yylhsminor
.
yy1
5
=
tVariantListAppend
(
yymsp
[
-
3
].
minor
.
yy15
,
&
yymsp
[
-
1
].
minor
.
yy380
,
yymsp
[
0
].
minor
.
yy250
);
yylhsminor
.
yy1
93
=
tVariantListAppend
(
yymsp
[
-
3
].
minor
.
yy193
,
&
yymsp
[
-
1
].
minor
.
yy442
,
yymsp
[
0
].
minor
.
yy312
);
}
yymsp
[
-
3
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
yymsp
[
-
3
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
197
:
/* sortlist ::= item sortorder */
{
yylhsminor
.
yy1
5
=
tVariantListAppend
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy380
,
yymsp
[
0
].
minor
.
yy250
);
yylhsminor
.
yy1
93
=
tVariantListAppend
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy442
,
yymsp
[
0
].
minor
.
yy312
);
}
yymsp
[
-
1
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
yymsp
[
-
1
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
198
:
/* item ::= ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
tVariantCreate
(
&
yylhsminor
.
yy
380
,
&
yymsp
[
-
1
].
minor
.
yy0
);
tVariantCreate
(
&
yylhsminor
.
yy
442
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
yymsp
[
-
1
].
minor
.
yy
380
=
yylhsminor
.
yy380
;
yymsp
[
-
1
].
minor
.
yy
442
=
yylhsminor
.
yy442
;
break
;
case
199
:
/* sortorder ::= ASC */
{
yymsp
[
0
].
minor
.
yy
250
=
TSDB_ORDER_ASC
;
}
{
yymsp
[
0
].
minor
.
yy
312
=
TSDB_ORDER_ASC
;
}
break
;
case
200
:
/* sortorder ::= DESC */
{
yymsp
[
0
].
minor
.
yy
250
=
TSDB_ORDER_DESC
;}
{
yymsp
[
0
].
minor
.
yy
312
=
TSDB_ORDER_DESC
;}
break
;
case
201
:
/* sortorder ::= */
{
yymsp
[
1
].
minor
.
yy
250
=
TSDB_ORDER_ASC
;
}
{
yymsp
[
1
].
minor
.
yy
312
=
TSDB_ORDER_ASC
;
}
break
;
case
202
:
/* groupby_opt ::= */
{
yymsp
[
1
].
minor
.
yy1
5
=
0
;}
{
yymsp
[
1
].
minor
.
yy1
93
=
0
;}
break
;
case
203
:
/* groupby_opt ::= GROUP BY grouplist */
{
yymsp
[
-
2
].
minor
.
yy1
5
=
yymsp
[
0
].
minor
.
yy15
;}
{
yymsp
[
-
2
].
minor
.
yy1
93
=
yymsp
[
0
].
minor
.
yy193
;}
break
;
case
204
:
/* grouplist ::= grouplist COMMA item */
{
yylhsminor
.
yy1
5
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy15
,
&
yymsp
[
0
].
minor
.
yy380
,
-
1
);
yylhsminor
.
yy1
93
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy193
,
&
yymsp
[
0
].
minor
.
yy442
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
yymsp
[
-
2
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
205
:
/* grouplist ::= item */
{
yylhsminor
.
yy1
5
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy380
,
-
1
);
yylhsminor
.
yy1
93
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy442
,
-
1
);
}
yymsp
[
0
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
yymsp
[
0
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
206
:
/* having_opt ::= */
case
216
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
216
);
case
258
:
/* expritem ::= */
yytestcase
(
yyruleno
==
258
);
{
yymsp
[
1
].
minor
.
yy
328
=
0
;}
{
yymsp
[
1
].
minor
.
yy
454
=
0
;}
break
;
case
207
:
/* having_opt ::= HAVING expr */
case
217
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
217
);
{
yymsp
[
-
1
].
minor
.
yy
328
=
yymsp
[
0
].
minor
.
yy328
;}
{
yymsp
[
-
1
].
minor
.
yy
454
=
yymsp
[
0
].
minor
.
yy454
;}
break
;
case
208
:
/* limit_opt ::= */
case
212
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
212
);
{
yymsp
[
1
].
minor
.
yy
150
.
limit
=
-
1
;
yymsp
[
1
].
minor
.
yy150
.
offset
=
0
;}
{
yymsp
[
1
].
minor
.
yy
482
.
limit
=
-
1
;
yymsp
[
1
].
minor
.
yy482
.
offset
=
0
;}
break
;
case
209
:
/* limit_opt ::= LIMIT signed */
case
213
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
213
);
{
yymsp
[
-
1
].
minor
.
yy
150
.
limit
=
yymsp
[
0
].
minor
.
yy489
;
yymsp
[
-
1
].
minor
.
yy150
.
offset
=
0
;}
{
yymsp
[
-
1
].
minor
.
yy
482
.
limit
=
yymsp
[
0
].
minor
.
yy473
;
yymsp
[
-
1
].
minor
.
yy482
.
offset
=
0
;}
break
;
case
210
:
/* limit_opt ::= LIMIT signed OFFSET signed */
{
yymsp
[
-
3
].
minor
.
yy
150
.
limit
=
yymsp
[
-
2
].
minor
.
yy489
;
yymsp
[
-
3
].
minor
.
yy150
.
offset
=
yymsp
[
0
].
minor
.
yy489
;}
{
yymsp
[
-
3
].
minor
.
yy
482
.
limit
=
yymsp
[
-
2
].
minor
.
yy473
;
yymsp
[
-
3
].
minor
.
yy482
.
offset
=
yymsp
[
0
].
minor
.
yy473
;}
break
;
case
211
:
/* limit_opt ::= LIMIT signed COMMA signed */
{
yymsp
[
-
3
].
minor
.
yy
150
.
limit
=
yymsp
[
0
].
minor
.
yy489
;
yymsp
[
-
3
].
minor
.
yy150
.
offset
=
yymsp
[
-
2
].
minor
.
yy489
;}
{
yymsp
[
-
3
].
minor
.
yy
482
.
limit
=
yymsp
[
0
].
minor
.
yy473
;
yymsp
[
-
3
].
minor
.
yy482
.
offset
=
yymsp
[
-
2
].
minor
.
yy473
;}
break
;
case
214
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
{
yymsp
[
-
3
].
minor
.
yy
150
.
limit
=
yymsp
[
-
2
].
minor
.
yy489
;
yymsp
[
-
3
].
minor
.
yy150
.
offset
=
yymsp
[
0
].
minor
.
yy489
;}
{
yymsp
[
-
3
].
minor
.
yy
482
.
limit
=
yymsp
[
-
2
].
minor
.
yy473
;
yymsp
[
-
3
].
minor
.
yy482
.
offset
=
yymsp
[
0
].
minor
.
yy473
;}
break
;
case
215
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
{
yymsp
[
-
3
].
minor
.
yy
150
.
limit
=
yymsp
[
0
].
minor
.
yy489
;
yymsp
[
-
3
].
minor
.
yy150
.
offset
=
yymsp
[
-
2
].
minor
.
yy489
;}
{
yymsp
[
-
3
].
minor
.
yy
482
.
limit
=
yymsp
[
0
].
minor
.
yy473
;
yymsp
[
-
3
].
minor
.
yy482
.
offset
=
yymsp
[
-
2
].
minor
.
yy473
;}
break
;
case
218
:
/* expr ::= LP expr RP */
{
yylhsminor
.
yy
328
=
yymsp
[
-
1
].
minor
.
yy328
;
yylhsminor
.
yy328
->
token
.
z
=
yymsp
[
-
2
].
minor
.
yy0
.
z
;
yylhsminor
.
yy328
->
token
.
n
=
(
yymsp
[
0
].
minor
.
yy0
.
z
-
yymsp
[
-
2
].
minor
.
yy0
.
z
+
1
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
yymsp
[
-
1
].
minor
.
yy454
;
yylhsminor
.
yy454
->
token
.
z
=
yymsp
[
-
2
].
minor
.
yy0
.
z
;
yylhsminor
.
yy454
->
token
.
n
=
(
yymsp
[
0
].
minor
.
yy0
.
z
-
yymsp
[
-
2
].
minor
.
yy0
.
z
+
1
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
219
:
/* expr ::= ID */
{
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
0
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
220
:
/* expr ::= ID DOT ID */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
221
:
/* expr ::= ID DOT STAR */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ALL
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ALL
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
222
:
/* expr ::= INTEGER */
{
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
0
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
223
:
/* expr ::= MINUS INTEGER */
case
224
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
224
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_INTEGER
;
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
-
1
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_INTEGER
;
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
225
:
/* expr ::= FLOAT */
{
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
0
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
226
:
/* expr ::= MINUS FLOAT */
case
227
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
227
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_FLOAT
;
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
-
1
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_FLOAT
;
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
228
:
/* expr ::= STRING */
{
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_STRING
);}
yymsp
[
0
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_STRING
);}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
229
:
/* expr ::= NOW */
{
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NOW
);
}
yymsp
[
0
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NOW
);
}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
230
:
/* expr ::= VARIABLE */
{
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
0
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
231
:
/* expr ::= PLUS VARIABLE */
case
232
:
/* expr ::= MINUS VARIABLE */
yytestcase
(
yyruleno
==
232
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_VARIABLE
;
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
-
1
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_VARIABLE
;
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
-
1
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
233
:
/* expr ::= BOOL */
{
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_BOOL
);}
yymsp
[
0
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_BOOL
);}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
234
:
/* expr ::= NULL */
{
yylhsminor
.
yy
328
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NULL
);}
yymsp
[
0
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NULL
);}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
235
:
/* expr ::= ID LP exprlist RP */
{
yylhsminor
.
yy
328
=
tSqlExprCreateFunction
(
yymsp
[
-
1
].
minor
.
yy15
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateFunction
(
yymsp
[
-
1
].
minor
.
yy193
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
236
:
/* expr ::= ID LP STAR RP */
{
yylhsminor
.
yy
328
=
tSqlExprCreateFunction
(
NULL
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreateFunction
(
NULL
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
237
:
/* expr ::= expr IS NULL */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
NULL
,
TK_ISNULL
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
NULL
,
TK_ISNULL
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
238
:
/* expr ::= expr IS NOT NULL */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
3
].
minor
.
yy328
,
NULL
,
TK_NOTNULL
);}
yymsp
[
-
3
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
3
].
minor
.
yy454
,
NULL
,
TK_NOTNULL
);}
yymsp
[
-
3
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
239
:
/* expr ::= expr LT expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_LT
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_LT
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
240
:
/* expr ::= expr GT expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_GT
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_GT
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
241
:
/* expr ::= expr LE expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_LE
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_LE
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
242
:
/* expr ::= expr GE expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_GE
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_GE
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
243
:
/* expr ::= expr NE expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_NE
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_NE
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
244
:
/* expr ::= expr EQ expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_EQ
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_EQ
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
245
:
/* expr ::= expr BETWEEN expr AND expr */
{
tSqlExpr
*
X2
=
tSqlExprClone
(
yymsp
[
-
4
].
minor
.
yy
328
);
yylhsminor
.
yy328
=
tSqlExprCreate
(
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy328
,
yymsp
[
-
2
].
minor
.
yy328
,
TK_GE
),
tSqlExprCreate
(
X2
,
yymsp
[
0
].
minor
.
yy328
,
TK_LE
),
TK_AND
);}
yymsp
[
-
4
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
tSqlExpr
*
X2
=
tSqlExprClone
(
yymsp
[
-
4
].
minor
.
yy
454
);
yylhsminor
.
yy454
=
tSqlExprCreate
(
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy454
,
yymsp
[
-
2
].
minor
.
yy454
,
TK_GE
),
tSqlExprCreate
(
X2
,
yymsp
[
0
].
minor
.
yy454
,
TK_LE
),
TK_AND
);}
yymsp
[
-
4
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
246
:
/* expr ::= expr AND expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_AND
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_AND
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
247
:
/* expr ::= expr OR expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_OR
);
}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_OR
);
}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
248
:
/* expr ::= expr PLUS expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_PLUS
);
}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_PLUS
);
}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
249
:
/* expr ::= expr MINUS expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_MINUS
);
}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_MINUS
);
}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
250
:
/* expr ::= expr STAR expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_STAR
);
}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_STAR
);
}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
251
:
/* expr ::= expr SLASH expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_DIVIDE
);}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_DIVIDE
);}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
252
:
/* expr ::= expr REM expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_REM
);
}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_REM
);
}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
253
:
/* expr ::= expr LIKE expr */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy328
,
yymsp
[
0
].
minor
.
yy328
,
TK_LIKE
);
}
yymsp
[
-
2
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy454
,
yymsp
[
0
].
minor
.
yy454
,
TK_LIKE
);
}
yymsp
[
-
2
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
254
:
/* expr ::= expr IN LP exprlist RP */
{
yylhsminor
.
yy
328
=
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy328
,
(
tSqlExpr
*
)
yymsp
[
-
1
].
minor
.
yy15
,
TK_IN
);
}
yymsp
[
-
4
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy454
,
(
tSqlExpr
*
)
yymsp
[
-
1
].
minor
.
yy193
,
TK_IN
);
}
yymsp
[
-
4
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
255
:
/* exprlist ::= exprlist COMMA expritem */
{
yylhsminor
.
yy1
5
=
tSqlExprListAppend
(
yymsp
[
-
2
].
minor
.
yy15
,
yymsp
[
0
].
minor
.
yy328
,
0
,
0
);}
yymsp
[
-
2
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
yylhsminor
.
yy1
93
=
tSqlExprListAppend
(
yymsp
[
-
2
].
minor
.
yy193
,
yymsp
[
0
].
minor
.
yy454
,
0
,
0
);}
yymsp
[
-
2
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
256
:
/* exprlist ::= expritem */
{
yylhsminor
.
yy1
5
=
tSqlExprListAppend
(
0
,
yymsp
[
0
].
minor
.
yy328
,
0
,
0
);}
yymsp
[
0
].
minor
.
yy1
5
=
yylhsminor
.
yy15
;
{
yylhsminor
.
yy1
93
=
tSqlExprListAppend
(
0
,
yymsp
[
0
].
minor
.
yy454
,
0
,
0
);}
yymsp
[
0
].
minor
.
yy1
93
=
yylhsminor
.
yy193
;
break
;
case
257
:
/* expritem ::= expr */
{
yylhsminor
.
yy
328
=
yymsp
[
0
].
minor
.
yy328
;}
yymsp
[
0
].
minor
.
yy
328
=
yylhsminor
.
yy328
;
{
yylhsminor
.
yy
454
=
yymsp
[
0
].
minor
.
yy454
;}
yymsp
[
0
].
minor
.
yy
454
=
yylhsminor
.
yy454
;
break
;
case
259
:
/* cmd ::= RESET QUERY CACHE */
{
setDCLSqlElems
(
pInfo
,
TSDB_SQL_RESET_CACHE
,
0
);}
...
...
@@ -3054,7 +3361,7 @@ static void yy_reduce(
case
261
:
/* 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
.
yy1
5
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy1
93
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3072,14 +3379,14 @@ static void yy_reduce(
case
263
:
/* 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
.
yy1
5
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy1
93
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
264
:
/* 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
.
yy1
5
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy1
93
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3114,7 +3421,7 @@ static void yy_reduce(
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
SArray
*
A
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
380
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
442
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
6
].
minor
.
yy0
,
NULL
,
A
,
TSDB_ALTER_TABLE_UPDATE_TAG_VAL
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
...
...
@@ -3123,14 +3430,14 @@ static void yy_reduce(
case
268
:
/* 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
.
yy1
5
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy1
93
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
269
:
/* 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
.
yy1
5
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy1
93
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3148,14 +3455,14 @@ static void yy_reduce(
case
271
:
/* 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
.
yy1
5
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy1
93
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
272
:
/* 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
.
yy1
5
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy1
93
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3190,7 +3497,7 @@ static void yy_reduce(
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
SArray
*
A
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
380
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
442
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
6
].
minor
.
yy0
,
NULL
,
A
,
TSDB_ALTER_TABLE_UPDATE_TAG_VAL
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
...
...
@@ -3199,7 +3506,7 @@ static void yy_reduce(
case
276
:
/* 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
.
yy1
5
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy1
93
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
...
...
@@ -3216,9 +3523,9 @@ static void yy_reduce(
break
;
/********** End reduce actions ************************************************/
};
assert
(
yyruleno
<
sizeof
(
yyRuleInfo
)
/
sizeof
(
yyRuleInfo
[
0
])
);
yygoto
=
yyRuleInfo
[
yyruleno
].
lhs
;
yysize
=
yyRuleInfo
[
yyruleno
].
nrhs
;
assert
(
yyruleno
<
sizeof
(
yyRuleInfo
Lhs
)
/
sizeof
(
yyRuleInfoLhs
[
0
])
);
yygoto
=
yyRuleInfo
Lhs
[
yyruleno
]
;
yysize
=
yyRuleInfo
NRhs
[
yyruleno
]
;
yyact
=
yy_find_reduce_action
(
yymsp
[
yysize
].
stateno
,(
YYCODETYPE
)
yygoto
);
/* There are no SHIFTREDUCE actions on nonterminals because the table
...
...
@@ -3233,6 +3540,7 @@ static void yy_reduce(
yymsp
->
stateno
=
(
YYACTIONTYPE
)
yyact
;
yymsp
->
major
=
(
YYCODETYPE
)
yygoto
;
yyTraceShift
(
yypParser
,
yyact
,
"... then shift"
);
return
yyact
;
}
/*
...
...
@@ -3242,7 +3550,8 @@ static void yy_reduce(
static
void
yy_parse_failed
(
yyParser
*
yypParser
/* The parser */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sFail!
\n
"
,
yyTracePrompt
);
...
...
@@ -3253,7 +3562,8 @@ static void yy_parse_failed(
** parser fails */
/************ Begin %parse_failure code ***************************************/
/************ End %parse_failure code *****************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
#endif
/* YYNOERRORRECOVERY */
...
...
@@ -3265,7 +3575,8 @@ static void yy_syntax_error(
int
yymajor
,
/* The major type of the error token */
ParseTOKENTYPE
yyminor
/* The minor type of the error token */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
...
...
@@ -3291,7 +3602,8 @@ static void yy_syntax_error(
assert
(
len
<=
outputBufLen
);
/************ End %syntax_error code ******************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
/*
...
...
@@ -3300,7 +3612,8 @@ static void yy_syntax_error(
static
void
yy_accept
(
yyParser
*
yypParser
/* The parser */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sAccept!
\n
"
,
yyTracePrompt
);
...
...
@@ -3315,7 +3628,8 @@ static void yy_accept(
/*********** Begin %parse_accept code *****************************************/
/*********** End %parse_accept code *******************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
/* The main parser program.
...
...
@@ -3344,45 +3658,47 @@ void Parse(
ParseARG_PDECL
/* Optional %extra_argument parameter */
){
YYMINORTYPE
yyminorunion
;
unsigned
int
yyact
;
/* The parser action. */
YYACTIONTYPE
yyact
;
/* The parser action. */
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
int
yyendofinput
;
/* True if we are at the end of input */
#endif
#ifdef YYERRORSYMBOL
int
yyerrorhit
=
0
;
/* True if yymajor has invoked an error */
#endif
yyParser
*
yypParser
;
/* The parser */
yyParser
*
yypParser
=
(
yyParser
*
)
yyp
;
/* The parser */
ParseCTX_FETCH
ParseARG_STORE
yypParser
=
(
yyParser
*
)
yyp
;
assert
(
yypParser
->
yytos
!=
0
);
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
yyendofinput
=
(
yymajor
==
0
);
#endif
ParseARG_STORE
;
yyact
=
yypParser
->
yytos
->
stateno
;
#ifndef NDEBUG
if
(
yyTraceFILE
){
int
stateno
=
yypParser
->
yytos
->
stateno
;
if
(
stateno
<
YY_MIN_REDUCE
){
if
(
yyact
<
YY_MIN_REDUCE
){
fprintf
(
yyTraceFILE
,
"%sInput '%s' in state %d
\n
"
,
yyTracePrompt
,
yyTokenName
[
yymajor
],
stateno
);
yyTracePrompt
,
yyTokenName
[
yymajor
],
yyact
);
}
else
{
fprintf
(
yyTraceFILE
,
"%sInput '%s' with pending reduce %d
\n
"
,
yyTracePrompt
,
yyTokenName
[
yymajor
],
stateno
-
YY_MIN_REDUCE
);
yyTracePrompt
,
yyTokenName
[
yymajor
],
yyact
-
YY_MIN_REDUCE
);
}
}
#endif
do
{
yyact
=
yy_find_shift_action
(
yypParser
,(
YYCODETYPE
)
yymajor
);
assert
(
yyact
==
yypParser
->
yytos
->
stateno
);
yyact
=
yy_find_shift_action
((
YYCODETYPE
)
yymajor
,
yyact
);
if
(
yyact
>=
YY_MIN_REDUCE
){
yy_reduce
(
yypParser
,
yyact
-
YY_MIN_REDUCE
,
yymajor
,
yyminor
);
yyact
=
yy_reduce
(
yypParser
,
yyact
-
YY_MIN_REDUCE
,
yymajor
,
yyminor
ParseCTX_PARAM
);
}
else
if
(
yyact
<=
YY_MAX_SHIFTREDUCE
){
yy_shift
(
yypParser
,
yyact
,
yymajor
,
yyminor
);
yy_shift
(
yypParser
,
yyact
,
(
YYCODETYPE
)
yymajor
,
yyminor
);
#ifndef YYNOERRORRECOVERY
yypParser
->
yyerrcnt
--
;
#endif
yymajor
=
YYNOCODE
;
break
;
}
else
if
(
yyact
==
YY_ACCEPT_ACTION
){
yypParser
->
yytos
--
;
yy_accept
(
yypParser
);
...
...
@@ -3433,10 +3749,9 @@ void Parse(
yymajor
=
YYNOCODE
;
}
else
{
while
(
yypParser
->
yytos
>=
yypParser
->
yystack
&&
yymx
!=
YYERRORSYMBOL
&&
(
yyact
=
yy_find_reduce_action
(
yypParser
->
yytos
->
stateno
,
YYERRORSYMBOL
))
>
=
YY_MIN_
REDUCE
YYERRORSYMBOL
))
>
YY_MAX_SHIFT
REDUCE
){
yy_pop_parser_stack
(
yypParser
);
}
...
...
@@ -3453,6 +3768,8 @@ void Parse(
}
yypParser
->
yyerrcnt
=
3
;
yyerrorhit
=
1
;
if
(
yymajor
==
YYNOCODE
)
break
;
yyact
=
yypParser
->
yytos
->
stateno
;
#elif defined(YYNOERRORRECOVERY)
/* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
** do any kind of error recovery. Instead, simply invoke the syntax
...
...
@@ -3463,8 +3780,7 @@ void Parse(
*/
yy_syntax_error
(
yypParser
,
yymajor
,
yyminor
);
yy_destructor
(
yypParser
,(
YYCODETYPE
)
yymajor
,
&
yyminorunion
);
yymajor
=
YYNOCODE
;
break
;
#else
/* YYERRORSYMBOL is not defined */
/* This is what we do if the grammar does not define ERROR:
**
...
...
@@ -3486,10 +3802,10 @@ void Parse(
yypParser
->
yyerrcnt
=
-
1
;
#endif
}
yymajor
=
YYNOCODE
;
break
;
#endif
}
}
while
(
yy
major
!=
YYNOCODE
&&
yy
pParser
->
yytos
>
yypParser
->
yystack
);
}
while
(
yypParser
->
yytos
>
yypParser
->
yystack
);
#ifndef NDEBUG
if
(
yyTraceFILE
){
yyStackEntry
*
i
;
...
...
@@ -3504,3 +3820,17 @@ void Parse(
#endif
return
;
}
/*
** Return the fallback token corresponding to canonical token iToken, or
** 0 if iToken has no fallback.
*/
int
ParseFallback
(
int
iToken
){
#ifdef YYFALLBACK
assert
(
iToken
<
(
int
)(
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
]))
);
return
yyFallback
[
iToken
];
#else
(
void
)
iToken
;
return
0
;
#endif
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录