Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
ed1267a0
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看板
提交
ed1267a0
编写于
9月 13, 2020
作者:
Y
yihaoDeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update sql.c
上级
670c6c7d
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
948 addition
and
931 deletion
+948
-931
src/inc/ttokendef.h
src/inc/ttokendef.h
+100
-100
src/query/src/sql.c
src/query/src/sql.c
+848
-831
未找到文件。
src/inc/ttokendef.h
浏览文件 @
ed1267a0
...
...
@@ -16,6 +16,7 @@
#ifndef TDENGINE_TTOKENDEF_H
#define TDENGINE_TTOKENDEF_H
#define TK_ID 1
#define TK_BOOL 2
#define TK_TINYINT 3
...
...
@@ -222,7 +223,6 @@
#define TK_INTO 204
#define TK_VALUES 205
#define TK_SPACE 300
#define TK_COMMENT 301
#define TK_ILLEGAL 302
...
...
src/query/src/sql.c
浏览文件 @
ed1267a0
...
...
@@ -126,17 +126,17 @@ typedef union {
#define ParseARG_FETCH SSqlInfo* pInfo = yypParser->pInfo
#define ParseARG_STORE yypParser->pInfo = pInfo
#define YYFALLBACK 1
#define YYNSTATE 24
4
#define YYNRULE 22
5
#define YYNSTATE 24
8
#define YYNRULE 22
7
#define YYNTOKEN 206
#define YY_MAX_SHIFT 24
3
#define YY_MIN_SHIFTREDUCE 40
3
#define YY_MAX_SHIFTREDUCE 6
27
#define YY_ERROR_ACTION 6
28
#define YY_ACCEPT_ACTION 6
29
#define YY_NO_ACTION 63
0
#define YY_MIN_REDUCE 63
1
#define YY_MAX_REDUCE 8
5
5
#define YY_MAX_SHIFT 24
7
#define YY_MIN_SHIFTREDUCE 40
9
#define YY_MAX_SHIFTREDUCE 6
35
#define YY_ERROR_ACTION 6
36
#define YY_ACCEPT_ACTION 6
37
#define YY_NO_ACTION 63
8
#define YY_MIN_REDUCE 63
9
#define YY_MAX_REDUCE 8
6
5
/************* End control #defines *******************************************/
/* Define the yytestcase() macro to be a no-op if is not already defined
...
...
@@ -202,121 +202,122 @@ typedef union {
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (5
49
)
#define YY_ACTTAB_COUNT (5
55
)
static
const
YYACTIONTYPE
yy_action
[]
=
{
/* 0 */
731
,
444
,
221
,
729
,
730
,
629
,
243
,
510
,
732
,
445
,
/* 10 */
734
,
735
,
733
,
41
,
43
,
526
,
35
,
36
,
523
,
11
,
/* 20 */
524
,
29
,
525
,
444
,
199
,
39
,
37
,
40
,
38
,
155
,
/* 30 */
241
,
445
,
748
,
34
,
33
,
219
,
218
,
32
,
31
,
30
,
/* 40 */
41
,
43
,
761
,
35
,
36
,
136
,
172
,
173
,
29
,
137
,
/* 50 */
21
,
199
,
39
,
37
,
40
,
38
,
184
,
141
,
160
,
843
,
/* 60 */
34
,
33
,
839
,
772
,
32
,
31
,
30
,
404
,
405
,
406
,
/* 70 */
407
,
408
,
409
,
410
,
411
,
412
,
413
,
414
,
415
,
242
,
/* 80 */
41
,
43
,
230
,
35
,
36
,
746
,
62
,
137
,
29
,
137
,
/* 90 */
21
,
199
,
39
,
37
,
40
,
38
,
159
,
843
,
27
,
842
,
/* 100 */
34
,
33
,
56
,
838
,
32
,
31
,
30
,
105
,
43
,
8
,
/* 110 */
35
,
36
,
63
,
115
,
769
,
29
,
761
,
527
,
199
,
39
,
/* 120 */
37
,
40
,
38
,
168
,
539
,
747
,
583
,
34
,
33
,
18
,
/* 130 */
156
,
32
,
31
,
30
,
16
,
210
,
236
,
235
,
209
,
208
,
/* 140 */
207
,
234
,
206
,
233
,
232
,
231
,
205
,
727
,
105
,
715
,
/* 150 */
716
,
717
,
718
,
719
,
720
,
721
,
722
,
723
,
724
,
725
,
/* 160 */
726
,
35
,
36
,
798
,
837
,
194
,
29
,
177
,
157
,
199
,
/* 170 */
39
,
37
,
40
,
38
,
181
,
180
,
21
,
21
,
34
,
33
,
/* 180 */
444
,
12
,
32
,
31
,
30
,
164
,
596
,
750
,
445
,
587
,
/* 190 */
153
,
590
,
154
,
593
,
105
,
164
,
596
,
21
,
17
,
587
,
/* 200 */
150
,
590
,
196
,
593
,
60
,
26
,
90
,
89
,
144
,
169
,
/* 210 */
217
,
747
,
747
,
16
,
149
,
236
,
235
,
161
,
162
,
167
,
/* 220 */
234
,
198
,
233
,
232
,
231
,
142
,
670
,
161
,
162
,
128
,
/* 230 */
222
,
542
,
747
,
164
,
596
,
17
,
143
,
587
,
750
,
590
,
/* 240 */
105
,
593
,
26
,
39
,
37
,
40
,
38
,
100
,
170
,
145
,
/* 250 */
797
,
34
,
33
,
101
,
26
,
32
,
31
,
30
,
32
,
31
,
/* 260 */
30
,
78
,
183
,
564
,
565
,
161
,
162
,
230
,
589
,
152
,
/* 270 */
592
,
76
,
80
,
85
,
88
,
79
,
240
,
239
,
97
,
34
,
/* 280 */
33
,
82
,
42
,
32
,
31
,
30
,
118
,
119
,
70
,
66
,
/* 290 */
69
,
237
,
42
,
595
,
679
,
163
,
61
,
128
,
132
,
130
,
/* 300 */
93
,
92
,
91
,
595
,
671
,
187
,
585
,
128
,
594
,
588
,
/* 310 */
750
,
591
,
171
,
534
,
47
,
216
,
215
,
146
,
594
,
555
,
/* 320 */
186
,
147
,
556
,
46
,
613
,
148
,
14
,
597
,
13
,
139
,
/* 330 */
42
,
13
,
50
,
48
,
3
,
135
,
75
,
74
,
140
,
516
,
/* 340 */
515
,
595
,
586
,
46
,
22
,
138
,
203
,
10
,
9
,
51
,
/* 350 */
22
,
852
,
530
,
528
,
531
,
529
,
594
,
87
,
86
,
749
,
/* 360 */
808
,
807
,
165
,
804
,
803
,
166
,
771
,
741
,
220
,
776
,
/* 370 */
763
,
778
,
102
,
790
,
789
,
116
,
117
,
114
,
681
,
204
,
/* 380 */
133
,
24
,
213
,
678
,
214
,
851
,
72
,
850
,
848
,
26
,
/* 390 */
120
,
699
,
25
,
23
,
185
,
95
,
134
,
668
,
81
,
551
,
/* 400 */
666
,
83
,
84
,
664
,
188
,
663
,
174
,
129
,
661
,
660
,
/* 410 */
659
,
658
,
657
,
649
,
131
,
655
,
653
,
192
,
52
,
651
,
/* 420 */
760
,
57
,
49
,
58
,
791
,
44
,
197
,
195
,
193
,
191
,
/* 430 */
189
,
28
,
212
,
77
,
223
,
224
,
225
,
226
,
227
,
228
,
/* 440 */
229
,
238
,
627
,
176
,
175
,
626
,
201
,
178
,
179
,
53
,
/* 450 */
625
,
618
,
182
,
536
,
64
,
151
,
186
,
67
,
552
,
55
,
/* 460 */
103
,
158
,
662
,
59
,
200
,
94
,
96
,
123
,
700
,
121
,
/* 470 */
126
,
106
,
107
,
122
,
124
,
125
,
127
,
112
,
108
,
109
,
/* 480 */
113
,
745
,
110
,
656
,
111
,
1
,
2
,
190
,
5
,
557
,
/* 490 */
104
,
19
,
6
,
598
,
20
,
4
,
15
,
7
,
65
,
485
,
/* 500 */
202
,
481
,
479
,
478
,
477
,
474
,
448
,
211
,
68
,
45
,
/* 510 */
71
,
73
,
22
,
512
,
511
,
509
,
54
,
469
,
467
,
459
,
/* 520 */
465
,
461
,
463
,
457
,
455
,
484
,
483
,
482
,
480
,
476
,
/* 530 */
475
,
46
,
446
,
419
,
417
,
631
,
630
,
630
,
630
,
630
,
/* 540 */
630
,
630
,
630
,
630
,
630
,
630
,
630
,
98
,
99
,
/* 0 */
11
,
452
,
140
,
452
,
158
,
245
,
21
,
139
,
144
,
453
,
/* 10 */
140
,
453
,
852
,
41
,
43
,
771
,
35
,
36
,
849
,
163
,
/* 20 */
853
,
29
,
452
,
848
,
203
,
39
,
37
,
40
,
38
,
159
,
/* 30 */
453
,
782
,
741
,
34
,
33
,
739
,
740
,
32
,
31
,
30
,
/* 40 */
742
,
756
,
744
,
745
,
743
,
107
,
160
,
410
,
411
,
412
,
/* 50 */
413
,
414
,
415
,
416
,
417
,
418
,
419
,
420
,
421
,
246
,
/* 60 */
637
,
247
,
178
,
41
,
43
,
760
,
35
,
36
,
225
,
107
,
/* 70 */
140
,
29
,
170
,
847
,
203
,
39
,
37
,
40
,
38
,
162
,
/* 80 */
853
,
518
,
779
,
34
,
33
,
103
,
156
,
32
,
31
,
30
,
/* 90 */
234
,
760
,
41
,
43
,
157
,
35
,
36
,
771
,
758
,
200
,
/* 100 */
29
,
60
,
56
,
203
,
39
,
37
,
40
,
38
,
17
,
223
,
/* 110 */
222
,
188
,
34
,
33
,
145
,
26
,
32
,
31
,
30
,
43
,
/* 120 */
8
,
35
,
36
,
63
,
117
,
808
,
29
,
198
,
146
,
203
,
/* 130 */
39
,
37
,
40
,
38
,
32
,
31
,
30
,
191
,
34
,
33
,
/* 140 */
181
,
107
,
32
,
31
,
30
,
241
,
21
,
185
,
184
,
591
,
/* 150 */
16
,
214
,
240
,
239
,
213
,
212
,
211
,
238
,
210
,
237
,
/* 160 */
236
,
235
,
209
,
737
,
760
,
725
,
726
,
727
,
728
,
729
,
/* 170 */
730
,
731
,
732
,
733
,
734
,
735
,
736
,
35
,
36
,
171
,
/* 180 */
680
,
757
,
29
,
130
,
148
,
203
,
39
,
37
,
40
,
38
,
/* 190 */
244
,
243
,
96
,
149
,
34
,
33
,
107
,
807
,
32
,
31
,
/* 200 */
30
,
167
,
604
,
78
,
12
,
595
,
62
,
598
,
234
,
601
,
/* 210 */
689
,
167
,
604
,
130
,
150
,
595
,
173
,
598
,
27
,
601
,
/* 220 */
152
,
167
,
604
,
572
,
573
,
595
,
153
,
598
,
151
,
601
,
/* 230 */
90
,
89
,
147
,
164
,
165
,
34
,
33
,
202
,
142
,
32
,
/* 240 */
31
,
30
,
681
,
164
,
165
,
130
,
818
,
550
,
39
,
37
,
/* 250 */
40
,
38
,
61
,
164
,
165
,
563
,
34
,
33
,
17
,
46
,
/* 260 */
32
,
31
,
30
,
102
,
16
,
26
,
240
,
239
,
564
,
21
,
/* 270 */
26
,
238
,
14
,
237
,
236
,
235
,
597
,
174
,
600
,
547
,
/* 280 */
220
,
219
,
76
,
80
,
18
,
187
,
166
,
21
,
85
,
88
,
/* 290 */
79
,
138
,
155
,
120
,
121
,
21
,
82
,
593
,
42
,
70
,
/* 300 */
66
,
69
,
172
,
542
,
757
,
134
,
132
,
143
,
42
,
603
,
/* 310 */
190
,
93
,
92
,
91
,
596
,
141
,
599
,
621
,
42
,
603
,
/* 320 */
221
,
13
,
757
,
605
,
602
,
3
,
862
,
13
,
226
,
603
,
/* 330 */
757
,
47
,
534
,
594
,
602
,
531
,
50
,
532
,
538
,
533
,
/* 340 */
539
,
524
,
523
,
817
,
602
,
46
,
22
,
207
,
87
,
86
,
/* 350 */
48
,
22
,
759
,
51
,
75
,
74
,
101
,
99
,
10
,
9
,
/* 360 */
536
,
168
,
537
,
175
,
176
,
814
,
813
,
169
,
781
,
786
,
/* 370 */
751
,
800
,
224
,
773
,
788
,
26
,
104
,
799
,
118
,
189
,
/* 380 */
116
,
119
,
691
,
208
,
136
,
24
,
100
,
217
,
688
,
559
,
/* 390 */
218
,
861
,
72
,
860
,
858
,
122
,
709
,
25
,
23
,
137
,
/* 400 */
678
,
81
,
676
,
83
,
84
,
674
,
673
,
177
,
131
,
671
,
/* 410 */
192
,
670
,
196
,
669
,
770
,
668
,
667
,
133
,
665
,
663
,
/* 420 */
52
,
661
,
659
,
657
,
135
,
49
,
57
,
58
,
801
,
44
,
/* 430 */
201
,
199
,
197
,
195
,
535
,
193
,
28
,
216
,
77
,
227
,
/* 440 */
228
,
230
,
229
,
231
,
232
,
233
,
242
,
635
,
180
,
205
,
/* 450 */
53
,
179
,
634
,
182
,
183
,
64
,
67
,
154
,
633
,
626
,
/* 460 */
186
,
161
,
105
,
672
,
190
,
94
,
544
,
666
,
658
,
125
,
/* 470 */
710
,
123
,
124
,
126
,
127
,
108
,
128
,
109
,
129
,
110
,
/* 480 */
95
,
755
,
111
,
112
,
115
,
113
,
114
,
2
,
1
,
55
,
/* 490 */
59
,
560
,
194
,
5
,
565
,
106
,
19
,
6
,
606
,
20
,
/* 500 */
4
,
15
,
65
,
7
,
204
,
493
,
206
,
489
,
487
,
486
,
/* 510 */
485
,
482
,
456
,
215
,
68
,
45
,
22
,
71
,
73
,
520
,
/* 520 */
519
,
517
,
54
,
477
,
475
,
467
,
473
,
469
,
471
,
465
,
/* 530 */
463
,
492
,
491
,
490
,
488
,
484
,
483
,
46
,
454
,
425
,
/* 540 */
423
,
639
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 550 */
638
,
638
,
638
,
97
,
98
,
};
static
const
YYCODETYPE
yy_lookahead
[]
=
{
/* 0 */
2
26
,
1
,
210
,
229
,
230
,
207
,
208
,
5
,
234
,
9
,
/* 10 */
2
36
,
237
,
238
,
13
,
14
,
2
,
16
,
17
,
5
,
260
,
/* 20 */
7
,
21
,
9
,
1
,
24
,
25
,
26
,
27
,
28
,
209
,
/* 30 */
210
,
9
,
240
,
33
,
34
,
33
,
34
,
37
,
38
,
39
,
/* 40 */
13
,
14
,
244
,
16
,
17
,
260
,
33
,
34
,
21
,
260
,
/* 50 */
210
,
24
,
25
,
26
,
27
,
28
,
258
,
260
,
269
,
270
,
/* 60 */
33
,
34
,
260
,
210
,
37
,
38
,
39
,
45
,
46
,
47
,
/* 70 */
48
,
49
,
50
,
51
,
52
,
53
,
54
,
55
,
56
,
57
,
/* 80 */
13
,
14
,
78
,
16
,
17
,
245
,
247
,
260
,
21
,
260
,
/* 90 */
210
,
24
,
25
,
26
,
27
,
28
,
269
,
270
,
259
,
270
,
/* 100 */
33
,
34
,
102
,
260
,
37
,
38
,
39
,
210
,
14
,
98
,
/* 110 */
16
,
17
,
101
,
102
,
261
,
21
,
244
,
104
,
24
,
25
,
/* 120 */
26
,
27
,
28
,
243
,
103
,
245
,
99
,
33
,
34
,
108
,
/* 130 */
258
,
37
,
38
,
39
,
85
,
86
,
87
,
88
,
89
,
90
,
/* 140 */
91
,
92
,
93
,
94
,
95
,
96
,
97
,
226
,
210
,
228
,
/* 150 */
229
,
230
,
231
,
232
,
233
,
234
,
235
,
236
,
237
,
238
,
/* 160 */
239
,
16
,
17
,
266
,
260
,
268
,
21
,
126
,
227
,
24
,
/* 170 */
25
,
26
,
27
,
28
,
133
,
134
,
210
,
210
,
33
,
34
,
/* 180 */
1
,
44
,
37
,
38
,
39
,
1
,
2
,
246
,
9
,
5
,
/* 190 */
260
,
7
,
260
,
9
,
210
,
1
,
2
,
210
,
98
,
5
,
/* 200 */
63
,
7
,
264
,
9
,
266
,
105
,
69
,
70
,
71
,
243
,
/* 210 */
2
43
,
245
,
245
,
85
,
77
,
87
,
88
,
33
,
34
,
227
,
/* 220 */
92
,
37
,
94
,
95
,
96
,
260
,
214
,
33
,
34
,
217
,
/* 230 */
243
,
37
,
245
,
1
,
2
,
98
,
260
,
5
,
246
,
7
,
/* 240 */
210
,
9
,
105
,
25
,
26
,
27
,
28
,
98
,
63
,
260
,
/* 250 */
266
,
33
,
34
,
210
,
105
,
37
,
38
,
39
,
37
,
38
,
/* 260 */
3
9
,
72
,
125
,
115
,
116
,
33
,
34
,
78
,
5
,
132
,
/* 270 */
7
,
64
,
65
,
66
,
67
,
68
,
60
,
61
,
62
,
3
3
,
/* 280 */
34
,
74
,
98
,
37
,
38
,
39
,
64
,
65
,
66
,
67
,
/* 290 */
6
8
,
227
,
98
,
109
,
214
,
59
,
266
,
217
,
64
,
65
,
/* 300 */
6
6
,
67
,
68
,
109
,
214
,
262
,
1
,
217
,
124
,
5
,
/* 310 */
246
,
7
,
127
,
99
,
103
,
130
,
131
,
260
,
124
,
9
9
,
/* 320 */
106
,
260
,
99
,
103
,
99
,
260
,
103
,
99
,
103
,
260
,
/* 330 */
98
,
103
,
103
,
122
,
98
,
260
,
128
,
129
,
260
,
9
9
,
/* 340 */
99
,
109
,
37
,
103
,
103
,
260
,
99
,
128
,
129
,
120
,
/* 350 */
1
03
,
246
,
5
,
5
,
7
,
7
,
124
,
72
,
73
,
246
,
/* 360 */
241
,
241
,
241
,
241
,
241
,
241
,
210
,
242
,
241
,
210
,
/* 370 */
24
4
,
210
,
210
,
267
,
267
,
210
,
210
,
248
,
210
,
210
,
/* 380 */
2
10
,
210
,
210
,
210
,
210
,
210
,
210
,
210
,
210
,
105
,
/* 390 */
210
,
210
,
210
,
210
,
2
44
,
59
,
210
,
210
,
210
,
109
,
/* 400 */
210
,
210
,
210
,
210
,
2
63
,
210
,
210
,
210
,
210
,
210
,
/* 410 */
2
10
,
210
,
210
,
210
,
210
,
210
,
210
,
263
,
119
,
210
,
/* 420 */
257
,
211
,
121
,
211
,
211
,
118
,
113
,
117
,
112
,
111
,
/* 430 */
11
0
,
123
,
75
,
84
,
83
,
49
,
80
,
82
,
53
,
81
,
/* 440 */
79
,
75
,
5
,
5
,
135
,
5
,
211
,
13
5
,
5
,
211
,
/* 450 */
5
,
86
,
126
,
99
,
215
,
211
,
106
,
215
,
99
,
107
,
/* 460 */
98
,
1
,
211
,
103
,
100
,
212
,
212
,
219
,
225
,
224
,
/* 470 */
22
1
,
256
,
255
,
223
,
222
,
220
,
218
,
250
,
254
,
253
,
/* 480 */
2
49
,
244
,
252
,
211
,
251
,
216
,
213
,
98
,
114
,
99
,
/* 490 */
98
,
103
,
114
,
99
,
103
,
98
,
98
,
98
,
72
,
9
,
/* 500 */
100
,
5
,
5
,
5
,
5
,
5
,
76
,
15
,
72
,
16
,
/* 510 */
129
,
129
,
103
,
5
,
5
,
99
,
98
,
5
,
5
,
5
,
/* 520 */
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 530 */
5
,
103
,
76
,
59
,
58
,
0
,
271
,
271
,
271
,
271
,
/* 540 */
271
,
271
,
271
,
271
,
271
,
271
,
271
,
21
,
2
1
,
271
,
/* 550 */
271
,
271
,
271
,
271
,
27
1
,
271
,
271
,
271
,
271
,
271
,
/* 0 */
2
60
,
1
,
260
,
1
,
209
,
210
,
210
,
260
,
260
,
9
,
/* 10 */
2
60
,
9
,
270
,
13
,
14
,
244
,
16
,
17
,
260
,
269
,
/* 20 */
270
,
21
,
1
,
260
,
24
,
25
,
26
,
27
,
28
,
258
,
/* 30 */
9
,
210
,
226
,
33
,
34
,
229
,
230
,
37
,
38
,
39
,
/* 40 */
234
,
245
,
236
,
237
,
238
,
210
,
227
,
45
,
46
,
47
,
/* 50 */
48
,
49
,
50
,
51
,
52
,
53
,
54
,
55
,
56
,
57
,
/* 60 */
207
,
208
,
60
,
13
,
14
,
246
,
16
,
17
,
210
,
210
,
/* 70 */
260
,
21
,
227
,
260
,
24
,
25
,
26
,
27
,
28
,
269
,
/* 80 */
270
,
5
,
261
,
33
,
34
,
210
,
260
,
37
,
38
,
39
,
/* 90 */
78
,
246
,
13
,
14
,
260
,
16
,
17
,
244
,
240
,
264
,
/* 100 */
21
,
266
,
102
,
24
,
25
,
26
,
27
,
28
,
98
,
33
,
/* 110 */
34
,
258
,
33
,
34
,
260
,
105
,
37
,
38
,
39
,
14
,
/* 120 */
98
,
16
,
17
,
101
,
102
,
266
,
21
,
268
,
260
,
24
,
/* 130 */
25
,
26
,
27
,
28
,
37
,
38
,
39
,
262
,
33
,
34
,
/* 140 */
126
,
210
,
37
,
38
,
39
,
227
,
210
,
133
,
134
,
99
,
/* 150 */
85
,
86
,
87
,
88
,
89
,
90
,
91
,
92
,
93
,
94
,
/* 160 */
95
,
96
,
97
,
226
,
246
,
228
,
229
,
230
,
231
,
232
,
/* 170 */
233
,
234
,
235
,
236
,
237
,
238
,
239
,
16
,
17
,
243
,
/* 180 */
214
,
245
,
21
,
217
,
260
,
24
,
25
,
26
,
27
,
28
,
/* 190 */
63
,
64
,
65
,
260
,
33
,
34
,
210
,
266
,
37
,
38
,
/* 200 */
39
,
1
,
2
,
73
,
44
,
5
,
247
,
7
,
78
,
9
,
/* 210 */
2
14
,
1
,
2
,
217
,
260
,
5
,
66
,
7
,
259
,
9
,
/* 220 */
60
,
1
,
2
,
115
,
116
,
5
,
66
,
7
,
260
,
9
,
/* 230 */
70
,
71
,
72
,
33
,
34
,
33
,
34
,
37
,
260
,
3
7
,
/* 240 */
38
,
39
,
214
,
33
,
34
,
217
,
241
,
37
,
25
,
26
,
/* 250 */
27
,
28
,
266
,
33
,
34
,
99
,
33
,
34
,
98
,
103
,
/* 260 */
3
7
,
38
,
39
,
98
,
85
,
105
,
87
,
88
,
99
,
210
,
/* 270 */
105
,
92
,
103
,
94
,
95
,
96
,
5
,
127
,
7
,
10
3
,
/* 280 */
130
,
131
,
61
,
62
,
108
,
125
,
59
,
210
,
67
,
68
,
/* 290 */
6
9
,
260
,
132
,
61
,
62
,
210
,
75
,
1
,
98
,
67
,
/* 300 */
6
8
,
69
,
243
,
99
,
245
,
61
,
62
,
260
,
98
,
109
,
/* 310 */
106
,
67
,
68
,
69
,
5
,
260
,
7
,
99
,
98
,
10
9
,
/* 320 */
243
,
103
,
245
,
99
,
124
,
98
,
246
,
103
,
243
,
109
,
/* 330 */
245
,
103
,
2
,
37
,
124
,
5
,
103
,
7
,
5
,
9
,
/* 340 */
7
,
99
,
99
,
241
,
124
,
103
,
103
,
99
,
73
,
74
,
/* 350 */
1
22
,
103
,
246
,
120
,
128
,
129
,
61
,
62
,
128
,
129
,
/* 360 */
5
,
241
,
7
,
33
,
34
,
241
,
241
,
241
,
210
,
210
,
/* 370 */
24
2
,
267
,
241
,
244
,
210
,
105
,
210
,
267
,
210
,
244
,
/* 380 */
2
48
,
210
,
210
,
210
,
210
,
210
,
59
,
210
,
210
,
109
,
/* 390 */
210
,
210
,
210
,
210
,
2
10
,
210
,
210
,
210
,
210
,
210
,
/* 400 */
210
,
210
,
210
,
210
,
2
10
,
210
,
210
,
210
,
210
,
210
,
/* 410 */
2
63
,
210
,
263
,
210
,
257
,
210
,
210
,
210
,
210
,
210
,
/* 420 */
119
,
210
,
210
,
210
,
210
,
121
,
211
,
211
,
211
,
118
,
/* 430 */
11
3
,
117
,
112
,
111
,
104
,
110
,
123
,
76
,
84
,
83
,
/* 440 */
49
,
82
,
80
,
53
,
81
,
79
,
76
,
5
,
5
,
211
,
/* 450 */
211
,
135
,
5
,
135
,
5
,
215
,
215
,
211
,
5
,
86
,
/* 460 */
126
,
1
,
98
,
211
,
106
,
212
,
99
,
211
,
211
,
219
,
/* 470 */
22
5
,
224
,
223
,
222
,
220
,
256
,
221
,
255
,
218
,
254
,
/* 480 */
2
12
,
244
,
253
,
252
,
249
,
251
,
250
,
213
,
216
,
107
,
/* 490 */
103
,
99
,
98
,
114
,
99
,
98
,
103
,
114
,
99
,
103
,
/* 500 */
98
,
98
,
73
,
98
,
100
,
9
,
100
,
5
,
5
,
5
,
/* 510 */
5
,
5
,
77
,
15
,
73
,
16
,
103
,
129
,
129
,
5
,
/* 520 */
5
,
99
,
98
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 530 */
5
,
5
,
5
,
5
,
5
,
5
,
5
,
103
,
77
,
59
,
/* 540 */
58
,
0
,
271
,
271
,
271
,
271
,
271
,
271
,
27
1
,
271
,
/* 550 */
271
,
271
,
271
,
21
,
2
1
,
271
,
271
,
271
,
271
,
271
,
/* 560 */
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 570 */
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 580 */
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
...
...
@@ -336,83 +337,84 @@ static const YYCODETYPE yy_lookahead[] = {
/* 720 */
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 730 */
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 740 */
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 750 */
271
,
271
,
271
,
271
,
271
,
/* 750 */
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 760 */
271
,
};
#define YY_SHIFT_COUNT (24
3
)
#define YY_SHIFT_COUNT (24
7
)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (5
35
)
#define YY_SHIFT_MAX (5
41
)
static
const
unsigned
short
int
yy_shift_ofst
[]
=
{
/* 0 */
1
37
,
49
,
128
,
184
,
232
,
179
,
179
,
179
,
179
,
179
,
/* 10 */
179
,
0
,
22
,
232
,
13
,
13
,
13
,
100
,
179
,
179
,
/* 20 */
179
,
179
,
179
,
189
,
4
,
4
,
549
,
194
,
232
,
232
,
/* 30 */
2
32
,
232
,
232
,
232
,
232
,
232
,
232
,
232
,
232
,
232
,
/* 40 */
2
32
,
232
,
232
,
232
,
232
,
13
,
13
,
2
,
2
,
2
,
/* 50 */
2
,
2
,
2
,
11
,
2
,
149
,
179
,
179
,
179
,
179
,
/* 60 */
1
48
,
148
,
21
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
/* 70 */
179
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
/* 80 */
179
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
/* 90 */
179
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
179
,
/* 100 */
284
,
336
,
336
,
290
,
290
,
336
,
299
,
301
,
307
,
313
,
/* 110 */
31
0
,
316
,
318
,
320
,
308
,
284
,
336
,
336
,
357
,
35
7
,
/* 120 */
3
36
,
349
,
351
,
386
,
356
,
355
,
385
,
358
,
361
,
336
,
/* 130 */
366
,
3
36
,
366
,
549
,
549
,
27
,
67
,
67
,
67
,
94
,
/* 140 */
145
,
218
,
218
,
218
,
207
,
246
,
246
,
246
,
246
,
22
2
,
/* 150 */
2
34
,
185
,
41
,
221
,
221
,
216
,
214
,
220
,
223
,
225
,
/* 160 */
228
,
263
,
304
,
305
,
236
,
211
,
229
,
240
,
241
,
247
,
/* 170 */
2
08
,
219
,
347
,
348
,
285
,
437
,
309
,
438
,
440
,
31
2
,
/* 180 */
443
,
445
,
365
,
326
,
350
,
354
,
352
,
360
,
359
,
362
,
/* 190 */
460
,
389
,
390
,
392
,
388
,
374
,
391
,
378
,
394
,
397
,
/* 200 */
39
8
,
364
,
399
,
400
,
426
,
490
,
496
,
497
,
498
,
499
,
/* 210 */
50
0
,
430
,
492
,
436
,
493
,
381
,
382
,
409
,
508
,
509
,
/* 220 */
416
,
418
,
409
,
512
,
513
,
514
,
515
,
516
,
517
,
518
,
/* 230 */
5
19
,
520
,
521
,
522
,
523
,
524
,
525
,
428
,
456
,
526
,
/* 240 */
5
27
,
474
,
476
,
535
,
/* 0 */
1
60
,
65
,
179
,
200
,
220
,
21
,
21
,
21
,
21
,
21
,
/* 10 */
21
,
0
,
2
,
220
,
330
,
330
,
330
,
10
,
21
,
21
,
/* 20 */
21
,
21
,
21
,
130
,
12
,
12
,
555
,
210
,
220
,
220
,
/* 30 */
2
20
,
220
,
220
,
220
,
220
,
220
,
220
,
220
,
220
,
220
,
/* 40 */
2
20
,
220
,
220
,
220
,
220
,
330
,
330
,
76
,
76
,
76
,
/* 50 */
76
,
76
,
76
,
22
,
76
,
165
,
21
,
21
,
21
,
21
,
/* 60 */
1
08
,
108
,
176
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
/* 70 */
21
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
/* 80 */
21
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
/* 90 */
21
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
21
,
/* 100 */
21
,
21
,
270
,
327
,
327
,
280
,
280
,
327
,
301
,
304
,
/* 110 */
31
1
,
317
,
314
,
320
,
322
,
325
,
313
,
270
,
327
,
32
7
,
/* 120 */
3
61
,
361
,
327
,
354
,
356
,
391
,
362
,
359
,
390
,
363
,
/* 130 */
366
,
3
27
,
370
,
327
,
370
,
327
,
555
,
555
,
50
,
79
,
/* 140 */
79
,
79
,
105
,
161
,
223
,
223
,
223
,
221
,
202
,
20
2
,
/* 150 */
2
02
,
202
,
232
,
244
,
150
,
14
,
97
,
97
,
127
,
204
,
/* 160 */
156
,
169
,
218
,
224
,
271
,
309
,
296
,
227
,
228
,
233
,
/* 170 */
2
42
,
243
,
248
,
226
,
230
,
333
,
355
,
275
,
295
,
44
2
,
/* 180 */
316
,
443
,
447
,
318
,
449
,
453
,
373
,
334
,
358
,
367
,
/* 190 */
382
,
387
,
392
,
364
,
460
,
394
,
395
,
397
,
393
,
379
,
/* 200 */
39
6
,
383
,
399
,
402
,
403
,
404
,
405
,
406
,
429
,
496
,
/* 210 */
50
2
,
503
,
504
,
505
,
506
,
435
,
498
,
441
,
499
,
388
,
/* 220 */
389
,
413
,
514
,
515
,
422
,
424
,
413
,
518
,
519
,
520
,
/* 230 */
5
21
,
522
,
523
,
524
,
525
,
526
,
527
,
528
,
529
,
530
,
/* 240 */
5
31
,
434
,
461
,
532
,
533
,
480
,
482
,
541
,
};
#define YY_REDUCE_COUNT (13
4
)
#define YY_REDUCE_MIN (-2
41
)
#define YY_REDUCE_MAX (27
3
)
#define YY_REDUCE_COUNT (13
7
)
#define YY_REDUCE_MIN (-2
60
)
#define YY_REDUCE_MAX (27
4
)
static
const
short
yy_reduce_ofst
[]
=
{
/* 0 */
-
202
,
-
79
,
-
226
,
-
211
,
-
173
,
-
103
,
-
62
,
-
120
,
-
34
,
-
33
,
/* 10 */
-
13
,
-
147
,
-
180
,
-
171
,
-
59
,
-
8
,
64
,
-
128
,
43
,
-
16
,
/* 20 */
30
,
-
208
,
-
160
,
12
,
80
,
90
,
-
161
,
-
241
,
-
215
,
-
203
,
/* 30 */
-
198
,
-
157
,
-
96
,
-
70
,
-
68
,
-
35
,
-
24
,
-
11
,
57
,
61
,
/* 40 */
65
,
69
,
75
,
78
,
85
,
105
,
113
,
119
,
120
,
121
,
/* 50 */
12
2
,
123
,
124
,
125
,
127
,
126
,
156
,
159
,
161
,
162
,
/* 60 */
10
6
,
107
,
129
,
165
,
166
,
168
,
169
,
170
,
171
,
172
,
/* 70 */
17
3
,
174
,
175
,
176
,
177
,
178
,
180
,
181
,
182
,
183
,
/* 80 */
18
6
,
187
,
188
,
190
,
191
,
192
,
193
,
195
,
196
,
197
,
/* 90 */
19
8
,
199
,
200
,
201
,
202
,
203
,
204
,
205
,
206
,
209
,
/* 100 */
150
,
210
,
212
,
141
,
154
,
213
,
163
,
215
,
217
,
224
,
/* 110 */
22
6
,
230
,
233
,
227
,
231
,
237
,
235
,
238
,
239
,
242
,
/* 120 */
24
4
,
243
,
245
,
250
,
248
,
252
,
255
,
249
,
258
,
251
,
/* 130 */
2
53
,
272
,
254
,
269
,
273
,
/* 0 */
-
147
,
-
63
,
-
194
,
-
250
,
-
190
,
-
141
,
-
165
,
-
64
,
59
,
77
,
/* 10 */
85
,
-
179
,
-
205
,
-
258
,
-
181
,
-
155
,
-
82
,
-
229
,
-
125
,
-
69
,
/* 20 */
-
14
,
-
142
,
-
204
,
-
34
,
-
4
,
28
,
-
41
,
-
260
,
-
253
,
-
252
,
/* 30 */
-
242
,
-
237
,
-
187
,
-
174
,
-
166
,
-
146
,
-
132
,
-
76
,
-
67
,
-
46
,
/* 40 */
-
32
,
-
22
,
31
,
47
,
55
,
80
,
106
,
5
,
102
,
120
,
/* 50 */
12
4
,
125
,
126
,
128
,
131
,
129
,
158
,
159
,
164
,
166
,
/* 60 */
10
4
,
110
,
132
,
168
,
171
,
172
,
173
,
174
,
175
,
177
,
/* 70 */
17
8
,
180
,
181
,
182
,
183
,
184
,
185
,
186
,
187
,
188
,
/* 80 */
18
9
,
190
,
191
,
192
,
193
,
194
,
195
,
196
,
197
,
198
,
/* 90 */
19
9
,
201
,
203
,
205
,
206
,
207
,
208
,
209
,
211
,
212
,
/* 100 */
213
,
214
,
135
,
215
,
216
,
147
,
149
,
217
,
157
,
219
,
/* 110 */
22
2
,
225
,
229
,
231
,
234
,
236
,
235
,
237
,
238
,
239
,
/* 120 */
24
0
,
241
,
246
,
245
,
247
,
249
,
250
,
251
,
254
,
255
,
/* 130 */
2
60
,
252
,
253
,
256
,
268
,
257
,
272
,
274
,
};
static
const
YYACTIONTYPE
yy_default
[]
=
{
/* 0 */
6
28
,
680
,
669
,
845
,
845
,
628
,
628
,
628
,
628
,
628
,
/* 10 */
6
28
,
773
,
646
,
845
,
628
,
628
,
628
,
628
,
628
,
628
,
/* 20 */
6
28
,
628
,
628
,
682
,
682
,
682
,
768
,
628
,
628
,
628
,
/* 30 */
6
28
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
/* 40 */
6
28
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
/* 50 */
6
28
,
628
,
628
,
628
,
628
,
628
,
628
,
775
,
777
,
628
,
/* 60 */
794
,
794
,
766
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
/* 70 */
6
28
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
/* 80 */
6
28
,
667
,
628
,
665
,
628
,
628
,
628
,
628
,
628
,
628
,
/* 90 */
6
28
,
628
,
628
,
628
,
628
,
628
,
628
,
654
,
628
,
628
,
/* 100 */
6
28
,
648
,
648
,
628
,
628
,
648
,
801
,
805
,
799
,
787
,
/* 110 */
795
,
786
,
782
,
781
,
809
,
628
,
648
,
648
,
677
,
677
,
/* 120 */
6
48
,
698
,
696
,
694
,
686
,
692
,
688
,
690
,
684
,
648
,
/* 130 */
6
75
,
648
,
675
,
714
,
728
,
628
,
810
,
844
,
800
,
828
,
/* 140 */
8
27
,
840
,
834
,
833
,
628
,
832
,
831
,
830
,
829
,
628
,
/* 150 */
628
,
628
,
628
,
836
,
835
,
628
,
628
,
628
,
628
,
628
,
/* 160 */
6
28
,
628
,
628
,
628
,
812
,
806
,
802
,
628
,
628
,
628
,
/* 170 */
6
28
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
/* 180 */
6
28
,
628
,
628
,
628
,
765
,
628
,
628
,
774
,
628
,
628
,
/* 190 */
6
28
,
628
,
628
,
628
,
796
,
628
,
788
,
628
,
628
,
628
,
/* 200 */
628
,
628
,
628
,
742
,
628
,
628
,
628
,
628
,
628
,
628
,
/* 210 */
6
28
,
628
,
628
,
628
,
628
,
628
,
628
,
849
,
628
,
628
,
/* 220 */
6
28
,
736
,
847
,
628
,
628
,
628
,
628
,
628
,
628
,
628
,
/* 230 */
6
28
,
628
,
628
,
628
,
628
,
628
,
628
,
701
,
628
,
652
,
/* 240 */
6
50
,
628
,
644
,
628
,
/* 0 */
6
36
,
690
,
679
,
855
,
855
,
636
,
636
,
636
,
636
,
636
,
/* 10 */
6
36
,
783
,
654
,
855
,
636
,
636
,
636
,
636
,
636
,
636
,
/* 20 */
6
36
,
636
,
636
,
692
,
692
,
692
,
778
,
636
,
636
,
636
,
/* 30 */
6
36
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
/* 40 */
6
36
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
/* 50 */
6
36
,
636
,
636
,
636
,
636
,
636
,
636
,
785
,
787
,
636
,
/* 60 */
804
,
804
,
776
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
/* 70 */
6
36
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
/* 80 */
6
36
,
677
,
636
,
675
,
636
,
636
,
636
,
636
,
636
,
636
,
/* 90 */
6
36
,
636
,
636
,
636
,
636
,
636
,
664
,
636
,
636
,
636
,
/* 100 */
6
36
,
636
,
636
,
656
,
656
,
636
,
636
,
656
,
811
,
815
,
/* 110 */
809
,
797
,
805
,
796
,
792
,
791
,
819
,
636
,
656
,
656
,
/* 120 */
6
87
,
687
,
656
,
708
,
706
,
704
,
696
,
702
,
698
,
700
,
/* 130 */
6
94
,
656
,
685
,
656
,
685
,
656
,
724
,
738
,
636
,
820
,
/* 140 */
8
54
,
810
,
838
,
837
,
850
,
844
,
843
,
636
,
842
,
841
,
/* 150 */
840
,
839
,
636
,
636
,
636
,
636
,
846
,
845
,
636
,
636
,
/* 160 */
6
36
,
636
,
636
,
636
,
636
,
636
,
636
,
822
,
816
,
812
,
/* 170 */
6
36
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
/* 180 */
6
36
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
775
,
636
,
/* 190 */
6
36
,
784
,
636
,
636
,
636
,
636
,
636
,
636
,
806
,
636
,
/* 200 */
798
,
636
,
636
,
636
,
636
,
636
,
636
,
752
,
636
,
636
,
/* 210 */
6
36
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
/* 220 */
6
36
,
859
,
636
,
636
,
636
,
746
,
857
,
636
,
636
,
636
,
/* 230 */
6
36
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
636
,
/* 240 */
6
36
,
711
,
636
,
662
,
660
,
636
,
652
,
636
,
};
/********** End of lemon-generated parsing tables *****************************/
...
...
@@ -492,12 +494,13 @@ static const YYCODETYPE yyFallback[] = {
0
,
/* VNODES => nothing */
1
,
/* IPTOKEN => ID */
0
,
/* DOT => nothing */
0
,
/* CREATE => nothing */
0
,
/* TABLE => nothing */
1
,
/* DATABASE => ID */
0
,
/* TABLES => nothing */
0
,
/* STABLES => nothing */
0
,
/* VGROUPS => nothing */
0
,
/* DROP => nothing */
0
,
/* TABLE => nothing */
1
,
/* DATABASE => ID */
0
,
/* DNODE => nothing */
0
,
/* USER => nothing */
0
,
/* ACCOUNT => nothing */
...
...
@@ -509,7 +512,6 @@ static const YYCODETYPE yyFallback[] = {
0
,
/* LOCAL => nothing */
0
,
/* IF => nothing */
0
,
/* EXISTS => nothing */
0
,
/* CREATE => nothing */
0
,
/* PPS => nothing */
0
,
/* TSERIES => nothing */
0
,
/* DBS => nothing */
...
...
@@ -784,24 +786,24 @@ static const char *const yyTokenName[] = {
/* 57 */
"VNODES"
,
/* 58 */
"IPTOKEN"
,
/* 59 */
"DOT"
,
/* 60 */
"
TABLES
"
,
/* 61 */
"
STABLES
"
,
/* 62 */
"
VGROUPS
"
,
/* 63 */
"
DROP
"
,
/* 64 */
"
TABLE
"
,
/* 65 */
"
DATABASE
"
,
/* 66 */
"D
NODE
"
,
/* 67 */
"
USER
"
,
/* 68 */
"
ACCOUNT
"
,
/* 69 */
"
USE
"
,
/* 70 */
"
DESCRIB
E"
,
/* 71 */
"
ALTER
"
,
/* 72 */
"
PASS
"
,
/* 73 */
"P
RIVILEGE
"
,
/* 74 */
"
LOCAL
"
,
/* 75 */
"
IF
"
,
/* 76 */
"
EXISTS
"
,
/* 77 */
"
CREATE
"
,
/* 60 */
"
CREATE
"
,
/* 61 */
"
TABLE
"
,
/* 62 */
"
DATABASE
"
,
/* 63 */
"
TABLES
"
,
/* 64 */
"
STABLES
"
,
/* 65 */
"
VGROUPS
"
,
/* 66 */
"D
ROP
"
,
/* 67 */
"
DNODE
"
,
/* 68 */
"
USER
"
,
/* 69 */
"
ACCOUNT
"
,
/* 70 */
"
US
E"
,
/* 71 */
"
DESCRIBE
"
,
/* 72 */
"
ALTER
"
,
/* 73 */
"P
ASS
"
,
/* 74 */
"
PRIVILEGE
"
,
/* 75 */
"
LOCAL
"
,
/* 76 */
"
IF
"
,
/* 77 */
"
EXISTS
"
,
/* 78 */
"PPS"
,
/* 79 */
"TSERIES"
,
/* 80 */
"DBS"
,
...
...
@@ -1021,212 +1023,214 @@ static const char *const yyRuleName[] = {
/* 16 */
"dbPrefix ::= ids DOT"
,
/* 17 */
"cpxName ::="
,
/* 18 */
"cpxName ::= DOT ids"
,
/* 19 */
"cmd ::= SHOW dbPrefix TABLES"
,
/* 20 */
"cmd ::= SHOW dbPrefix TABLES LIKE ids"
,
/* 21 */
"cmd ::= SHOW dbPrefix STABLES"
,
/* 22 */
"cmd ::= SHOW dbPrefix STABLES LIKE ids"
,
/* 23 */
"cmd ::= SHOW dbPrefix VGROUPS"
,
/* 24 */
"cmd ::= SHOW dbPrefix VGROUPS ids"
,
/* 25 */
"cmd ::= DROP TABLE ifexists ids cpxName"
,
/* 26 */
"cmd ::= DROP DATABASE ifexists ids"
,
/* 27 */
"cmd ::= DROP DNODE ids"
,
/* 28 */
"cmd ::= DROP USER ids"
,
/* 29 */
"cmd ::= DROP ACCOUNT ids"
,
/* 30 */
"cmd ::= USE ids"
,
/* 31 */
"cmd ::= DESCRIBE ids cpxName"
,
/* 32 */
"cmd ::= ALTER USER ids PASS ids"
,
/* 33 */
"cmd ::= ALTER USER ids PRIVILEGE ids"
,
/* 34 */
"cmd ::= ALTER DNODE ids ids"
,
/* 35 */
"cmd ::= ALTER DNODE ids ids ids"
,
/* 36 */
"cmd ::= ALTER LOCAL ids"
,
/* 37 */
"cmd ::= ALTER LOCAL ids ids"
,
/* 38 */
"cmd ::= ALTER DATABASE ids alter_db_optr"
,
/* 39 */
"cmd ::= ALTER ACCOUNT ids acct_optr"
,
/* 40 */
"cmd ::= ALTER ACCOUNT ids PASS ids acct_optr"
,
/* 41 */
"ids ::= ID"
,
/* 42 */
"ids ::= STRING"
,
/* 43 */
"ifexists ::= IF EXISTS"
,
/* 44 */
"ifexists ::="
,
/* 45 */
"ifnotexists ::= IF NOT EXISTS"
,
/* 46 */
"ifnotexists ::="
,
/* 47 */
"cmd ::= CREATE DNODE ids"
,
/* 48 */
"cmd ::= CREATE ACCOUNT ids PASS ids acct_optr"
,
/* 49 */
"cmd ::= CREATE DATABASE ifnotexists ids db_optr"
,
/* 50 */
"cmd ::= CREATE USER ids PASS ids"
,
/* 51 */
"pps ::="
,
/* 52 */
"pps ::= PPS INTEGER"
,
/* 53 */
"tseries ::="
,
/* 54 */
"tseries ::= TSERIES INTEGER"
,
/* 55 */
"dbs ::="
,
/* 56 */
"dbs ::= DBS INTEGER"
,
/* 57 */
"streams ::="
,
/* 58 */
"streams ::= STREAMS INTEGER"
,
/* 59 */
"storage ::="
,
/* 60 */
"storage ::= STORAGE INTEGER"
,
/* 61 */
"qtime ::="
,
/* 62 */
"qtime ::= QTIME INTEGER"
,
/* 63 */
"users ::="
,
/* 64 */
"users ::= USERS INTEGER"
,
/* 65 */
"conns ::="
,
/* 66 */
"conns ::= CONNS INTEGER"
,
/* 67 */
"state ::="
,
/* 68 */
"state ::= STATE ids"
,
/* 69 */
"acct_optr ::= pps tseries storage streams qtime dbs users conns state"
,
/* 70 */
"keep ::= KEEP tagitemlist"
,
/* 71 */
"cache ::= CACHE INTEGER"
,
/* 72 */
"replica ::= REPLICA INTEGER"
,
/* 73 */
"quorum ::= QUORUM INTEGER"
,
/* 74 */
"days ::= DAYS INTEGER"
,
/* 75 */
"minrows ::= MINROWS INTEGER"
,
/* 76 */
"maxrows ::= MAXROWS INTEGER"
,
/* 77 */
"blocks ::= BLOCKS INTEGER"
,
/* 78 */
"ctime ::= CTIME INTEGER"
,
/* 79 */
"wal ::= WAL INTEGER"
,
/* 80 */
"fsync ::= FSYNC INTEGER"
,
/* 81 */
"comp ::= COMP INTEGER"
,
/* 82 */
"prec ::= PRECISION STRING"
,
/* 83 */
"db_optr ::="
,
/* 84 */
"db_optr ::= db_optr cache"
,
/* 85 */
"db_optr ::= db_optr replica"
,
/* 86 */
"db_optr ::= db_optr quorum"
,
/* 87 */
"db_optr ::= db_optr days"
,
/* 88 */
"db_optr ::= db_optr minrows"
,
/* 89 */
"db_optr ::= db_optr maxrows"
,
/* 90 */
"db_optr ::= db_optr blocks"
,
/* 91 */
"db_optr ::= db_optr ctime"
,
/* 92 */
"db_optr ::= db_optr wal"
,
/* 93 */
"db_optr ::= db_optr fsync"
,
/* 94 */
"db_optr ::= db_optr comp"
,
/* 95 */
"db_optr ::= db_optr prec"
,
/* 96 */
"db_optr ::= db_optr keep"
,
/* 97 */
"alter_db_optr ::="
,
/* 98 */
"alter_db_optr ::= alter_db_optr replica"
,
/* 99 */
"alter_db_optr ::= alter_db_optr quorum"
,
/* 100 */
"alter_db_optr ::= alter_db_optr keep"
,
/* 101 */
"alter_db_optr ::= alter_db_optr blocks"
,
/* 102 */
"alter_db_optr ::= alter_db_optr comp"
,
/* 103 */
"alter_db_optr ::= alter_db_optr wal"
,
/* 104 */
"alter_db_optr ::= alter_db_optr fsync"
,
/* 105 */
"typename ::= ids"
,
/* 106 */
"typename ::= ids LP signed RP"
,
/* 107 */
"signed ::= INTEGER"
,
/* 108 */
"signed ::= PLUS INTEGER"
,
/* 109 */
"signed ::= MINUS INTEGER"
,
/* 110 */
"cmd ::= CREATE TABLE ifnotexists ids cpxName create_table_args"
,
/* 111 */
"create_table_args ::= LP columnlist RP"
,
/* 112 */
"create_table_args ::= LP columnlist RP TAGS LP columnlist RP"
,
/* 113 */
"create_table_args ::= USING ids cpxName TAGS LP tagitemlist RP"
,
/* 114 */
"create_table_args ::= AS select"
,
/* 115 */
"columnlist ::= columnlist COMMA column"
,
/* 116 */
"columnlist ::= column"
,
/* 117 */
"column ::= ids typename"
,
/* 118 */
"tagitemlist ::= tagitemlist COMMA tagitem"
,
/* 119 */
"tagitemlist ::= tagitem"
,
/* 120 */
"tagitem ::= INTEGER"
,
/* 121 */
"tagitem ::= FLOAT"
,
/* 122 */
"tagitem ::= STRING"
,
/* 123 */
"tagitem ::= BOOL"
,
/* 124 */
"tagitem ::= NULL"
,
/* 125 */
"tagitem ::= MINUS INTEGER"
,
/* 126 */
"tagitem ::= MINUS FLOAT"
,
/* 127 */
"tagitem ::= PLUS INTEGER"
,
/* 128 */
"tagitem ::= PLUS FLOAT"
,
/* 129 */
"select ::= SELECT selcollist from where_opt interval_opt fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt"
,
/* 130 */
"union ::= select"
,
/* 131 */
"union ::= LP union RP"
,
/* 132 */
"union ::= union UNION ALL select"
,
/* 133 */
"union ::= union UNION ALL LP select RP"
,
/* 134 */
"cmd ::= union"
,
/* 135 */
"select ::= SELECT selcollist"
,
/* 136 */
"sclp ::= selcollist COMMA"
,
/* 137 */
"sclp ::="
,
/* 138 */
"selcollist ::= sclp expr as"
,
/* 139 */
"selcollist ::= sclp STAR"
,
/* 140 */
"as ::= AS ids"
,
/* 141 */
"as ::= ids"
,
/* 142 */
"as ::="
,
/* 143 */
"from ::= FROM tablelist"
,
/* 144 */
"tablelist ::= ids cpxName"
,
/* 145 */
"tablelist ::= ids cpxName ids"
,
/* 146 */
"tablelist ::= tablelist COMMA ids cpxName"
,
/* 147 */
"tablelist ::= tablelist COMMA ids cpxName ids"
,
/* 148 */
"tmvar ::= VARIABLE"
,
/* 149 */
"interval_opt ::= INTERVAL LP tmvar RP"
,
/* 150 */
"interval_opt ::="
,
/* 151 */
"fill_opt ::="
,
/* 152 */
"fill_opt ::= FILL LP ID COMMA tagitemlist RP"
,
/* 153 */
"fill_opt ::= FILL LP ID RP"
,
/* 154 */
"sliding_opt ::= SLIDING LP tmvar RP"
,
/* 155 */
"sliding_opt ::="
,
/* 156 */
"orderby_opt ::="
,
/* 157 */
"orderby_opt ::= ORDER BY sortlist"
,
/* 158 */
"sortlist ::= sortlist COMMA item sortorder"
,
/* 159 */
"sortlist ::= item sortorder"
,
/* 160 */
"item ::= ids cpxName"
,
/* 161 */
"sortorder ::= ASC"
,
/* 162 */
"sortorder ::= DESC"
,
/* 163 */
"sortorder ::="
,
/* 164 */
"groupby_opt ::="
,
/* 165 */
"groupby_opt ::= GROUP BY grouplist"
,
/* 166 */
"grouplist ::= grouplist COMMA item"
,
/* 167 */
"grouplist ::= item"
,
/* 168 */
"having_opt ::="
,
/* 169 */
"having_opt ::= HAVING expr"
,
/* 170 */
"limit_opt ::="
,
/* 171 */
"limit_opt ::= LIMIT signed"
,
/* 172 */
"limit_opt ::= LIMIT signed OFFSET signed"
,
/* 173 */
"limit_opt ::= LIMIT signed COMMA signed"
,
/* 174 */
"slimit_opt ::="
,
/* 175 */
"slimit_opt ::= SLIMIT signed"
,
/* 176 */
"slimit_opt ::= SLIMIT signed SOFFSET signed"
,
/* 177 */
"slimit_opt ::= SLIMIT signed COMMA signed"
,
/* 178 */
"where_opt ::="
,
/* 179 */
"where_opt ::= WHERE expr"
,
/* 180 */
"expr ::= LP expr RP"
,
/* 181 */
"expr ::= ID"
,
/* 182 */
"expr ::= ID DOT ID"
,
/* 183 */
"expr ::= ID DOT STAR"
,
/* 184 */
"expr ::= INTEGER"
,
/* 185 */
"expr ::= MINUS INTEGER"
,
/* 186 */
"expr ::= PLUS INTEGER"
,
/* 187 */
"expr ::= FLOAT"
,
/* 188 */
"expr ::= MINUS FLOAT"
,
/* 189 */
"expr ::= PLUS FLOAT"
,
/* 190 */
"expr ::= STRING"
,
/* 191 */
"expr ::= NOW"
,
/* 192 */
"expr ::= VARIABLE"
,
/* 193 */
"expr ::= BOOL"
,
/* 194 */
"expr ::= ID LP exprlist RP"
,
/* 195 */
"expr ::= ID LP STAR RP"
,
/* 196 */
"expr ::= expr AND expr"
,
/* 197 */
"expr ::= expr OR expr"
,
/* 198 */
"expr ::= expr LT expr"
,
/* 199 */
"expr ::= expr GT expr"
,
/* 200 */
"expr ::= expr LE expr"
,
/* 201 */
"expr ::= expr GE expr"
,
/* 202 */
"expr ::= expr NE expr"
,
/* 203 */
"expr ::= expr EQ expr"
,
/* 204 */
"expr ::= expr PLUS expr"
,
/* 205 */
"expr ::= expr MINUS expr"
,
/* 206 */
"expr ::= expr STAR expr"
,
/* 207 */
"expr ::= expr SLASH expr"
,
/* 208 */
"expr ::= expr REM expr"
,
/* 209 */
"expr ::= expr LIKE expr"
,
/* 210 */
"expr ::= expr IN LP exprlist RP"
,
/* 211 */
"exprlist ::= exprlist COMMA expritem"
,
/* 212 */
"exprlist ::= expritem"
,
/* 213 */
"expritem ::= expr"
,
/* 214 */
"expritem ::="
,
/* 215 */
"cmd ::= RESET QUERY CACHE"
,
/* 216 */
"cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist"
,
/* 217 */
"cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids"
,
/* 218 */
"cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist"
,
/* 219 */
"cmd ::= ALTER TABLE ids cpxName DROP TAG ids"
,
/* 220 */
"cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids"
,
/* 221 */
"cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 222 */
"cmd ::= KILL CONNECTION INTEGER"
,
/* 223 */
"cmd ::= KILL STREAM INTEGER COLON INTEGER"
,
/* 224 */
"cmd ::= KILL QUERY INTEGER COLON INTEGER"
,
/* 19 */
"cmd ::= SHOW CREATE TABLE ids cpxName"
,
/* 20 */
"cmd ::= SHOW CREATE DATABASE ids"
,
/* 21 */
"cmd ::= SHOW dbPrefix TABLES"
,
/* 22 */
"cmd ::= SHOW dbPrefix TABLES LIKE ids"
,
/* 23 */
"cmd ::= SHOW dbPrefix STABLES"
,
/* 24 */
"cmd ::= SHOW dbPrefix STABLES LIKE ids"
,
/* 25 */
"cmd ::= SHOW dbPrefix VGROUPS"
,
/* 26 */
"cmd ::= SHOW dbPrefix VGROUPS ids"
,
/* 27 */
"cmd ::= DROP TABLE ifexists ids cpxName"
,
/* 28 */
"cmd ::= DROP DATABASE ifexists ids"
,
/* 29 */
"cmd ::= DROP DNODE ids"
,
/* 30 */
"cmd ::= DROP USER ids"
,
/* 31 */
"cmd ::= DROP ACCOUNT ids"
,
/* 32 */
"cmd ::= USE ids"
,
/* 33 */
"cmd ::= DESCRIBE ids cpxName"
,
/* 34 */
"cmd ::= ALTER USER ids PASS ids"
,
/* 35 */
"cmd ::= ALTER USER ids PRIVILEGE ids"
,
/* 36 */
"cmd ::= ALTER DNODE ids ids"
,
/* 37 */
"cmd ::= ALTER DNODE ids ids ids"
,
/* 38 */
"cmd ::= ALTER LOCAL ids"
,
/* 39 */
"cmd ::= ALTER LOCAL ids ids"
,
/* 40 */
"cmd ::= ALTER DATABASE ids alter_db_optr"
,
/* 41 */
"cmd ::= ALTER ACCOUNT ids acct_optr"
,
/* 42 */
"cmd ::= ALTER ACCOUNT ids PASS ids acct_optr"
,
/* 43 */
"ids ::= ID"
,
/* 44 */
"ids ::= STRING"
,
/* 45 */
"ifexists ::= IF EXISTS"
,
/* 46 */
"ifexists ::="
,
/* 47 */
"ifnotexists ::= IF NOT EXISTS"
,
/* 48 */
"ifnotexists ::="
,
/* 49 */
"cmd ::= CREATE DNODE ids"
,
/* 50 */
"cmd ::= CREATE ACCOUNT ids PASS ids acct_optr"
,
/* 51 */
"cmd ::= CREATE DATABASE ifnotexists ids db_optr"
,
/* 52 */
"cmd ::= CREATE USER ids PASS ids"
,
/* 53 */
"pps ::="
,
/* 54 */
"pps ::= PPS INTEGER"
,
/* 55 */
"tseries ::="
,
/* 56 */
"tseries ::= TSERIES INTEGER"
,
/* 57 */
"dbs ::="
,
/* 58 */
"dbs ::= DBS INTEGER"
,
/* 59 */
"streams ::="
,
/* 60 */
"streams ::= STREAMS INTEGER"
,
/* 61 */
"storage ::="
,
/* 62 */
"storage ::= STORAGE INTEGER"
,
/* 63 */
"qtime ::="
,
/* 64 */
"qtime ::= QTIME INTEGER"
,
/* 65 */
"users ::="
,
/* 66 */
"users ::= USERS INTEGER"
,
/* 67 */
"conns ::="
,
/* 68 */
"conns ::= CONNS INTEGER"
,
/* 69 */
"state ::="
,
/* 70 */
"state ::= STATE ids"
,
/* 71 */
"acct_optr ::= pps tseries storage streams qtime dbs users conns state"
,
/* 72 */
"keep ::= KEEP tagitemlist"
,
/* 73 */
"cache ::= CACHE INTEGER"
,
/* 74 */
"replica ::= REPLICA INTEGER"
,
/* 75 */
"quorum ::= QUORUM INTEGER"
,
/* 76 */
"days ::= DAYS INTEGER"
,
/* 77 */
"minrows ::= MINROWS INTEGER"
,
/* 78 */
"maxrows ::= MAXROWS INTEGER"
,
/* 79 */
"blocks ::= BLOCKS INTEGER"
,
/* 80 */
"ctime ::= CTIME INTEGER"
,
/* 81 */
"wal ::= WAL INTEGER"
,
/* 82 */
"fsync ::= FSYNC INTEGER"
,
/* 83 */
"comp ::= COMP INTEGER"
,
/* 84 */
"prec ::= PRECISION STRING"
,
/* 85 */
"db_optr ::="
,
/* 86 */
"db_optr ::= db_optr cache"
,
/* 87 */
"db_optr ::= db_optr replica"
,
/* 88 */
"db_optr ::= db_optr quorum"
,
/* 89 */
"db_optr ::= db_optr days"
,
/* 90 */
"db_optr ::= db_optr minrows"
,
/* 91 */
"db_optr ::= db_optr maxrows"
,
/* 92 */
"db_optr ::= db_optr blocks"
,
/* 93 */
"db_optr ::= db_optr ctime"
,
/* 94 */
"db_optr ::= db_optr wal"
,
/* 95 */
"db_optr ::= db_optr fsync"
,
/* 96 */
"db_optr ::= db_optr comp"
,
/* 97 */
"db_optr ::= db_optr prec"
,
/* 98 */
"db_optr ::= db_optr keep"
,
/* 99 */
"alter_db_optr ::="
,
/* 100 */
"alter_db_optr ::= alter_db_optr replica"
,
/* 101 */
"alter_db_optr ::= alter_db_optr quorum"
,
/* 102 */
"alter_db_optr ::= alter_db_optr keep"
,
/* 103 */
"alter_db_optr ::= alter_db_optr blocks"
,
/* 104 */
"alter_db_optr ::= alter_db_optr comp"
,
/* 105 */
"alter_db_optr ::= alter_db_optr wal"
,
/* 106 */
"alter_db_optr ::= alter_db_optr fsync"
,
/* 107 */
"typename ::= ids"
,
/* 108 */
"typename ::= ids LP signed RP"
,
/* 109 */
"signed ::= INTEGER"
,
/* 110 */
"signed ::= PLUS INTEGER"
,
/* 111 */
"signed ::= MINUS INTEGER"
,
/* 112 */
"cmd ::= CREATE TABLE ifnotexists ids cpxName create_table_args"
,
/* 113 */
"create_table_args ::= LP columnlist RP"
,
/* 114 */
"create_table_args ::= LP columnlist RP TAGS LP columnlist RP"
,
/* 115 */
"create_table_args ::= USING ids cpxName TAGS LP tagitemlist RP"
,
/* 116 */
"create_table_args ::= AS select"
,
/* 117 */
"columnlist ::= columnlist COMMA column"
,
/* 118 */
"columnlist ::= column"
,
/* 119 */
"column ::= ids typename"
,
/* 120 */
"tagitemlist ::= tagitemlist COMMA tagitem"
,
/* 121 */
"tagitemlist ::= tagitem"
,
/* 122 */
"tagitem ::= INTEGER"
,
/* 123 */
"tagitem ::= FLOAT"
,
/* 124 */
"tagitem ::= STRING"
,
/* 125 */
"tagitem ::= BOOL"
,
/* 126 */
"tagitem ::= NULL"
,
/* 127 */
"tagitem ::= MINUS INTEGER"
,
/* 128 */
"tagitem ::= MINUS FLOAT"
,
/* 129 */
"tagitem ::= PLUS INTEGER"
,
/* 130 */
"tagitem ::= PLUS FLOAT"
,
/* 131 */
"select ::= SELECT selcollist from where_opt interval_opt fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt"
,
/* 132 */
"union ::= select"
,
/* 133 */
"union ::= LP union RP"
,
/* 134 */
"union ::= union UNION ALL select"
,
/* 135 */
"union ::= union UNION ALL LP select RP"
,
/* 136 */
"cmd ::= union"
,
/* 137 */
"select ::= SELECT selcollist"
,
/* 138 */
"sclp ::= selcollist COMMA"
,
/* 139 */
"sclp ::="
,
/* 140 */
"selcollist ::= sclp expr as"
,
/* 141 */
"selcollist ::= sclp STAR"
,
/* 142 */
"as ::= AS ids"
,
/* 143 */
"as ::= ids"
,
/* 144 */
"as ::="
,
/* 145 */
"from ::= FROM tablelist"
,
/* 146 */
"tablelist ::= ids cpxName"
,
/* 147 */
"tablelist ::= ids cpxName ids"
,
/* 148 */
"tablelist ::= tablelist COMMA ids cpxName"
,
/* 149 */
"tablelist ::= tablelist COMMA ids cpxName ids"
,
/* 150 */
"tmvar ::= VARIABLE"
,
/* 151 */
"interval_opt ::= INTERVAL LP tmvar RP"
,
/* 152 */
"interval_opt ::="
,
/* 153 */
"fill_opt ::="
,
/* 154 */
"fill_opt ::= FILL LP ID COMMA tagitemlist RP"
,
/* 155 */
"fill_opt ::= FILL LP ID RP"
,
/* 156 */
"sliding_opt ::= SLIDING LP tmvar RP"
,
/* 157 */
"sliding_opt ::="
,
/* 158 */
"orderby_opt ::="
,
/* 159 */
"orderby_opt ::= ORDER BY sortlist"
,
/* 160 */
"sortlist ::= sortlist COMMA item sortorder"
,
/* 161 */
"sortlist ::= item sortorder"
,
/* 162 */
"item ::= ids cpxName"
,
/* 163 */
"sortorder ::= ASC"
,
/* 164 */
"sortorder ::= DESC"
,
/* 165 */
"sortorder ::="
,
/* 166 */
"groupby_opt ::="
,
/* 167 */
"groupby_opt ::= GROUP BY grouplist"
,
/* 168 */
"grouplist ::= grouplist COMMA item"
,
/* 169 */
"grouplist ::= item"
,
/* 170 */
"having_opt ::="
,
/* 171 */
"having_opt ::= HAVING expr"
,
/* 172 */
"limit_opt ::="
,
/* 173 */
"limit_opt ::= LIMIT signed"
,
/* 174 */
"limit_opt ::= LIMIT signed OFFSET signed"
,
/* 175 */
"limit_opt ::= LIMIT signed COMMA signed"
,
/* 176 */
"slimit_opt ::="
,
/* 177 */
"slimit_opt ::= SLIMIT signed"
,
/* 178 */
"slimit_opt ::= SLIMIT signed SOFFSET signed"
,
/* 179 */
"slimit_opt ::= SLIMIT signed COMMA signed"
,
/* 180 */
"where_opt ::="
,
/* 181 */
"where_opt ::= WHERE expr"
,
/* 182 */
"expr ::= LP expr RP"
,
/* 183 */
"expr ::= ID"
,
/* 184 */
"expr ::= ID DOT ID"
,
/* 185 */
"expr ::= ID DOT STAR"
,
/* 186 */
"expr ::= INTEGER"
,
/* 187 */
"expr ::= MINUS INTEGER"
,
/* 188 */
"expr ::= PLUS INTEGER"
,
/* 189 */
"expr ::= FLOAT"
,
/* 190 */
"expr ::= MINUS FLOAT"
,
/* 191 */
"expr ::= PLUS FLOAT"
,
/* 192 */
"expr ::= STRING"
,
/* 193 */
"expr ::= NOW"
,
/* 194 */
"expr ::= VARIABLE"
,
/* 195 */
"expr ::= BOOL"
,
/* 196 */
"expr ::= ID LP exprlist RP"
,
/* 197 */
"expr ::= ID LP STAR RP"
,
/* 198 */
"expr ::= expr AND expr"
,
/* 199 */
"expr ::= expr OR expr"
,
/* 200 */
"expr ::= expr LT expr"
,
/* 201 */
"expr ::= expr GT expr"
,
/* 202 */
"expr ::= expr LE expr"
,
/* 203 */
"expr ::= expr GE expr"
,
/* 204 */
"expr ::= expr NE expr"
,
/* 205 */
"expr ::= expr EQ expr"
,
/* 206 */
"expr ::= expr PLUS expr"
,
/* 207 */
"expr ::= expr MINUS expr"
,
/* 208 */
"expr ::= expr STAR expr"
,
/* 209 */
"expr ::= expr SLASH expr"
,
/* 210 */
"expr ::= expr REM expr"
,
/* 211 */
"expr ::= expr LIKE expr"
,
/* 212 */
"expr ::= expr IN LP exprlist RP"
,
/* 213 */
"exprlist ::= exprlist COMMA expritem"
,
/* 214 */
"exprlist ::= expritem"
,
/* 215 */
"expritem ::= expr"
,
/* 216 */
"expritem ::="
,
/* 217 */
"cmd ::= RESET QUERY CACHE"
,
/* 218 */
"cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist"
,
/* 219 */
"cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids"
,
/* 220 */
"cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist"
,
/* 221 */
"cmd ::= ALTER TABLE ids cpxName DROP TAG ids"
,
/* 222 */
"cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids"
,
/* 223 */
"cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 224 */
"cmd ::= KILL CONNECTION INTEGER"
,
/* 225 */
"cmd ::= KILL STREAM INTEGER COLON INTEGER"
,
/* 226 */
"cmd ::= KILL QUERY INTEGER COLON INTEGER"
,
};
#endif
/* NDEBUG */
...
...
@@ -1703,212 +1707,214 @@ static const struct {
{
209
,
-
2
},
/* (16) dbPrefix ::= ids DOT */
{
211
,
0
},
/* (17) cpxName ::= */
{
211
,
-
2
},
/* (18) cpxName ::= DOT ids */
{
208
,
-
3
},
/* (19) cmd ::= SHOW dbPrefix TABLES */
{
208
,
-
5
},
/* (20) cmd ::= SHOW dbPrefix TABLES LIKE ids */
{
208
,
-
3
},
/* (21) cmd ::= SHOW dbPrefix STABLES */
{
208
,
-
5
},
/* (22) cmd ::= SHOW dbPrefix STABLES LIKE ids */
{
208
,
-
3
},
/* (23) cmd ::= SHOW dbPrefix VGROUPS */
{
208
,
-
4
},
/* (24) cmd ::= SHOW dbPrefix VGROUPS ids */
{
208
,
-
5
},
/* (25) cmd ::= DROP TABLE ifexists ids cpxName */
{
208
,
-
4
},
/* (26) cmd ::= DROP DATABASE ifexists ids */
{
208
,
-
3
},
/* (27) cmd ::= DROP DNODE ids */
{
208
,
-
3
},
/* (28) cmd ::= DROP USER ids */
{
208
,
-
3
},
/* (29) cmd ::= DROP ACCOUNT ids */
{
208
,
-
2
},
/* (30) cmd ::= USE ids */
{
208
,
-
3
},
/* (31) cmd ::= DESCRIBE ids cpxName */
{
208
,
-
5
},
/* (32) cmd ::= ALTER USER ids PASS ids */
{
208
,
-
5
},
/* (33) cmd ::= ALTER USER ids PRIVILEGE ids */
{
208
,
-
4
},
/* (34) cmd ::= ALTER DNODE ids ids */
{
208
,
-
5
},
/* (35) cmd ::= ALTER DNODE ids ids ids */
{
208
,
-
3
},
/* (36) cmd ::= ALTER LOCAL ids */
{
208
,
-
4
},
/* (37) cmd ::= ALTER LOCAL ids ids */
{
208
,
-
4
},
/* (38) cmd ::= ALTER DATABASE ids alter_db_optr */
{
208
,
-
4
},
/* (39) cmd ::= ALTER ACCOUNT ids acct_optr */
{
208
,
-
6
},
/* (40) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
{
210
,
-
1
},
/* (41) ids ::= ID */
{
210
,
-
1
},
/* (42) ids ::= STRING */
{
212
,
-
2
},
/* (43) ifexists ::= IF EXISTS */
{
212
,
0
},
/* (44) ifexists ::= */
{
215
,
-
3
},
/* (45) ifnotexists ::= IF NOT EXISTS */
{
215
,
0
},
/* (46) ifnotexists ::= */
{
208
,
-
3
},
/* (47) cmd ::= CREATE DNODE ids */
{
208
,
-
6
},
/* (48) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
208
,
-
5
},
/* (49) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
208
,
-
5
},
/* (50) cmd ::= CREATE USER ids PASS ids */
{
217
,
0
},
/* (51) pps ::= */
{
217
,
-
2
},
/* (52) pps ::= PPS INTEGER */
{
218
,
0
},
/* (53) tseries ::= */
{
218
,
-
2
},
/* (54) tseries ::= TSERIES INTEGER */
{
219
,
0
},
/* (55) dbs ::= */
{
219
,
-
2
},
/* (56) dbs ::= DBS INTEGER */
{
220
,
0
},
/* (57) streams ::= */
{
220
,
-
2
},
/* (58) streams ::= STREAMS INTEGER */
{
221
,
0
},
/* (59) storage ::= */
{
221
,
-
2
},
/* (60) storage ::= STORAGE INTEGER */
{
222
,
0
},
/* (61) qtime ::= */
{
222
,
-
2
},
/* (62) qtime ::= QTIME INTEGER */
{
223
,
0
},
/* (63) users ::= */
{
223
,
-
2
},
/* (64) users ::= USERS INTEGER */
{
224
,
0
},
/* (65) conns ::= */
{
224
,
-
2
},
/* (66) conns ::= CONNS INTEGER */
{
225
,
0
},
/* (67) state ::= */
{
225
,
-
2
},
/* (68) state ::= STATE ids */
{
214
,
-
9
},
/* (69) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
226
,
-
2
},
/* (70) keep ::= KEEP tagitemlist */
{
228
,
-
2
},
/* (71) cache ::= CACHE INTEGER */
{
229
,
-
2
},
/* (72) replica ::= REPLICA INTEGER */
{
230
,
-
2
},
/* (73) quorum ::= QUORUM INTEGER */
{
231
,
-
2
},
/* (74) days ::= DAYS INTEGER */
{
232
,
-
2
},
/* (75) minrows ::= MINROWS INTEGER */
{
233
,
-
2
},
/* (76) maxrows ::= MAXROWS INTEGER */
{
234
,
-
2
},
/* (77) blocks ::= BLOCKS INTEGER */
{
235
,
-
2
},
/* (78) ctime ::= CTIME INTEGER */
{
236
,
-
2
},
/* (79) wal ::= WAL INTEGER */
{
237
,
-
2
},
/* (80) fsync ::= FSYNC INTEGER */
{
238
,
-
2
},
/* (81) comp ::= COMP INTEGER */
{
239
,
-
2
},
/* (82) prec ::= PRECISION STRING */
{
216
,
0
},
/* (83) db_optr ::= */
{
216
,
-
2
},
/* (84) db_optr ::= db_optr cache */
{
216
,
-
2
},
/* (85) db_optr ::= db_optr replica */
{
216
,
-
2
},
/* (86) db_optr ::= db_optr quorum */
{
216
,
-
2
},
/* (87) db_optr ::= db_optr days */
{
216
,
-
2
},
/* (88) db_optr ::= db_optr minrows */
{
216
,
-
2
},
/* (89) db_optr ::= db_optr maxrows */
{
216
,
-
2
},
/* (90) db_optr ::= db_optr blocks */
{
216
,
-
2
},
/* (91) db_optr ::= db_optr ctime */
{
216
,
-
2
},
/* (92) db_optr ::= db_optr wal */
{
216
,
-
2
},
/* (93) db_optr ::= db_optr fsync */
{
216
,
-
2
},
/* (94) db_optr ::= db_optr comp */
{
216
,
-
2
},
/* (95) db_optr ::= db_optr prec */
{
216
,
-
2
},
/* (96) db_optr ::= db_optr keep */
{
213
,
0
},
/* (97) alter_db_optr ::= */
{
213
,
-
2
},
/* (98) alter_db_optr ::= alter_db_optr replica */
{
213
,
-
2
},
/* (99) alter_db_optr ::= alter_db_optr quorum */
{
213
,
-
2
},
/* (100) alter_db_optr ::= alter_db_optr keep */
{
213
,
-
2
},
/* (101) alter_db_optr ::= alter_db_optr blocks */
{
213
,
-
2
},
/* (102) alter_db_optr ::= alter_db_optr comp */
{
213
,
-
2
},
/* (103) alter_db_optr ::= alter_db_optr wal */
{
213
,
-
2
},
/* (104) alter_db_optr ::= alter_db_optr fsync */
{
240
,
-
1
},
/* (105) typename ::= ids */
{
240
,
-
4
},
/* (106) typename ::= ids LP signed RP */
{
241
,
-
1
},
/* (107) signed ::= INTEGER */
{
241
,
-
2
},
/* (108) signed ::= PLUS INTEGER */
{
241
,
-
2
},
/* (109) signed ::= MINUS INTEGER */
{
208
,
-
6
},
/* (110) cmd ::= CREATE TABLE ifnotexists ids cpxName create_table_args */
{
242
,
-
3
},
/* (111) create_table_args ::= LP columnlist RP */
{
242
,
-
7
},
/* (112) create_table_args ::= LP columnlist RP TAGS LP columnlist RP */
{
242
,
-
7
},
/* (113) create_table_args ::= USING ids cpxName TAGS LP tagitemlist RP */
{
242
,
-
2
},
/* (114) create_table_args ::= AS select */
{
243
,
-
3
},
/* (115) columnlist ::= columnlist COMMA column */
{
243
,
-
1
},
/* (116) columnlist ::= column */
{
245
,
-
2
},
/* (117) column ::= ids typename */
{
227
,
-
3
},
/* (118) tagitemlist ::= tagitemlist COMMA tagitem */
{
227
,
-
1
},
/* (119) tagitemlist ::= tagitem */
{
246
,
-
1
},
/* (120) tagitem ::= INTEGER */
{
246
,
-
1
},
/* (121) tagitem ::= FLOAT */
{
246
,
-
1
},
/* (122) tagitem ::= STRING */
{
246
,
-
1
},
/* (123) tagitem ::= BOOL */
{
246
,
-
1
},
/* (124) tagitem ::= NULL */
{
246
,
-
2
},
/* (125) tagitem ::= MINUS INTEGER */
{
246
,
-
2
},
/* (126) tagitem ::= MINUS FLOAT */
{
246
,
-
2
},
/* (127) tagitem ::= PLUS INTEGER */
{
246
,
-
2
},
/* (128) tagitem ::= PLUS FLOAT */
{
244
,
-
12
},
/* (129) select ::= SELECT selcollist from where_opt interval_opt fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
{
258
,
-
1
},
/* (130) union ::= select */
{
258
,
-
3
},
/* (131) union ::= LP union RP */
{
258
,
-
4
},
/* (132) union ::= union UNION ALL select */
{
258
,
-
6
},
/* (133) union ::= union UNION ALL LP select RP */
{
208
,
-
1
},
/* (134) cmd ::= union */
{
244
,
-
2
},
/* (135) select ::= SELECT selcollist */
{
259
,
-
2
},
/* (136) sclp ::= selcollist COMMA */
{
259
,
0
},
/* (137) sclp ::= */
{
247
,
-
3
},
/* (138) selcollist ::= sclp expr as */
{
247
,
-
2
},
/* (139) selcollist ::= sclp STAR */
{
261
,
-
2
},
/* (140) as ::= AS ids */
{
261
,
-
1
},
/* (141) as ::= ids */
{
261
,
0
},
/* (142) as ::= */
{
248
,
-
2
},
/* (143) from ::= FROM tablelist */
{
262
,
-
2
},
/* (144) tablelist ::= ids cpxName */
{
262
,
-
3
},
/* (145) tablelist ::= ids cpxName ids */
{
262
,
-
4
},
/* (146) tablelist ::= tablelist COMMA ids cpxName */
{
262
,
-
5
},
/* (147) tablelist ::= tablelist COMMA ids cpxName ids */
{
263
,
-
1
},
/* (148) tmvar ::= VARIABLE */
{
250
,
-
4
},
/* (149) interval_opt ::= INTERVAL LP tmvar RP */
{
250
,
0
},
/* (150) interval_opt ::= */
{
251
,
0
},
/* (151) fill_opt ::= */
{
251
,
-
6
},
/* (152) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
251
,
-
4
},
/* (153) fill_opt ::= FILL LP ID RP */
{
252
,
-
4
},
/* (154) sliding_opt ::= SLIDING LP tmvar RP */
{
252
,
0
},
/* (155) sliding_opt ::= */
{
254
,
0
},
/* (156) orderby_opt ::= */
{
254
,
-
3
},
/* (157) orderby_opt ::= ORDER BY sortlist */
{
264
,
-
4
},
/* (158) sortlist ::= sortlist COMMA item sortorder */
{
264
,
-
2
},
/* (159) sortlist ::= item sortorder */
{
266
,
-
2
},
/* (160) item ::= ids cpxName */
{
267
,
-
1
},
/* (161) sortorder ::= ASC */
{
267
,
-
1
},
/* (162) sortorder ::= DESC */
{
267
,
0
},
/* (163) sortorder ::= */
{
253
,
0
},
/* (164) groupby_opt ::= */
{
253
,
-
3
},
/* (165) groupby_opt ::= GROUP BY grouplist */
{
268
,
-
3
},
/* (166) grouplist ::= grouplist COMMA item */
{
268
,
-
1
},
/* (167) grouplist ::= item */
{
255
,
0
},
/* (168) having_opt ::= */
{
255
,
-
2
},
/* (169) having_opt ::= HAVING expr */
{
257
,
0
},
/* (170) limit_opt ::= */
{
257
,
-
2
},
/* (171) limit_opt ::= LIMIT signed */
{
257
,
-
4
},
/* (172) limit_opt ::= LIMIT signed OFFSET signed */
{
257
,
-
4
},
/* (173) limit_opt ::= LIMIT signed COMMA signed */
{
256
,
0
},
/* (174) slimit_opt ::= */
{
256
,
-
2
},
/* (175) slimit_opt ::= SLIMIT signed */
{
256
,
-
4
},
/* (176) slimit_opt ::= SLIMIT signed SOFFSET signed */
{
256
,
-
4
},
/* (177) slimit_opt ::= SLIMIT signed COMMA signed */
{
249
,
0
},
/* (178) where_opt ::= */
{
249
,
-
2
},
/* (179) where_opt ::= WHERE expr */
{
260
,
-
3
},
/* (180) expr ::= LP expr RP */
{
260
,
-
1
},
/* (181) expr ::= ID */
{
260
,
-
3
},
/* (182) expr ::= ID DOT ID */
{
260
,
-
3
},
/* (183) expr ::= ID DOT STAR */
{
260
,
-
1
},
/* (184) expr ::= INTEGER */
{
260
,
-
2
},
/* (185) expr ::= MINUS INTEGER */
{
260
,
-
2
},
/* (186) expr ::= PLUS INTEGER */
{
260
,
-
1
},
/* (187) expr ::= FLOAT */
{
260
,
-
2
},
/* (188) expr ::= MINUS FLOAT */
{
260
,
-
2
},
/* (189) expr ::= PLUS FLOAT */
{
260
,
-
1
},
/* (190) expr ::= STRING */
{
260
,
-
1
},
/* (191) expr ::= NOW */
{
260
,
-
1
},
/* (192) expr ::= VARIABLE */
{
260
,
-
1
},
/* (193) expr ::= BOOL */
{
260
,
-
4
},
/* (194) expr ::= ID LP exprlist RP */
{
260
,
-
4
},
/* (195) expr ::= ID LP STAR RP */
{
260
,
-
3
},
/* (196) expr ::= expr AND expr */
{
260
,
-
3
},
/* (197) expr ::= expr OR expr */
{
260
,
-
3
},
/* (198) expr ::= expr LT expr */
{
260
,
-
3
},
/* (199) expr ::= expr GT expr */
{
260
,
-
3
},
/* (200) expr ::= expr LE expr */
{
260
,
-
3
},
/* (201) expr ::= expr GE expr */
{
260
,
-
3
},
/* (202) expr ::= expr NE expr */
{
260
,
-
3
},
/* (203) expr ::= expr EQ expr */
{
260
,
-
3
},
/* (204) expr ::= expr PLUS expr */
{
260
,
-
3
},
/* (205) expr ::= expr MINUS expr */
{
260
,
-
3
},
/* (206) expr ::= expr STAR expr */
{
260
,
-
3
},
/* (207) expr ::= expr SLASH expr */
{
260
,
-
3
},
/* (208) expr ::= expr REM expr */
{
260
,
-
3
},
/* (209) expr ::= expr LIKE expr */
{
260
,
-
5
},
/* (210) expr ::= expr IN LP exprlist RP */
{
269
,
-
3
},
/* (211) exprlist ::= exprlist COMMA expritem */
{
269
,
-
1
},
/* (212) exprlist ::= expritem */
{
270
,
-
1
},
/* (213) expritem ::= expr */
{
270
,
0
},
/* (214) expritem ::= */
{
208
,
-
3
},
/* (215) cmd ::= RESET QUERY CACHE */
{
208
,
-
7
},
/* (216) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
208
,
-
7
},
/* (217) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
208
,
-
7
},
/* (218) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
208
,
-
7
},
/* (219) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
208
,
-
8
},
/* (220) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
208
,
-
9
},
/* (221) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
208
,
-
3
},
/* (222) cmd ::= KILL CONNECTION INTEGER */
{
208
,
-
5
},
/* (223) cmd ::= KILL STREAM INTEGER COLON INTEGER */
{
208
,
-
5
},
/* (224) cmd ::= KILL QUERY INTEGER COLON INTEGER */
{
208
,
-
5
},
/* (19) cmd ::= SHOW CREATE TABLE ids cpxName */
{
208
,
-
4
},
/* (20) cmd ::= SHOW CREATE DATABASE ids */
{
208
,
-
3
},
/* (21) cmd ::= SHOW dbPrefix TABLES */
{
208
,
-
5
},
/* (22) cmd ::= SHOW dbPrefix TABLES LIKE ids */
{
208
,
-
3
},
/* (23) cmd ::= SHOW dbPrefix STABLES */
{
208
,
-
5
},
/* (24) cmd ::= SHOW dbPrefix STABLES LIKE ids */
{
208
,
-
3
},
/* (25) cmd ::= SHOW dbPrefix VGROUPS */
{
208
,
-
4
},
/* (26) cmd ::= SHOW dbPrefix VGROUPS ids */
{
208
,
-
5
},
/* (27) cmd ::= DROP TABLE ifexists ids cpxName */
{
208
,
-
4
},
/* (28) cmd ::= DROP DATABASE ifexists ids */
{
208
,
-
3
},
/* (29) cmd ::= DROP DNODE ids */
{
208
,
-
3
},
/* (30) cmd ::= DROP USER ids */
{
208
,
-
3
},
/* (31) cmd ::= DROP ACCOUNT ids */
{
208
,
-
2
},
/* (32) cmd ::= USE ids */
{
208
,
-
3
},
/* (33) cmd ::= DESCRIBE ids cpxName */
{
208
,
-
5
},
/* (34) cmd ::= ALTER USER ids PASS ids */
{
208
,
-
5
},
/* (35) cmd ::= ALTER USER ids PRIVILEGE ids */
{
208
,
-
4
},
/* (36) cmd ::= ALTER DNODE ids ids */
{
208
,
-
5
},
/* (37) cmd ::= ALTER DNODE ids ids ids */
{
208
,
-
3
},
/* (38) cmd ::= ALTER LOCAL ids */
{
208
,
-
4
},
/* (39) cmd ::= ALTER LOCAL ids ids */
{
208
,
-
4
},
/* (40) cmd ::= ALTER DATABASE ids alter_db_optr */
{
208
,
-
4
},
/* (41) cmd ::= ALTER ACCOUNT ids acct_optr */
{
208
,
-
6
},
/* (42) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
{
210
,
-
1
},
/* (43) ids ::= ID */
{
210
,
-
1
},
/* (44) ids ::= STRING */
{
212
,
-
2
},
/* (45) ifexists ::= IF EXISTS */
{
212
,
0
},
/* (46) ifexists ::= */
{
215
,
-
3
},
/* (47) ifnotexists ::= IF NOT EXISTS */
{
215
,
0
},
/* (48) ifnotexists ::= */
{
208
,
-
3
},
/* (49) cmd ::= CREATE DNODE ids */
{
208
,
-
6
},
/* (50) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
208
,
-
5
},
/* (51) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
208
,
-
5
},
/* (52) cmd ::= CREATE USER ids PASS ids */
{
217
,
0
},
/* (53) pps ::= */
{
217
,
-
2
},
/* (54) pps ::= PPS INTEGER */
{
218
,
0
},
/* (55) tseries ::= */
{
218
,
-
2
},
/* (56) tseries ::= TSERIES INTEGER */
{
219
,
0
},
/* (57) dbs ::= */
{
219
,
-
2
},
/* (58) dbs ::= DBS INTEGER */
{
220
,
0
},
/* (59) streams ::= */
{
220
,
-
2
},
/* (60) streams ::= STREAMS INTEGER */
{
221
,
0
},
/* (61) storage ::= */
{
221
,
-
2
},
/* (62) storage ::= STORAGE INTEGER */
{
222
,
0
},
/* (63) qtime ::= */
{
222
,
-
2
},
/* (64) qtime ::= QTIME INTEGER */
{
223
,
0
},
/* (65) users ::= */
{
223
,
-
2
},
/* (66) users ::= USERS INTEGER */
{
224
,
0
},
/* (67) conns ::= */
{
224
,
-
2
},
/* (68) conns ::= CONNS INTEGER */
{
225
,
0
},
/* (69) state ::= */
{
225
,
-
2
},
/* (70) state ::= STATE ids */
{
214
,
-
9
},
/* (71) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
226
,
-
2
},
/* (72) keep ::= KEEP tagitemlist */
{
228
,
-
2
},
/* (73) cache ::= CACHE INTEGER */
{
229
,
-
2
},
/* (74) replica ::= REPLICA INTEGER */
{
230
,
-
2
},
/* (75) quorum ::= QUORUM INTEGER */
{
231
,
-
2
},
/* (76) days ::= DAYS INTEGER */
{
232
,
-
2
},
/* (77) minrows ::= MINROWS INTEGER */
{
233
,
-
2
},
/* (78) maxrows ::= MAXROWS INTEGER */
{
234
,
-
2
},
/* (79) blocks ::= BLOCKS INTEGER */
{
235
,
-
2
},
/* (80) ctime ::= CTIME INTEGER */
{
236
,
-
2
},
/* (81) wal ::= WAL INTEGER */
{
237
,
-
2
},
/* (82) fsync ::= FSYNC INTEGER */
{
238
,
-
2
},
/* (83) comp ::= COMP INTEGER */
{
239
,
-
2
},
/* (84) prec ::= PRECISION STRING */
{
216
,
0
},
/* (85) db_optr ::= */
{
216
,
-
2
},
/* (86) db_optr ::= db_optr cache */
{
216
,
-
2
},
/* (87) db_optr ::= db_optr replica */
{
216
,
-
2
},
/* (88) db_optr ::= db_optr quorum */
{
216
,
-
2
},
/* (89) db_optr ::= db_optr days */
{
216
,
-
2
},
/* (90) db_optr ::= db_optr minrows */
{
216
,
-
2
},
/* (91) db_optr ::= db_optr maxrows */
{
216
,
-
2
},
/* (92) db_optr ::= db_optr blocks */
{
216
,
-
2
},
/* (93) db_optr ::= db_optr ctime */
{
216
,
-
2
},
/* (94) db_optr ::= db_optr wal */
{
216
,
-
2
},
/* (95) db_optr ::= db_optr fsync */
{
216
,
-
2
},
/* (96) db_optr ::= db_optr comp */
{
216
,
-
2
},
/* (97) db_optr ::= db_optr prec */
{
216
,
-
2
},
/* (98) db_optr ::= db_optr keep */
{
213
,
0
},
/* (99) alter_db_optr ::= */
{
213
,
-
2
},
/* (100) alter_db_optr ::= alter_db_optr replica */
{
213
,
-
2
},
/* (101) alter_db_optr ::= alter_db_optr quorum */
{
213
,
-
2
},
/* (102) alter_db_optr ::= alter_db_optr keep */
{
213
,
-
2
},
/* (103) alter_db_optr ::= alter_db_optr blocks */
{
213
,
-
2
},
/* (104) alter_db_optr ::= alter_db_optr comp */
{
213
,
-
2
},
/* (105) alter_db_optr ::= alter_db_optr wal */
{
213
,
-
2
},
/* (106) alter_db_optr ::= alter_db_optr fsync */
{
240
,
-
1
},
/* (107) typename ::= ids */
{
240
,
-
4
},
/* (108) typename ::= ids LP signed RP */
{
241
,
-
1
},
/* (109) signed ::= INTEGER */
{
241
,
-
2
},
/* (110) signed ::= PLUS INTEGER */
{
241
,
-
2
},
/* (111) signed ::= MINUS INTEGER */
{
208
,
-
6
},
/* (112) cmd ::= CREATE TABLE ifnotexists ids cpxName create_table_args */
{
242
,
-
3
},
/* (113) create_table_args ::= LP columnlist RP */
{
242
,
-
7
},
/* (114) create_table_args ::= LP columnlist RP TAGS LP columnlist RP */
{
242
,
-
7
},
/* (115) create_table_args ::= USING ids cpxName TAGS LP tagitemlist RP */
{
242
,
-
2
},
/* (116) create_table_args ::= AS select */
{
243
,
-
3
},
/* (117) columnlist ::= columnlist COMMA column */
{
243
,
-
1
},
/* (118) columnlist ::= column */
{
245
,
-
2
},
/* (119) column ::= ids typename */
{
227
,
-
3
},
/* (120) tagitemlist ::= tagitemlist COMMA tagitem */
{
227
,
-
1
},
/* (121) tagitemlist ::= tagitem */
{
246
,
-
1
},
/* (122) tagitem ::= INTEGER */
{
246
,
-
1
},
/* (123) tagitem ::= FLOAT */
{
246
,
-
1
},
/* (124) tagitem ::= STRING */
{
246
,
-
1
},
/* (125) tagitem ::= BOOL */
{
246
,
-
1
},
/* (126) tagitem ::= NULL */
{
246
,
-
2
},
/* (127) tagitem ::= MINUS INTEGER */
{
246
,
-
2
},
/* (128) tagitem ::= MINUS FLOAT */
{
246
,
-
2
},
/* (129) tagitem ::= PLUS INTEGER */
{
246
,
-
2
},
/* (130) tagitem ::= PLUS FLOAT */
{
244
,
-
12
},
/* (131) select ::= SELECT selcollist from where_opt interval_opt fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
{
258
,
-
1
},
/* (132) union ::= select */
{
258
,
-
3
},
/* (133) union ::= LP union RP */
{
258
,
-
4
},
/* (134) union ::= union UNION ALL select */
{
258
,
-
6
},
/* (135) union ::= union UNION ALL LP select RP */
{
208
,
-
1
},
/* (136) cmd ::= union */
{
244
,
-
2
},
/* (137) select ::= SELECT selcollist */
{
259
,
-
2
},
/* (138) sclp ::= selcollist COMMA */
{
259
,
0
},
/* (139) sclp ::= */
{
247
,
-
3
},
/* (140) selcollist ::= sclp expr as */
{
247
,
-
2
},
/* (141) selcollist ::= sclp STAR */
{
261
,
-
2
},
/* (142) as ::= AS ids */
{
261
,
-
1
},
/* (143) as ::= ids */
{
261
,
0
},
/* (144) as ::= */
{
248
,
-
2
},
/* (145) from ::= FROM tablelist */
{
262
,
-
2
},
/* (146) tablelist ::= ids cpxName */
{
262
,
-
3
},
/* (147) tablelist ::= ids cpxName ids */
{
262
,
-
4
},
/* (148) tablelist ::= tablelist COMMA ids cpxName */
{
262
,
-
5
},
/* (149) tablelist ::= tablelist COMMA ids cpxName ids */
{
263
,
-
1
},
/* (150) tmvar ::= VARIABLE */
{
250
,
-
4
},
/* (151) interval_opt ::= INTERVAL LP tmvar RP */
{
250
,
0
},
/* (152) interval_opt ::= */
{
251
,
0
},
/* (153) fill_opt ::= */
{
251
,
-
6
},
/* (154) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
251
,
-
4
},
/* (155) fill_opt ::= FILL LP ID RP */
{
252
,
-
4
},
/* (156) sliding_opt ::= SLIDING LP tmvar RP */
{
252
,
0
},
/* (157) sliding_opt ::= */
{
254
,
0
},
/* (158) orderby_opt ::= */
{
254
,
-
3
},
/* (159) orderby_opt ::= ORDER BY sortlist */
{
264
,
-
4
},
/* (160) sortlist ::= sortlist COMMA item sortorder */
{
264
,
-
2
},
/* (161) sortlist ::= item sortorder */
{
266
,
-
2
},
/* (162) item ::= ids cpxName */
{
267
,
-
1
},
/* (163) sortorder ::= ASC */
{
267
,
-
1
},
/* (164) sortorder ::= DESC */
{
267
,
0
},
/* (165) sortorder ::= */
{
253
,
0
},
/* (166) groupby_opt ::= */
{
253
,
-
3
},
/* (167) groupby_opt ::= GROUP BY grouplist */
{
268
,
-
3
},
/* (168) grouplist ::= grouplist COMMA item */
{
268
,
-
1
},
/* (169) grouplist ::= item */
{
255
,
0
},
/* (170) having_opt ::= */
{
255
,
-
2
},
/* (171) having_opt ::= HAVING expr */
{
257
,
0
},
/* (172) limit_opt ::= */
{
257
,
-
2
},
/* (173) limit_opt ::= LIMIT signed */
{
257
,
-
4
},
/* (174) limit_opt ::= LIMIT signed OFFSET signed */
{
257
,
-
4
},
/* (175) limit_opt ::= LIMIT signed COMMA signed */
{
256
,
0
},
/* (176) slimit_opt ::= */
{
256
,
-
2
},
/* (177) slimit_opt ::= SLIMIT signed */
{
256
,
-
4
},
/* (178) slimit_opt ::= SLIMIT signed SOFFSET signed */
{
256
,
-
4
},
/* (179) slimit_opt ::= SLIMIT signed COMMA signed */
{
249
,
0
},
/* (180) where_opt ::= */
{
249
,
-
2
},
/* (181) where_opt ::= WHERE expr */
{
260
,
-
3
},
/* (182) expr ::= LP expr RP */
{
260
,
-
1
},
/* (183) expr ::= ID */
{
260
,
-
3
},
/* (184) expr ::= ID DOT ID */
{
260
,
-
3
},
/* (185) expr ::= ID DOT STAR */
{
260
,
-
1
},
/* (186) expr ::= INTEGER */
{
260
,
-
2
},
/* (187) expr ::= MINUS INTEGER */
{
260
,
-
2
},
/* (188) expr ::= PLUS INTEGER */
{
260
,
-
1
},
/* (189) expr ::= FLOAT */
{
260
,
-
2
},
/* (190) expr ::= MINUS FLOAT */
{
260
,
-
2
},
/* (191) expr ::= PLUS FLOAT */
{
260
,
-
1
},
/* (192) expr ::= STRING */
{
260
,
-
1
},
/* (193) expr ::= NOW */
{
260
,
-
1
},
/* (194) expr ::= VARIABLE */
{
260
,
-
1
},
/* (195) expr ::= BOOL */
{
260
,
-
4
},
/* (196) expr ::= ID LP exprlist RP */
{
260
,
-
4
},
/* (197) expr ::= ID LP STAR RP */
{
260
,
-
3
},
/* (198) expr ::= expr AND expr */
{
260
,
-
3
},
/* (199) expr ::= expr OR expr */
{
260
,
-
3
},
/* (200) expr ::= expr LT expr */
{
260
,
-
3
},
/* (201) expr ::= expr GT expr */
{
260
,
-
3
},
/* (202) expr ::= expr LE expr */
{
260
,
-
3
},
/* (203) expr ::= expr GE expr */
{
260
,
-
3
},
/* (204) expr ::= expr NE expr */
{
260
,
-
3
},
/* (205) expr ::= expr EQ expr */
{
260
,
-
3
},
/* (206) expr ::= expr PLUS expr */
{
260
,
-
3
},
/* (207) expr ::= expr MINUS expr */
{
260
,
-
3
},
/* (208) expr ::= expr STAR expr */
{
260
,
-
3
},
/* (209) expr ::= expr SLASH expr */
{
260
,
-
3
},
/* (210) expr ::= expr REM expr */
{
260
,
-
3
},
/* (211) expr ::= expr LIKE expr */
{
260
,
-
5
},
/* (212) expr ::= expr IN LP exprlist RP */
{
269
,
-
3
},
/* (213) exprlist ::= exprlist COMMA expritem */
{
269
,
-
1
},
/* (214) exprlist ::= expritem */
{
270
,
-
1
},
/* (215) expritem ::= expr */
{
270
,
0
},
/* (216) expritem ::= */
{
208
,
-
3
},
/* (217) cmd ::= RESET QUERY CACHE */
{
208
,
-
7
},
/* (218) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
208
,
-
7
},
/* (219) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
208
,
-
7
},
/* (220) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
208
,
-
7
},
/* (221) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
208
,
-
8
},
/* (222) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
208
,
-
9
},
/* (223) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
208
,
-
3
},
/* (224) cmd ::= KILL CONNECTION INTEGER */
{
208
,
-
5
},
/* (225) cmd ::= KILL STREAM INTEGER COLON INTEGER */
{
208
,
-
5
},
/* (226) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
static
void
yy_accept
(
yyParser
*
);
/* Forward Declaration */
...
...
@@ -2046,146 +2052,157 @@ static void yy_reduce(
case
18
:
/* cpxName ::= DOT ids */
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
1
;
}
break
;
case
19
:
/* cmd ::= SHOW dbPrefix TABLES */
case
19
:
/* cmd ::= SHOW CREATE TABLE ids cpxName */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
setDCLSQLElems
(
pInfo
,
TSDB_SQL_SHOW_CREATE_TABLE
,
1
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
break
;
case
20
:
/* cmd ::= SHOW CREATE DATABASE ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_SHOW_CREATE_DATABASE
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
21
:
/* cmd ::= SHOW dbPrefix TABLES */
{
setShowOptions
(
pInfo
,
TSDB_MGMT_TABLE_TABLE
,
&
yymsp
[
-
1
].
minor
.
yy0
,
0
);
}
break
;
case
2
0
:
/* cmd ::= SHOW dbPrefix TABLES LIKE ids */
case
2
2
:
/* cmd ::= SHOW dbPrefix TABLES LIKE ids */
{
setShowOptions
(
pInfo
,
TSDB_MGMT_TABLE_TABLE
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
2
1
:
/* cmd ::= SHOW dbPrefix STABLES */
case
2
3
:
/* cmd ::= SHOW dbPrefix STABLES */
{
setShowOptions
(
pInfo
,
TSDB_MGMT_TABLE_METRIC
,
&
yymsp
[
-
1
].
minor
.
yy0
,
0
);
}
break
;
case
2
2
:
/* cmd ::= SHOW dbPrefix STABLES LIKE ids */
case
2
4
:
/* cmd ::= SHOW dbPrefix STABLES LIKE ids */
{
SStrToken
token
;
setDBName
(
&
token
,
&
yymsp
[
-
3
].
minor
.
yy0
);
setShowOptions
(
pInfo
,
TSDB_MGMT_TABLE_METRIC
,
&
token
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
2
3
:
/* cmd ::= SHOW dbPrefix VGROUPS */
case
2
5
:
/* cmd ::= SHOW dbPrefix VGROUPS */
{
SStrToken
token
;
setDBName
(
&
token
,
&
yymsp
[
-
1
].
minor
.
yy0
);
setShowOptions
(
pInfo
,
TSDB_MGMT_TABLE_VGROUP
,
&
token
,
0
);
}
break
;
case
2
4
:
/* cmd ::= SHOW dbPrefix VGROUPS ids */
case
2
6
:
/* cmd ::= SHOW dbPrefix VGROUPS ids */
{
SStrToken
token
;
setDBName
(
&
token
,
&
yymsp
[
-
2
].
minor
.
yy0
);
setShowOptions
(
pInfo
,
TSDB_MGMT_TABLE_VGROUP
,
&
token
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
2
5
:
/* cmd ::= DROP TABLE ifexists ids cpxName */
case
2
7
:
/* cmd ::= DROP TABLE ifexists ids cpxName */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
setDropDBTableInfo
(
pInfo
,
TSDB_SQL_DROP_TABLE
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
-
2
].
minor
.
yy0
);
}
break
;
case
2
6
:
/* cmd ::= DROP DATABASE ifexists ids */
case
2
8
:
/* cmd ::= DROP DATABASE ifexists ids */
{
setDropDBTableInfo
(
pInfo
,
TSDB_SQL_DROP_DB
,
&
yymsp
[
0
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
break
;
case
2
7
:
/* cmd ::= DROP DNODE ids */
case
2
9
:
/* cmd ::= DROP DNODE ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_DROP_DNODE
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
28
:
/* cmd ::= DROP USER ids */
case
30
:
/* cmd ::= DROP USER ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_DROP_USER
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
29
:
/* cmd ::= DROP ACCOUNT ids */
case
31
:
/* cmd ::= DROP ACCOUNT ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_DROP_ACCT
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
3
0
:
/* cmd ::= USE ids */
case
3
2
:
/* cmd ::= USE ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_USE_DB
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
3
1
:
/* cmd ::= DESCRIBE ids cpxName */
case
3
3
:
/* cmd ::= DESCRIBE ids cpxName */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
setDCLSQLElems
(
pInfo
,
TSDB_SQL_DESCRIBE_TABLE
,
1
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
break
;
case
3
2
:
/* cmd ::= ALTER USER ids PASS ids */
case
3
4
:
/* cmd ::= ALTER USER ids PASS ids */
{
setAlterUserSQL
(
pInfo
,
TSDB_ALTER_USER_PASSWD
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
NULL
);
}
break
;
case
3
3
:
/* cmd ::= ALTER USER ids PRIVILEGE ids */
case
3
5
:
/* cmd ::= ALTER USER ids PRIVILEGE ids */
{
setAlterUserSQL
(
pInfo
,
TSDB_ALTER_USER_PRIVILEGES
,
&
yymsp
[
-
2
].
minor
.
yy0
,
NULL
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
3
4
:
/* cmd ::= ALTER DNODE ids ids */
case
3
6
:
/* cmd ::= ALTER DNODE ids ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_CFG_DNODE
,
2
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
3
5
:
/* cmd ::= ALTER DNODE ids ids ids */
case
3
7
:
/* cmd ::= ALTER DNODE ids ids ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_CFG_DNODE
,
3
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
3
6
:
/* cmd ::= ALTER LOCAL ids */
case
3
8
:
/* cmd ::= ALTER LOCAL ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_CFG_LOCAL
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
3
7
:
/* cmd ::= ALTER LOCAL ids ids */
case
3
9
:
/* cmd ::= ALTER LOCAL ids ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_CFG_LOCAL
,
2
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);
}
break
;
case
38
:
/* cmd ::= ALTER DATABASE ids alter_db_optr */
case
40
:
/* cmd ::= ALTER DATABASE ids alter_db_optr */
{
SStrToken
t
=
{
0
};
setCreateDBSQL
(
pInfo
,
TSDB_SQL_ALTER_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy158
,
&
t
);}
break
;
case
39
:
/* cmd ::= ALTER ACCOUNT ids acct_optr */
case
41
:
/* cmd ::= ALTER ACCOUNT ids acct_optr */
{
setCreateAcctSQL
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
,
&
yymsp
[
0
].
minor
.
yy73
);}
break
;
case
4
0
:
/* cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
case
4
2
:
/* 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
.
yy73
);}
break
;
case
4
1
:
/* ids ::= ID */
case
4
2
:
/* ids ::= STRING */
yytestcase
(
yyruleno
==
42
);
case
4
3
:
/* ids ::= ID */
case
4
4
:
/* ids ::= STRING */
yytestcase
(
yyruleno
==
44
);
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
4
3
:
/* ifexists ::= IF EXISTS */
case
4
5
:
/* ifexists ::= IF EXISTS */
{
yymsp
[
-
1
].
minor
.
yy0
.
n
=
1
;}
break
;
case
4
4
:
/* ifexists ::= */
case
4
6
:
/* ifnotexists ::= */
yytestcase
(
yyruleno
==
46
);
case
4
6
:
/* ifexists ::= */
case
4
8
:
/* ifnotexists ::= */
yytestcase
(
yyruleno
==
48
);
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;}
break
;
case
4
5
:
/* ifnotexists ::= IF NOT EXISTS */
case
4
7
:
/* ifnotexists ::= IF NOT EXISTS */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
=
1
;}
break
;
case
4
7
:
/* cmd ::= CREATE DNODE ids */
case
4
9
:
/* cmd ::= CREATE DNODE ids */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_CREATE_DNODE
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
48
:
/* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
case
50
:
/* 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
.
yy73
);}
break
;
case
49
:
/* cmd ::= CREATE DATABASE ifnotexists ids db_optr */
case
51
:
/* cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
setCreateDBSQL
(
pInfo
,
TSDB_SQL_CREATE_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy158
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
case
5
0
:
/* cmd ::= CREATE USER ids PASS ids */
case
5
2
:
/* cmd ::= CREATE USER ids PASS ids */
{
setCreateUserSQL
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
5
1
:
/* pps ::= */
case
5
3
:
/* tseries ::= */
yytestcase
(
yyruleno
==
53
);
case
5
5
:
/* dbs ::= */
yytestcase
(
yyruleno
==
55
);
case
5
7
:
/* streams ::= */
yytestcase
(
yyruleno
==
57
);
case
59
:
/* storage ::= */
yytestcase
(
yyruleno
==
59
);
case
6
1
:
/* qtime ::= */
yytestcase
(
yyruleno
==
61
);
case
6
3
:
/* users ::= */
yytestcase
(
yyruleno
==
63
);
case
6
5
:
/* conns ::= */
yytestcase
(
yyruleno
==
65
);
case
6
7
:
/* state ::= */
yytestcase
(
yyruleno
==
67
);
case
5
3
:
/* pps ::= */
case
5
5
:
/* tseries ::= */
yytestcase
(
yyruleno
==
55
);
case
5
7
:
/* dbs ::= */
yytestcase
(
yyruleno
==
57
);
case
5
9
:
/* streams ::= */
yytestcase
(
yyruleno
==
59
);
case
61
:
/* storage ::= */
yytestcase
(
yyruleno
==
61
);
case
6
3
:
/* qtime ::= */
yytestcase
(
yyruleno
==
63
);
case
6
5
:
/* users ::= */
yytestcase
(
yyruleno
==
65
);
case
6
7
:
/* conns ::= */
yytestcase
(
yyruleno
==
67
);
case
6
9
:
/* state ::= */
yytestcase
(
yyruleno
==
69
);
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
}
break
;
case
5
2
:
/* pps ::= PPS INTEGER */
case
5
4
:
/* tseries ::= TSERIES INTEGER */
yytestcase
(
yyruleno
==
54
);
case
5
6
:
/* dbs ::= DBS INTEGER */
yytestcase
(
yyruleno
==
56
);
case
58
:
/* streams ::= STREAMS INTEGER */
yytestcase
(
yyruleno
==
58
);
case
6
0
:
/* storage ::= STORAGE INTEGER */
yytestcase
(
yyruleno
==
60
);
case
6
2
:
/* qtime ::= QTIME INTEGER */
yytestcase
(
yyruleno
==
62
);
case
6
4
:
/* users ::= USERS INTEGER */
yytestcase
(
yyruleno
==
64
);
case
6
6
:
/* conns ::= CONNS INTEGER */
yytestcase
(
yyruleno
==
66
);
case
68
:
/* state ::= STATE ids */
yytestcase
(
yyruleno
==
68
);
case
5
4
:
/* pps ::= PPS INTEGER */
case
5
6
:
/* tseries ::= TSERIES INTEGER */
yytestcase
(
yyruleno
==
56
);
case
5
8
:
/* dbs ::= DBS INTEGER */
yytestcase
(
yyruleno
==
58
);
case
60
:
/* streams ::= STREAMS INTEGER */
yytestcase
(
yyruleno
==
60
);
case
6
2
:
/* storage ::= STORAGE INTEGER */
yytestcase
(
yyruleno
==
62
);
case
6
4
:
/* qtime ::= QTIME INTEGER */
yytestcase
(
yyruleno
==
64
);
case
6
6
:
/* users ::= USERS INTEGER */
yytestcase
(
yyruleno
==
66
);
case
6
8
:
/* conns ::= CONNS INTEGER */
yytestcase
(
yyruleno
==
68
);
case
70
:
/* state ::= STATE ids */
yytestcase
(
yyruleno
==
70
);
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
break
;
case
69
:
/* acct_optr ::= pps tseries storage streams qtime dbs users conns state */
case
71
:
/* acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
yylhsminor
.
yy73
.
maxUsers
=
(
yymsp
[
-
2
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
2
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy73
.
maxDbs
=
(
yymsp
[
-
3
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
3
].
minor
.
yy0
.
z
)
:-
1
;
...
...
@@ -2199,96 +2216,96 @@ static void yy_reduce(
}
yymsp
[
-
8
].
minor
.
yy73
=
yylhsminor
.
yy73
;
break
;
case
7
0
:
/* keep ::= KEEP tagitemlist */
case
7
2
:
/* keep ::= KEEP tagitemlist */
{
yymsp
[
-
1
].
minor
.
yy494
=
yymsp
[
0
].
minor
.
yy494
;
}
break
;
case
7
1
:
/* cache ::= CACHE INTEGER */
case
7
2
:
/* replica ::= REPLICA INTEGER */
yytestcase
(
yyruleno
==
72
);
case
7
3
:
/* quorum ::= QUORUM INTEGER */
yytestcase
(
yyruleno
==
73
);
case
7
4
:
/* days ::= DAYS INTEGER */
yytestcase
(
yyruleno
==
74
);
case
7
5
:
/* minrows ::= MINROWS INTEGER */
yytestcase
(
yyruleno
==
75
);
case
7
6
:
/* maxrows ::= MAXROWS INTEGER */
yytestcase
(
yyruleno
==
76
);
case
7
7
:
/* blocks ::= BLOCKS INTEGER */
yytestcase
(
yyruleno
==
77
);
case
78
:
/* ctime ::= CTIME INTEGER */
yytestcase
(
yyruleno
==
78
);
case
79
:
/* wal ::= WAL INTEGER */
yytestcase
(
yyruleno
==
79
);
case
8
0
:
/* fsync ::= FSYNC INTEGER */
yytestcase
(
yyruleno
==
80
);
case
8
1
:
/* comp ::= COMP INTEGER */
yytestcase
(
yyruleno
==
81
);
case
8
2
:
/* prec ::= PRECISION STRING */
yytestcase
(
yyruleno
==
82
);
case
7
3
:
/* cache ::= CACHE INTEGER */
case
7
4
:
/* replica ::= REPLICA INTEGER */
yytestcase
(
yyruleno
==
74
);
case
7
5
:
/* quorum ::= QUORUM INTEGER */
yytestcase
(
yyruleno
==
75
);
case
7
6
:
/* days ::= DAYS INTEGER */
yytestcase
(
yyruleno
==
76
);
case
7
7
:
/* minrows ::= MINROWS INTEGER */
yytestcase
(
yyruleno
==
77
);
case
7
8
:
/* maxrows ::= MAXROWS INTEGER */
yytestcase
(
yyruleno
==
78
);
case
7
9
:
/* blocks ::= BLOCKS INTEGER */
yytestcase
(
yyruleno
==
79
);
case
80
:
/* ctime ::= CTIME INTEGER */
yytestcase
(
yyruleno
==
80
);
case
81
:
/* wal ::= WAL INTEGER */
yytestcase
(
yyruleno
==
81
);
case
8
2
:
/* fsync ::= FSYNC INTEGER */
yytestcase
(
yyruleno
==
82
);
case
8
3
:
/* comp ::= COMP INTEGER */
yytestcase
(
yyruleno
==
83
);
case
8
4
:
/* prec ::= PRECISION STRING */
yytestcase
(
yyruleno
==
84
);
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
break
;
case
8
3
:
/* db_optr ::= */
case
8
5
:
/* db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy158
);}
break
;
case
8
4
:
/* db_optr ::= db_optr cache */
case
8
6
:
/* db_optr ::= db_optr cache */
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
cacheBlockSize
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
8
5
:
/* db_optr ::= db_optr replica */
case
98
:
/* alter_db_optr ::= alter_db_optr replica */
yytestcase
(
yyruleno
==
98
);
case
8
7
:
/* db_optr ::= db_optr replica */
case
100
:
/* alter_db_optr ::= alter_db_optr replica */
yytestcase
(
yyruleno
==
100
);
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
replica
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
8
6
:
/* db_optr ::= db_optr quorum */
case
99
:
/* alter_db_optr ::= alter_db_optr quorum */
yytestcase
(
yyruleno
==
99
);
case
8
8
:
/* db_optr ::= db_optr quorum */
case
101
:
/* alter_db_optr ::= alter_db_optr quorum */
yytestcase
(
yyruleno
==
101
);
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
quorum
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
8
7
:
/* db_optr ::= db_optr days */
case
8
9
:
/* db_optr ::= db_optr days */
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
daysPerFile
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
88
:
/* db_optr ::= db_optr minrows */
case
90
:
/* db_optr ::= db_optr minrows */
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
minRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
89
:
/* db_optr ::= db_optr maxrows */
case
91
:
/* db_optr ::= db_optr maxrows */
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
maxRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
9
0
:
/* db_optr ::= db_optr blocks */
case
10
1
:
/* alter_db_optr ::= alter_db_optr blocks */
yytestcase
(
yyruleno
==
101
);
case
9
2
:
/* db_optr ::= db_optr blocks */
case
10
3
:
/* alter_db_optr ::= alter_db_optr blocks */
yytestcase
(
yyruleno
==
103
);
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
numOfBlocks
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
9
1
:
/* db_optr ::= db_optr ctime */
case
9
3
:
/* db_optr ::= db_optr ctime */
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
commitTime
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
9
2
:
/* db_optr ::= db_optr wal */
case
10
3
:
/* alter_db_optr ::= alter_db_optr wal */
yytestcase
(
yyruleno
==
103
);
case
9
4
:
/* db_optr ::= db_optr wal */
case
10
5
:
/* alter_db_optr ::= alter_db_optr wal */
yytestcase
(
yyruleno
==
105
);
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
walLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
9
3
:
/* db_optr ::= db_optr fsync */
case
10
4
:
/* alter_db_optr ::= alter_db_optr fsync */
yytestcase
(
yyruleno
==
104
);
case
9
5
:
/* db_optr ::= db_optr fsync */
case
10
6
:
/* alter_db_optr ::= alter_db_optr fsync */
yytestcase
(
yyruleno
==
106
);
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
fsyncPeriod
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
9
4
:
/* db_optr ::= db_optr comp */
case
10
2
:
/* alter_db_optr ::= alter_db_optr comp */
yytestcase
(
yyruleno
==
102
);
case
9
6
:
/* db_optr ::= db_optr comp */
case
10
4
:
/* alter_db_optr ::= alter_db_optr comp */
yytestcase
(
yyruleno
==
104
);
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
compressionLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
9
5
:
/* db_optr ::= db_optr prec */
case
9
7
:
/* db_optr ::= db_optr prec */
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
precision
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
9
6
:
/* db_optr ::= db_optr keep */
case
10
0
:
/* alter_db_optr ::= alter_db_optr keep */
yytestcase
(
yyruleno
==
100
);
case
9
8
:
/* db_optr ::= db_optr keep */
case
10
2
:
/* alter_db_optr ::= alter_db_optr keep */
yytestcase
(
yyruleno
==
102
);
{
yylhsminor
.
yy158
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
keep
=
yymsp
[
0
].
minor
.
yy494
;
}
yymsp
[
-
1
].
minor
.
yy158
=
yylhsminor
.
yy158
;
break
;
case
9
7
:
/* alter_db_optr ::= */
case
9
9
:
/* alter_db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy158
);}
break
;
case
10
5
:
/* typename ::= ids */
case
10
7
:
/* typename ::= ids */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tSQLSetColumnType
(
&
yylhsminor
.
yy181
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy181
=
yylhsminor
.
yy181
;
break
;
case
10
6
:
/* typename ::= ids LP signed RP */
case
10
8
:
/* typename ::= ids LP signed RP */
{
if
(
yymsp
[
-
1
].
minor
.
yy271
<=
0
)
{
yymsp
[
-
3
].
minor
.
yy0
.
type
=
0
;
...
...
@@ -2300,84 +2317,84 @@ static void yy_reduce(
}
yymsp
[
-
3
].
minor
.
yy181
=
yylhsminor
.
yy181
;
break
;
case
10
7
:
/* signed ::= INTEGER */
case
10
9
:
/* signed ::= INTEGER */
{
yylhsminor
.
yy271
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
0
].
minor
.
yy271
=
yylhsminor
.
yy271
;
break
;
case
1
08
:
/* signed ::= PLUS INTEGER */
case
1
10
:
/* signed ::= PLUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy271
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
break
;
case
1
09
:
/* signed ::= MINUS INTEGER */
case
1
11
:
/* signed ::= MINUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy271
=
-
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);}
break
;
case
11
0
:
/* cmd ::= CREATE TABLE ifnotexists ids cpxName create_table_args */
case
11
2
:
/* cmd ::= CREATE TABLE ifnotexists ids cpxName create_table_args */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
yymsp
[
-
1
].
minor
.
yy0
.
n
;
setCreatedTableName
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
-
3
].
minor
.
yy0
);
}
break
;
case
11
1
:
/* create_table_args ::= LP columnlist RP */
case
11
3
:
/* create_table_args ::= LP columnlist RP */
{
yymsp
[
-
2
].
minor
.
yy374
=
tSetCreateSQLElems
(
yymsp
[
-
1
].
minor
.
yy449
,
NULL
,
NULL
,
NULL
,
NULL
,
TSQL_CREATE_TABLE
);
setSQLInfo
(
pInfo
,
yymsp
[
-
2
].
minor
.
yy374
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
}
break
;
case
11
2
:
/* create_table_args ::= LP columnlist RP TAGS LP columnlist RP */
case
11
4
:
/* create_table_args ::= LP columnlist RP TAGS LP columnlist RP */
{
yymsp
[
-
6
].
minor
.
yy374
=
tSetCreateSQLElems
(
yymsp
[
-
5
].
minor
.
yy449
,
yymsp
[
-
1
].
minor
.
yy449
,
NULL
,
NULL
,
NULL
,
TSQL_CREATE_STABLE
);
setSQLInfo
(
pInfo
,
yymsp
[
-
6
].
minor
.
yy374
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
}
break
;
case
11
3
:
/* create_table_args ::= USING ids cpxName TAGS LP tagitemlist RP */
case
11
5
:
/* create_table_args ::= USING ids cpxName TAGS LP tagitemlist RP */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
yymsp
[
-
6
].
minor
.
yy374
=
tSetCreateSQLElems
(
NULL
,
NULL
,
&
yymsp
[
-
5
].
minor
.
yy0
,
yymsp
[
-
1
].
minor
.
yy494
,
NULL
,
TSQL_CREATE_TABLE_FROM_STABLE
);
setSQLInfo
(
pInfo
,
yymsp
[
-
6
].
minor
.
yy374
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
}
break
;
case
11
4
:
/* create_table_args ::= AS select */
case
11
6
:
/* create_table_args ::= AS select */
{
yymsp
[
-
1
].
minor
.
yy374
=
tSetCreateSQLElems
(
NULL
,
NULL
,
NULL
,
NULL
,
yymsp
[
0
].
minor
.
yy150
,
TSQL_CREATE_STREAM
);
setSQLInfo
(
pInfo
,
yymsp
[
-
1
].
minor
.
yy374
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
}
break
;
case
11
5
:
/* columnlist ::= columnlist COMMA column */
case
11
7
:
/* columnlist ::= columnlist COMMA column */
{
yylhsminor
.
yy449
=
tFieldListAppend
(
yymsp
[
-
2
].
minor
.
yy449
,
&
yymsp
[
0
].
minor
.
yy181
);
}
yymsp
[
-
2
].
minor
.
yy449
=
yylhsminor
.
yy449
;
break
;
case
11
6
:
/* columnlist ::= column */
case
11
8
:
/* columnlist ::= column */
{
yylhsminor
.
yy449
=
tFieldListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy181
);}
yymsp
[
0
].
minor
.
yy449
=
yylhsminor
.
yy449
;
break
;
case
11
7
:
/* column ::= ids typename */
case
11
9
:
/* column ::= ids typename */
{
tSQLSetColumnInfo
(
&
yylhsminor
.
yy181
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy181
);
}
yymsp
[
-
1
].
minor
.
yy181
=
yylhsminor
.
yy181
;
break
;
case
1
18
:
/* tagitemlist ::= tagitemlist COMMA tagitem */
case
1
20
:
/* tagitemlist ::= tagitemlist COMMA tagitem */
{
yylhsminor
.
yy494
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy494
,
&
yymsp
[
0
].
minor
.
yy312
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
1
19
:
/* tagitemlist ::= tagitem */
case
1
21
:
/* tagitemlist ::= tagitem */
{
yylhsminor
.
yy494
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy312
,
-
1
);
}
yymsp
[
0
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
12
0
:
/* tagitem ::= INTEGER */
case
12
1
:
/* tagitem ::= FLOAT */
yytestcase
(
yyruleno
==
121
);
case
12
2
:
/* tagitem ::= STRING */
yytestcase
(
yyruleno
==
122
);
case
12
3
:
/* tagitem ::= BOOL */
yytestcase
(
yyruleno
==
123
);
case
12
2
:
/* tagitem ::= INTEGER */
case
12
3
:
/* tagitem ::= FLOAT */
yytestcase
(
yyruleno
==
123
);
case
12
4
:
/* tagitem ::= STRING */
yytestcase
(
yyruleno
==
124
);
case
12
5
:
/* tagitem ::= BOOL */
yytestcase
(
yyruleno
==
125
);
{
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy312
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy312
=
yylhsminor
.
yy312
;
break
;
case
12
4
:
/* tagitem ::= NULL */
case
12
6
:
/* tagitem ::= NULL */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tVariantCreate
(
&
yylhsminor
.
yy312
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy312
=
yylhsminor
.
yy312
;
break
;
case
12
5
:
/* tagitem ::= MINUS INTEGER */
case
12
6
:
/* tagitem ::= MINUS FLOAT */
yytestcase
(
yyruleno
==
126
);
case
12
7
:
/* tagitem ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
127
);
case
1
28
:
/* tagitem ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
128
);
case
12
7
:
/* tagitem ::= MINUS INTEGER */
case
12
8
:
/* tagitem ::= MINUS FLOAT */
yytestcase
(
yyruleno
==
128
);
case
12
9
:
/* tagitem ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
129
);
case
1
30
:
/* tagitem ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
130
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
yymsp
[
0
].
minor
.
yy0
.
type
;
...
...
@@ -2386,70 +2403,70 @@ static void yy_reduce(
}
yymsp
[
-
1
].
minor
.
yy312
=
yylhsminor
.
yy312
;
break
;
case
1
29
:
/* select ::= SELECT selcollist from where_opt interval_opt fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
case
1
31
:
/* select ::= SELECT selcollist from where_opt interval_opt fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
{
yylhsminor
.
yy150
=
tSetQuerySQLElems
(
&
yymsp
[
-
11
].
minor
.
yy0
,
yymsp
[
-
10
].
minor
.
yy224
,
yymsp
[
-
9
].
minor
.
yy494
,
yymsp
[
-
8
].
minor
.
yy66
,
yymsp
[
-
4
].
minor
.
yy494
,
yymsp
[
-
3
].
minor
.
yy494
,
&
yymsp
[
-
7
].
minor
.
yy0
,
&
yymsp
[
-
5
].
minor
.
yy0
,
yymsp
[
-
6
].
minor
.
yy494
,
&
yymsp
[
0
].
minor
.
yy188
,
&
yymsp
[
-
1
].
minor
.
yy188
);
}
yymsp
[
-
11
].
minor
.
yy150
=
yylhsminor
.
yy150
;
break
;
case
13
0
:
/* union ::= select */
case
13
2
:
/* union ::= select */
{
yylhsminor
.
yy25
=
setSubclause
(
NULL
,
yymsp
[
0
].
minor
.
yy150
);
}
yymsp
[
0
].
minor
.
yy25
=
yylhsminor
.
yy25
;
break
;
case
13
1
:
/* union ::= LP union RP */
case
13
3
:
/* union ::= LP union RP */
{
yymsp
[
-
2
].
minor
.
yy25
=
yymsp
[
-
1
].
minor
.
yy25
;
}
break
;
case
13
2
:
/* union ::= union UNION ALL select */
case
13
4
:
/* union ::= union UNION ALL select */
{
yylhsminor
.
yy25
=
appendSelectClause
(
yymsp
[
-
3
].
minor
.
yy25
,
yymsp
[
0
].
minor
.
yy150
);
}
yymsp
[
-
3
].
minor
.
yy25
=
yylhsminor
.
yy25
;
break
;
case
13
3
:
/* union ::= union UNION ALL LP select RP */
case
13
5
:
/* union ::= union UNION ALL LP select RP */
{
yylhsminor
.
yy25
=
appendSelectClause
(
yymsp
[
-
5
].
minor
.
yy25
,
yymsp
[
-
1
].
minor
.
yy150
);
}
yymsp
[
-
5
].
minor
.
yy25
=
yylhsminor
.
yy25
;
break
;
case
13
4
:
/* cmd ::= union */
case
13
6
:
/* cmd ::= union */
{
setSQLInfo
(
pInfo
,
yymsp
[
0
].
minor
.
yy25
,
NULL
,
TSDB_SQL_SELECT
);
}
break
;
case
13
5
:
/* select ::= SELECT selcollist */
case
13
7
:
/* select ::= SELECT selcollist */
{
yylhsminor
.
yy150
=
tSetQuerySQLElems
(
&
yymsp
[
-
1
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy224
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy150
=
yylhsminor
.
yy150
;
break
;
case
13
6
:
/* sclp ::= selcollist COMMA */
case
13
8
:
/* sclp ::= selcollist COMMA */
{
yylhsminor
.
yy224
=
yymsp
[
-
1
].
minor
.
yy224
;}
yymsp
[
-
1
].
minor
.
yy224
=
yylhsminor
.
yy224
;
break
;
case
13
7
:
/* sclp ::= */
case
13
9
:
/* sclp ::= */
{
yymsp
[
1
].
minor
.
yy224
=
0
;}
break
;
case
1
38
:
/* selcollist ::= sclp expr as */
case
1
40
:
/* selcollist ::= sclp expr as */
{
yylhsminor
.
yy224
=
tSQLExprListAppend
(
yymsp
[
-
2
].
minor
.
yy224
,
yymsp
[
-
1
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy0
.
n
?&
yymsp
[
0
].
minor
.
yy0
:
0
);
}
yymsp
[
-
2
].
minor
.
yy224
=
yylhsminor
.
yy224
;
break
;
case
1
39
:
/* selcollist ::= sclp STAR */
case
1
41
:
/* selcollist ::= sclp STAR */
{
tSQLExpr
*
pNode
=
tSQLExprIdValueCreate
(
NULL
,
TK_ALL
);
yylhsminor
.
yy224
=
tSQLExprListAppend
(
yymsp
[
-
1
].
minor
.
yy224
,
pNode
,
0
);
}
yymsp
[
-
1
].
minor
.
yy224
=
yylhsminor
.
yy224
;
break
;
case
14
0
:
/* as ::= AS ids */
case
14
2
:
/* as ::= AS ids */
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
break
;
case
14
1
:
/* as ::= ids */
case
14
3
:
/* as ::= ids */
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
14
2
:
/* as ::= */
case
14
4
:
/* as ::= */
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
}
break
;
case
14
3
:
/* from ::= FROM tablelist */
case
14
5
:
/* from ::= FROM tablelist */
{
yymsp
[
-
1
].
minor
.
yy494
=
yymsp
[
0
].
minor
.
yy494
;}
break
;
case
14
4
:
/* tablelist ::= ids cpxName */
case
14
6
:
/* tablelist ::= ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
...
...
@@ -2458,7 +2475,7 @@ static void yy_reduce(
}
yymsp
[
-
1
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
14
5
:
/* tablelist ::= ids cpxName ids */
case
14
7
:
/* tablelist ::= ids cpxName ids */
{
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
...
...
@@ -2468,7 +2485,7 @@ static void yy_reduce(
}
yymsp
[
-
2
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
14
6
:
/* tablelist ::= tablelist COMMA ids cpxName */
case
14
8
:
/* tablelist ::= tablelist COMMA ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
...
...
@@ -2477,7 +2494,7 @@ static void yy_reduce(
}
yymsp
[
-
3
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
14
7
:
/* tablelist ::= tablelist COMMA ids cpxName ids */
case
14
9
:
/* tablelist ::= tablelist COMMA ids cpxName ids */
{
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
...
...
@@ -2487,22 +2504,22 @@ static void yy_reduce(
}
yymsp
[
-
4
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
1
48
:
/* tmvar ::= VARIABLE */
case
1
50
:
/* tmvar ::= VARIABLE */
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
1
49
:
/* interval_opt ::= INTERVAL LP tmvar RP */
case
15
4
:
/* sliding_opt ::= SLIDING LP tmvar RP */
yytestcase
(
yyruleno
==
154
);
case
1
51
:
/* interval_opt ::= INTERVAL LP tmvar RP */
case
15
6
:
/* sliding_opt ::= SLIDING LP tmvar RP */
yytestcase
(
yyruleno
==
156
);
{
yymsp
[
-
3
].
minor
.
yy0
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
15
0
:
/* interval_opt ::= */
case
15
5
:
/* sliding_opt ::= */
yytestcase
(
yyruleno
==
155
);
case
15
2
:
/* interval_opt ::= */
case
15
7
:
/* sliding_opt ::= */
yytestcase
(
yyruleno
==
157
);
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
yymsp
[
1
].
minor
.
yy0
.
z
=
NULL
;
yymsp
[
1
].
minor
.
yy0
.
type
=
0
;
}
break
;
case
15
1
:
/* fill_opt ::= */
case
15
3
:
/* fill_opt ::= */
{
yymsp
[
1
].
minor
.
yy494
=
0
;
}
break
;
case
15
2
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
case
15
4
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
tVariant
A
=
{
0
};
toTSDBType
(
yymsp
[
-
3
].
minor
.
yy0
.
type
);
...
...
@@ -2512,33 +2529,33 @@ static void yy_reduce(
yymsp
[
-
5
].
minor
.
yy494
=
yymsp
[
-
1
].
minor
.
yy494
;
}
break
;
case
15
3
:
/* fill_opt ::= FILL LP ID RP */
case
15
5
:
/* fill_opt ::= FILL LP ID RP */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
3
].
minor
.
yy494
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
}
break
;
case
15
6
:
/* orderby_opt ::= */
case
16
4
:
/* groupby_opt ::= */
yytestcase
(
yyruleno
==
164
);
case
15
8
:
/* orderby_opt ::= */
case
16
6
:
/* groupby_opt ::= */
yytestcase
(
yyruleno
==
166
);
{
yymsp
[
1
].
minor
.
yy494
=
0
;}
break
;
case
15
7
:
/* orderby_opt ::= ORDER BY sortlist */
case
16
5
:
/* groupby_opt ::= GROUP BY grouplist */
yytestcase
(
yyruleno
==
165
);
case
15
9
:
/* orderby_opt ::= ORDER BY sortlist */
case
16
7
:
/* groupby_opt ::= GROUP BY grouplist */
yytestcase
(
yyruleno
==
167
);
{
yymsp
[
-
2
].
minor
.
yy494
=
yymsp
[
0
].
minor
.
yy494
;}
break
;
case
1
58
:
/* sortlist ::= sortlist COMMA item sortorder */
case
1
60
:
/* sortlist ::= sortlist COMMA item sortorder */
{
yylhsminor
.
yy494
=
tVariantListAppend
(
yymsp
[
-
3
].
minor
.
yy494
,
&
yymsp
[
-
1
].
minor
.
yy312
,
yymsp
[
0
].
minor
.
yy82
);
}
yymsp
[
-
3
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
1
59
:
/* sortlist ::= item sortorder */
case
1
61
:
/* sortlist ::= item sortorder */
{
yylhsminor
.
yy494
=
tVariantListAppend
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy312
,
yymsp
[
0
].
minor
.
yy82
);
}
yymsp
[
-
1
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
16
0
:
/* item ::= ids cpxName */
case
16
2
:
/* item ::= ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
...
...
@@ -2547,196 +2564,196 @@ static void yy_reduce(
}
yymsp
[
-
1
].
minor
.
yy312
=
yylhsminor
.
yy312
;
break
;
case
16
1
:
/* sortorder ::= ASC */
case
16
3
:
/* sortorder ::= ASC */
{
yymsp
[
0
].
minor
.
yy82
=
TSDB_ORDER_ASC
;
}
break
;
case
16
2
:
/* sortorder ::= DESC */
case
16
4
:
/* sortorder ::= DESC */
{
yymsp
[
0
].
minor
.
yy82
=
TSDB_ORDER_DESC
;}
break
;
case
16
3
:
/* sortorder ::= */
case
16
5
:
/* sortorder ::= */
{
yymsp
[
1
].
minor
.
yy82
=
TSDB_ORDER_ASC
;}
break
;
case
16
6
:
/* grouplist ::= grouplist COMMA item */
case
16
8
:
/* grouplist ::= grouplist COMMA item */
{
yylhsminor
.
yy494
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy494
,
&
yymsp
[
0
].
minor
.
yy312
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
16
7
:
/* grouplist ::= item */
case
16
9
:
/* grouplist ::= item */
{
yylhsminor
.
yy494
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy312
,
-
1
);
}
yymsp
[
0
].
minor
.
yy494
=
yylhsminor
.
yy494
;
break
;
case
1
68
:
/* having_opt ::= */
case
1
78
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
178
);
case
21
4
:
/* expritem ::= */
yytestcase
(
yyruleno
==
214
);
case
1
70
:
/* having_opt ::= */
case
1
80
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
180
);
case
21
6
:
/* expritem ::= */
yytestcase
(
yyruleno
==
216
);
{
yymsp
[
1
].
minor
.
yy66
=
0
;}
break
;
case
1
69
:
/* having_opt ::= HAVING expr */
case
1
79
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
179
);
case
1
71
:
/* having_opt ::= HAVING expr */
case
1
81
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
181
);
{
yymsp
[
-
1
].
minor
.
yy66
=
yymsp
[
0
].
minor
.
yy66
;}
break
;
case
17
0
:
/* limit_opt ::= */
case
17
4
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
174
);
case
17
2
:
/* limit_opt ::= */
case
17
6
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
176
);
{
yymsp
[
1
].
minor
.
yy188
.
limit
=
-
1
;
yymsp
[
1
].
minor
.
yy188
.
offset
=
0
;}
break
;
case
17
1
:
/* limit_opt ::= LIMIT signed */
case
17
5
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
175
);
case
17
3
:
/* limit_opt ::= LIMIT signed */
case
17
7
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
177
);
{
yymsp
[
-
1
].
minor
.
yy188
.
limit
=
yymsp
[
0
].
minor
.
yy271
;
yymsp
[
-
1
].
minor
.
yy188
.
offset
=
0
;}
break
;
case
17
2
:
/* limit_opt ::= LIMIT signed OFFSET signed */
case
17
6
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
yytestcase
(
yyruleno
==
176
);
case
17
4
:
/* limit_opt ::= LIMIT signed OFFSET signed */
case
17
8
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
yytestcase
(
yyruleno
==
178
);
{
yymsp
[
-
3
].
minor
.
yy188
.
limit
=
yymsp
[
-
2
].
minor
.
yy271
;
yymsp
[
-
3
].
minor
.
yy188
.
offset
=
yymsp
[
0
].
minor
.
yy271
;}
break
;
case
17
3
:
/* limit_opt ::= LIMIT signed COMMA signed */
case
17
7
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
yytestcase
(
yyruleno
==
177
);
case
17
5
:
/* limit_opt ::= LIMIT signed COMMA signed */
case
17
9
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
yytestcase
(
yyruleno
==
179
);
{
yymsp
[
-
3
].
minor
.
yy188
.
limit
=
yymsp
[
0
].
minor
.
yy271
;
yymsp
[
-
3
].
minor
.
yy188
.
offset
=
yymsp
[
-
2
].
minor
.
yy271
;}
break
;
case
18
0
:
/* expr ::= LP expr RP */
case
18
2
:
/* expr ::= LP expr RP */
{
yymsp
[
-
2
].
minor
.
yy66
=
yymsp
[
-
1
].
minor
.
yy66
;
}
break
;
case
18
1
:
/* expr ::= ID */
case
18
3
:
/* expr ::= ID */
{
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
0
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
18
2
:
/* expr ::= ID DOT ID */
case
18
4
:
/* expr ::= ID DOT ID */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
18
3
:
/* expr ::= ID DOT STAR */
case
18
5
:
/* expr ::= ID DOT STAR */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ALL
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
18
4
:
/* expr ::= INTEGER */
case
18
6
:
/* expr ::= INTEGER */
{
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
0
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
18
5
:
/* expr ::= MINUS INTEGER */
case
18
6
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
186
);
case
18
7
:
/* expr ::= MINUS INTEGER */
case
18
8
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
188
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_INTEGER
;
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
-
1
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
18
7
:
/* expr ::= FLOAT */
case
18
9
:
/* expr ::= FLOAT */
{
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
0
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
1
88
:
/* expr ::= MINUS FLOAT */
case
1
89
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
189
);
case
1
90
:
/* expr ::= MINUS FLOAT */
case
1
91
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
191
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_FLOAT
;
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
-
1
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
19
0
:
/* expr ::= STRING */
case
19
2
:
/* expr ::= STRING */
{
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_STRING
);}
yymsp
[
0
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
19
1
:
/* expr ::= NOW */
case
19
3
:
/* expr ::= NOW */
{
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NOW
);
}
yymsp
[
0
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
19
2
:
/* expr ::= VARIABLE */
case
19
4
:
/* expr ::= VARIABLE */
{
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
0
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
19
3
:
/* expr ::= BOOL */
case
19
5
:
/* expr ::= BOOL */
{
yylhsminor
.
yy66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_BOOL
);}
yymsp
[
0
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
19
4
:
/* expr ::= ID LP exprlist RP */
case
19
6
:
/* expr ::= ID LP exprlist RP */
{
yylhsminor
.
yy66
=
tSQLExprCreateFunction
(
yymsp
[
-
1
].
minor
.
yy224
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
19
5
:
/* expr ::= ID LP STAR RP */
case
19
7
:
/* expr ::= ID LP STAR RP */
{
yylhsminor
.
yy66
=
tSQLExprCreateFunction
(
NULL
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
19
6
:
/* expr ::= expr AND expr */
case
19
8
:
/* expr ::= expr AND expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_AND
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
19
7
:
/* expr ::= expr OR expr */
case
19
9
:
/* expr ::= expr OR expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_OR
);
}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
198
:
/* expr ::= expr LT expr */
case
200
:
/* expr ::= expr LT expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_LT
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
199
:
/* expr ::= expr GT expr */
case
201
:
/* expr ::= expr GT expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_GT
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
20
0
:
/* expr ::= expr LE expr */
case
20
2
:
/* expr ::= expr LE expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_LE
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
20
1
:
/* expr ::= expr GE expr */
case
20
3
:
/* expr ::= expr GE expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_GE
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
20
2
:
/* expr ::= expr NE expr */
case
20
4
:
/* expr ::= expr NE expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_NE
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
20
3
:
/* expr ::= expr EQ expr */
case
20
5
:
/* expr ::= expr EQ expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_EQ
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
20
4
:
/* expr ::= expr PLUS expr */
case
20
6
:
/* expr ::= expr PLUS expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_PLUS
);
}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
20
5
:
/* expr ::= expr MINUS expr */
case
20
7
:
/* expr ::= expr MINUS expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_MINUS
);
}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
20
6
:
/* expr ::= expr STAR expr */
case
20
8
:
/* expr ::= expr STAR expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_STAR
);
}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
20
7
:
/* expr ::= expr SLASH expr */
case
20
9
:
/* expr ::= expr SLASH expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_DIVIDE
);}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
2
08
:
/* expr ::= expr REM expr */
case
2
10
:
/* expr ::= expr REM expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_REM
);
}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
2
09
:
/* expr ::= expr LIKE expr */
case
2
11
:
/* expr ::= expr LIKE expr */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_LIKE
);
}
yymsp
[
-
2
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
21
0
:
/* expr ::= expr IN LP exprlist RP */
case
21
2
:
/* expr ::= expr IN LP exprlist RP */
{
yylhsminor
.
yy66
=
tSQLExprCreate
(
yymsp
[
-
4
].
minor
.
yy66
,
(
tSQLExpr
*
)
yymsp
[
-
1
].
minor
.
yy224
,
TK_IN
);
}
yymsp
[
-
4
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
21
1
:
/* exprlist ::= exprlist COMMA expritem */
case
21
3
:
/* exprlist ::= exprlist COMMA expritem */
{
yylhsminor
.
yy224
=
tSQLExprListAppend
(
yymsp
[
-
2
].
minor
.
yy224
,
yymsp
[
0
].
minor
.
yy66
,
0
);}
yymsp
[
-
2
].
minor
.
yy224
=
yylhsminor
.
yy224
;
break
;
case
21
2
:
/* exprlist ::= expritem */
case
21
4
:
/* exprlist ::= expritem */
{
yylhsminor
.
yy224
=
tSQLExprListAppend
(
0
,
yymsp
[
0
].
minor
.
yy66
,
0
);}
yymsp
[
0
].
minor
.
yy224
=
yylhsminor
.
yy224
;
break
;
case
21
3
:
/* expritem ::= expr */
case
21
5
:
/* expritem ::= expr */
{
yylhsminor
.
yy66
=
yymsp
[
0
].
minor
.
yy66
;}
yymsp
[
0
].
minor
.
yy66
=
yylhsminor
.
yy66
;
break
;
case
21
5
:
/* cmd ::= RESET QUERY CACHE */
case
21
7
:
/* cmd ::= RESET QUERY CACHE */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_RESET_CACHE
,
0
);}
break
;
case
21
6
:
/* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
case
21
8
:
/* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableSQL
*
pAlterTable
=
tAlterTableSQLElems
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy449
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
);
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
21
7
:
/* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
case
21
9
:
/* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -2747,14 +2764,14 @@ static void yy_reduce(
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
2
18
:
/* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
case
2
20
:
/* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableSQL
*
pAlterTable
=
tAlterTableSQLElems
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy449
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
);
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
2
19
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
case
2
21
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -2765,7 +2782,7 @@ static void yy_reduce(
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
22
0
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
case
22
2
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
...
...
@@ -2779,7 +2796,7 @@ static void yy_reduce(
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
22
1
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
case
22
3
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
yymsp
[
-
6
].
minor
.
yy0
.
n
+=
yymsp
[
-
5
].
minor
.
yy0
.
n
;
...
...
@@ -2791,13 +2808,13 @@ static void yy_reduce(
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
22
2
:
/* cmd ::= KILL CONNECTION INTEGER */
case
22
4
:
/* cmd ::= KILL CONNECTION INTEGER */
{
setKillSQL
(
pInfo
,
TSDB_SQL_KILL_CONNECTION
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
22
3
:
/* cmd ::= KILL STREAM INTEGER COLON INTEGER */
case
22
5
:
/* cmd ::= KILL STREAM INTEGER COLON INTEGER */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
+
yymsp
[
0
].
minor
.
yy0
.
n
);
setKillSQL
(
pInfo
,
TSDB_SQL_KILL_STREAM
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
case
22
4
:
/* cmd ::= KILL QUERY INTEGER COLON INTEGER */
case
22
6
:
/* cmd ::= KILL QUERY INTEGER COLON INTEGER */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
+
yymsp
[
0
].
minor
.
yy0
.
n
);
setKillSQL
(
pInfo
,
TSDB_SQL_KILL_QUERY
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
default:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录