Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
67976208
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看板
提交
67976208
编写于
6月 15, 2021
作者:
D
dapan1121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove sub query
上级
49c70a84
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
597 addition
and
601 deletion
+597
-601
src/inc/ttokendef.h
src/inc/ttokendef.h
+2
-0
src/query/inc/sql.y
src/query/inc/sql.y
+1
-2
src/query/src/sql.c
src/query/src/sql.c
+594
-599
未找到文件。
src/inc/ttokendef.h
浏览文件 @
67976208
...
...
@@ -212,6 +212,8 @@
#define TK_SPACE 300
#define TK_COMMENT 301
#define TK_ILLEGAL 302
...
...
src/query/inc/sql.y
浏览文件 @
67976208
...
...
@@ -28,7 +28,7 @@
#include <stdbool.h>
#include "qSqlparser.h"
#include "tcmdtype.h"
#include "t
s
token.h"
#include "ttoken.h"
#include "ttokendef.h"
#include "tutil.h"
#include "tvariant.h"
...
...
@@ -507,7 +507,6 @@ distinct(X) ::= . { X.n = 0;}
// A complete FROM clause.
%type from {SFromInfo*}
from(A) ::= FROM tablelist(X). {A = X;}
from(A) ::= FROM LP union(Y) RP. {A = Y;}
%type tablelist {SArray*}
tablelist(A) ::= ids(X) cpxName(Y). {
...
...
src/query/src/sql.c
浏览文件 @
67976208
...
...
@@ -26,11 +26,11 @@
#include <assert.h>
/************ Begin %include sections from the grammar ************************/
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>
#include "qSqlparser.h"
#include "tcmdtype.h"
#include "ttoken.h"
...
...
@@ -137,18 +137,18 @@ typedef union {
#define ParseCTX_FETCH
#define ParseCTX_STORE
#define YYFALLBACK 1
#define YYNSTATE 31
5
#define YYNRULE 26
9
#define YYNRULE_WITH_ACTION 26
9
#define YYNSTATE 31
3
#define YYNRULE 26
8
#define YYNRULE_WITH_ACTION 26
8
#define YYNTOKEN 187
#define YY_MAX_SHIFT 31
4
#define YY_MIN_SHIFTREDUCE 50
8
#define YY_MAX_SHIFTREDUCE 77
6
#define YY_ERROR_ACTION 77
7
#define YY_ACCEPT_ACTION 77
8
#define YY_NO_ACTION 77
9
#define YY_MIN_REDUCE 7
80
#define YY_MAX_REDUCE 104
8
#define YY_MAX_SHIFT 31
2
#define YY_MIN_SHIFTREDUCE 50
5
#define YY_MAX_SHIFTREDUCE 77
2
#define YY_ERROR_ACTION 77
3
#define YY_ACCEPT_ACTION 77
4
#define YY_NO_ACTION 77
5
#define YY_MIN_REDUCE 7
76
#define YY_MAX_REDUCE 104
3
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
...
...
@@ -215,76 +215,76 @@ typedef union {
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (67
2
)
#define YY_ACTTAB_COUNT (67
5
)
static
const
YYACTIONTYPE
yy_action
[]
=
{
/* 0 */
13
3
,
555
,
204
,
312
,
208
,
140
,
947
,
17
,
85
,
556
,
/* 10 */
77
8
,
314
,
179
,
47
,
48
,
140
,
51
,
52
,
30
,
181
,
/* 20 */
21
4
,
41
,
181
,
50
,
262
,
55
,
53
,
57
,
54
,
1029
,
/* 30 */
92
6
,
211
,
1030
,
46
,
45
,
185
,
181
,
44
,
43
,
42
,
/* 40 */
4
7
,
48
,
914
,
51
,
52
,
210
,
1030
,
214
,
41
,
555
,
/* 50 */
50
,
262
,
55
,
53
,
57
,
54
,
938
,
556
,
1026
,
205
,
/* 60 */
4
6
,
45
,
923
,
247
,
44
,
43
,
42
,
48
,
944
,
51
,
/* 70 */
5
2
,
242
,
978
,
214
,
41
,
555
,
50
,
262
,
55
,
53
,
/* 80 */
5
7
,
54
,
979
,
556
,
257
,
278
,
46
,
45
,
298
,
225
,
/* 90 */
4
4
,
43
,
42
,
509
,
510
,
511
,
512
,
513
,
514
,
515
,
/* 100 */
51
6
,
517
,
518
,
519
,
520
,
521
,
313
,
634
,
1025
,
231
,
/* 110 */
7
0
,
555
,
30
,
47
,
48
,
1024
,
51
,
52
,
825
,
556
,
/* 120 */
21
4
,
41
,
166
,
50
,
262
,
55
,
53
,
57
,
54
,
44
,
/* 130 */
4
3
,
42
,
720
,
46
,
45
,
288
,
287
,
44
,
43
,
42
,
/* 140 */
4
7
,
49
,
834
,
51
,
52
,
198
,
166
,
214
,
41
,
234
,
/* 150 */
50
,
262
,
55
,
53
,
57
,
54
,
922
,
238
,
237
,
227
,
/* 160 */
4
6
,
45
,
285
,
284
,
44
,
43
,
42
,
23
,
276
,
307
,
/* 170 */
30
6
,
275
,
274
,
273
,
305
,
272
,
304
,
303
,
302
,
271
,
/* 180 */
301
,
300
,
886
,
140
,
874
,
875
,
876
,
877
,
878
,
879
,
/* 190 */
8
80
,
881
,
882
,
883
,
884
,
885
,
887
,
888
,
51
,
52
,
/* 200 */
8
26
,
219
,
214
,
41
,
166
,
50
,
262
,
55
,
53
,
57
,
/* 210 */
5
4
,
223
,
18
,
82
,
25
,
46
,
45
,
1
,
154
,
44
,
/* 220 */
4
3
,
42
,
213
,
735
,
938
,
722
,
724
,
926
,
727
,
190
,
/* 230 */
7
30
,
226
,
213
,
735
,
140
,
191
,
724
,
912
,
727
,
20
6
,
/* 240 */
7
30
,
118
,
117
,
189
,
909
,
910
,
29
,
913
,
259
,
74
,
/* 250 */
7
8
,
726
,
30
,
729
,
200
,
201
,
221
,
36
,
261
,
199
,
/* 260 */
23
,
723
,
307
,
306
,
200
,
201
,
924
,
305
,
30
,
304
,
/* 270 */
30
3
,
302
,
74
,
301
,
300
,
894
,
183
,
308
,
892
,
893
,
/* 280 */
3
6
,
224
,
926
,
895
,
280
,
897
,
898
,
896
,
184
,
899
,
/* 290 */
900
,
920
,
658
,
217
,
69
,
655
,
923
,
656
,
725
,
657
,
/* 300 */
72
8
,
79
,
241
,
926
,
68
,
55
,
53
,
57
,
54
,
218
,
/* 310 */
19
7
,
212
,
923
,
46
,
45
,
30
,
278
,
44
,
43
,
42
,
/* 320 */
673
,
103
,
108
,
228
,
229
,
56
,
911
,
97
,
107
,
113
,
/* 330 */
11
6
,
106
,
736
,
220
,
263
,
56
,
186
,
110
,
732
,
30
,
/* 340 */
1
80
,
30
,
736
,
5
,
156
,
30
,
3
,
167
,
732
,
33
,
/* 350 */
15
5
,
92
,
87
,
91
,
731
,
6
,
281
,
701
,
702
,
923
,
/* 360 */
17
4
,
170
,
28
,
733
,
731
,
268
,
172
,
169
,
121
,
120
,
/* 370 */
11
9
,
46
,
45
,
105
,
80
,
44
,
43
,
42
,
298
,
662
,
/* 380 */
28
2
,
663
,
286
,
923
,
670
,
923
,
290
,
71
,
12
,
923
,
/* 390 */
18
7
,
24
,
84
,
188
,
81
,
311
,
310
,
126
,
677
,
243
,
/* 400 */
680
,
659
,
660
,
31
,
661
,
686
,
1040
,
692
,
245
,
135
,
/* 410 */
73
4
,
60
,
693
,
756
,
737
,
61
,
20
,
19
,
19
,
64
,
/* 420 */
644
,
265
,
646
,
267
,
31
,
31
,
60
,
83
,
645
,
67
,
/* 430 */
739
,
633
,
60
,
925
,
96
,
95
,
194
,
62
,
195
,
65
,
/* 440 */
19
3
,
14
,
13
,
102
,
101
,
115
,
114
,
131
,
129
,
16
,
/* 450 */
15
,
178
,
192
,
182
,
989
,
988
,
215
,
239
,
985
,
132
,
/* 460 */
9
84
,
216
,
289
,
946
,
39
,
971
,
954
,
956
,
134
,
138
,
/* 470 */
970
,
939
,
246
,
130
,
921
,
151
,
919
,
150
,
152
,
153
,
/* 480 */
248
,
837
,
270
,
685
,
890
,
299
,
104
,
291
,
148
,
37
,
/* 490 */
145
,
176
,
936
,
141
,
34
,
58
,
207
,
250
,
255
,
66
,
/* 500 */
63
,
142
,
279
,
833
,
1045
,
260
,
143
,
258
,
144
,
256
,
/* 510 */
93
,
1044
,
1042
,
254
,
157
,
146
,
283
,
1039
,
99
,
103
8
,
/* 520 */
1036
,
252
,
158
,
855
,
35
,
32
,
38
,
177
,
249
,
822
,
/* 530 */
109
,
820
,
111
,
112
,
818
,
817
,
230
,
168
,
815
,
814
,
/* 540 */
813
,
812
,
811
,
810
,
171
,
173
,
807
,
805
,
803
,
801
,
/* 550 */
799
,
175
,
40
,
244
,
72
,
75
,
251
,
292
,
972
,
293
,
/* 560 */
294
,
296
,
295
,
297
,
309
,
776
,
202
,
222
,
269
,
232
,
/* 570 */
23
3
,
203
,
775
,
235
,
88
,
89
,
236
,
196
,
774
,
762
,
/* 580 */
761
,
240
,
245
,
8
,
73
,
264
,
209
,
665
,
687
,
816
,
/* 590 */
165
,
856
,
161
,
159
,
160
,
122
,
162
,
163
,
123
,
164
,
/* 600 */
809
,
2
,
76
,
124
,
125
,
808
,
800
,
136
,
137
,
4
,
/* 610 */
690
,
1
49
,
147
,
77
,
253
,
26
,
694
,
139
,
902
,
9
,
/* 620 */
10
,
27
,
738
,
7
,
11
,
740
,
21
,
22
,
266
,
86
,
/* 630 */
5
97
,
593
,
84
,
591
,
590
,
589
,
586
,
559
,
277
,
90
,
/* 640 */
94
,
31
,
636
,
59
,
635
,
632
,
581
,
579
,
571
,
577
,
/* 650 */
5
73
,
575
,
569
,
567
,
98
,
100
,
600
,
599
,
598
,
596
,
/* 660 */
595
,
594
,
592
,
588
,
587
,
60
,
557
,
525
,
523
,
780
,
/* 670 */
127
,
128
,
/* 0 */
13
2
,
552
,
203
,
310
,
206
,
139
,
943
,
17
,
84
,
553
,
/* 10 */
77
4
,
312
,
178
,
46
,
47
,
139
,
50
,
51
,
29
,
180
,
/* 20 */
21
2
,
40
,
180
,
49
,
260
,
54
,
52
,
56
,
53
,
1024
,
/* 30 */
92
2
,
209
,
1025
,
45
,
44
,
184
,
180
,
43
,
42
,
41
,
/* 40 */
4
6
,
47
,
910
,
50
,
51
,
208
,
1025
,
212
,
40
,
552
,
/* 50 */
49
,
260
,
54
,
52
,
56
,
53
,
934
,
553
,
1021
,
204
,
/* 60 */
4
5
,
44
,
919
,
245
,
43
,
42
,
41
,
47
,
940
,
50
,
/* 70 */
5
1
,
241
,
973
,
212
,
40
,
552
,
49
,
260
,
54
,
52
,
/* 80 */
5
6
,
53
,
974
,
553
,
255
,
217
,
45
,
44
,
276
,
223
,
/* 90 */
4
3
,
42
,
41
,
506
,
507
,
508
,
509
,
510
,
511
,
512
,
/* 100 */
51
3
,
514
,
515
,
516
,
517
,
518
,
311
,
631
,
1020
,
229
,
/* 110 */
7
1
,
922
,
29
,
46
,
47
,
1019
,
50
,
51
,
821
,
219
,
/* 120 */
21
2
,
40
,
165
,
49
,
260
,
54
,
52
,
56
,
53
,
43
,
/* 130 */
4
2
,
41
,
716
,
45
,
44
,
286
,
285
,
43
,
42
,
41
,
/* 140 */
4
6
,
48
,
296
,
50
,
51
,
922
,
908
,
212
,
40
,
232
,
/* 150 */
49
,
260
,
54
,
52
,
56
,
53
,
918
,
236
,
235
,
225
,
/* 160 */
4
5
,
44
,
283
,
282
,
43
,
42
,
41
,
23
,
274
,
305
,
/* 170 */
30
4
,
273
,
272
,
271
,
303
,
270
,
302
,
301
,
300
,
269
,
/* 180 */
299
,
298
,
882
,
139
,
870
,
871
,
872
,
873
,
874
,
875
,
/* 190 */
8
76
,
877
,
878
,
879
,
880
,
881
,
883
,
884
,
50
,
51
,
/* 200 */
8
30
,
306
,
212
,
40
,
165
,
49
,
260
,
54
,
52
,
56
,
/* 210 */
5
3
,
221
,
18
,
81
,
916
,
45
,
44
,
69
,
197
,
43
,
/* 220 */
4
2
,
41
,
211
,
731
,
139
,
276
,
720
,
922
,
723
,
189
,
/* 230 */
7
26
,
224
,
211
,
731
,
104
,
190
,
720
,
198
,
723
,
29
6
,
/* 240 */
7
26
,
117
,
116
,
188
,
905
,
906
,
28
,
909
,
257
,
907
,
/* 250 */
7
7
,
722
,
29
,
725
,
199
,
200
,
218
,
242
,
259
,
261
,
/* 260 */
23
,
30
,
305
,
304
,
199
,
200
,
920
,
303
,
29
,
302
,
/* 270 */
30
1
,
300
,
70
,
299
,
298
,
890
,
3
,
166
,
888
,
889
,
/* 280 */
3
5
,
222
,
182
,
891
,
278
,
893
,
894
,
892
,
79
,
895
,
/* 290 */
896
,
78
,
655
,
215
,
183
,
652
,
919
,
653
,
721
,
654
,
/* 300 */
72
4
,
72
,
239
,
70
,
67
,
54
,
52
,
56
,
53
,
216
,
/* 310 */
19
6
,
35
,
919
,
45
,
44
,
29
,
822
,
43
,
42
,
41
,
/* 320 */
165
,
102
,
107
,
226
,
227
,
55
,
670
,
96
,
106
,
112
,
/* 330 */
11
5
,
105
,
732
,
1
,
153
,
55
,
185
,
109
,
728
,
29
,
/* 340 */
1
79
,
29
,
732
,
5
,
155
,
29
,
697
,
698
,
728
,
32
,
/* 350 */
15
4
,
91
,
86
,
90
,
727
,
735
,
279
,
60
,
667
,
919
,
/* 360 */
17
3
,
169
,
718
,
729
,
727
,
24
,
171
,
168
,
120
,
119
,
/* 370 */
11
8
,
45
,
44
,
210
,
682
,
43
,
42
,
41
,
134
,
61
,
/* 380 */
28
0
,
27
,
284
,
919
,
266
,
919
,
288
,
688
,
12
,
919
,
/* 390 */
18
6
,
59
,
83
,
187
,
80
,
309
,
308
,
125
,
719
,
689
,
/* 400 */
63
,
656
,
752
,
20
,
674
,
733
,
19
,
641
,
263
,
19
,
/* 410 */
73
0
,
30
,
30
,
193
,
643
,
265
,
194
,
6
,
59
,
82
,
/* 420 */
64
,
642
,
192
,
95
,
94
,
59
,
14
,
13
,
114
,
113
,
/* 430 */
101
,
100
,
66
,
659
,
630
,
660
,
177
,
16
,
15
,
657
,
/* 440 */
19
1
,
658
,
130
,
128
,
181
,
1035
,
921
,
237
,
935
,
984
,
/* 450 */
983
,
213
,
980
,
979
,
214
,
287
,
131
,
942
,
38
,
966
,
/* 460 */
9
49
,
951
,
133
,
244
,
137
,
965
,
917
,
129
,
150
,
149
,
/* 470 */
243
,
246
,
205
,
915
,
681
,
297
,
151
,
152
,
886
,
148
,
/* 480 */
146
,
144
,
141
,
932
,
140
,
833
,
268
,
57
,
248
,
253
,
/* 490 */
65
,
36
,
258
,
62
,
175
,
33
,
277
,
829
,
1040
,
142
,
/* 500 */
256
,
92
,
1039
,
143
,
1037
,
156
,
254
,
281
,
1034
,
98
,
/* 510 */
1033
,
1031
,
157
,
851
,
34
,
31
,
37
,
176
,
252
,
81
8
,
/* 520 */
108
,
250
,
816
,
110
,
111
,
814
,
813
,
228
,
247
,
167
,
/* 530 */
811
,
810
,
809
,
808
,
807
,
806
,
170
,
172
,
803
,
801
,
/* 540 */
799
,
797
,
103
,
795
,
174
,
39
,
73
,
74
,
289
,
249
,
/* 550 */
967
,
290
,
291
,
292
,
293
,
294
,
295
,
201
,
220
,
267
,
/* 560 */
307
,
772
,
230
,
231
,
202
,
87
,
195
,
88
,
771
,
233
,
/* 570 */
23
4
,
770
,
758
,
757
,
812
,
238
,
8
,
68
,
240
,
805
,
/* 580 */
160
,
121
,
159
,
852
,
158
,
161
,
162
,
164
,
122
,
163
,
/* 590 */
2
,
123
,
804
,
4
,
262
,
124
,
796
,
662
,
75
,
683
,
/* 600 */
135
,
207
,
686
,
76
,
147
,
145
,
898
,
136
,
251
,
9
,
/* 610 */
690
,
1
38
,
25
,
10
,
734
,
26
,
7
,
11
,
21
,
736
,
/* 620 */
22
,
85
,
264
,
594
,
590
,
83
,
588
,
587
,
586
,
583
,
/* 630 */
5
56
,
275
,
93
,
89
,
30
,
633
,
58
,
632
,
629
,
578
,
/* 640 */
576
,
97
,
568
,
574
,
570
,
572
,
566
,
564
,
597
,
99
,
/* 650 */
5
96
,
595
,
593
,
592
,
591
,
589
,
585
,
584
,
59
,
554
,
/* 660 */
776
,
522
,
520
,
775
,
775
,
126
,
775
,
775
,
775
,
775
,
/* 670 */
775
,
775
,
775
,
775
,
127
,
};
static
const
YYCODETYPE
yy_lookahead
[]
=
{
/* 0 */
190
,
1
,
189
,
190
,
209
,
190
,
190
,
251
,
196
,
9
,
...
...
@@ -295,66 +295,66 @@ static const YYCODETYPE yy_lookahead[] = {
/* 50 */
23
,
24
,
25
,
26
,
27
,
28
,
233
,
9
,
251
,
231
,
/* 60 */
33
,
34
,
234
,
253
,
37
,
38
,
39
,
14
,
252
,
16
,
/* 70 */
17
,
248
,
257
,
20
,
21
,
1
,
23
,
24
,
25
,
26
,
/* 80 */
27
,
28
,
257
,
9
,
259
,
79
,
33
,
34
,
81
,
67
,
/* 80 */
27
,
28
,
257
,
9
,
259
,
209
,
33
,
34
,
79
,
67
,
/* 90 */
37
,
38
,
39
,
45
,
46
,
47
,
48
,
49
,
50
,
51
,
/* 100 */
52
,
53
,
54
,
55
,
56
,
57
,
58
,
5
,
251
,
61
,
/* 110 */
110
,
1
,
190
,
13
,
14
,
251
,
16
,
17
,
195
,
9
,
/* 110 */
110
,
235
,
190
,
13
,
14
,
251
,
16
,
17
,
195
,
20
9
,
/* 120 */
20
,
21
,
199
,
23
,
24
,
25
,
26
,
27
,
28
,
37
,
/* 130 */
38
,
39
,
105
,
33
,
34
,
33
,
34
,
37
,
38
,
39
,
/* 140 */
13
,
14
,
195
,
16
,
17
,
251
,
199
,
20
,
21
,
135
,
/* 140 */
13
,
14
,
81
,
16
,
17
,
235
,
0
,
20
,
21
,
135
,
/* 150 */
23
,
24
,
25
,
26
,
27
,
28
,
234
,
143
,
144
,
137
,
/* 160 */
33
,
34
,
140
,
141
,
37
,
38
,
39
,
88
,
89
,
90
,
/* 170 */
91
,
92
,
93
,
94
,
95
,
96
,
97
,
98
,
99
,
100
,
/* 180 */
101
,
102
,
208
,
190
,
210
,
211
,
212
,
213
,
214
,
215
,
/* 190 */
216
,
217
,
218
,
219
,
220
,
221
,
222
,
223
,
16
,
17
,
/* 200 */
195
,
209
,
20
,
21
,
199
,
23
,
24
,
25
,
26
,
27
,
/* 210 */
28
,
67
,
44
,
196
,
1
04
,
33
,
34
,
197
,
198
,
37
,
/* 220 */
38
,
39
,
1
,
2
,
233
,
1
,
5
,
235
,
7
,
61
,
/* 230 */
9
,
190
,
1
,
2
,
190
,
67
,
5
,
0
,
7
,
248
,
/* 240 */
9
,
73
,
74
,
75
,
227
,
228
,
229
,
230
,
255
,
104
,
/* 250 */
257
,
5
,
190
,
7
,
33
,
34
,
2
09
,
112
,
37
,
251
,
/* 260 */
88
,
37
,
90
,
91
,
33
,
34
,
225
,
95
,
190
,
97
,
/* 270 */
98
,
99
,
104
,
101
,
102
,
208
,
251
,
209
,
211
,
212
,
/* 280 */
112
,
137
,
2
35
,
216
,
140
,
218
,
219
,
220
,
251
,
222
,
/* 290 */
223
,
190
,
2
,
231
,
196
,
5
,
234
,
7
,
5
,
9
,
/* 300 */
7
,
2
57
,
134
,
235
,
136
,
25
,
26
,
27
,
28
,
231
,
/* 310 */
142
,
60
,
234
,
33
,
34
,
190
,
79
,
37
,
38
,
39
,
/* 320 */
37
,
62
,
63
,
33
,
34
,
104
,
228
,
68
,
69
,
70
,
/* 330 */
71
,
72
,
111
,
232
,
15
,
104
,
251
,
78
,
117
,
190
,
/* 340 */
251
,
190
,
111
,
62
,
63
,
190
,
1
93
,
194
,
117
,
68
,
/* 350 */
69
,
70
,
71
,
72
,
133
,
1
04
,
231
,
124
,
125
,
234
,
/* 360 */
62
,
63
,
104
,
117
,
133
,
107
,
68
,
69
,
70
,
71
,
/* 370 */
72
,
33
,
34
,
76
,
236
,
37
,
38
,
39
,
81
,
5
,
/* 380 */
231
,
7
,
231
,
234
,
109
,
234
,
231
,
249
,
104
,
234
,
/* 390 */
251
,
1
16
,
108
,
251
,
110
,
64
,
65
,
66
,
115
,
105
,
/* 400 */
10
5
,
111
,
5
,
109
,
7
,
105
,
235
,
105
,
113
,
109
,
/* 410 */
117
,
109
,
10
5
,
105
,
105
,
109
,
109
,
109
,
109
,
109
,
/* 420 */
1
05
,
105
,
105
,
105
,
109
,
109
,
109
,
109
,
105
,
104
,
/* 430 */
1
11
,
106
,
109
,
235
,
138
,
139
,
251
,
131
,
251
,
129
,
/* 440 */
251
,
138
,
139
,
138
,
139
,
76
,
77
,
62
,
63
,
138
,
/* 450 */
139
,
251
,
251
,
251
,
226
,
226
,
226
,
190
,
226
,
190
,
/* 460 */
226
,
226
,
226
,
190
,
250
,
258
,
190
,
190
,
190
,
190
,
/* 470 */
258
,
233
,
233
,
60
,
233
,
190
,
190
,
237
,
190
,
190
,
/* 480 */
2
54
,
190
,
190
,
117
,
224
,
103
,
87
,
86
,
239
,
190
,
/* 490 */
242
,
190
,
247
,
246
,
190
,
127
,
254
,
254
,
254
,
128
,
/* 500 */
1
30
,
245
,
190
,
190
,
190
,
122
,
244
,
126
,
243
,
121
,
/* 510 */
190
,
190
,
190
,
1
20
,
190
,
241
,
190
,
190
,
19
0
,
190
,
/* 210 */
28
,
67
,
44
,
196
,
1
90
,
33
,
34
,
196
,
251
,
37
,
/* 220 */
38
,
39
,
1
,
2
,
190
,
79
,
5
,
235
,
7
,
61
,
/* 230 */
9
,
190
,
1
,
2
,
76
,
67
,
5
,
251
,
7
,
81
,
/* 240 */
9
,
73
,
74
,
75
,
227
,
228
,
229
,
230
,
255
,
228
,
/* 250 */
257
,
5
,
190
,
7
,
33
,
34
,
2
32
,
105
,
37
,
15
,
/* 260 */
88
,
109
,
90
,
91
,
33
,
34
,
225
,
95
,
190
,
97
,
/* 270 */
98
,
99
,
104
,
101
,
102
,
208
,
193
,
194
,
211
,
212
,
/* 280 */
112
,
137
,
2
51
,
216
,
140
,
218
,
219
,
220
,
236
,
222
,
/* 290 */
223
,
257
,
2
,
231
,
251
,
5
,
234
,
7
,
5
,
9
,
/* 300 */
7
,
2
49
,
134
,
104
,
136
,
25
,
26
,
27
,
28
,
231
,
/* 310 */
142
,
112
,
234
,
33
,
34
,
190
,
195
,
37
,
38
,
39
,
/* 320 */
199
,
62
,
63
,
33
,
34
,
104
,
37
,
68
,
69
,
70
,
/* 330 */
71
,
72
,
111
,
197
,
198
,
104
,
251
,
78
,
117
,
190
,
/* 340 */
251
,
190
,
111
,
62
,
63
,
190
,
1
24
,
125
,
117
,
68
,
/* 350 */
69
,
70
,
71
,
72
,
133
,
1
11
,
231
,
109
,
109
,
234
,
/* 360 */
62
,
63
,
1
,
117
,
133
,
116
,
68
,
69
,
70
,
71
,
/* 370 */
72
,
33
,
34
,
60
,
105
,
37
,
38
,
39
,
109
,
131
,
/* 380 */
231
,
104
,
231
,
234
,
107
,
234
,
231
,
105
,
104
,
234
,
/* 390 */
251
,
1
09
,
108
,
251
,
110
,
64
,
65
,
66
,
37
,
105
,
/* 400 */
10
9
,
111
,
105
,
109
,
115
,
105
,
109
,
105
,
105
,
109
,
/* 410 */
117
,
109
,
10
9
,
251
,
105
,
105
,
251
,
104
,
109
,
109
,
/* 420 */
1
29
,
105
,
251
,
138
,
139
,
109
,
138
,
139
,
76
,
77
,
/* 430 */
1
38
,
139
,
104
,
5
,
106
,
7
,
251
,
138
,
139
,
5
,
/* 440 */
251
,
7
,
62
,
63
,
251
,
235
,
235
,
190
,
233
,
226
,
/* 450 */
226
,
226
,
226
,
226
,
226
,
226
,
190
,
190
,
250
,
258
,
/* 460 */
190
,
190
,
190
,
233
,
190
,
258
,
233
,
60
,
190
,
237
,
/* 470 */
191
,
254
,
254
,
190
,
117
,
103
,
190
,
190
,
224
,
238
,
/* 480 */
2
40
,
242
,
245
,
247
,
246
,
190
,
190
,
127
,
254
,
254
,
/* 490 */
128
,
190
,
122
,
130
,
190
,
190
,
190
,
190
,
190
,
244
,
/* 500 */
1
26
,
190
,
190
,
243
,
190
,
190
,
121
,
190
,
190
,
190
,
/* 510 */
190
,
190
,
190
,
1
90
,
190
,
190
,
190
,
190
,
12
0
,
190
,
/* 520 */
190
,
119
,
190
,
190
,
190
,
190
,
190
,
190
,
118
,
190
,
/* 530 */
190
,
190
,
190
,
190
,
190
,
190
,
190
,
190
,
190
,
190
,
/* 540 */
190
,
190
,
190
,
190
,
190
,
190
,
190
,
190
,
190
,
190
,
/* 550 */
19
0
,
190
,
132
,
191
,
191
,
191
,
191
,
50
,
191
,
83
,
/* 560 */
85
,
84
,
54
,
82
,
79
,
5
,
191
,
191
,
191
,
145
,
/* 570 */
5
,
191
,
5
,
145
,
196
,
196
,
5
,
191
,
5
,
90
,
/* 580 */
89
,
135
,
113
,
104
,
114
,
107
,
1
,
105
,
105
,
191
,
/* 590 */
200
,
207
,
201
,
206
,
205
,
192
,
204
,
202
,
192
,
203
,
/* 600 */
1
91
,
197
,
109
,
192
,
192
,
191
,
191
,
104
,
109
,
19
3
,
/* 610 */
105
,
238
,
240
,
104
,
104
,
109
,
105
,
104
,
224
,
123
,
/* 620 */
1
23
,
109
,
105
,
104
,
104
,
111
,
104
,
104
,
107
,
76
,
/* 630 */
9
,
5
,
108
,
5
,
5
,
5
,
5
,
80
,
15
,
76
,
/* 640 */
139
,
109
,
5
,
16
,
5
,
105
,
5
,
5
,
5
,
5
,
/* 650 */
5
,
5
,
5
,
5
,
139
,
139
,
5
,
5
,
5
,
5
,
/* 660 */
5
,
5
,
5
,
5
,
5
,
109
,
80
,
60
,
59
,
0
,
/* 670 */
21
,
21
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
/* 540 */
190
,
190
,
87
,
190
,
190
,
132
,
191
,
191
,
86
,
191
,
/* 550 */
19
1
,
50
,
83
,
85
,
54
,
84
,
82
,
191
,
191
,
191
,
/* 560 */
79
,
5
,
145
,
5
,
191
,
196
,
191
,
196
,
5
,
145
,
/* 570 */
5
,
5
,
90
,
89
,
191
,
135
,
104
,
114
,
113
,
191
,
/* 580 */
201
,
192
,
205
,
207
,
206
,
204
,
202
,
200
,
192
,
203
,
/* 590 */
197
,
192
,
191
,
193
,
107
,
192
,
191
,
105
,
109
,
105
,
/* 600 */
1
04
,
1
,
105
,
104
,
239
,
241
,
224
,
109
,
104
,
12
3
,
/* 610 */
105
,
104
,
109
,
123
,
105
,
109
,
104
,
104
,
104
,
111
,
/* 620 */
1
04
,
76
,
107
,
9
,
5
,
108
,
5
,
5
,
5
,
5
,
/* 630 */
80
,
15
,
139
,
76
,
109
,
5
,
16
,
5
,
105
,
5
,
/* 640 */
5
,
139
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
139
,
/* 650 */
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
109
,
80
,
/* 660 */
0
,
60
,
59
,
262
,
262
,
21
,
262
,
262
,
262
,
262
,
/* 670 */
262
,
262
,
262
,
262
,
21
,
262
,
262
,
262
,
262
,
262
,
/* 680 */
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
/* 690 */
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
/* 700 */
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
...
...
@@ -372,101 +372,102 @@ static const YYCODETYPE yy_lookahead[] = {
/* 820 */
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
/* 830 */
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
/* 840 */
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
/* 850 */
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
/* 850 */
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
262
,
/* 860 */
262
,
262
,
};
#define YY_SHIFT_COUNT (31
4
)
#define YY_SHIFT_COUNT (31
2
)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (66
9
)
#define YY_SHIFT_MAX (66
0
)
static
const
unsigned
short
int
yy_shift_ofst
[]
=
{
/* 0 */
168
,
79
,
79
,
172
,
172
,
6
,
221
,
231
,
74
,
74
,
/* 0 */
168
,
79
,
79
,
172
,
172
,
9
,
221
,
231
,
74
,
74
,
/* 10 */
74
,
74
,
74
,
74
,
74
,
74
,
74
,
0
,
48
,
231
,
/* 20 */
290
,
290
,
290
,
290
,
110
,
145
,
74
,
74
,
74
,
237
,
/* 30 */
74
,
74
,
297
,
6
,
7
,
7
,
672
,
672
,
672
,
231
,
/* 20 */
290
,
290
,
290
,
290
,
74
,
74
,
74
,
74
,
146
,
74
,
/* 30 */
74
,
158
,
9
,
61
,
61
,
675
,
675
,
675
,
231
,
231
,
/* 40 */
231
,
231
,
231
,
231
,
231
,
231
,
231
,
231
,
231
,
231
,
/* 50 */
231
,
231
,
231
,
231
,
231
,
231
,
231
,
231
,
2
31
,
290
,
/* 60 */
290
,
102
,
102
,
102
,
102
,
102
,
102
,
102
,
74
,
74
,
/* 70 */
74
,
283
,
74
,
145
,
145
,
74
,
74
,
74
,
233
,
233
,
/* 80 */
275
,
145
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
/* 50 */
231
,
231
,
231
,
231
,
231
,
231
,
231
,
231
,
2
90
,
290
,
/* 60 */
102
,
102
,
102
,
102
,
102
,
102
,
102
,
74
,
199
,
74
,
/* 70 */
199
,
74
,
289
,
74
,
74
,
74
,
74
,
222
,
222
,
249
,
/* 80 */
199
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
/* 90 */
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
/* 100 */
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
/* 110 */
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
/* 120 */
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
74
,
/* 130 */
74
,
74
,
413
,
413
,
413
,
366
,
366
,
366
,
413
,
366
,
/* 140 */
413
,
371
,
370
,
368
,
383
,
381
,
388
,
393
,
402
,
410
,
/* 150 */
4
20
,
413
,
413
,
413
,
382
,
6
,
6
,
413
,
413
,
399
,
/* 160 */
401
,
507
,
476
,
475
,
508
,
477
,
481
,
382
,
413
,
485
,
/* 170 */
4
85
,
413
,
485
,
413
,
485
,
413
,
672
,
672
,
27
,
100
,
/* 180 */
1
27
,
100
,
100
,
53
,
182
,
280
,
280
,
280
,
280
,
259
,
/* 190 */
2
81
,
298
,
338
,
338
,
338
,
338
,
22
,
14
,
92
,
92
,
/* 200 */
2
46
,
293
,
284
,
144
,
331
,
294
,
295
,
300
,
302
,
307
,
/* 210 */
3
08
,
309
,
224
,
251
,
319
,
306
,
310
,
315
,
316
,
317
,
/* 220 */
318
,
323
,
258
,
296
,
303
,
305
,
325
,
311
,
374
,
397
,
/* 230 */
369
,
385
,
560
,
424
,
565
,
567
,
428
,
571
,
573
,
489
,
/* 240 */
4
91
,
446
,
469
,
478
,
479
,
470
,
482
,
493
,
483
,
503
,
/* 250 */
505
,
499
,
509
,
585
,
510
,
511
,
513
,
506
,
496
,
512
,
/* 260 */
497
,
517
,
519
,
514
,
520
,
478
,
522
,
521
,
523
,
52
4
,
/* 270 */
553
,
621
,
626
,
628
,
629
,
630
,
631
,
557
,
623
,
563
,
/* 280 */
5
01
,
532
,
532
,
627
,
515
,
516
,
532
,
637
,
639
,
540
,
/* 290 */
532
,
641
,
642
,
643
,
644
,
645
,
646
,
647
,
648
,
651
,
/* 300 */
6
52
,
653
,
654
,
655
,
656
,
657
,
658
,
659
,
556
,
586
,
/* 310 */
6
49
,
650
,
607
,
609
,
669
,
/* 130 */
74
,
407
,
407
,
407
,
357
,
357
,
357
,
407
,
357
,
407
,
/* 140 */
362
,
363
,
360
,
370
,
374
,
385
,
398
,
402
,
410
,
413
,
/* 150 */
4
07
,
407
,
407
,
372
,
9
,
9
,
407
,
407
,
455
,
462
,
/* 160 */
501
,
469
,
468
,
500
,
471
,
474
,
372
,
407
,
481
,
481
,
/* 170 */
4
07
,
481
,
407
,
481
,
407
,
675
,
675
,
27
,
100
,
127
,
/* 180 */
1
00
,
100
,
53
,
182
,
280
,
280
,
280
,
280
,
259
,
281
,
/* 190 */
2
98
,
338
,
338
,
338
,
338
,
22
,
14
,
92
,
92
,
246
,
/* 200 */
2
93
,
284
,
144
,
331
,
152
,
269
,
282
,
294
,
297
,
300
,
/* 210 */
3
61
,
313
,
244
,
248
,
291
,
302
,
303
,
309
,
310
,
316
,
/* 220 */
277
,
285
,
288
,
292
,
328
,
299
,
428
,
434
,
352
,
380
,
/* 230 */
556
,
417
,
558
,
563
,
424
,
565
,
566
,
482
,
484
,
440
,
/* 240 */
4
63
,
465
,
487
,
472
,
492
,
489
,
494
,
496
,
497
,
498
,
/* 250 */
499
,
600
,
504
,
505
,
507
,
503
,
486
,
506
,
490
,
509
,
/* 260 */
512
,
508
,
513
,
487
,
514
,
515
,
516
,
517
,
545
,
61
4
,
/* 270 */
619
,
621
,
622
,
623
,
624
,
550
,
616
,
557
,
493
,
525
,
/* 280 */
5
25
,
620
,
502
,
510
,
525
,
630
,
632
,
533
,
525
,
634
,
/* 290 */
635
,
637
,
638
,
639
,
640
,
641
,
642
,
643
,
645
,
646
,
/* 300 */
6
47
,
648
,
649
,
650
,
651
,
652
,
549
,
579
,
644
,
653
,
/* 310 */
6
01
,
603
,
660
,
};
#define YY_REDUCE_COUNT (17
7
)
#define YY_REDUCE_COUNT (17
6
)
#define YY_REDUCE_MIN (-244)
#define YY_REDUCE_MAX (4
16
)
#define YY_REDUCE_MAX (4
05
)
static
const
short
yy_reduce_ofst
[]
=
{
/* 0 */
-
177
,
-
26
,
-
26
,
67
,
67
,
17
,
-
229
,
-
215
,
-
172
,
-
175
,
/* 10 */
-
7
,
62
,
78
,
125
,
149
,
151
,
155
,
-
184
,
-
187
,
-
232
,
/* 20 */
-
205
,
-
8
,
47
,
68
,
-
190
,
-
9
,
-
185
,
44
,
101
,
-
188
,
/* 30 */
41
,
-
78
,
-
77
,
98
,
-
53
,
5
,
138
,
20
,
153
,
-
244
,
/* 40 */
-
2
39
,
-
216
,
-
193
,
-
143
,
-
136
,
-
106
,
8
,
25
,
37
,
85
,
/* 50 */
89
,
139
,
142
,
185
,
187
,
189
,
200
,
201
,
202
,
17
1
,
/* 60 */
198
,
228
,
229
,
230
,
232
,
234
,
235
,
236
,
267
,
269
,
/* 70 */
2
73
,
214
,
276
,
238
,
239
,
277
,
278
,
279
,
207
,
21
2
,
/* 80 */
2
40
,
241
,
285
,
286
,
288
,
289
,
291
,
292
,
299
,
301
,
/* 90 */
30
4
,
312
,
313
,
314
,
320
,
321
,
322
,
324
,
326
,
327
,
/* 100 */
32
8
,
329
,
330
,
332
,
333
,
334
,
335
,
336
,
337
,
339
,
/* 110 */
3
40
,
341
,
342
,
343
,
344
,
345
,
346
,
347
,
348
,
349
,
/* 120 */
3
50
,
351
,
352
,
353
,
354
,
355
,
356
,
357
,
358
,
359
,
/* 130 */
3
60
,
361
,
362
,
363
,
364
,
226
,
242
,
243
,
365
,
244
,
/* 140 */
367
,
245
,
247
,
256
,
262
,
265
,
248
,
274
,
372
,
249
,
/* 150 */
3
73
,
375
,
376
,
377
,
260
,
378
,
379
,
380
,
386
,
384
,
/* 160 */
3
87
,
389
,
391
,
392
,
395
,
396
,
390
,
394
,
398
,
403
,
/* 170 */
406
,
409
,
411
,
414
,
412
,
415
,
404
,
416
,
/* 20 */
-
205
,
-
124
,
-
90
,
-
8
,
-
190
,
-
185
,
34
,
24
,
-
188
,
41
,
/* 30 */
-
78
,
-
77
,
21
,
5
,
121
,
52
,
136
,
83
,
-
244
,
-
239
,
/* 40 */
-
2
16
,
-
193
,
-
143
,
-
136
,
-
33
,
-
14
,
31
,
43
,
85
,
89
,
/* 50 */
139
,
142
,
162
,
165
,
171
,
185
,
189
,
193
,
210
,
21
1
,
/* 60 */
223
,
224
,
225
,
226
,
227
,
228
,
229
,
257
,
215
,
266
,
/* 70 */
2
30
,
267
,
208
,
270
,
271
,
272
,
274
,
201
,
207
,
23
2
,
/* 80 */
2
33
,
278
,
283
,
286
,
287
,
295
,
296
,
301
,
304
,
305
,
/* 90 */
30
6
,
307
,
308
,
311
,
312
,
314
,
315
,
317
,
318
,
319
,
/* 100 */
32
0
,
321
,
322
,
323
,
324
,
325
,
326
,
327
,
329
,
330
,
/* 110 */
3
32
,
333
,
334
,
335
,
336
,
337
,
339
,
340
,
341
,
342
,
/* 120 */
3
43
,
344
,
345
,
346
,
347
,
348
,
349
,
350
,
351
,
353
,
/* 130 */
3
54
,
279
,
355
,
356
,
217
,
218
,
234
,
358
,
235
,
359
,
/* 140 */
236
,
238
,
237
,
255
,
260
,
239
,
364
,
240
,
365
,
241
,
/* 150 */
3
66
,
367
,
368
,
254
,
369
,
371
,
373
,
375
,
376
,
378
,
/* 160 */
3
77
,
379
,
381
,
384
,
386
,
387
,
382
,
383
,
389
,
396
,
/* 170 */
388
,
399
,
401
,
403
,
405
,
393
,
400
,
};
static
const
YYACTIONTYPE
yy_default
[]
=
{
/* 0 */
77
7
,
889
,
835
,
901
,
823
,
832
,
1032
,
1032
,
777
,
777
,
/* 10 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
948
,
796
,
1032
,
/* 20 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
832
,
/* 30 */
77
7
,
777
,
838
,
832
,
838
,
838
,
943
,
873
,
891
,
777
,
/* 40 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 50 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 60 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 70 */
77
7
,
950
,
953
,
777
,
777
,
955
,
777
,
777
,
975
,
975
,
/* 80 */
941
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 90 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 100 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
821
,
/* 110 */
777
,
819
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 120 */
77
7
,
777
,
777
,
777
,
777
,
777
,
806
,
777
,
777
,
777
,
/* 130 */
77
7
,
777
,
798
,
798
,
798
,
777
,
777
,
777
,
798
,
777
,
/* 140 */
798
,
982
,
986
,
980
,
968
,
976
,
967
,
963
,
961
,
960
,
/* 150 */
990
,
798
,
798
,
798
,
836
,
832
,
832
,
798
,
798
,
854
,
/* 160 */
8
52
,
850
,
842
,
848
,
844
,
846
,
840
,
824
,
798
,
830
,
/* 170 */
830
,
798
,
830
,
798
,
830
,
798
,
873
,
891
,
777
,
991
,
/* 180 */
777
,
1031
,
981
,
1021
,
1020
,
1027
,
1019
,
1018
,
1017
,
777
,
/* 190 */
77
7
,
777
,
1013
,
1014
,
1016
,
1015
,
777
,
777
,
1023
,
1022
,
/* 200 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 210 */
77
7
,
777
,
777
,
993
,
777
,
987
,
983
,
777
,
777
,
777
,
/* 220 */
77
7
,
777
,
777
,
777
,
777
,
777
,
903
,
777
,
777
,
777
,
/* 230 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 240 */
77
7
,
777
,
940
,
777
,
777
,
777
,
777
,
951
,
777
,
777
,
/* 250 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
977
,
777
,
969
,
/* 260 */
77
7
,
777
,
777
,
777
,
777
,
915
,
777
,
777
,
777
,
777
,
/* 270 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 280 */
777
,
1043
,
1041
,
777
,
777
,
777
,
1037
,
777
,
777
,
777
,
/* 290 */
1035
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
/* 300 */
77
7
,
777
,
777
,
777
,
777
,
777
,
777
,
777
,
857
,
777
,
/* 310 */
804
,
802
,
777
,
794
,
777
,
/* 0 */
77
3
,
885
,
831
,
897
,
819
,
828
,
1027
,
1027
,
773
,
773
,
/* 10 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
944
,
792
,
1027
,
/* 20 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
828
,
773
,
/* 30 */
77
3
,
834
,
828
,
834
,
834
,
939
,
869
,
887
,
773
,
773
,
/* 40 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 50 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 60 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 70 */
77
3
,
773
,
946
,
948
,
950
,
773
,
773
,
970
,
970
,
937
,
/* 80 */
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 90 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 100 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
817
,
773
,
/* 110 */
815
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 120 */
77
3
,
773
,
773
,
773
,
773
,
802
,
773
,
773
,
773
,
773
,
/* 130 */
77
3
,
794
,
794
,
794
,
773
,
773
,
773
,
794
,
773
,
794
,
/* 140 */
977
,
981
,
975
,
963
,
971
,
962
,
958
,
956
,
955
,
985
,
/* 150 */
794
,
794
,
794
,
832
,
828
,
828
,
794
,
794
,
850
,
848
,
/* 160 */
8
46
,
838
,
844
,
840
,
842
,
836
,
820
,
794
,
826
,
826
,
/* 170 */
794
,
826
,
794
,
826
,
794
,
869
,
887
,
773
,
986
,
773
,
/* 180 */
1026
,
976
,
1016
,
1015
,
1022
,
1014
,
1013
,
1012
,
773
,
773
,
/* 190 */
77
3
,
1008
,
1009
,
1011
,
1010
,
773
,
773
,
1018
,
1017
,
773
,
/* 200 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 210 */
77
3
,
988
,
773
,
982
,
978
,
773
,
773
,
773
,
773
,
773
,
/* 220 */
77
3
,
773
,
773
,
773
,
899
,
773
,
773
,
773
,
773
,
773
,
/* 230 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 240 */
77
3
,
936
,
773
,
773
,
773
,
947
,
773
,
773
,
773
,
773
,
/* 250 */
77
3
,
773
,
773
,
773
,
773
,
972
,
773
,
964
,
773
,
773
,
/* 260 */
77
3
,
773
,
773
,
911
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 270 */
77
3
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
1038
,
/* 280 */
1036
,
773
,
773
,
773
,
1032
,
773
,
773
,
773
,
1030
,
773
,
/* 290 */
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
773
,
/* 300 */
77
3
,
773
,
773
,
773
,
773
,
773
,
853
,
773
,
800
,
798
,
/* 310 */
773
,
790
,
773
,
};
/********** End of lemon-generated parsing tables *****************************/
...
...
@@ -1201,103 +1202,102 @@ static const char *const yyRuleName[] = {
/* 169 */
"distinct ::= DISTINCT"
,
/* 170 */
"distinct ::="
,
/* 171 */
"from ::= FROM tablelist"
,
/* 172 */
"from ::= FROM LP union RP"
,
/* 173 */
"tablelist ::= ids cpxName"
,
/* 174 */
"tablelist ::= ids cpxName ids"
,
/* 175 */
"tablelist ::= tablelist COMMA ids cpxName"
,
/* 176 */
"tablelist ::= tablelist COMMA ids cpxName ids"
,
/* 177 */
"tmvar ::= VARIABLE"
,
/* 178 */
"interval_opt ::= INTERVAL LP tmvar RP"
,
/* 179 */
"interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP"
,
/* 180 */
"interval_opt ::="
,
/* 181 */
"session_option ::="
,
/* 182 */
"session_option ::= SESSION LP ids cpxName COMMA tmvar RP"
,
/* 183 */
"fill_opt ::="
,
/* 184 */
"fill_opt ::= FILL LP ID COMMA tagitemlist RP"
,
/* 185 */
"fill_opt ::= FILL LP ID RP"
,
/* 186 */
"sliding_opt ::= SLIDING LP tmvar RP"
,
/* 187 */
"sliding_opt ::="
,
/* 188 */
"orderby_opt ::="
,
/* 189 */
"orderby_opt ::= ORDER BY sortlist"
,
/* 190 */
"sortlist ::= sortlist COMMA item sortorder"
,
/* 191 */
"sortlist ::= item sortorder"
,
/* 192 */
"item ::= ids cpxName"
,
/* 193 */
"sortorder ::= ASC"
,
/* 194 */
"sortorder ::= DESC"
,
/* 195 */
"sortorder ::="
,
/* 196 */
"groupby_opt ::="
,
/* 197 */
"groupby_opt ::= GROUP BY grouplist"
,
/* 198 */
"grouplist ::= grouplist COMMA item"
,
/* 199 */
"grouplist ::= item"
,
/* 200 */
"having_opt ::="
,
/* 201 */
"having_opt ::= HAVING expr"
,
/* 202 */
"limit_opt ::="
,
/* 203 */
"limit_opt ::= LIMIT signed"
,
/* 204 */
"limit_opt ::= LIMIT signed OFFSET signed"
,
/* 205 */
"limit_opt ::= LIMIT signed COMMA signed"
,
/* 206 */
"slimit_opt ::="
,
/* 207 */
"slimit_opt ::= SLIMIT signed"
,
/* 208 */
"slimit_opt ::= SLIMIT signed SOFFSET signed"
,
/* 209 */
"slimit_opt ::= SLIMIT signed COMMA signed"
,
/* 210 */
"where_opt ::="
,
/* 211 */
"where_opt ::= WHERE expr"
,
/* 212 */
"expr ::= LP expr RP"
,
/* 213 */
"expr ::= ID"
,
/* 214 */
"expr ::= ID DOT ID"
,
/* 215 */
"expr ::= ID DOT STAR"
,
/* 216 */
"expr ::= INTEGER"
,
/* 217 */
"expr ::= MINUS INTEGER"
,
/* 218 */
"expr ::= PLUS INTEGER"
,
/* 219 */
"expr ::= FLOAT"
,
/* 220 */
"expr ::= MINUS FLOAT"
,
/* 221 */
"expr ::= PLUS FLOAT"
,
/* 222 */
"expr ::= STRING"
,
/* 223 */
"expr ::= NOW"
,
/* 224 */
"expr ::= VARIABLE"
,
/* 225 */
"expr ::= PLUS VARIABLE"
,
/* 226 */
"expr ::= MINUS VARIABLE"
,
/* 227 */
"expr ::= BOOL"
,
/* 228 */
"expr ::= NULL"
,
/* 229 */
"expr ::= ID LP exprlist RP"
,
/* 230 */
"expr ::= ID LP STAR RP"
,
/* 231 */
"expr ::= expr IS NULL"
,
/* 232 */
"expr ::= expr IS NOT NULL"
,
/* 233 */
"expr ::= expr LT expr"
,
/* 234 */
"expr ::= expr GT expr"
,
/* 235 */
"expr ::= expr LE expr"
,
/* 236 */
"expr ::= expr GE expr"
,
/* 237 */
"expr ::= expr NE expr"
,
/* 238 */
"expr ::= expr EQ expr"
,
/* 239 */
"expr ::= expr BETWEEN expr AND expr"
,
/* 240 */
"expr ::= expr AND expr"
,
/* 241 */
"expr ::= expr OR expr"
,
/* 242 */
"expr ::= expr PLUS expr"
,
/* 243 */
"expr ::= expr MINUS expr"
,
/* 244 */
"expr ::= expr STAR expr"
,
/* 245 */
"expr ::= expr SLASH expr"
,
/* 246 */
"expr ::= expr REM expr"
,
/* 247 */
"expr ::= expr LIKE expr"
,
/* 248 */
"expr ::= expr IN LP exprlist RP"
,
/* 249 */
"exprlist ::= exprlist COMMA expritem"
,
/* 250 */
"exprlist ::= expritem"
,
/* 251 */
"expritem ::= expr"
,
/* 252 */
"expritem ::="
,
/* 253 */
"cmd ::= RESET QUERY CACHE"
,
/* 254 */
"cmd ::= SYNCDB ids REPLICA"
,
/* 255 */
"cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist"
,
/* 256 */
"cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids"
,
/* 257 */
"cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist"
,
/* 258 */
"cmd ::= ALTER TABLE ids cpxName DROP TAG ids"
,
/* 259 */
"cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids"
,
/* 260 */
"cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 261 */
"cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist"
,
/* 262 */
"cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids"
,
/* 263 */
"cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist"
,
/* 264 */
"cmd ::= ALTER STABLE ids cpxName DROP TAG ids"
,
/* 265 */
"cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids"
,
/* 266 */
"cmd ::= KILL CONNECTION INTEGER"
,
/* 267 */
"cmd ::= KILL STREAM INTEGER COLON INTEGER"
,
/* 268 */
"cmd ::= KILL QUERY INTEGER COLON INTEGER"
,
/* 172 */
"tablelist ::= ids cpxName"
,
/* 173 */
"tablelist ::= ids cpxName ids"
,
/* 174 */
"tablelist ::= tablelist COMMA ids cpxName"
,
/* 175 */
"tablelist ::= tablelist COMMA ids cpxName ids"
,
/* 176 */
"tmvar ::= VARIABLE"
,
/* 177 */
"interval_opt ::= INTERVAL LP tmvar RP"
,
/* 178 */
"interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP"
,
/* 179 */
"interval_opt ::="
,
/* 180 */
"session_option ::="
,
/* 181 */
"session_option ::= SESSION LP ids cpxName COMMA tmvar RP"
,
/* 182 */
"fill_opt ::="
,
/* 183 */
"fill_opt ::= FILL LP ID COMMA tagitemlist RP"
,
/* 184 */
"fill_opt ::= FILL LP ID RP"
,
/* 185 */
"sliding_opt ::= SLIDING LP tmvar RP"
,
/* 186 */
"sliding_opt ::="
,
/* 187 */
"orderby_opt ::="
,
/* 188 */
"orderby_opt ::= ORDER BY sortlist"
,
/* 189 */
"sortlist ::= sortlist COMMA item sortorder"
,
/* 190 */
"sortlist ::= item sortorder"
,
/* 191 */
"item ::= ids cpxName"
,
/* 192 */
"sortorder ::= ASC"
,
/* 193 */
"sortorder ::= DESC"
,
/* 194 */
"sortorder ::="
,
/* 195 */
"groupby_opt ::="
,
/* 196 */
"groupby_opt ::= GROUP BY grouplist"
,
/* 197 */
"grouplist ::= grouplist COMMA item"
,
/* 198 */
"grouplist ::= item"
,
/* 199 */
"having_opt ::="
,
/* 200 */
"having_opt ::= HAVING expr"
,
/* 201 */
"limit_opt ::="
,
/* 202 */
"limit_opt ::= LIMIT signed"
,
/* 203 */
"limit_opt ::= LIMIT signed OFFSET signed"
,
/* 204 */
"limit_opt ::= LIMIT signed COMMA signed"
,
/* 205 */
"slimit_opt ::="
,
/* 206 */
"slimit_opt ::= SLIMIT signed"
,
/* 207 */
"slimit_opt ::= SLIMIT signed SOFFSET signed"
,
/* 208 */
"slimit_opt ::= SLIMIT signed COMMA signed"
,
/* 209 */
"where_opt ::="
,
/* 210 */
"where_opt ::= WHERE expr"
,
/* 211 */
"expr ::= LP expr RP"
,
/* 212 */
"expr ::= ID"
,
/* 213 */
"expr ::= ID DOT ID"
,
/* 214 */
"expr ::= ID DOT STAR"
,
/* 215 */
"expr ::= INTEGER"
,
/* 216 */
"expr ::= MINUS INTEGER"
,
/* 217 */
"expr ::= PLUS INTEGER"
,
/* 218 */
"expr ::= FLOAT"
,
/* 219 */
"expr ::= MINUS FLOAT"
,
/* 220 */
"expr ::= PLUS FLOAT"
,
/* 221 */
"expr ::= STRING"
,
/* 222 */
"expr ::= NOW"
,
/* 223 */
"expr ::= VARIABLE"
,
/* 224 */
"expr ::= PLUS VARIABLE"
,
/* 225 */
"expr ::= MINUS VARIABLE"
,
/* 226 */
"expr ::= BOOL"
,
/* 227 */
"expr ::= NULL"
,
/* 228 */
"expr ::= ID LP exprlist RP"
,
/* 229 */
"expr ::= ID LP STAR RP"
,
/* 230 */
"expr ::= expr IS NULL"
,
/* 231 */
"expr ::= expr IS NOT NULL"
,
/* 232 */
"expr ::= expr LT expr"
,
/* 233 */
"expr ::= expr GT expr"
,
/* 234 */
"expr ::= expr LE expr"
,
/* 235 */
"expr ::= expr GE expr"
,
/* 236 */
"expr ::= expr NE expr"
,
/* 237 */
"expr ::= expr EQ expr"
,
/* 238 */
"expr ::= expr BETWEEN expr AND expr"
,
/* 239 */
"expr ::= expr AND expr"
,
/* 240 */
"expr ::= expr OR expr"
,
/* 241 */
"expr ::= expr PLUS expr"
,
/* 242 */
"expr ::= expr MINUS expr"
,
/* 243 */
"expr ::= expr STAR expr"
,
/* 244 */
"expr ::= expr SLASH expr"
,
/* 245 */
"expr ::= expr REM expr"
,
/* 246 */
"expr ::= expr LIKE expr"
,
/* 247 */
"expr ::= expr IN LP exprlist RP"
,
/* 248 */
"exprlist ::= exprlist COMMA expritem"
,
/* 249 */
"exprlist ::= expritem"
,
/* 250 */
"expritem ::= expr"
,
/* 251 */
"expritem ::="
,
/* 252 */
"cmd ::= RESET QUERY CACHE"
,
/* 253 */
"cmd ::= SYNCDB ids REPLICA"
,
/* 254 */
"cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist"
,
/* 255 */
"cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids"
,
/* 256 */
"cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist"
,
/* 257 */
"cmd ::= ALTER TABLE ids cpxName DROP TAG ids"
,
/* 258 */
"cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids"
,
/* 259 */
"cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 260 */
"cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist"
,
/* 261 */
"cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids"
,
/* 262 */
"cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist"
,
/* 263 */
"cmd ::= ALTER STABLE ids cpxName DROP TAG ids"
,
/* 264 */
"cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids"
,
/* 265 */
"cmd ::= KILL CONNECTION INTEGER"
,
/* 266 */
"cmd ::= KILL STREAM INTEGER COLON INTEGER"
,
/* 267 */
"cmd ::= KILL QUERY INTEGER COLON INTEGER"
,
};
#endif
/* NDEBUG */
...
...
@@ -1929,103 +1929,102 @@ static const YYCODETYPE yyRuleInfoLhs[] = {
250
,
/* (169) distinct ::= DISTINCT */
250
,
/* (170) distinct ::= */
237
,
/* (171) from ::= FROM tablelist */
237
,
/* (172) from ::= FROM LP union RP */
253
,
/* (173) tablelist ::= ids cpxName */
253
,
/* (174) tablelist ::= ids cpxName ids */
253
,
/* (175) tablelist ::= tablelist COMMA ids cpxName */
253
,
/* (176) tablelist ::= tablelist COMMA ids cpxName ids */
254
,
/* (177) tmvar ::= VARIABLE */
239
,
/* (178) interval_opt ::= INTERVAL LP tmvar RP */
239
,
/* (179) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
239
,
/* (180) interval_opt ::= */
240
,
/* (181) session_option ::= */
240
,
/* (182) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
241
,
/* (183) fill_opt ::= */
241
,
/* (184) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
241
,
/* (185) fill_opt ::= FILL LP ID RP */
242
,
/* (186) sliding_opt ::= SLIDING LP tmvar RP */
242
,
/* (187) sliding_opt ::= */
244
,
/* (188) orderby_opt ::= */
244
,
/* (189) orderby_opt ::= ORDER BY sortlist */
255
,
/* (190) sortlist ::= sortlist COMMA item sortorder */
255
,
/* (191) sortlist ::= item sortorder */
257
,
/* (192) item ::= ids cpxName */
258
,
/* (193) sortorder ::= ASC */
258
,
/* (194) sortorder ::= DESC */
258
,
/* (195) sortorder ::= */
243
,
/* (196) groupby_opt ::= */
243
,
/* (197) groupby_opt ::= GROUP BY grouplist */
259
,
/* (198) grouplist ::= grouplist COMMA item */
259
,
/* (199) grouplist ::= item */
245
,
/* (200) having_opt ::= */
245
,
/* (201) having_opt ::= HAVING expr */
247
,
/* (202) limit_opt ::= */
247
,
/* (203) limit_opt ::= LIMIT signed */
247
,
/* (204) limit_opt ::= LIMIT signed OFFSET signed */
247
,
/* (205) limit_opt ::= LIMIT signed COMMA signed */
246
,
/* (206) slimit_opt ::= */
246
,
/* (207) slimit_opt ::= SLIMIT signed */
246
,
/* (208) slimit_opt ::= SLIMIT signed SOFFSET signed */
246
,
/* (209) slimit_opt ::= SLIMIT signed COMMA signed */
238
,
/* (210) where_opt ::= */
238
,
/* (211) where_opt ::= WHERE expr */
251
,
/* (212) expr ::= LP expr RP */
251
,
/* (213) expr ::= ID */
251
,
/* (214) expr ::= ID DOT ID */
251
,
/* (215) expr ::= ID DOT STAR */
251
,
/* (216) expr ::= INTEGER */
251
,
/* (217) expr ::= MINUS INTEGER */
251
,
/* (218) expr ::= PLUS INTEGER */
251
,
/* (219) expr ::= FLOAT */
251
,
/* (220) expr ::= MINUS FLOAT */
251
,
/* (221) expr ::= PLUS FLOAT */
251
,
/* (222) expr ::= STRING */
251
,
/* (223) expr ::= NOW */
251
,
/* (224) expr ::= VARIABLE */
251
,
/* (225) expr ::= PLUS VARIABLE */
251
,
/* (226) expr ::= MINUS VARIABLE */
251
,
/* (227) expr ::= BOOL */
251
,
/* (228) expr ::= NULL */
251
,
/* (229) expr ::= ID LP exprlist RP */
251
,
/* (230) expr ::= ID LP STAR RP */
251
,
/* (231) expr ::= expr IS NULL */
251
,
/* (232) expr ::= expr IS NOT NULL */
251
,
/* (233) expr ::= expr LT expr */
251
,
/* (234) expr ::= expr GT expr */
251
,
/* (235) expr ::= expr LE expr */
251
,
/* (236) expr ::= expr GE expr */
251
,
/* (237) expr ::= expr NE expr */
251
,
/* (238) expr ::= expr EQ expr */
251
,
/* (239) expr ::= expr BETWEEN expr AND expr */
251
,
/* (240) expr ::= expr AND expr */
251
,
/* (241) expr ::= expr OR expr */
251
,
/* (242) expr ::= expr PLUS expr */
251
,
/* (243) expr ::= expr MINUS expr */
251
,
/* (244) expr ::= expr STAR expr */
251
,
/* (245) expr ::= expr SLASH expr */
251
,
/* (246) expr ::= expr REM expr */
251
,
/* (247) expr ::= expr LIKE expr */
251
,
/* (248) expr ::= expr IN LP exprlist RP */
260
,
/* (249) exprlist ::= exprlist COMMA expritem */
260
,
/* (250) exprlist ::= expritem */
261
,
/* (251) expritem ::= expr */
261
,
/* (252) expritem ::= */
188
,
/* (253) cmd ::= RESET QUERY CACHE */
188
,
/* (254) cmd ::= SYNCDB ids REPLICA */
188
,
/* (255) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
188
,
/* (256) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
188
,
/* (257) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
188
,
/* (258) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
188
,
/* (259) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
188
,
/* (260) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
188
,
/* (261) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
188
,
/* (262) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
188
,
/* (263) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
188
,
/* (264) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
188
,
/* (265) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
188
,
/* (266) cmd ::= KILL CONNECTION INTEGER */
188
,
/* (267) cmd ::= KILL STREAM INTEGER COLON INTEGER */
188
,
/* (268) cmd ::= KILL QUERY INTEGER COLON INTEGER */
253
,
/* (172) tablelist ::= ids cpxName */
253
,
/* (173) tablelist ::= ids cpxName ids */
253
,
/* (174) tablelist ::= tablelist COMMA ids cpxName */
253
,
/* (175) tablelist ::= tablelist COMMA ids cpxName ids */
254
,
/* (176) tmvar ::= VARIABLE */
239
,
/* (177) interval_opt ::= INTERVAL LP tmvar RP */
239
,
/* (178) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
239
,
/* (179) interval_opt ::= */
240
,
/* (180) session_option ::= */
240
,
/* (181) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
241
,
/* (182) fill_opt ::= */
241
,
/* (183) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
241
,
/* (184) fill_opt ::= FILL LP ID RP */
242
,
/* (185) sliding_opt ::= SLIDING LP tmvar RP */
242
,
/* (186) sliding_opt ::= */
244
,
/* (187) orderby_opt ::= */
244
,
/* (188) orderby_opt ::= ORDER BY sortlist */
255
,
/* (189) sortlist ::= sortlist COMMA item sortorder */
255
,
/* (190) sortlist ::= item sortorder */
257
,
/* (191) item ::= ids cpxName */
258
,
/* (192) sortorder ::= ASC */
258
,
/* (193) sortorder ::= DESC */
258
,
/* (194) sortorder ::= */
243
,
/* (195) groupby_opt ::= */
243
,
/* (196) groupby_opt ::= GROUP BY grouplist */
259
,
/* (197) grouplist ::= grouplist COMMA item */
259
,
/* (198) grouplist ::= item */
245
,
/* (199) having_opt ::= */
245
,
/* (200) having_opt ::= HAVING expr */
247
,
/* (201) limit_opt ::= */
247
,
/* (202) limit_opt ::= LIMIT signed */
247
,
/* (203) limit_opt ::= LIMIT signed OFFSET signed */
247
,
/* (204) limit_opt ::= LIMIT signed COMMA signed */
246
,
/* (205) slimit_opt ::= */
246
,
/* (206) slimit_opt ::= SLIMIT signed */
246
,
/* (207) slimit_opt ::= SLIMIT signed SOFFSET signed */
246
,
/* (208) slimit_opt ::= SLIMIT signed COMMA signed */
238
,
/* (209) where_opt ::= */
238
,
/* (210) where_opt ::= WHERE expr */
251
,
/* (211) expr ::= LP expr RP */
251
,
/* (212) expr ::= ID */
251
,
/* (213) expr ::= ID DOT ID */
251
,
/* (214) expr ::= ID DOT STAR */
251
,
/* (215) expr ::= INTEGER */
251
,
/* (216) expr ::= MINUS INTEGER */
251
,
/* (217) expr ::= PLUS INTEGER */
251
,
/* (218) expr ::= FLOAT */
251
,
/* (219) expr ::= MINUS FLOAT */
251
,
/* (220) expr ::= PLUS FLOAT */
251
,
/* (221) expr ::= STRING */
251
,
/* (222) expr ::= NOW */
251
,
/* (223) expr ::= VARIABLE */
251
,
/* (224) expr ::= PLUS VARIABLE */
251
,
/* (225) expr ::= MINUS VARIABLE */
251
,
/* (226) expr ::= BOOL */
251
,
/* (227) expr ::= NULL */
251
,
/* (228) expr ::= ID LP exprlist RP */
251
,
/* (229) expr ::= ID LP STAR RP */
251
,
/* (230) expr ::= expr IS NULL */
251
,
/* (231) expr ::= expr IS NOT NULL */
251
,
/* (232) expr ::= expr LT expr */
251
,
/* (233) expr ::= expr GT expr */
251
,
/* (234) expr ::= expr LE expr */
251
,
/* (235) expr ::= expr GE expr */
251
,
/* (236) expr ::= expr NE expr */
251
,
/* (237) expr ::= expr EQ expr */
251
,
/* (238) expr ::= expr BETWEEN expr AND expr */
251
,
/* (239) expr ::= expr AND expr */
251
,
/* (240) expr ::= expr OR expr */
251
,
/* (241) expr ::= expr PLUS expr */
251
,
/* (242) expr ::= expr MINUS expr */
251
,
/* (243) expr ::= expr STAR expr */
251
,
/* (244) expr ::= expr SLASH expr */
251
,
/* (245) expr ::= expr REM expr */
251
,
/* (246) expr ::= expr LIKE expr */
251
,
/* (247) expr ::= expr IN LP exprlist RP */
260
,
/* (248) exprlist ::= exprlist COMMA expritem */
260
,
/* (249) exprlist ::= expritem */
261
,
/* (250) expritem ::= expr */
261
,
/* (251) expritem ::= */
188
,
/* (252) cmd ::= RESET QUERY CACHE */
188
,
/* (253) cmd ::= SYNCDB ids REPLICA */
188
,
/* (254) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
188
,
/* (255) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
188
,
/* (256) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
188
,
/* (257) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
188
,
/* (258) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
188
,
/* (259) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
188
,
/* (260) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
188
,
/* (261) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
188
,
/* (262) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
188
,
/* (263) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
188
,
/* (264) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
188
,
/* (265) cmd ::= KILL CONNECTION INTEGER */
188
,
/* (266) cmd ::= KILL STREAM INTEGER COLON INTEGER */
188
,
/* (267) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
...
...
@@ -2203,103 +2202,102 @@ static const signed char yyRuleInfoNRhs[] = {
-
1
,
/* (169) distinct ::= DISTINCT */
0
,
/* (170) distinct ::= */
-
2
,
/* (171) from ::= FROM tablelist */
-
4
,
/* (172) from ::= FROM LP union RP */
-
2
,
/* (173) tablelist ::= ids cpxName */
-
3
,
/* (174) tablelist ::= ids cpxName ids */
-
4
,
/* (175) tablelist ::= tablelist COMMA ids cpxName */
-
5
,
/* (176) tablelist ::= tablelist COMMA ids cpxName ids */
-
1
,
/* (177) tmvar ::= VARIABLE */
-
4
,
/* (178) interval_opt ::= INTERVAL LP tmvar RP */
-
6
,
/* (179) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
0
,
/* (180) interval_opt ::= */
0
,
/* (181) session_option ::= */
-
7
,
/* (182) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
0
,
/* (183) fill_opt ::= */
-
6
,
/* (184) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
-
4
,
/* (185) fill_opt ::= FILL LP ID RP */
-
4
,
/* (186) sliding_opt ::= SLIDING LP tmvar RP */
0
,
/* (187) sliding_opt ::= */
0
,
/* (188) orderby_opt ::= */
-
3
,
/* (189) orderby_opt ::= ORDER BY sortlist */
-
4
,
/* (190) sortlist ::= sortlist COMMA item sortorder */
-
2
,
/* (191) sortlist ::= item sortorder */
-
2
,
/* (192) item ::= ids cpxName */
-
1
,
/* (193) sortorder ::= ASC */
-
1
,
/* (194) sortorder ::= DESC */
0
,
/* (195) sortorder ::= */
0
,
/* (196) groupby_opt ::= */
-
3
,
/* (197) groupby_opt ::= GROUP BY grouplist */
-
3
,
/* (198) grouplist ::= grouplist COMMA item */
-
1
,
/* (199) grouplist ::= item */
0
,
/* (200) having_opt ::= */
-
2
,
/* (201) having_opt ::= HAVING expr */
0
,
/* (202) limit_opt ::= */
-
2
,
/* (203) limit_opt ::= LIMIT signed */
-
4
,
/* (204) limit_opt ::= LIMIT signed OFFSET signed */
-
4
,
/* (205) limit_opt ::= LIMIT signed COMMA signed */
0
,
/* (206) slimit_opt ::= */
-
2
,
/* (207) slimit_opt ::= SLIMIT signed */
-
4
,
/* (208) slimit_opt ::= SLIMIT signed SOFFSET signed */
-
4
,
/* (209) slimit_opt ::= SLIMIT signed COMMA signed */
0
,
/* (210) where_opt ::= */
-
2
,
/* (211) where_opt ::= WHERE expr */
-
3
,
/* (212) expr ::= LP expr RP */
-
1
,
/* (213) expr ::= ID */
-
3
,
/* (214) expr ::= ID DOT ID */
-
3
,
/* (215) expr ::= ID DOT STAR */
-
1
,
/* (216) expr ::= INTEGER */
-
2
,
/* (217) expr ::= MINUS INTEGER */
-
2
,
/* (218) expr ::= PLUS INTEGER */
-
1
,
/* (219) expr ::= FLOAT */
-
2
,
/* (220) expr ::= MINUS FLOAT */
-
2
,
/* (221) expr ::= PLUS FLOAT */
-
1
,
/* (222) expr ::= STRING */
-
1
,
/* (223) expr ::= NOW */
-
1
,
/* (224) expr ::= VARIABLE */
-
2
,
/* (225) expr ::= PLUS VARIABLE */
-
2
,
/* (226) expr ::= MINUS VARIABLE */
-
1
,
/* (227) expr ::= BOOL */
-
1
,
/* (228) expr ::= NULL */
-
4
,
/* (229) expr ::= ID LP exprlist RP */
-
4
,
/* (230) expr ::= ID LP STAR RP */
-
3
,
/* (231) expr ::= expr IS NULL */
-
4
,
/* (232) expr ::= expr IS NOT NULL */
-
3
,
/* (233) expr ::= expr LT expr */
-
3
,
/* (234) expr ::= expr GT expr */
-
3
,
/* (235) expr ::= expr LE expr */
-
3
,
/* (236) expr ::= expr GE expr */
-
3
,
/* (237) expr ::= expr NE expr */
-
3
,
/* (238) expr ::= expr EQ expr */
-
5
,
/* (239) expr ::= expr BETWEEN expr AND expr */
-
3
,
/* (240) expr ::= expr AND expr */
-
3
,
/* (241) expr ::= expr OR expr */
-
3
,
/* (242) expr ::= expr PLUS expr */
-
3
,
/* (243) expr ::= expr MINUS expr */
-
3
,
/* (244) expr ::= expr STAR expr */
-
3
,
/* (245) expr ::= expr SLASH expr */
-
3
,
/* (246) expr ::= expr REM expr */
-
3
,
/* (247) expr ::= expr LIKE expr */
-
5
,
/* (248) expr ::= expr IN LP exprlist RP */
-
3
,
/* (249) exprlist ::= exprlist COMMA expritem */
-
1
,
/* (250) exprlist ::= expritem */
-
1
,
/* (251) expritem ::= expr */
0
,
/* (252) expritem ::= */
-
3
,
/* (253) cmd ::= RESET QUERY CACHE */
-
3
,
/* (254) cmd ::= SYNCDB ids REPLICA */
-
7
,
/* (255) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (256) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (257) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (258) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
-
8
,
/* (259) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
-
9
,
/* (260) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
-
7
,
/* (261) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (262) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (263) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (264) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
-
8
,
/* (265) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
-
3
,
/* (266) cmd ::= KILL CONNECTION INTEGER */
-
5
,
/* (267) cmd ::= KILL STREAM INTEGER COLON INTEGER */
-
5
,
/* (268) cmd ::= KILL QUERY INTEGER COLON INTEGER */
-
2
,
/* (172) tablelist ::= ids cpxName */
-
3
,
/* (173) tablelist ::= ids cpxName ids */
-
4
,
/* (174) tablelist ::= tablelist COMMA ids cpxName */
-
5
,
/* (175) tablelist ::= tablelist COMMA ids cpxName ids */
-
1
,
/* (176) tmvar ::= VARIABLE */
-
4
,
/* (177) interval_opt ::= INTERVAL LP tmvar RP */
-
6
,
/* (178) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
0
,
/* (179) interval_opt ::= */
0
,
/* (180) session_option ::= */
-
7
,
/* (181) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
0
,
/* (182) fill_opt ::= */
-
6
,
/* (183) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
-
4
,
/* (184) fill_opt ::= FILL LP ID RP */
-
4
,
/* (185) sliding_opt ::= SLIDING LP tmvar RP */
0
,
/* (186) sliding_opt ::= */
0
,
/* (187) orderby_opt ::= */
-
3
,
/* (188) orderby_opt ::= ORDER BY sortlist */
-
4
,
/* (189) sortlist ::= sortlist COMMA item sortorder */
-
2
,
/* (190) sortlist ::= item sortorder */
-
2
,
/* (191) item ::= ids cpxName */
-
1
,
/* (192) sortorder ::= ASC */
-
1
,
/* (193) sortorder ::= DESC */
0
,
/* (194) sortorder ::= */
0
,
/* (195) groupby_opt ::= */
-
3
,
/* (196) groupby_opt ::= GROUP BY grouplist */
-
3
,
/* (197) grouplist ::= grouplist COMMA item */
-
1
,
/* (198) grouplist ::= item */
0
,
/* (199) having_opt ::= */
-
2
,
/* (200) having_opt ::= HAVING expr */
0
,
/* (201) limit_opt ::= */
-
2
,
/* (202) limit_opt ::= LIMIT signed */
-
4
,
/* (203) limit_opt ::= LIMIT signed OFFSET signed */
-
4
,
/* (204) limit_opt ::= LIMIT signed COMMA signed */
0
,
/* (205) slimit_opt ::= */
-
2
,
/* (206) slimit_opt ::= SLIMIT signed */
-
4
,
/* (207) slimit_opt ::= SLIMIT signed SOFFSET signed */
-
4
,
/* (208) slimit_opt ::= SLIMIT signed COMMA signed */
0
,
/* (209) where_opt ::= */
-
2
,
/* (210) where_opt ::= WHERE expr */
-
3
,
/* (211) expr ::= LP expr RP */
-
1
,
/* (212) expr ::= ID */
-
3
,
/* (213) expr ::= ID DOT ID */
-
3
,
/* (214) expr ::= ID DOT STAR */
-
1
,
/* (215) expr ::= INTEGER */
-
2
,
/* (216) expr ::= MINUS INTEGER */
-
2
,
/* (217) expr ::= PLUS INTEGER */
-
1
,
/* (218) expr ::= FLOAT */
-
2
,
/* (219) expr ::= MINUS FLOAT */
-
2
,
/* (220) expr ::= PLUS FLOAT */
-
1
,
/* (221) expr ::= STRING */
-
1
,
/* (222) expr ::= NOW */
-
1
,
/* (223) expr ::= VARIABLE */
-
2
,
/* (224) expr ::= PLUS VARIABLE */
-
2
,
/* (225) expr ::= MINUS VARIABLE */
-
1
,
/* (226) expr ::= BOOL */
-
1
,
/* (227) expr ::= NULL */
-
4
,
/* (228) expr ::= ID LP exprlist RP */
-
4
,
/* (229) expr ::= ID LP STAR RP */
-
3
,
/* (230) expr ::= expr IS NULL */
-
4
,
/* (231) expr ::= expr IS NOT NULL */
-
3
,
/* (232) expr ::= expr LT expr */
-
3
,
/* (233) expr ::= expr GT expr */
-
3
,
/* (234) expr ::= expr LE expr */
-
3
,
/* (235) expr ::= expr GE expr */
-
3
,
/* (236) expr ::= expr NE expr */
-
3
,
/* (237) expr ::= expr EQ expr */
-
5
,
/* (238) expr ::= expr BETWEEN expr AND expr */
-
3
,
/* (239) expr ::= expr AND expr */
-
3
,
/* (240) expr ::= expr OR expr */
-
3
,
/* (241) expr ::= expr PLUS expr */
-
3
,
/* (242) expr ::= expr MINUS expr */
-
3
,
/* (243) expr ::= expr STAR expr */
-
3
,
/* (244) expr ::= expr SLASH expr */
-
3
,
/* (245) expr ::= expr REM expr */
-
3
,
/* (246) expr ::= expr LIKE expr */
-
5
,
/* (247) expr ::= expr IN LP exprlist RP */
-
3
,
/* (248) exprlist ::= exprlist COMMA expritem */
-
1
,
/* (249) exprlist ::= expritem */
-
1
,
/* (250) expritem ::= expr */
0
,
/* (251) expritem ::= */
-
3
,
/* (252) cmd ::= RESET QUERY CACHE */
-
3
,
/* (253) cmd ::= SYNCDB ids REPLICA */
-
7
,
/* (254) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (255) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (256) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (257) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
-
8
,
/* (258) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
-
9
,
/* (259) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
-
7
,
/* (260) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (261) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (262) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (263) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
-
8
,
/* (264) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
-
3
,
/* (265) cmd ::= KILL CONNECTION INTEGER */
-
5
,
/* (266) cmd ::= KILL STREAM INTEGER COLON INTEGER */
-
5
,
/* (267) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
static
void
yy_accept
(
yyParser
*
);
/* Forward Declaration */
...
...
@@ -2922,7 +2920,7 @@ static YYACTIONTYPE yy_reduce(
yymsp
[
-
1
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
163
:
/* sclp ::= */
case
18
8
:
/* orderby_opt ::= */
yytestcase
(
yyruleno
==
188
);
case
18
7
:
/* orderby_opt ::= */
yytestcase
(
yyruleno
==
187
);
{
yymsp
[
1
].
minor
.
yy429
=
0
;}
break
;
case
164
:
/* selcollist ::= sclp distinct expr as */
...
...
@@ -2955,10 +2953,7 @@ static YYACTIONTYPE yy_reduce(
case
171
:
/* from ::= FROM tablelist */
{
yymsp
[
-
1
].
minor
.
yy70
=
yymsp
[
0
].
minor
.
yy429
;}
break
;
case
172
:
/* from ::= FROM LP union RP */
{
yymsp
[
-
3
].
minor
.
yy70
=
yymsp
[
-
1
].
minor
.
yy141
;}
break
;
case
173
:
/* tablelist ::= ids cpxName */
case
172
:
/* tablelist ::= ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
...
...
@@ -2966,7 +2961,7 @@ static YYACTIONTYPE yy_reduce(
}
yymsp
[
-
1
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
17
4
:
/* tablelist ::= ids cpxName ids */
case
17
3
:
/* tablelist ::= ids cpxName ids */
{
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
...
...
@@ -2975,7 +2970,7 @@ static YYACTIONTYPE yy_reduce(
}
yymsp
[
-
2
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
17
5
:
/* tablelist ::= tablelist COMMA ids cpxName */
case
17
4
:
/* tablelist ::= tablelist COMMA ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
...
...
@@ -2983,7 +2978,7 @@ static YYACTIONTYPE yy_reduce(
}
yymsp
[
-
3
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
17
6
:
/* tablelist ::= tablelist COMMA ids cpxName ids */
case
17
5
:
/* tablelist ::= tablelist COMMA ids cpxName ids */
{
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
...
...
@@ -2993,33 +2988,33 @@ static YYACTIONTYPE yy_reduce(
}
yymsp
[
-
4
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
17
7
:
/* tmvar ::= VARIABLE */
case
17
6
:
/* tmvar ::= VARIABLE */
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
17
8
:
/* interval_opt ::= INTERVAL LP tmvar RP */
case
17
7
:
/* interval_opt ::= INTERVAL LP tmvar RP */
{
yymsp
[
-
3
].
minor
.
yy220
.
interval
=
yymsp
[
-
1
].
minor
.
yy0
;
yymsp
[
-
3
].
minor
.
yy220
.
offset
.
n
=
0
;}
break
;
case
17
9
:
/* interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
case
17
8
:
/* interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
{
yymsp
[
-
5
].
minor
.
yy220
.
interval
=
yymsp
[
-
3
].
minor
.
yy0
;
yymsp
[
-
5
].
minor
.
yy220
.
offset
=
yymsp
[
-
1
].
minor
.
yy0
;}
break
;
case
1
80
:
/* interval_opt ::= */
case
1
79
:
/* interval_opt ::= */
{
memset
(
&
yymsp
[
1
].
minor
.
yy220
,
0
,
sizeof
(
yymsp
[
1
].
minor
.
yy220
));}
break
;
case
18
1
:
/* session_option ::= */
case
18
0
:
/* session_option ::= */
{
yymsp
[
1
].
minor
.
yy87
.
col
.
n
=
0
;
yymsp
[
1
].
minor
.
yy87
.
gap
.
n
=
0
;}
break
;
case
18
2
:
/* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
case
18
1
:
/* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
6
].
minor
.
yy87
.
col
=
yymsp
[
-
4
].
minor
.
yy0
;
yymsp
[
-
6
].
minor
.
yy87
.
gap
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
18
3
:
/* fill_opt ::= */
case
18
2
:
/* fill_opt ::= */
{
yymsp
[
1
].
minor
.
yy429
=
0
;
}
break
;
case
18
4
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
case
18
3
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
tVariant
A
=
{
0
};
toTSDBType
(
yymsp
[
-
3
].
minor
.
yy0
.
type
);
...
...
@@ -3029,34 +3024,34 @@ static YYACTIONTYPE yy_reduce(
yymsp
[
-
5
].
minor
.
yy429
=
yymsp
[
-
1
].
minor
.
yy429
;
}
break
;
case
18
5
:
/* fill_opt ::= FILL LP ID RP */
case
18
4
:
/* fill_opt ::= FILL LP ID RP */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
3
].
minor
.
yy429
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
}
break
;
case
18
6
:
/* sliding_opt ::= SLIDING LP tmvar RP */
case
18
5
:
/* sliding_opt ::= SLIDING LP tmvar RP */
{
yymsp
[
-
3
].
minor
.
yy0
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
18
7
:
/* sliding_opt ::= */
case
18
6
:
/* sliding_opt ::= */
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
yymsp
[
1
].
minor
.
yy0
.
z
=
NULL
;
yymsp
[
1
].
minor
.
yy0
.
type
=
0
;
}
break
;
case
18
9
:
/* orderby_opt ::= ORDER BY sortlist */
case
18
8
:
/* orderby_opt ::= ORDER BY sortlist */
{
yymsp
[
-
2
].
minor
.
yy429
=
yymsp
[
0
].
minor
.
yy429
;}
break
;
case
1
90
:
/* sortlist ::= sortlist COMMA item sortorder */
case
1
89
:
/* sortlist ::= sortlist COMMA item sortorder */
{
yylhsminor
.
yy429
=
tVariantListAppend
(
yymsp
[
-
3
].
minor
.
yy429
,
&
yymsp
[
-
1
].
minor
.
yy218
,
yymsp
[
0
].
minor
.
yy116
);
}
yymsp
[
-
3
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
19
1
:
/* sortlist ::= item sortorder */
case
19
0
:
/* sortlist ::= item sortorder */
{
yylhsminor
.
yy429
=
tVariantListAppend
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy218
,
yymsp
[
0
].
minor
.
yy116
);
}
yymsp
[
-
1
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
19
2
:
/* item ::= ids cpxName */
case
19
1
:
/* item ::= ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
...
...
@@ -3065,227 +3060,227 @@ static YYACTIONTYPE yy_reduce(
}
yymsp
[
-
1
].
minor
.
yy218
=
yylhsminor
.
yy218
;
break
;
case
19
3
:
/* sortorder ::= ASC */
case
19
2
:
/* sortorder ::= ASC */
{
yymsp
[
0
].
minor
.
yy116
=
TSDB_ORDER_ASC
;
}
break
;
case
19
4
:
/* sortorder ::= DESC */
case
19
3
:
/* sortorder ::= DESC */
{
yymsp
[
0
].
minor
.
yy116
=
TSDB_ORDER_DESC
;}
break
;
case
19
5
:
/* sortorder ::= */
case
19
4
:
/* sortorder ::= */
{
yymsp
[
1
].
minor
.
yy116
=
TSDB_ORDER_ASC
;
}
break
;
case
19
6
:
/* groupby_opt ::= */
case
19
5
:
/* groupby_opt ::= */
{
yymsp
[
1
].
minor
.
yy429
=
0
;}
break
;
case
19
7
:
/* groupby_opt ::= GROUP BY grouplist */
case
19
6
:
/* groupby_opt ::= GROUP BY grouplist */
{
yymsp
[
-
2
].
minor
.
yy429
=
yymsp
[
0
].
minor
.
yy429
;}
break
;
case
19
8
:
/* grouplist ::= grouplist COMMA item */
case
19
7
:
/* grouplist ::= grouplist COMMA item */
{
yylhsminor
.
yy429
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy429
,
&
yymsp
[
0
].
minor
.
yy218
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
19
9
:
/* grouplist ::= item */
case
19
8
:
/* grouplist ::= item */
{
yylhsminor
.
yy429
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy218
,
-
1
);
}
yymsp
[
0
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
200
:
/* having_opt ::= */
case
2
10
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
210
);
case
25
2
:
/* expritem ::= */
yytestcase
(
yyruleno
==
252
);
case
199
:
/* having_opt ::= */
case
2
09
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
209
);
case
25
1
:
/* expritem ::= */
yytestcase
(
yyruleno
==
251
);
{
yymsp
[
1
].
minor
.
yy170
=
0
;}
break
;
case
20
1
:
/* having_opt ::= HAVING expr */
case
21
1
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
211
);
case
20
0
:
/* having_opt ::= HAVING expr */
case
21
0
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
210
);
{
yymsp
[
-
1
].
minor
.
yy170
=
yymsp
[
0
].
minor
.
yy170
;}
break
;
case
20
2
:
/* limit_opt ::= */
case
20
6
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
206
);
case
20
1
:
/* limit_opt ::= */
case
20
5
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
205
);
{
yymsp
[
1
].
minor
.
yy18
.
limit
=
-
1
;
yymsp
[
1
].
minor
.
yy18
.
offset
=
0
;}
break
;
case
20
3
:
/* limit_opt ::= LIMIT signed */
case
20
7
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
207
);
case
20
2
:
/* limit_opt ::= LIMIT signed */
case
20
6
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
206
);
{
yymsp
[
-
1
].
minor
.
yy18
.
limit
=
yymsp
[
0
].
minor
.
yy481
;
yymsp
[
-
1
].
minor
.
yy18
.
offset
=
0
;}
break
;
case
20
4
:
/* limit_opt ::= LIMIT signed OFFSET signed */
case
20
3
:
/* limit_opt ::= LIMIT signed OFFSET signed */
{
yymsp
[
-
3
].
minor
.
yy18
.
limit
=
yymsp
[
-
2
].
minor
.
yy481
;
yymsp
[
-
3
].
minor
.
yy18
.
offset
=
yymsp
[
0
].
minor
.
yy481
;}
break
;
case
20
5
:
/* limit_opt ::= LIMIT signed COMMA signed */
case
20
4
:
/* limit_opt ::= LIMIT signed COMMA signed */
{
yymsp
[
-
3
].
minor
.
yy18
.
limit
=
yymsp
[
0
].
minor
.
yy481
;
yymsp
[
-
3
].
minor
.
yy18
.
offset
=
yymsp
[
-
2
].
minor
.
yy481
;}
break
;
case
20
8
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
case
20
7
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
{
yymsp
[
-
3
].
minor
.
yy18
.
limit
=
yymsp
[
-
2
].
minor
.
yy481
;
yymsp
[
-
3
].
minor
.
yy18
.
offset
=
yymsp
[
0
].
minor
.
yy481
;}
break
;
case
20
9
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
case
20
8
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
{
yymsp
[
-
3
].
minor
.
yy18
.
limit
=
yymsp
[
0
].
minor
.
yy481
;
yymsp
[
-
3
].
minor
.
yy18
.
offset
=
yymsp
[
-
2
].
minor
.
yy481
;}
break
;
case
21
2
:
/* expr ::= LP expr RP */
case
21
1
:
/* expr ::= LP expr RP */
{
yylhsminor
.
yy170
=
yymsp
[
-
1
].
minor
.
yy170
;
yylhsminor
.
yy170
->
token
.
z
=
yymsp
[
-
2
].
minor
.
yy0
.
z
;
yylhsminor
.
yy170
->
token
.
n
=
(
yymsp
[
0
].
minor
.
yy0
.
z
-
yymsp
[
-
2
].
minor
.
yy0
.
z
+
1
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
21
3
:
/* expr ::= ID */
case
21
2
:
/* expr ::= ID */
{
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
0
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
21
4
:
/* expr ::= ID DOT ID */
case
21
3
:
/* expr ::= ID DOT ID */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
21
5
:
/* expr ::= ID DOT STAR */
case
21
4
:
/* expr ::= ID DOT STAR */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ALL
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
21
6
:
/* expr ::= INTEGER */
case
21
5
:
/* expr ::= INTEGER */
{
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
0
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
21
7
:
/* expr ::= MINUS INTEGER */
case
21
8
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
218
);
case
21
6
:
/* expr ::= MINUS INTEGER */
case
21
7
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
217
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_INTEGER
;
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
-
1
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
21
9
:
/* expr ::= FLOAT */
case
21
8
:
/* expr ::= FLOAT */
{
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
0
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
2
20
:
/* expr ::= MINUS FLOAT */
case
22
1
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
221
);
case
2
19
:
/* expr ::= MINUS FLOAT */
case
22
0
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
220
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_FLOAT
;
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
-
1
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
22
2
:
/* expr ::= STRING */
case
22
1
:
/* expr ::= STRING */
{
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_STRING
);}
yymsp
[
0
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
22
3
:
/* expr ::= NOW */
case
22
2
:
/* expr ::= NOW */
{
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NOW
);
}
yymsp
[
0
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
22
4
:
/* expr ::= VARIABLE */
case
22
3
:
/* expr ::= VARIABLE */
{
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
0
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
22
5
:
/* expr ::= PLUS VARIABLE */
case
22
6
:
/* expr ::= MINUS VARIABLE */
yytestcase
(
yyruleno
==
226
);
case
22
4
:
/* expr ::= PLUS VARIABLE */
case
22
5
:
/* expr ::= MINUS VARIABLE */
yytestcase
(
yyruleno
==
225
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_VARIABLE
;
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
-
1
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
22
7
:
/* expr ::= BOOL */
case
22
6
:
/* expr ::= BOOL */
{
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_BOOL
);}
yymsp
[
0
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
22
8
:
/* expr ::= NULL */
case
22
7
:
/* expr ::= NULL */
{
yylhsminor
.
yy170
=
tSqlExprCreateIdValue
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NULL
);}
yymsp
[
0
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
22
9
:
/* expr ::= ID LP exprlist RP */
case
22
8
:
/* expr ::= ID LP exprlist RP */
{
yylhsminor
.
yy170
=
tSqlExprCreateFunction
(
yymsp
[
-
1
].
minor
.
yy429
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
2
30
:
/* expr ::= ID LP STAR RP */
case
2
29
:
/* expr ::= ID LP STAR RP */
{
yylhsminor
.
yy170
=
tSqlExprCreateFunction
(
NULL
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
23
1
:
/* expr ::= expr IS NULL */
case
23
0
:
/* expr ::= expr IS NULL */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
NULL
,
TK_ISNULL
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
23
2
:
/* expr ::= expr IS NOT NULL */
case
23
1
:
/* expr ::= expr IS NOT NULL */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
3
].
minor
.
yy170
,
NULL
,
TK_NOTNULL
);}
yymsp
[
-
3
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
23
3
:
/* expr ::= expr LT expr */
case
23
2
:
/* expr ::= expr LT expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_LT
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
23
4
:
/* expr ::= expr GT expr */
case
23
3
:
/* expr ::= expr GT expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_GT
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
23
5
:
/* expr ::= expr LE expr */
case
23
4
:
/* expr ::= expr LE expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_LE
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
23
6
:
/* expr ::= expr GE expr */
case
23
5
:
/* expr ::= expr GE expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_GE
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
23
7
:
/* expr ::= expr NE expr */
case
23
6
:
/* expr ::= expr NE expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_NE
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
23
8
:
/* expr ::= expr EQ expr */
case
23
7
:
/* expr ::= expr EQ expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_EQ
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
23
9
:
/* expr ::= expr BETWEEN expr AND expr */
case
23
8
:
/* expr ::= expr BETWEEN expr AND expr */
{
tSqlExpr
*
X2
=
tSqlExprClone
(
yymsp
[
-
4
].
minor
.
yy170
);
yylhsminor
.
yy170
=
tSqlExprCreate
(
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy170
,
yymsp
[
-
2
].
minor
.
yy170
,
TK_GE
),
tSqlExprCreate
(
X2
,
yymsp
[
0
].
minor
.
yy170
,
TK_LE
),
TK_AND
);}
yymsp
[
-
4
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
2
40
:
/* expr ::= expr AND expr */
case
2
39
:
/* expr ::= expr AND expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_AND
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
24
1
:
/* expr ::= expr OR expr */
case
24
0
:
/* expr ::= expr OR expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_OR
);
}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
24
2
:
/* expr ::= expr PLUS expr */
case
24
1
:
/* expr ::= expr PLUS expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_PLUS
);
}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
24
3
:
/* expr ::= expr MINUS expr */
case
24
2
:
/* expr ::= expr MINUS expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_MINUS
);
}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
24
4
:
/* expr ::= expr STAR expr */
case
24
3
:
/* expr ::= expr STAR expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_STAR
);
}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
24
5
:
/* expr ::= expr SLASH expr */
case
24
4
:
/* expr ::= expr SLASH expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_DIVIDE
);}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
24
6
:
/* expr ::= expr REM expr */
case
24
5
:
/* expr ::= expr REM expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_REM
);
}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
24
7
:
/* expr ::= expr LIKE expr */
case
24
6
:
/* expr ::= expr LIKE expr */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
2
].
minor
.
yy170
,
yymsp
[
0
].
minor
.
yy170
,
TK_LIKE
);
}
yymsp
[
-
2
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
24
8
:
/* expr ::= expr IN LP exprlist RP */
case
24
7
:
/* expr ::= expr IN LP exprlist RP */
{
yylhsminor
.
yy170
=
tSqlExprCreate
(
yymsp
[
-
4
].
minor
.
yy170
,
(
tSqlExpr
*
)
yymsp
[
-
1
].
minor
.
yy429
,
TK_IN
);
}
yymsp
[
-
4
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
24
9
:
/* exprlist ::= exprlist COMMA expritem */
case
24
8
:
/* exprlist ::= exprlist COMMA expritem */
{
yylhsminor
.
yy429
=
tSqlExprListAppend
(
yymsp
[
-
2
].
minor
.
yy429
,
yymsp
[
0
].
minor
.
yy170
,
0
,
0
);}
yymsp
[
-
2
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
2
50
:
/* exprlist ::= expritem */
case
2
49
:
/* exprlist ::= expritem */
{
yylhsminor
.
yy429
=
tSqlExprListAppend
(
0
,
yymsp
[
0
].
minor
.
yy170
,
0
,
0
);}
yymsp
[
0
].
minor
.
yy429
=
yylhsminor
.
yy429
;
break
;
case
25
1
:
/* expritem ::= expr */
case
25
0
:
/* expritem ::= expr */
{
yylhsminor
.
yy170
=
yymsp
[
0
].
minor
.
yy170
;}
yymsp
[
0
].
minor
.
yy170
=
yylhsminor
.
yy170
;
break
;
case
25
3
:
/* cmd ::= RESET QUERY CACHE */
case
25
2
:
/* cmd ::= RESET QUERY CACHE */
{
setDCLSqlElems
(
pInfo
,
TSDB_SQL_RESET_CACHE
,
0
);}
break
;
case
25
4
:
/* cmd ::= SYNCDB ids REPLICA */
case
25
3
:
/* cmd ::= SYNCDB ids REPLICA */
{
setDCLSqlElems
(
pInfo
,
TSDB_SQL_SYNC_DB_REPLICA
,
1
,
&
yymsp
[
-
1
].
minor
.
yy0
);}
break
;
case
25
5
:
/* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
case
25
4
:
/* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy429
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
25
6
:
/* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
case
25
5
:
/* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -3296,14 +3291,14 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
25
7
:
/* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
case
25
6
:
/* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy429
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
25
8
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
case
25
7
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -3314,7 +3309,7 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
25
9
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
case
25
8
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
...
...
@@ -3328,7 +3323,7 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
2
60
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
case
2
59
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
yymsp
[
-
6
].
minor
.
yy0
.
n
+=
yymsp
[
-
5
].
minor
.
yy0
.
n
;
...
...
@@ -3340,14 +3335,14 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
26
1
:
/* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
case
26
0
:
/* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy429
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
26
2
:
/* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
case
26
1
:
/* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -3358,14 +3353,14 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
26
3
:
/* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
case
26
2
:
/* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy429
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
26
4
:
/* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
case
26
3
:
/* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -3376,7 +3371,7 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
26
5
:
/* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
case
26
4
:
/* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
...
...
@@ -3390,13 +3385,13 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
26
6
:
/* cmd ::= KILL CONNECTION INTEGER */
case
26
5
:
/* cmd ::= KILL CONNECTION INTEGER */
{
setKillSql
(
pInfo
,
TSDB_SQL_KILL_CONNECTION
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
26
7
:
/* cmd ::= KILL STREAM INTEGER COLON INTEGER */
case
26
6
:
/* 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
26
8
:
/* cmd ::= KILL QUERY INTEGER COLON INTEGER */
case
26
7
:
/* 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录