Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
4456951e
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看板
提交
4456951e
编写于
9月 10, 2020
作者:
B
Bomin Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
td-1245: update sql grammar to support offset
上级
1487bc58
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
1335 addition
and
996 deletion
+1335
-996
src/client/inc/tsclient.h
src/client/inc/tsclient.h
+2
-1
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+42
-0
src/inc/taosmsg.h
src/inc/taosmsg.h
+2
-1
src/query/inc/qSqlparser.h
src/query/inc/qSqlparser.h
+7
-1
src/query/inc/sql.y
src/query/inc/sql.y
+4
-3
src/query/src/qParserImpl.c
src/query/src/qParserImpl.c
+3
-2
src/query/src/sql.c
src/query/src/sql.c
+1275
-988
src/util/src/tarray.c
src/util/src/tarray.c
+0
-0
未找到文件。
src/client/inc/tsclient.h
浏览文件 @
4456951e
...
...
@@ -228,10 +228,11 @@ typedef struct SQueryInfo {
// TODO refactor
char
intervalTimeUnit
;
char
slidingTimeUnit
;
char
offsetTimeUnit
;
STimeWindow
window
;
// query time window
int64_t
intervalTime
;
// aggregation time window range
int64_t
slidingTime
;
// sliding window in mseconds
int64_t
intervalOffset
;
// start offset of each time window
int64_t
offsetTime
;
// start offset of each time window
int32_t
tz
;
// query client timezone
SSqlGroupbyExpr
groupbyExpr
;
// group by tags info
...
...
src/client/src/tscSQLParser.c
浏览文件 @
4456951e
...
...
@@ -81,6 +81,7 @@ static void setColumnOffsetValueInResultset(SQueryInfo* pQueryInfo);
static
int32_t
parseGroupbyClause
(
SQueryInfo
*
pQueryInfo
,
tVariantList
*
pList
,
SSqlCmd
*
pCmd
);
static
int32_t
parseIntervalClause
(
SSqlCmd
*
pCmd
,
SQueryInfo
*
pQueryInfo
,
SQuerySQL
*
pQuerySql
);
static
int32_t
parseOffsetClause
(
SSqlCmd
*
pCmd
,
SQueryInfo
*
pQueryInfo
,
SQuerySQL
*
pQuerySql
);
static
int32_t
parseSlidingClause
(
SSqlCmd
*
pCmd
,
SQueryInfo
*
pQueryInfo
,
SQuerySQL
*
pQuerySql
);
static
int32_t
addProjectionExprAndResultField
(
SSqlCmd
*
pCmd
,
SQueryInfo
*
pQueryInfo
,
tSQLExprItem
*
pItem
);
...
...
@@ -613,6 +614,10 @@ int32_t parseIntervalClause(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SQuerySQL* pQ
// for top/bottom + interval query, we do not add additional timestamp column in the front
if
(
isTopBottomQuery
(
pQueryInfo
))
{
if
(
parseOffsetClause
(
pCmd
,
pQueryInfo
,
pQuerySql
)
!=
TSDB_CODE_SUCCESS
)
{
return
TSDB_CODE_TSC_INVALID_SQL
;
}
if
(
parseSlidingClause
(
pCmd
,
pQueryInfo
,
pQuerySql
)
!=
TSDB_CODE_SUCCESS
)
{
return
TSDB_CODE_TSC_INVALID_SQL
;
}
...
...
@@ -662,6 +667,10 @@ int32_t parseIntervalClause(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SQuerySQL* pQ
SColumnIndex
index
=
{
tableIndex
,
PRIMARYKEY_TIMESTAMP_COL_INDEX
};
tscAddSpecialColumnForSelect
(
pQueryInfo
,
0
,
TSDB_FUNC_TS
,
&
index
,
&
s
,
TSDB_COL_NORMAL
);
if
(
parseOffsetClause
(
pCmd
,
pQueryInfo
,
pQuerySql
)
!=
TSDB_CODE_SUCCESS
)
{
return
TSDB_CODE_TSC_INVALID_SQL
;
}
if
(
parseSlidingClause
(
pCmd
,
pQueryInfo
,
pQuerySql
)
!=
TSDB_CODE_SUCCESS
)
{
return
TSDB_CODE_TSC_INVALID_SQL
;
}
...
...
@@ -669,6 +678,39 @@ int32_t parseIntervalClause(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SQuerySQL* pQ
return
TSDB_CODE_SUCCESS
;
}
int32_t
parseOffsetClause
(
SSqlCmd
*
pCmd
,
SQueryInfo
*
pQueryInfo
,
SQuerySQL
*
pQuerySql
)
{
STableMetaInfo
*
pTableMetaInfo
=
tscGetMetaInfo
(
pQueryInfo
,
0
);
STableComInfo
tinfo
=
tscGetTableInfo
(
pTableMetaInfo
->
pTableMeta
);
SStrToken
*
pOffset
=
&
pQuerySql
->
offset
;
if
(
pOffset
->
n
==
0
)
{
pQueryInfo
->
offsetTimeUnit
=
pQueryInfo
->
offsetTimeUnit
;
pQueryInfo
->
offsetTime
=
0
;
return
TSDB_CODE_SUCCESS
;
}
getTimestampInUsFromStr
(
pOffset
->
z
,
pOffset
->
n
,
&
pQueryInfo
->
offsetTime
);
if
(
tinfo
.
precision
==
TSDB_TIME_PRECISION_MILLI
)
{
pQueryInfo
->
offsetTime
/=
1000
;
}
/*
if (pQueryInfo->offsetTime < 0) {
return invalidSqlErrMsg(tscGetErrorMsgPayload(pCmd), msg0);
}
if (pQueryInfo->slidingTime >= pQueryInfo->intervalTime) {
return invalidSqlErrMsg(tscGetErrorMsgPayload(pCmd), msg1);
}
if ((pQueryInfo->intervalTime != 0) && (pQueryInfo->intervalTime/pQueryInfo->slidingTime > INTERVAL_SLIDING_FACTOR)) {
return invalidSqlErrMsg(tscGetErrorMsgPayload(pCmd), msg2);
}
*/
return
TSDB_CODE_SUCCESS
;
}
int32_t
parseSlidingClause
(
SSqlCmd
*
pCmd
,
SQueryInfo
*
pQueryInfo
,
SQuerySQL
*
pQuerySql
)
{
const
char
*
msg0
=
"sliding value too small"
;
const
char
*
msg1
=
"sliding value no larger than the interval value"
;
...
...
src/inc/taosmsg.h
浏览文件 @
4456951e
...
...
@@ -461,10 +461,11 @@ typedef struct {
int16_t
orderColId
;
int16_t
numOfCols
;
// the number of columns will be load from vnode
int64_t
intervalTime
;
// time interval for aggregation, in million second
int64_t
intervalOffset
;
// start offset for interval query
int64_t
slidingTime
;
// value for sliding window
int64_t
offsetTime
;
// start offset for interval query
char
intervalTimeUnit
;
char
slidingTimeUnit
;
// time interval type, for revisement of interval(1d)
char
offsetTimeUnit
;
uint16_t
tagCondLen
;
// tag length in current query
int16_t
numOfGroupCols
;
// num of group by columns
int16_t
orderByIdx
;
...
...
src/query/inc/qSqlparser.h
浏览文件 @
4456951e
...
...
@@ -65,6 +65,11 @@ typedef struct tVariantList {
tVariantListItem
*
a
;
/* One entry for each expression */
}
tVariantList
;
typedef
struct
SIntervalVal
{
SStrToken
interval
;
SStrToken
offset
;
}
SIntervalVal
;
typedef
struct
SQuerySQL
{
struct
tSQLExprList
*
pSelection
;
// select clause
tVariantList
*
from
;
// from clause
...
...
@@ -72,6 +77,7 @@ typedef struct SQuerySQL {
tVariantList
*
pGroupby
;
// groupby clause, only for tags[optional]
tVariantList
*
pSortOrder
;
// orderby [optional]
SStrToken
interval
;
// interval [optional]
SStrToken
offset
;
// offset window [optional]
SStrToken
sliding
;
// sliding window [optional]
SLimitVal
limit
;
// limit offset [optional]
SLimitVal
slimit
;
// group limit offset [optional]
...
...
@@ -259,7 +265,7 @@ tSQLExprList *tSQLExprListAppend(tSQLExprList *pList, tSQLExpr *pNode, SStrToken
void
tSQLExprListDestroy
(
tSQLExprList
*
pList
);
SQuerySQL
*
tSetQuerySQLElems
(
SStrToken
*
pSelectToken
,
tSQLExprList
*
pSelection
,
tVariantList
*
pFrom
,
tSQLExpr
*
pWhere
,
tVariantList
*
pGroupby
,
tVariantList
*
pSortOrder
,
S
StrToken
*
pInterval
,
tVariantList
*
pGroupby
,
tVariantList
*
pSortOrder
,
S
IntervalVal
*
pInterval
,
SStrToken
*
pSliding
,
tVariantList
*
pFill
,
SLimitVal
*
pLimit
,
SLimitVal
*
pGLimit
);
SCreateTableSQL
*
tSetCreateSQLElems
(
tFieldList
*
pCols
,
tFieldList
*
pTags
,
SStrToken
*
pMetricName
,
...
...
src/query/inc/sql.y
浏览文件 @
4456951e
...
...
@@ -458,9 +458,10 @@ tablelist(A) ::= tablelist(Y) COMMA ids(X) cpxName(Z) ids(F). {
%type tmvar {SStrToken}
tmvar(A) ::= VARIABLE(X). {A = X;}
%type interval_opt {SStrToken}
interval_opt(N) ::= INTERVAL LP tmvar(E) RP. {N = E; }
interval_opt(N) ::= . {N.n = 0; N.z = NULL; N.type = 0; }
%type interval_opt {SIntervalVal}
interval_opt(N) ::= INTERVAL LP tmvar(E) RP. {N.interval = E; N.offset.n = 0; N.offset.z = NULL; N.offset.type = 0;}
interval_opt(N) ::= INTERVAL LP tmvar(E) COMMA tmvar(O) RP. {N.interval = E; N.offset = O;}
interval_opt(N) ::= . {memset(&N, 0, sizeof(N));}
%type fill_opt {tVariantList*}
%destructor fill_opt {tVariantListDestroy($$);}
...
...
src/query/src/qParserImpl.c
浏览文件 @
4456951e
...
...
@@ -535,7 +535,7 @@ void tSQLSetColumnType(TAOS_FIELD *pField, SStrToken *type) {
* extract the select info out of sql string
*/
SQuerySQL
*
tSetQuerySQLElems
(
SStrToken
*
pSelectToken
,
tSQLExprList
*
pSelection
,
tVariantList
*
pFrom
,
tSQLExpr
*
pWhere
,
tVariantList
*
pGroupby
,
tVariantList
*
pSortOrder
,
S
StrToken
*
pInterval
,
tVariantList
*
pGroupby
,
tVariantList
*
pSortOrder
,
S
IntervalVal
*
pInterval
,
SStrToken
*
pSliding
,
tVariantList
*
pFill
,
SLimitVal
*
pLimit
,
SLimitVal
*
pGLimit
)
{
assert
(
pSelection
!=
NULL
);
...
...
@@ -558,7 +558,8 @@ SQuerySQL *tSetQuerySQLElems(SStrToken *pSelectToken, tSQLExprList *pSelection,
}
if
(
pInterval
!=
NULL
)
{
pQuery
->
interval
=
*
pInterval
;
pQuery
->
interval
=
pInterval
->
interval
;
pQuery
->
offset
=
pInterval
->
offset
;
}
if
(
pSliding
!=
NULL
)
{
...
...
src/query/src/sql.c
浏览文件 @
4456951e
...
...
@@ -23,6 +23,7 @@
** input grammar file:
*/
#include <stdio.h>
#include <assert.h>
/************ Begin %include sections from the grammar ************************/
#include <stdio.h>
...
...
@@ -76,8 +77,10 @@
** zero the stack is dynamically sized using realloc()
** ParseARG_SDECL A static variable declaration for the %extra_argument
** ParseARG_PDECL A parameter declaration for the %extra_argument
** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter
** ParseARG_STORE Code to store %extra_argument into yypParser
** ParseARG_FETCH Code to extract %extra_argument from yypParser
** ParseCTX_* As ParseARG_ except for %extra_context
** YYERRORSYMBOL is the code number of the error symbol. If not
** defined, then do no error processing.
** YYNSTATE the combined number of states.
...
...
@@ -97,47 +100,56 @@
#endif
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned short int
#define YYNOCODE 27
2
#define YYNOCODE 27
0
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SStrToken
typedef
union
{
int
yyinit
;
ParseTOKENTYPE
yy0
;
SSubclauseInfo
*
yy25
;
tSQLExpr
*
yy66
;
SCreateAcctSQL
yy73
;
int
yy82
;
SQuerySQL
*
yy150
;
SCreateDBInfo
yy158
;
TAOS_FIELD
yy181
;
SLimitVal
yy188
;
tSQLExprList
*
yy224
;
int64_t
yy271
;
tVariant
yy312
;
SCreateTableSQL
*
yy374
;
tFieldList
*
yy449
;
tVariantList
*
yy494
;
int
yy112
;
SCreateDBInfo
yy118
;
tVariantList
*
yy156
;
tSQLExprList
*
yy158
;
tSQLExpr
*
yy190
;
SSubclauseInfo
*
yy333
;
SIntervalVal
yy340
;
TAOS_FIELD
yy343
;
int64_t
yy369
;
SCreateTableSQL
*
yy398
;
SLimitVal
yy414
;
SQuerySQL
*
yy444
;
SCreateAcctSQL
yy479
;
tVariant
yy506
;
tFieldList
*
yy511
;
}
YYMINORTYPE
;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
#define ParseARG_SDECL SSqlInfo* pInfo;
#define ParseARG_PDECL ,SSqlInfo* pInfo
#define ParseARG_FETCH SSqlInfo* pInfo = yypParser->pInfo
#define ParseARG_STORE yypParser->pInfo = pInfo
#define ParseARG_PARAM ,pInfo
#define ParseARG_FETCH SSqlInfo* pInfo=yypParser->pInfo;
#define ParseARG_STORE yypParser->pInfo=pInfo;
#define ParseCTX_SDECL
#define ParseCTX_PDECL
#define ParseCTX_PARAM
#define ParseCTX_FETCH
#define ParseCTX_STORE
#define YYFALLBACK 1
#define YYNSTATE 246
#define YYNRULE 227
#define YYNSTATE 248
#define YYNRULE 228
#define YYNRULE_WITH_ACTION 228
#define YYNTOKEN 206
#define YY_MAX_SHIFT 24
5
#define YY_MIN_SHIFTREDUCE 4
07
#define YY_MAX_SHIFTREDUCE 63
3
#define YY_ERROR_ACTION 63
4
#define YY_ACCEPT_ACTION 63
5
#define YY_NO_ACTION 6
36
#define YY_MIN_REDUCE 6
37
#define YY_MAX_REDUCE 86
3
#define YY_MAX_SHIFT 24
7
#define YY_MIN_SHIFTREDUCE 4
10
#define YY_MAX_SHIFTREDUCE 63
7
#define YY_ERROR_ACTION 63
8
#define YY_ACCEPT_ACTION 63
9
#define YY_NO_ACTION 6
40
#define YY_MIN_REDUCE 6
41
#define YY_MAX_REDUCE 86
8
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
/* Define the yytestcase() macro to be a no-op if is not already defined
** otherwise.
...
...
@@ -202,151 +214,151 @@ typedef union {
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (5
56
)
#define YY_ACTTAB_COUNT (5
60
)
static
const
YYACTIONTYPE
yy_action
[]
=
{
/* 0 */
7
37
,
448
,
11
,
735
,
736
,
635
,
245
,
448
,
738
,
449
,
/* 10 */
74
0
,
741
,
739
,
35
,
36
,
449
,
37
,
38
,
155
,
243
,
/* 20 */
16
5
,
29
,
137
,
136
,
200
,
41
,
39
,
43
,
40
,
105
,
/* 30 */
51
4
,
160
,
851
,
34
,
33
,
778
,
137
,
32
,
31
,
30
,
/* 40 */
35
,
36
,
7
67
,
37
,
38
,
159
,
851
,
165
,
29
,
767
,
/* 50 */
10
5
,
200
,
41
,
39
,
43
,
40
,
185
,
157
,
221
,
220
,
/* 60 */
34
,
33
,
13
7
,
156
,
32
,
31
,
30
,
35
,
36
,
448
,
/* 70 */
37
,
38
,
85
0
,
141
,
165
,
29
,
756
,
449
,
200
,
41
,
/* 80 */
39
,
43
,
40
,
19
7
,
78
,
60
,
775
,
34
,
33
,
232
,
/* 90 */
23
2
,
32
,
31
,
30
,
21
,
41
,
39
,
43
,
40
,
32
,
/* 100 */
31
,
30
,
56
,
34
,
33
,
8
47
,
803
,
32
,
31
,
30
,
/* 110 */
21
,
21
,
10
5
,
408
,
409
,
410
,
411
,
412
,
413
,
414
,
/* 120 */
41
5
,
416
,
417
,
418
,
419
,
244
,
587
,
169
,
36
,
753
,
/* 130 */
37
,
38
,
22
3
,
50
,
165
,
29
,
21
,
62
,
200
,
41
,
/* 140 */
39
,
43
,
40
,
17
0
,
219
,
753
,
753
,
34
,
33
,
27
,
/* 150 */
51
,
32
,
31
,
30
,
8
,
37
,
38
,
63
,
11
5
,
165
,
/* 160 */
29
,
101
,
75
4
,
200
,
41
,
39
,
43
,
40
,
804
,
224
,
/* 170 */
19
5
,
753
,
34
,
33
,
168
,
846
,
32
,
31
,
30
,
16
,
/* 180 */
21
2
,
238
,
237
,
211
,
210
,
209
,
236
,
208
,
235
,
234
,
/* 190 */
23
3
,
207
,
733
,
756
,
721
,
722
,
723
,
724
,
725
,
726
,
/* 200 */
7
27
,
728
,
729
,
730
,
731
,
732
,
164
,
600
,
12
,
239
,
/* 210 */
59
1
,
17
,
594
,
188
,
597
,
105
,
164
,
600
,
26
,
559
,
/* 220 */
59
1
,
845
,
594
,
46
,
597
,
34
,
33
,
150
,
756
,
32
,
/* 230 */
31
,
30
,
21
,
90
,
89
,
14
4
,
568
,
569
,
161
,
162
,
/* 240 */
17
1
,
149
,
199
,
76
,
80
,
85
,
88
,
79
,
161
,
162
,
/* 250 */
16
4
,
600
,
546
,
82
,
591
,
589
,
594
,
100
,
597
,
242
,
/* 260 */
24
1
,
97
,
17
,
16
,
26
,
238
,
237
,
752
,
201
,
26
,
/* 270 */
23
6
,
61
,
235
,
234
,
233
,
118
,
119
,
70
,
66
,
69
,
/* 280 */
538
,
676
,
161
,
162
,
128
,
530
,
178
,
187
,
527
,
184
,
/* 290 */
5
28
,
590
,
529
,
182
,
181
,
593
,
152
,
596
,
132
,
130
,
/* 300 */
93
,
92
,
91
,
42
,
17
2
,
543
,
685
,
218
,
217
,
128
,
/* 310 */
18
,
163
,
677
,
42
,
599
,
128
,
173
,
174
,
560
,
61
9
,
/* 320 */
153
,
47
,
14
,
13
,
599
,
592
,
601
,
595
,
520
,
598
,
/* 330 */
1
3
,
519
,
46
,
154
,
205
,
22
,
75
,
74
,
22
,
598
,
/* 340 */
48
,
10
,
9
,
534
,
532
,
535
,
533
,
42
,
87
,
86
,
/* 350 */
3
,
139
,
860
,
140
,
755
,
142
,
143
,
603
,
599
,
147
,
/* 360 */
14
8
,
146
,
135
,
145
,
138
,
814
,
813
,
166
,
810
,
809
,
/* 370 */
167
,
777
,
747
,
598
,
222
,
769
,
782
,
784
,
102
,
796
,
/* 380 */
1
14
,
116
,
795
,
117
,
687
,
206
,
133
,
531
,
186
,
26
,
/* 390 */
24
,
95
,
215
,
684
,
216
,
859
,
72
,
858
,
856
,
120
,
/* 400 */
705
,
25
,
555
,
23
,
134
,
674
,
81
,
672
,
83
,
189
,
/* 410 */
8
4
,
670
,
193
,
669
,
175
,
52
,
129
,
667
,
49
,
666
,
/* 420 */
665
,
106
,
664
,
44
,
663
,
107
,
655
,
131
,
198
,
766
,
/* 430 */
196
,
661
,
659
,
657
,
194
,
57
,
58
,
797
,
192
,
190
,
/* 440 */
28
,
214
,
77
,
225
,
226
,
227
,
228
,
229
,
230
,
203
,
/* 450 */
53
,
231
,
240
,
633
,
151
,
177
,
64
,
67
,
176
,
668
,
/* 460 */
632
,
179
,
180
,
631
,
624
,
187
,
123
,
183
,
122
,
70
6
,
/* 470 */
1
21
,
125
,
124
,
94
,
127
,
662
,
126
,
96
,
1
,
2
,
/* 480 */
540
,
112
,
108
,
109
,
751
,
110
,
113
,
111
,
59
,
55
,
/* 490 */
556
,
103
,
158
,
19
,
191
,
20
,
561
,
104
,
5
,
602
,
/* 500 */
6
,
4
,
604
,
15
,
202
,
7
,
204
,
65
,
489
,
48
5
,
/* 510 */
483
,
482
,
481
,
478
,
452
,
213
,
68
,
45
,
71
,
22
,
/* 520 */
516
,
515
,
513
,
54
,
473
,
471
,
463
,
469
,
465
,
467
,
/* 530 */
73
,
461
,
459
,
488
,
487
,
486
,
484
,
480
,
479
,
46
,
/* 540 */
4
50
,
423
,
421
,
637
,
636
,
636
,
98
,
636
,
636
,
636
,
/* 550 */
6
36
,
636
,
636
,
636
,
636
,
99
,
/* 0 */
7
41
,
451
,
11
,
739
,
740
,
639
,
247
,
451
,
742
,
452
,
/* 10 */
74
4
,
745
,
743
,
35
,
36
,
452
,
37
,
38
,
156
,
245
,
/* 20 */
16
7
,
29
,
138
,
137
,
202
,
41
,
39
,
43
,
40
,
106
,
/* 30 */
51
7
,
162
,
856
,
34
,
33
,
782
,
138
,
32
,
31
,
30
,
/* 40 */
35
,
36
,
7
71
,
37
,
38
,
161
,
856
,
167
,
29
,
771
,
/* 50 */
10
6
,
202
,
41
,
39
,
43
,
40
,
187
,
159
,
223
,
222
,
/* 60 */
34
,
33
,
13
8
,
157
,
32
,
31
,
30
,
35
,
36
,
451
,
/* 70 */
37
,
38
,
85
5
,
142
,
167
,
29
,
760
,
452
,
202
,
41
,
/* 80 */
39
,
43
,
40
,
19
9
,
78
,
60
,
779
,
34
,
33
,
234
,
/* 90 */
23
4
,
32
,
31
,
30
,
21
,
41
,
39
,
43
,
40
,
32
,
/* 100 */
31
,
30
,
56
,
34
,
33
,
8
52
,
808
,
32
,
31
,
30
,
/* 110 */
21
,
21
,
10
6
,
411
,
412
,
413
,
414
,
415
,
416
,
417
,
/* 120 */
41
8
,
419
,
420
,
421
,
422
,
246
,
591
,
171
,
36
,
757
,
/* 130 */
37
,
38
,
22
5
,
50
,
167
,
29
,
21
,
62
,
202
,
41
,
/* 140 */
39
,
43
,
40
,
17
2
,
221
,
757
,
757
,
34
,
33
,
27
,
/* 150 */
51
,
32
,
31
,
30
,
8
,
37
,
38
,
63
,
11
6
,
167
,
/* 160 */
29
,
101
,
75
8
,
202
,
41
,
39
,
43
,
40
,
809
,
226
,
/* 170 */
19
7
,
757
,
34
,
33
,
170
,
851
,
32
,
31
,
30
,
16
,
/* 180 */
21
4
,
240
,
239
,
213
,
212
,
211
,
238
,
210
,
237
,
236
,
/* 190 */
23
5
,
209
,
737
,
760
,
725
,
726
,
727
,
728
,
729
,
730
,
/* 200 */
7
31
,
732
,
733
,
734
,
735
,
736
,
166
,
604
,
12
,
241
,
/* 210 */
59
5
,
17
,
598
,
190
,
601
,
559
,
166
,
604
,
26
,
103
,
/* 220 */
59
5
,
597
,
598
,
600
,
601
,
34
,
33
,
151
,
760
,
32
,
/* 230 */
31
,
30
,
21
,
90
,
89
,
14
5
,
572
,
573
,
163
,
164
,
/* 240 */
17
3
,
150
,
201
,
76
,
80
,
85
,
88
,
79
,
163
,
164
,
/* 250 */
16
6
,
604
,
549
,
82
,
595
,
106
,
598
,
100
,
601
,
244
,
/* 260 */
24
3
,
97
,
17
,
16
,
26
,
240
,
239
,
756
,
680
,
26
,
/* 270 */
23
8
,
129
,
237
,
236
,
235
,
119
,
120
,
70
,
66
,
69
,
/* 280 */
203
,
165
,
163
,
164
,
689
,
533
,
180
,
129
,
530
,
186
,
/* 290 */
5
31
,
850
,
532
,
184
,
183
,
596
,
153
,
599
,
133
,
131
,
/* 300 */
93
,
92
,
91
,
42
,
17
4
,
546
,
681
,
220
,
219
,
129
,
/* 310 */
18
,
61
,
541
,
42
,
603
,
593
,
175
,
176
,
563
,
18
9
,
/* 320 */
3
,
47
,
46
,
537
,
603
,
538
,
564
,
623
,
605
,
602
,
/* 330 */
1
4
,
13
,
13
,
154
,
523
,
75
,
74
,
522
,
46
,
602
,
/* 340 */
48
,
22
,
207
,
535
,
155
,
536
,
22
,
42
,
10
,
9
,
/* 350 */
140
,
594
,
87
,
86
,
141
,
143
,
144
,
148
,
603
,
149
,
/* 360 */
14
7
,
136
,
146
,
139
,
865
,
759
,
819
,
818
,
168
,
607
,
/* 370 */
815
,
814
,
169
,
602
,
751
,
224
,
781
,
773
,
786
,
788
,
/* 380 */
1
02
,
801
,
117
,
800
,
115
,
118
,
26
,
534
,
188
,
691
,
/* 390 */
208
,
134
,
24
,
217
,
688
,
218
,
864
,
72
,
863
,
861
,
/* 400 */
121
,
95
,
709
,
25
,
23
,
135
,
678
,
81
,
558
,
676
,
/* 410 */
8
3
,
191
,
84
,
674
,
158
,
673
,
195
,
177
,
130
,
671
,
/* 420 */
52
,
670
,
770
,
669
,
49
,
44
,
668
,
107
,
108
,
200
,
/* 430 */
667
,
194
,
659
,
132
,
665
,
663
,
198
,
196
,
192
,
661
,
/* 440 */
28
,
57
,
58
,
802
,
216
,
77
,
227
,
228
,
229
,
230
,
/* 450 */
231
,
232
,
205
,
233
,
242
,
53
,
637
,
178
,
179
,
636
,
/* 460 */
152
,
64
,
67
,
182
,
181
,
672
,
635
,
628
,
94
,
9
6
,
/* 470 */
1
85
,
666
,
124
,
55
,
123
,
710
,
122
,
125
,
126
,
128
,
/* 480 */
127
,
1
,
2
,
189
,
755
,
543
,
59
,
560
,
111
,
109
,
/* 490 */
112
,
110
,
104
,
113
,
114
,
160
,
19
,
193
,
5
,
565
,
/* 500 */
105
,
6
,
606
,
4
,
20
,
15
,
204
,
7
,
608
,
6
5
,
/* 510 */
206
,
492
,
488
,
486
,
485
,
484
,
481
,
455
,
215
,
68
,
/* 520 */
45
,
71
,
22
,
519
,
73
,
518
,
516
,
54
,
476
,
474
,
/* 530 */
466
,
472
,
468
,
470
,
464
,
462
,
491
,
490
,
489
,
487
,
/* 540 */
4
83
,
482
,
46
,
453
,
426
,
424
,
641
,
640
,
640
,
640
,
/* 550 */
6
40
,
640
,
640
,
640
,
640
,
640
,
640
,
640
,
98
,
99
,
};
static
const
YYCODETYPE
yy_lookahead
[]
=
{
/* 0 */
22
6
,
1
,
260
,
229
,
230
,
207
,
208
,
1
,
234
,
9
,
/* 10 */
23
6
,
237
,
238
,
13
,
14
,
9
,
16
,
17
,
209
,
210
,
/* 20 */
20
,
21
,
2
60
,
260
,
24
,
25
,
26
,
27
,
28
,
210
,
/* 30 */
5
,
26
9
,
270
,
33
,
34
,
210
,
260
,
37
,
38
,
39
,
/* 40 */
13
,
14
,
24
4
,
16
,
17
,
269
,
270
,
20
,
21
,
244
,
/* 50 */
2
10
,
24
,
25
,
26
,
27
,
28
,
258
,
227
,
33
,
34
,
/* 60 */
33
,
34
,
2
60
,
258
,
37
,
38
,
39
,
13
,
14
,
1
,
/* 70 */
16
,
17
,
2
70
,
260
,
20
,
21
,
246
,
9
,
24
,
25
,
/* 80 */
26
,
27
,
28
,
26
4
,
72
,
266
,
261
,
33
,
34
,
78
,
/* 90 */
78
,
37
,
38
,
39
,
2
10
,
25
,
26
,
27
,
28
,
37
,
/* 100 */
38
,
39
,
102
,
33
,
34
,
2
60
,
266
,
37
,
38
,
39
,
/* 110 */
2
10
,
210
,
210
,
45
,
46
,
47
,
48
,
49
,
50
,
51
,
/* 120 */
52
,
53
,
54
,
55
,
56
,
57
,
99
,
24
3
,
14
,
245
,
/* 130 */
16
,
17
,
2
10
,
103
,
20
,
21
,
210
,
247
,
24
,
25
,
/* 140 */
26
,
27
,
28
,
24
3
,
243
,
245
,
245
,
33
,
34
,
259
,
/* 0 */
22
5
,
1
,
259
,
228
,
229
,
206
,
207
,
1
,
233
,
9
,
/* 10 */
23
5
,
236
,
237
,
13
,
14
,
9
,
16
,
17
,
208
,
209
,
/* 20 */
20
,
21
,
2
59
,
259
,
24
,
25
,
26
,
27
,
28
,
209
,
/* 30 */
5
,
26
8
,
269
,
33
,
34
,
209
,
259
,
37
,
38
,
39
,
/* 40 */
13
,
14
,
24
3
,
16
,
17
,
268
,
269
,
20
,
21
,
243
,
/* 50 */
2
09
,
24
,
25
,
26
,
27
,
28
,
257
,
226
,
33
,
34
,
/* 60 */
33
,
34
,
2
59
,
257
,
37
,
38
,
39
,
13
,
14
,
1
,
/* 70 */
16
,
17
,
2
69
,
259
,
20
,
21
,
245
,
9
,
24
,
25
,
/* 80 */
26
,
27
,
28
,
26
3
,
72
,
265
,
260
,
33
,
34
,
78
,
/* 90 */
78
,
37
,
38
,
39
,
2
09
,
25
,
26
,
27
,
28
,
37
,
/* 100 */
38
,
39
,
102
,
33
,
34
,
2
59
,
265
,
37
,
38
,
39
,
/* 110 */
2
09
,
209
,
209
,
45
,
46
,
47
,
48
,
49
,
50
,
51
,
/* 120 */
52
,
53
,
54
,
55
,
56
,
57
,
99
,
24
2
,
14
,
244
,
/* 130 */
16
,
17
,
2
09
,
103
,
20
,
21
,
209
,
246
,
24
,
25
,
/* 140 */
26
,
27
,
28
,
24
2
,
242
,
244
,
244
,
33
,
34
,
258
,
/* 150 */
120
,
37
,
38
,
39
,
98
,
16
,
17
,
101
,
102
,
20
,
/* 160 */
21
,
2
10
,
240
,
24
,
25
,
26
,
27
,
28
,
266
,
243
,
/* 170 */
26
8
,
245
,
33
,
34
,
227
,
260
,
37
,
38
,
39
,
85
,
/* 160 */
21
,
2
09
,
239
,
24
,
25
,
26
,
27
,
28
,
265
,
242
,
/* 170 */
26
7
,
244
,
33
,
34
,
226
,
259
,
37
,
38
,
39
,
85
,
/* 180 */
86
,
87
,
88
,
89
,
90
,
91
,
92
,
93
,
94
,
95
,
/* 190 */
96
,
97
,
22
6
,
246
,
228
,
229
,
230
,
231
,
232
,
233
,
/* 200 */
23
4
,
235
,
236
,
237
,
238
,
239
,
1
,
2
,
44
,
227
,
/* 210 */
5
,
98
,
7
,
26
2
,
9
,
210
,
1
,
2
,
105
,
99
,
/* 220 */
5
,
260
,
7
,
103
,
9
,
33
,
34
,
63
,
246
,
37
,
/* 230 */
38
,
39
,
2
10
,
69
,
70
,
71
,
115
,
116
,
33
,
34
,
/* 190 */
96
,
97
,
22
5
,
245
,
227
,
228
,
229
,
230
,
231
,
232
,
/* 200 */
23
3
,
234
,
235
,
236
,
237
,
238
,
1
,
2
,
44
,
226
,
/* 210 */
5
,
98
,
7
,
26
1
,
9
,
99
,
1
,
2
,
105
,
103
,
/* 220 */
5
,
5
,
7
,
7
,
9
,
33
,
34
,
63
,
245
,
37
,
/* 230 */
38
,
39
,
2
09
,
69
,
70
,
71
,
115
,
116
,
33
,
34
,
/* 240 */
63
,
77
,
37
,
64
,
65
,
66
,
67
,
68
,
33
,
34
,
/* 250 */
1
,
2
,
37
,
74
,
5
,
1
,
7
,
98
,
9
,
60
,
/* 260 */
61
,
62
,
98
,
85
,
105
,
87
,
88
,
24
5
,
15
,
105
,
/* 270 */
92
,
2
6
6
,
94
,
95
,
96
,
64
,
65
,
66
,
67
,
68
,
/* 280 */
99
,
214
,
33
,
34
,
217
,
2
,
126
,
10
6
,
5
,
125
,
/* 290 */
7
,
37
,
9
,
133
,
134
,
5
,
132
,
7
,
64
,
65
,
/* 300 */
66
,
67
,
68
,
98
,
127
,
103
,
21
4
,
130
,
131
,
217
,
/* 310 */
108
,
59
,
214
,
98
,
109
,
217
,
33
,
34
,
99
,
99
,
/* 320 */
260
,
103
,
103
,
103
,
109
,
5
,
99
,
7
,
99
,
124
,
/* 330 */
103
,
99
,
103
,
260
,
99
,
103
,
128
,
12
9
,
103
,
124
,
/* 340 */
122
,
1
28
,
129
,
5
,
5
,
7
,
7
,
98
,
72
,
73
,
/* 350 */
98
,
260
,
246
,
260
,
246
,
260
,
260
,
104
,
109
,
260
,
/* 360 */
2
60
,
260
,
260
,
260
,
260
,
241
,
241
,
241
,
241
,
241
,
/* 370 */
24
1
,
210
,
242
,
124
,
241
,
244
,
210
,
210
,
210
,
267
,
/* 380 */
2
48
,
210
,
267
,
210
,
210
,
210
,
210
,
104
,
244
,
105
,
/* 390 */
2
10
,
59
,
210
,
210
,
210
,
210
,
210
,
210
,
210
,
210
,
/* 400 */
2
10
,
210
,
109
,
210
,
210
,
210
,
210
,
210
,
210
,
263
,
/* 410 */
2
10
,
210
,
263
,
210
,
210
,
119
,
210
,
210
,
121
,
210
,
/* 420 */
210
,
256
,
210
,
118
,
210
,
255
,
210
,
210
,
113
,
257
,
/* 430 */
117
,
210
,
210
,
210
,
112
,
211
,
211
,
211
,
111
,
110
,
/* 440 */
123
,
75
,
84
,
83
,
49
,
80
,
82
,
53
,
81
,
211
,
/* 450 */
211
,
79
,
75
,
5
,
211
,
5
,
215
,
215
,
135
,
211
,
/* 460 */
5
,
135
,
5
,
5
,
86
,
106
,
219
,
126
,
223
,
225
,
/* 470 */
224
,
220
,
222
,
212
,
218
,
211
,
221
,
212
,
216
,
213
,
/* 480 */
99
,
250
,
254
,
253
,
244
,
252
,
249
,
251
,
103
,
107
,
/* 490 */
99
,
98
,
1
,
103
,
98
,
103
,
99
,
98
,
114
,
99
,
/* 500 */
114
,
98
,
104
,
98
,
100
,
98
,
100
,
72
,
9
,
5
,
/* 510 */
5
,
5
,
5
,
5
,
76
,
15
,
72
,
16
,
129
,
103
,
/* 520 */
5
,
5
,
99
,
98
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 530 */
129
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
103
,
/* 540 */
76
,
59
,
58
,
0
,
271
,
271
,
21
,
271
,
271
,
271
,
/* 550 */
27
1
,
271
,
271
,
271
,
271
,
21
,
271
,
271
,
271
,
27
1
,
/* 560 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 570 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 580 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 590 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 600 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 610 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 620 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 630 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 640 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 650 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 660 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 670 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 680 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 690 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 700 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 710 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 720 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 730 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 740 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 750 */
27
1
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
271
,
/* 760 */
27
1
,
271
,
/* 250 */
1
,
2
,
37
,
74
,
5
,
209
,
7
,
98
,
9
,
60
,
/* 260 */
61
,
62
,
98
,
85
,
105
,
87
,
88
,
24
4
,
213
,
105
,
/* 270 */
92
,
2
1
6
,
94
,
95
,
96
,
64
,
65
,
66
,
67
,
68
,
/* 280 */
15
,
59
,
33
,
34
,
213
,
2
,
126
,
21
6
,
5
,
125
,
/* 290 */
7
,
259
,
9
,
133
,
134
,
5
,
132
,
7
,
64
,
65
,
/* 300 */
66
,
67
,
68
,
98
,
127
,
103
,
21
3
,
130
,
131
,
216
,
/* 310 */
108
,
265
,
99
,
98
,
109
,
1
,
33
,
34
,
99
,
106
,
/* 320 */
98
,
103
,
103
,
5
,
109
,
7
,
99
,
99
,
99
,
124
,
/* 330 */
103
,
103
,
103
,
259
,
99
,
128
,
129
,
9
9
,
103
,
124
,
/* 340 */
122
,
1
03
,
99
,
5
,
259
,
7
,
103
,
98
,
128
,
129
,
/* 350 */
259
,
37
,
72
,
73
,
259
,
259
,
259
,
259
,
109
,
259
,
/* 360 */
2
59
,
259
,
259
,
259
,
245
,
245
,
240
,
240
,
240
,
104
,
/* 370 */
24
0
,
240
,
240
,
124
,
241
,
240
,
209
,
243
,
209
,
209
,
/* 380 */
2
09
,
266
,
209
,
266
,
247
,
209
,
105
,
104
,
243
,
209
,
/* 390 */
2
09
,
209
,
209
,
209
,
209
,
209
,
209
,
209
,
209
,
209
,
/* 400 */
2
09
,
59
,
209
,
209
,
209
,
209
,
209
,
209
,
109
,
209
,
/* 410 */
2
09
,
262
,
209
,
209
,
262
,
209
,
262
,
209
,
209
,
209
,
/* 420 */
119
,
209
,
256
,
209
,
121
,
118
,
209
,
255
,
254
,
113
,
/* 430 */
209
,
111
,
209
,
209
,
209
,
209
,
117
,
112
,
110
,
209
,
/* 440 */
123
,
210
,
210
,
210
,
75
,
84
,
83
,
49
,
80
,
82
,
/* 450 */
53
,
81
,
210
,
79
,
75
,
210
,
5
,
135
,
5
,
5
,
/* 460 */
210
,
214
,
214
,
5
,
135
,
210
,
5
,
86
,
211
,
211
,
/* 470 */
126
,
210
,
218
,
107
,
222
,
224
,
223
,
221
,
219
,
217
,
/* 480 */
220
,
215
,
212
,
106
,
243
,
99
,
103
,
99
,
251
,
253
,
/* 490 */
250
,
252
,
98
,
249
,
248
,
1
,
103
,
98
,
114
,
99
,
/* 500 */
98
,
114
,
99
,
98
,
103
,
98
,
100
,
98
,
104
,
72
,
/* 510 */
100
,
9
,
5
,
5
,
5
,
5
,
5
,
76
,
15
,
72
,
/* 520 */
16
,
129
,
103
,
5
,
129
,
5
,
99
,
98
,
5
,
5
,
/* 530 */
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 540 */
5
,
5
,
103
,
76
,
59
,
58
,
0
,
270
,
270
,
270
,
/* 550 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
21
,
2
1
,
/* 560 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 570 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 580 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 590 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 600 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 610 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 620 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 630 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 640 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 650 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 660 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 670 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 680 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 690 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 700 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 710 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 720 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 730 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 740 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 750 */
27
0
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
270
,
/* 760 */
27
0
,
270
,
270
,
270
,
270
,
270
,
};
#define YY_SHIFT_COUNT (24
5
)
#define YY_SHIFT_COUNT (24
7
)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (54
3
)
#define YY_SHIFT_MAX (54
6
)
static
const
unsigned
short
int
yy_shift_ofst
[]
=
{
/* 0 */
164
,
94
,
178
,
205
,
249
,
6
,
6
,
6
,
6
,
6
,
/* 10 */
6
,
0
,
68
,
249
,
283
,
283
,
283
,
113
,
6
,
6
,
/* 20 */
6
,
6
,
6
,
12
,
11
,
11
,
5
56
,
215
,
249
,
249
,
/* 20 */
6
,
6
,
6
,
12
,
11
,
11
,
5
60
,
215
,
249
,
249
,
/* 30 */
249
,
249
,
249
,
249
,
249
,
249
,
249
,
249
,
249
,
249
,
/* 40 */
249
,
249
,
249
,
249
,
249
,
283
,
283
,
25
,
25
,
25
,
/* 50 */
25
,
25
,
25
,
56
,
25
,
159
,
6
,
6
,
6
,
6
,
...
...
@@ -354,67 +366,67 @@ static const unsigned short int yy_shift_ofst[] = {
/* 70 */
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
/* 80 */
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
/* 90 */
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
6
,
/* 100 */
28
4
,
332
,
332
,
293
,
293
,
332
,
296
,
297
,
305
,
315
,
/* 110 */
31
3
,
322
,
327
,
329
,
317
,
284
,
332
,
332
,
366
,
366
,
/* 120 */
3
32
,
358
,
360
,
395
,
365
,
364
,
394
,
367
,
372
,
332
,
/* 130 */
3
77
,
332
,
377
,
556
,
556
,
27
,
54
,
54
,
54
,
11
4
,
/* 140 */
1
39
,
70
,
70
,
70
,
179
,
192
,
192
,
192
,
192
,
211
,
/* 150 */
2
34
,
177
,
160
,
62
,
62
,
199
,
181
,
120
,
219
,
220
,
/* 160 */
227
,
2
90
,
320
,
254
,
252
,
253
,
218
,
30
,
229
,
232
,
/* 170 */
235
,
2
08
,
213
,
338
,
339
,
276
,
448
,
323
,
450
,
455
,
/* 180 */
326
,
457
,
458
,
378
,
341
,
359
,
381
,
382
,
385
,
391
,
/* 190 */
3
93
,
491
,
396
,
397
,
399
,
390
,
384
,
392
,
386
,
400
,
/* 200 */
403
,
398
,
405
,
404
,
407
,
406
,
435
,
499
,
504
,
505
,
/* 210 */
50
6
,
507
,
508
,
438
,
500
,
444
,
501
,
389
,
401
,
416
,
/* 220 */
515
,
516
,
423
,
425
,
416
,
519
,
520
,
521
,
522
,
523
,
/* 230 */
52
4
,
526
,
527
,
528
,
529
,
530
,
531
,
532
,
533
,
436
,
/* 240 */
464
,
525
,
534
,
482
,
484
,
543
,
/* 100 */
28
1
,
342
,
342
,
299
,
299
,
299
,
342
,
301
,
303
,
307
,
/* 110 */
31
6
,
319
,
325
,
320
,
328
,
317
,
281
,
342
,
342
,
369
,
/* 120 */
3
69
,
342
,
361
,
363
,
398
,
368
,
367
,
397
,
370
,
374
,
/* 130 */
3
42
,
379
,
342
,
379
,
560
,
560
,
27
,
54
,
54
,
5
4
,
/* 140 */
1
14
,
139
,
70
,
70
,
70
,
179
,
192
,
192
,
192
,
192
,
/* 150 */
2
11
,
234
,
177
,
160
,
62
,
62
,
199
,
213
,
116
,
219
,
/* 160 */
227
,
2
28
,
229
,
216
,
290
,
314
,
222
,
265
,
218
,
30
,
/* 170 */
235
,
2
38
,
243
,
207
,
220
,
318
,
338
,
280
,
451
,
322
,
/* 180 */
453
,
454
,
329
,
458
,
461
,
381
,
344
,
377
,
386
,
366
,
/* 190 */
3
83
,
388
,
394
,
494
,
399
,
400
,
402
,
393
,
384
,
401
,
/* 200 */
387
,
403
,
405
,
404
,
407
,
406
,
409
,
410
,
437
,
502
,
/* 210 */
50
7
,
508
,
509
,
510
,
511
,
441
,
503
,
447
,
504
,
392
,
/* 220 */
395
,
419
,
518
,
520
,
427
,
429
,
419
,
523
,
524
,
525
,
/* 230 */
52
6
,
527
,
528
,
529
,
530
,
531
,
532
,
533
,
534
,
535
,
/* 240 */
536
,
439
,
467
,
537
,
538
,
485
,
487
,
546
,
};
#define YY_REDUCE_COUNT (13
4
)
#define YY_REDUCE_MIN (-25
8
)
#define YY_REDUCE_MAX (2
66
)
#define YY_REDUCE_COUNT (13
5
)
#define YY_REDUCE_MIN (-25
7
)
#define YY_REDUCE_MAX (2
70
)
static
const
short
yy_reduce_ofst
[]
=
{
/* 0 */
-
20
2
,
-
34
,
-
226
,
-
238
,
-
224
,
-
98
,
-
181
,
-
116
,
-
100
,
-
99
,
/* 10 */
-
7
4
,
-
175
,
-
191
,
-
198
,
-
170
,
-
53
,
-
18
,
-
195
,
-
49
,
-
160
,
/* 20 */
5
,
-
78
,
22
,
67
,
92
,
98
,
-
110
,
-
258
,
-
237
,
-
187
,
/* 30 */
-
15
5
,
-
85
,
-
39
,
60
,
73
,
91
,
93
,
95
,
96
,
99
,
/* 40 */
100
,
101
,
102
,
103
,
104
,
1
06
,
108
,
124
,
125
,
126
,
/* 50 */
1
27
,
128
,
129
,
130
,
133
,
131
,
161
,
166
,
167
,
168
,
/* 60 */
11
2
,
115
,
132
,
171
,
173
,
174
,
175
,
176
,
180
,
182
,
/* 70 */
18
3
,
184
,
185
,
186
,
187
,
188
,
189
,
190
,
191
,
193
,
/* 80 */
19
4
,
195
,
196
,
197
,
198
,
200
,
201
,
203
,
204
,
206
,
/* 90 */
2
07
,
209
,
210
,
212
,
214
,
216
,
217
,
221
,
222
,
223
,
/* 100 */
14
4
,
224
,
225
,
146
,
149
,
226
,
172
,
165
,
170
,
228
,
/* 110 */
23
0
,
233
,
236
,
231
,
237
,
240
,
238
,
239
,
241
,
242
,
/* 120 */
24
3
,
244
,
246
,
245
,
247
,
250
,
251
,
255
,
256
,
248
,
/* 130 */
2
61
,
264
,
265
,
262
,
266
,
/* 0 */
-
20
1
,
-
33
,
-
225
,
-
237
,
-
223
,
-
97
,
-
180
,
-
115
,
-
99
,
-
98
,
/* 10 */
-
7
3
,
-
174
,
-
190
,
-
197
,
-
169
,
-
52
,
-
17
,
-
194
,
-
48
,
-
159
,
/* 20 */
46
,
-
77
,
23
,
55
,
71
,
93
,
-
109
,
-
257
,
-
236
,
-
186
,
/* 30 */
-
15
4
,
-
84
,
32
,
74
,
85
,
91
,
95
,
96
,
97
,
98
,
/* 40 */
100
,
101
,
102
,
103
,
104
,
1
19
,
120
,
126
,
127
,
128
,
/* 50 */
1
30
,
131
,
132
,
133
,
135
,
134
,
167
,
169
,
170
,
171
,
/* 60 */
11
5
,
117
,
137
,
173
,
176
,
180
,
181
,
182
,
183
,
184
,
/* 70 */
18
5
,
186
,
187
,
188
,
189
,
190
,
191
,
193
,
194
,
195
,
/* 80 */
19
6
,
197
,
198
,
200
,
201
,
203
,
204
,
206
,
208
,
209
,
/* 90 */
2
10
,
212
,
214
,
217
,
221
,
223
,
224
,
225
,
226
,
230
,
/* 100 */
14
5
,
231
,
232
,
149
,
152
,
154
,
233
,
166
,
172
,
174
,
/* 110 */
23
6
,
239
,
237
,
240
,
244
,
246
,
241
,
242
,
245
,
247
,
/* 120 */
24
8
,
250
,
251
,
253
,
252
,
254
,
256
,
259
,
260
,
262
,
/* 130 */
2
55
,
257
,
261
,
258
,
266
,
270
,
};
static
const
YYACTIONTYPE
yy_default
[]
=
{
/* 0 */
63
4
,
686
,
675
,
853
,
853
,
634
,
634
,
634
,
634
,
634
,
/* 10 */
63
4
,
779
,
652
,
853
,
634
,
634
,
634
,
634
,
634
,
634
,
/* 20 */
63
4
,
634
,
634
,
688
,
688
,
688
,
774
,
634
,
634
,
634
,
/* 30 */
63
4
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
/* 40 */
63
4
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
/* 50 */
63
4
,
634
,
634
,
634
,
634
,
634
,
634
,
781
,
783
,
634
,
/* 60 */
80
0
,
800
,
772
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
/* 70 */
63
4
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
/* 80 */
63
4
,
673
,
634
,
671
,
634
,
634
,
634
,
634
,
634
,
634
,
/* 90 */
63
4
,
634
,
634
,
634
,
634
,
634
,
634
,
660
,
634
,
634
,
/* 100 */
63
4
,
654
,
654
,
634
,
634
,
654
,
807
,
811
,
805
,
793
,
/* 110 */
801
,
792
,
788
,
787
,
815
,
634
,
654
,
654
,
683
,
683
,
/* 120 */
6
54
,
704
,
702
,
700
,
692
,
698
,
694
,
696
,
690
,
65
4
,
/* 130 */
6
81
,
654
,
681
,
720
,
734
,
634
,
816
,
852
,
806
,
842
,
/* 140 */
84
1
,
848
,
840
,
839
,
634
,
835
,
836
,
838
,
837
,
634
,
/* 150 */
63
4
,
634
,
634
,
844
,
843
,
634
,
634
,
634
,
634
,
634
,
/* 160 */
63
4
,
634
,
634
,
634
,
818
,
634
,
812
,
808
,
634
,
634
,
/* 170 */
63
4
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
/* 180 */
63
4
,
634
,
634
,
634
,
634
,
771
,
634
,
634
,
780
,
634
,
/* 190 */
634
,
634
,
634
,
634
,
634
,
802
,
634
,
794
,
634
,
634
,
/* 200 */
63
4
,
634
,
634
,
634
,
634
,
748
,
634
,
634
,
634
,
634
,
/* 210 */
63
4
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
857
,
/* 220 */
63
4
,
634
,
634
,
742
,
855
,
634
,
634
,
634
,
634
,
634
,
/* 230 */
63
4
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
634
,
707
,
/* 240 */
63
4
,
658
,
656
,
634
,
650
,
634
,
/* 0 */
63
8
,
690
,
679
,
858
,
858
,
638
,
638
,
638
,
638
,
638
,
/* 10 */
63
8
,
783
,
656
,
858
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 20 */
63
8
,
638
,
638
,
692
,
692
,
692
,
778
,
638
,
638
,
638
,
/* 30 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 40 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 50 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
785
,
787
,
638
,
/* 60 */
80
5
,
805
,
776
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 70 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 80 */
63
8
,
677
,
638
,
675
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 90 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
664
,
638
,
638
,
/* 100 */
63
8
,
658
,
658
,
638
,
638
,
638
,
658
,
812
,
816
,
810
,
/* 110 */
798
,
806
,
797
,
793
,
792
,
820
,
638
,
658
,
658
,
687
,
/* 120 */
6
87
,
658
,
708
,
706
,
704
,
696
,
702
,
698
,
700
,
69
4
,
/* 130 */
6
58
,
685
,
658
,
685
,
724
,
738
,
638
,
821
,
857
,
811
,
/* 140 */
84
7
,
846
,
853
,
845
,
844
,
638
,
840
,
841
,
843
,
842
,
/* 150 */
63
8
,
638
,
638
,
638
,
849
,
848
,
638
,
638
,
638
,
638
,
/* 160 */
63
8
,
638
,
638
,
638
,
638
,
638
,
823
,
638
,
817
,
813
,
/* 170 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 180 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
775
,
638
,
638
,
/* 190 */
784
,
638
,
638
,
638
,
638
,
638
,
638
,
807
,
638
,
799
,
/* 200 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
752
,
638
,
638
,
/* 210 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 220 */
63
8
,
862
,
638
,
638
,
638
,
746
,
860
,
638
,
638
,
638
,
/* 230 */
63
8
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
638
,
/* 240 */
63
8
,
711
,
638
,
662
,
660
,
638
,
654
,
638
,
};
/********** End of lemon-generated parsing tables *****************************/
...
...
@@ -679,6 +691,7 @@ struct yyParser {
int
yyerrcnt
;
/* Shifts left before out of the error */
#endif
ParseARG_SDECL
/* A place to hold %extra_argument */
ParseCTX_SDECL
/* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
int
yystksz
;
/* Current side of the stack */
yyStackEntry
*
yystack
;
/* The parser's stack */
...
...
@@ -932,71 +945,70 @@ static const char *const yyTokenName[] = {
/* 203 */
"INSERT"
,
/* 204 */
"INTO"
,
/* 205 */
"VALUES"
,
/* 206 */
"error"
,
/* 207 */
"program"
,
/* 208 */
"cmd"
,
/* 209 */
"dbPrefix"
,
/* 210 */
"ids"
,
/* 211 */
"cpxName"
,
/* 212 */
"ifexists"
,
/* 213 */
"alter_db_optr"
,
/* 214 */
"acct_optr"
,
/* 215 */
"ifnotexists"
,
/* 216 */
"db_optr"
,
/* 217 */
"pps"
,
/* 218 */
"tseries"
,
/* 219 */
"dbs"
,
/* 220 */
"streams"
,
/* 221 */
"storage"
,
/* 222 */
"qtime"
,
/* 223 */
"users"
,
/* 224 */
"conns"
,
/* 225 */
"state"
,
/* 226 */
"keep"
,
/* 227 */
"tagitemlist"
,
/* 228 */
"cache"
,
/* 229 */
"replica"
,
/* 230 */
"quorum"
,
/* 231 */
"days"
,
/* 232 */
"minrows"
,
/* 233 */
"maxrows"
,
/* 234 */
"blocks"
,
/* 235 */
"ctime"
,
/* 236 */
"wal"
,
/* 237 */
"fsync"
,
/* 238 */
"comp"
,
/* 239 */
"prec"
,
/* 240 */
"typename"
,
/* 241 */
"signed"
,
/* 242 */
"create_table_args"
,
/* 243 */
"columnlist"
,
/* 244 */
"select"
,
/* 245 */
"column"
,
/* 246 */
"tagitem"
,
/* 247 */
"selcollist"
,
/* 248 */
"from"
,
/* 249 */
"where_opt"
,
/* 250 */
"interval_opt"
,
/* 251 */
"fill_opt"
,
/* 252 */
"sliding_opt"
,
/* 253 */
"groupby_opt"
,
/* 254 */
"orderby_opt"
,
/* 255 */
"having_opt"
,
/* 256 */
"slimit_opt"
,
/* 257 */
"limit_opt"
,
/* 258 */
"union"
,
/* 259 */
"sclp"
,
/* 260 */
"expr"
,
/* 261 */
"as"
,
/* 262 */
"tablelist"
,
/* 263 */
"tmvar"
,
/* 264 */
"sortlist"
,
/* 265 */
"sortitem"
,
/* 266 */
"item"
,
/* 267 */
"sortorder"
,
/* 268 */
"grouplist"
,
/* 269 */
"exprlist"
,
/* 270 */
"expritem"
,
/* 206 */
"program"
,
/* 207 */
"cmd"
,
/* 208 */
"dbPrefix"
,
/* 209 */
"ids"
,
/* 210 */
"cpxName"
,
/* 211 */
"ifexists"
,
/* 212 */
"alter_db_optr"
,
/* 213 */
"acct_optr"
,
/* 214 */
"ifnotexists"
,
/* 215 */
"db_optr"
,
/* 216 */
"pps"
,
/* 217 */
"tseries"
,
/* 218 */
"dbs"
,
/* 219 */
"streams"
,
/* 220 */
"storage"
,
/* 221 */
"qtime"
,
/* 222 */
"users"
,
/* 223 */
"conns"
,
/* 224 */
"state"
,
/* 225 */
"keep"
,
/* 226 */
"tagitemlist"
,
/* 227 */
"cache"
,
/* 228 */
"replica"
,
/* 229 */
"quorum"
,
/* 230 */
"days"
,
/* 231 */
"minrows"
,
/* 232 */
"maxrows"
,
/* 233 */
"blocks"
,
/* 234 */
"ctime"
,
/* 235 */
"wal"
,
/* 236 */
"fsync"
,
/* 237 */
"comp"
,
/* 238 */
"prec"
,
/* 239 */
"typename"
,
/* 240 */
"signed"
,
/* 241 */
"create_table_args"
,
/* 242 */
"columnlist"
,
/* 243 */
"select"
,
/* 244 */
"column"
,
/* 245 */
"tagitem"
,
/* 246 */
"selcollist"
,
/* 247 */
"from"
,
/* 248 */
"where_opt"
,
/* 249 */
"interval_opt"
,
/* 250 */
"fill_opt"
,
/* 251 */
"sliding_opt"
,
/* 252 */
"groupby_opt"
,
/* 253 */
"orderby_opt"
,
/* 254 */
"having_opt"
,
/* 255 */
"slimit_opt"
,
/* 256 */
"limit_opt"
,
/* 257 */
"union"
,
/* 258 */
"sclp"
,
/* 259 */
"expr"
,
/* 260 */
"as"
,
/* 261 */
"tablelist"
,
/* 262 */
"tmvar"
,
/* 263 */
"sortlist"
,
/* 264 */
"sortitem"
,
/* 265 */
"item"
,
/* 266 */
"sortorder"
,
/* 267 */
"grouplist"
,
/* 268 */
"exprlist"
,
/* 269 */
"expritem"
,
};
#endif
/* defined(YYCOVERAGE) || !defined(NDEBUG) */
...
...
@@ -1154,83 +1166,84 @@ static const char *const yyRuleName[] = {
/* 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 IS NULL"
,
/* 197 */
"expr ::= expr IS NOT NULL"
,
/* 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 AND expr"
,
/* 205 */
"expr ::= expr OR 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"
,
/* 150 */
"interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP"
,
/* 151 */
"interval_opt ::="
,
/* 152 */
"fill_opt ::="
,
/* 153 */
"fill_opt ::= FILL LP ID COMMA tagitemlist RP"
,
/* 154 */
"fill_opt ::= FILL LP ID RP"
,
/* 155 */
"sliding_opt ::= SLIDING LP tmvar RP"
,
/* 156 */
"sliding_opt ::="
,
/* 157 */
"orderby_opt ::="
,
/* 158 */
"orderby_opt ::= ORDER BY sortlist"
,
/* 159 */
"sortlist ::= sortlist COMMA item sortorder"
,
/* 160 */
"sortlist ::= item sortorder"
,
/* 161 */
"item ::= ids cpxName"
,
/* 162 */
"sortorder ::= ASC"
,
/* 163 */
"sortorder ::= DESC"
,
/* 164 */
"sortorder ::="
,
/* 165 */
"groupby_opt ::="
,
/* 166 */
"groupby_opt ::= GROUP BY grouplist"
,
/* 167 */
"grouplist ::= grouplist COMMA item"
,
/* 168 */
"grouplist ::= item"
,
/* 169 */
"having_opt ::="
,
/* 170 */
"having_opt ::= HAVING expr"
,
/* 171 */
"limit_opt ::="
,
/* 172 */
"limit_opt ::= LIMIT signed"
,
/* 173 */
"limit_opt ::= LIMIT signed OFFSET signed"
,
/* 174 */
"limit_opt ::= LIMIT signed COMMA signed"
,
/* 175 */
"slimit_opt ::="
,
/* 176 */
"slimit_opt ::= SLIMIT signed"
,
/* 177 */
"slimit_opt ::= SLIMIT signed SOFFSET signed"
,
/* 178 */
"slimit_opt ::= SLIMIT signed COMMA signed"
,
/* 179 */
"where_opt ::="
,
/* 180 */
"where_opt ::= WHERE expr"
,
/* 181 */
"expr ::= LP expr RP"
,
/* 182 */
"expr ::= ID"
,
/* 183 */
"expr ::= ID DOT ID"
,
/* 184 */
"expr ::= ID DOT STAR"
,
/* 185 */
"expr ::= INTEGER"
,
/* 186 */
"expr ::= MINUS INTEGER"
,
/* 187 */
"expr ::= PLUS INTEGER"
,
/* 188 */
"expr ::= FLOAT"
,
/* 189 */
"expr ::= MINUS FLOAT"
,
/* 190 */
"expr ::= PLUS FLOAT"
,
/* 191 */
"expr ::= STRING"
,
/* 192 */
"expr ::= NOW"
,
/* 193 */
"expr ::= VARIABLE"
,
/* 194 */
"expr ::= BOOL"
,
/* 195 */
"expr ::= ID LP exprlist RP"
,
/* 196 */
"expr ::= ID LP STAR RP"
,
/* 197 */
"expr ::= expr IS NULL"
,
/* 198 */
"expr ::= expr IS NOT NULL"
,
/* 199 */
"expr ::= expr LT expr"
,
/* 200 */
"expr ::= expr GT expr"
,
/* 201 */
"expr ::= expr LE expr"
,
/* 202 */
"expr ::= expr GE expr"
,
/* 203 */
"expr ::= expr NE expr"
,
/* 204 */
"expr ::= expr EQ expr"
,
/* 205 */
"expr ::= expr AND expr"
,
/* 206 */
"expr ::= expr OR expr"
,
/* 207 */
"expr ::= expr PLUS expr"
,
/* 208 */
"expr ::= expr MINUS expr"
,
/* 209 */
"expr ::= expr STAR expr"
,
/* 210 */
"expr ::= expr SLASH expr"
,
/* 211 */
"expr ::= expr REM expr"
,
/* 212 */
"expr ::= expr LIKE expr"
,
/* 213 */
"expr ::= expr IN LP exprlist RP"
,
/* 214 */
"exprlist ::= exprlist COMMA expritem"
,
/* 215 */
"exprlist ::= expritem"
,
/* 216 */
"expritem ::= expr"
,
/* 217 */
"expritem ::="
,
/* 218 */
"cmd ::= RESET QUERY CACHE"
,
/* 219 */
"cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist"
,
/* 220 */
"cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids"
,
/* 221 */
"cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist"
,
/* 222 */
"cmd ::= ALTER TABLE ids cpxName DROP TAG ids"
,
/* 223 */
"cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids"
,
/* 224 */
"cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 225 */
"cmd ::= KILL CONNECTION INTEGER"
,
/* 226 */
"cmd ::= KILL STREAM INTEGER COLON INTEGER"
,
/* 227 */
"cmd ::= KILL QUERY INTEGER COLON INTEGER"
,
};
#endif
/* NDEBUG */
...
...
@@ -1279,28 +1292,29 @@ static int yyGrowStack(yyParser *p){
/* Initialize a new parser that has already been allocated.
*/
void
ParseInit
(
void
*
yypParser
){
yyParser
*
pParser
=
(
yyParser
*
)
yypParser
;
void
ParseInit
(
void
*
yypRawParser
ParseCTX_PDECL
){
yyParser
*
yypParser
=
(
yyParser
*
)
yypRawParser
;
ParseCTX_STORE
#ifdef YYTRACKMAXSTACKDEPTH
pParser
->
yyhwm
=
0
;
yy
pParser
->
yyhwm
=
0
;
#endif
#if YYSTACKDEPTH<=0
pParser
->
yytos
=
NULL
;
pParser
->
yystack
=
NULL
;
pParser
->
yystksz
=
0
;
if
(
yyGrowStack
(
pParser
)
){
pParser
->
yystack
=
&
pParser
->
yystk0
;
pParser
->
yystksz
=
1
;
yy
pParser
->
yytos
=
NULL
;
yy
pParser
->
yystack
=
NULL
;
yy
pParser
->
yystksz
=
0
;
if
(
yyGrowStack
(
yy
pParser
)
){
yypParser
->
yystack
=
&
yy
pParser
->
yystk0
;
yy
pParser
->
yystksz
=
1
;
}
#endif
#ifndef YYNOERRORRECOVERY
pParser
->
yyerrcnt
=
-
1
;
yy
pParser
->
yyerrcnt
=
-
1
;
#endif
pParser
->
yytos
=
pParser
->
yystack
;
pParser
->
yystack
[
0
].
stateno
=
0
;
pParser
->
yystack
[
0
].
major
=
0
;
yypParser
->
yytos
=
yy
pParser
->
yystack
;
yy
pParser
->
yystack
[
0
].
stateno
=
0
;
yy
pParser
->
yystack
[
0
].
major
=
0
;
#if YYSTACKDEPTH>0
pParser
->
yystackEnd
=
&
pParser
->
yystack
[
YYSTACKDEPTH
-
1
];
yypParser
->
yystackEnd
=
&
yy
pParser
->
yystack
[
YYSTACKDEPTH
-
1
];
#endif
}
...
...
@@ -1317,11 +1331,14 @@ void ParseInit(void *yypParser){
** A pointer to a parser. This pointer is used in subsequent calls
** to Parse and ParseFree.
*/
void
*
ParseAlloc
(
void
*
(
*
mallocProc
)(
YYMALLOCARGTYPE
)){
yyParser
*
pParser
;
pParser
=
(
yyParser
*
)(
*
mallocProc
)(
(
YYMALLOCARGTYPE
)
sizeof
(
yyParser
)
);
if
(
pParser
)
ParseInit
(
pParser
);
return
pParser
;
void
*
ParseAlloc
(
void
*
(
*
mallocProc
)(
YYMALLOCARGTYPE
)
ParseCTX_PDECL
){
yyParser
*
yypParser
;
yypParser
=
(
yyParser
*
)(
*
mallocProc
)(
(
YYMALLOCARGTYPE
)
sizeof
(
yyParser
)
);
if
(
yypParser
){
ParseCTX_STORE
ParseInit
(
yypParser
ParseCTX_PARAM
);
}
return
(
void
*
)
yypParser
;
}
#endif
/* Parse_ENGINEALWAYSONSTACK */
...
...
@@ -1338,7 +1355,8 @@ static void yy_destructor(
YYCODETYPE
yymajor
,
/* Type code for object to destroy */
YYMINORTYPE
*
yypminor
/* The object to be destroyed */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
switch
(
yymajor
){
/* Here is inserted the actions which take place when a
** terminal or non-terminal is destroyed. This can happen
...
...
@@ -1351,50 +1369,50 @@ static void yy_destructor(
** inside the C code.
*/
/********* Begin destructor definitions ***************************************/
case
22
6
:
/* keep */
case
22
7
:
/* tagitemlist */
case
25
1
:
/* fill_opt */
case
25
3
:
/* groupby_opt */
case
25
4
:
/* orderby_opt */
case
26
4
:
/* sortlist */
case
26
8
:
/* grouplist */
case
22
5
:
/* keep */
case
22
6
:
/* tagitemlist */
case
25
0
:
/* fill_opt */
case
25
2
:
/* groupby_opt */
case
25
3
:
/* orderby_opt */
case
26
3
:
/* sortlist */
case
26
7
:
/* grouplist */
{
tVariantListDestroy
((
yypminor
->
yy
494
));
tVariantListDestroy
((
yypminor
->
yy
156
));
}
break
;
case
24
3
:
/* columnlist */
case
24
2
:
/* columnlist */
{
tFieldListDestroy
((
yypminor
->
yy
449
));
tFieldListDestroy
((
yypminor
->
yy
511
));
}
break
;
case
24
4
:
/* select */
case
24
3
:
/* select */
{
doDestroyQuerySql
((
yypminor
->
yy
150
));
doDestroyQuerySql
((
yypminor
->
yy
444
));
}
break
;
case
24
7
:
/* selcollist */
case
25
9
:
/* sclp */
case
26
9
:
/* exprlist */
case
24
6
:
/* selcollist */
case
25
8
:
/* sclp */
case
26
8
:
/* exprlist */
{
tSQLExprListDestroy
((
yypminor
->
yy
224
));
tSQLExprListDestroy
((
yypminor
->
yy
158
));
}
break
;
case
24
9
:
/* where_opt */
case
25
5
:
/* having_opt */
case
2
60
:
/* expr */
case
2
70
:
/* expritem */
case
24
8
:
/* where_opt */
case
25
4
:
/* having_opt */
case
2
59
:
/* expr */
case
2
69
:
/* expritem */
{
tSQLExprDestroy
((
yypminor
->
yy
66
));
tSQLExprDestroy
((
yypminor
->
yy
190
));
}
break
;
case
25
8
:
/* union */
case
25
7
:
/* union */
{
destroyAllSelectClause
((
yypminor
->
yy
25
));
destroyAllSelectClause
((
yypminor
->
yy
333
));
}
break
;
case
26
5
:
/* sortitem */
case
26
4
:
/* sortitem */
{
tVariantDestroy
(
&
(
yypminor
->
yy
312
));
tVariantDestroy
(
&
(
yypminor
->
yy
506
));
}
break
;
/********* End destructor definitions *****************************************/
...
...
@@ -1506,13 +1524,12 @@ int ParseCoverage(FILE *out){
** Find the appropriate action for a parser given the terminal
** look-ahead token iLookAhead.
*/
static
unsigned
int
yy_find_shift_action
(
yyParser
*
pParser
,
/* The parser
*/
YY
CODETYPE
iLookAhead
/* The look-ahead token
*/
static
YYACTIONTYPE
yy_find_shift_action
(
YYCODETYPE
iLookAhead
,
/* The look-ahead token
*/
YY
ACTIONTYPE
stateno
/* Current state number
*/
){
int
i
;
int
stateno
=
pParser
->
yytos
->
stateno
;
if
(
stateno
>
YY_MAX_SHIFT
)
return
stateno
;
assert
(
stateno
<=
YY_SHIFT_COUNT
);
#if defined(YYCOVERAGE)
...
...
@@ -1520,15 +1537,19 @@ static unsigned int yy_find_shift_action(
#endif
do
{
i
=
yy_shift_ofst
[
stateno
];
assert
(
i
>=
0
&&
i
+
YYNTOKEN
<=
sizeof
(
yy_lookahead
)
/
sizeof
(
yy_lookahead
[
0
])
);
assert
(
i
>=
0
);
assert
(
i
<=
YY_ACTTAB_COUNT
);
assert
(
i
+
YYNTOKEN
<=
(
int
)
YY_NLOOKAHEAD
);
assert
(
iLookAhead
!=
YYNOCODE
);
assert
(
iLookAhead
<
YYNTOKEN
);
i
+=
iLookAhead
;
assert
(
i
<
(
int
)
YY_NLOOKAHEAD
);
if
(
yy_lookahead
[
i
]
!=
iLookAhead
){
#ifdef YYFALLBACK
YYCODETYPE
iFallback
;
/* Fallback token */
if
(
iLookAhead
<
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
])
&&
(
iFallback
=
yyFallback
[
iLookAhead
])
!=
0
){
assert
(
iLookAhead
<
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
])
);
iFallback
=
yyFallback
[
iLookAhead
];
if
(
iFallback
!=
0
){
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sFALLBACK %s => %s
\n
"
,
...
...
@@ -1543,15 +1564,8 @@ static unsigned int yy_find_shift_action(
#ifdef YYWILDCARD
{
int
j
=
i
-
iLookAhead
+
YYWILDCARD
;
if
(
#if YY_SHIFT_MIN+YYWILDCARD<0
j
>=
0
&&
#endif
#if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT
j
<
YY_ACTTAB_COUNT
&&
#endif
yy_lookahead
[
j
]
==
YYWILDCARD
&&
iLookAhead
>
0
){
assert
(
j
<
(
int
)(
sizeof
(
yy_lookahead
)
/
sizeof
(
yy_lookahead
[
0
]))
);
if
(
yy_lookahead
[
j
]
==
YYWILDCARD
&&
iLookAhead
>
0
){
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sWILDCARD %s => %s
\n
"
,
...
...
@@ -1565,6 +1579,7 @@ static unsigned int yy_find_shift_action(
#endif
/* YYWILDCARD */
return
yy_default
[
stateno
];
}
else
{
assert
(
i
>=
0
&&
i
<
sizeof
(
yy_action
)
/
sizeof
(
yy_action
[
0
])
);
return
yy_action
[
i
];
}
}
while
(
1
);
...
...
@@ -1574,8 +1589,8 @@ static unsigned int yy_find_shift_action(
** Find the appropriate action for a parser given the non-terminal
** look-ahead token iLookAhead.
*/
static
int
yy_find_reduce_action
(
int
stateno
,
/* Current state number */
static
YYACTIONTYPE
yy_find_reduce_action
(
YYACTIONTYPE
stateno
,
/* Current state number */
YYCODETYPE
iLookAhead
/* The look-ahead token */
){
int
i
;
...
...
@@ -1604,7 +1619,8 @@ static int yy_find_reduce_action(
** The following routine is called if the stack overflows.
*/
static
void
yyStackOverflow
(
yyParser
*
yypParser
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sStack Overflow!
\n
"
,
yyTracePrompt
);
...
...
@@ -1615,7 +1631,8 @@ static void yyStackOverflow(yyParser *yypParser){
** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
/******** End %stack_overflow code ********************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument var */
ParseARG_STORE
/* Suppress warning about unused %extra_argument var */
ParseCTX_STORE
}
/*
...
...
@@ -1644,8 +1661,8 @@ static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
*/
static
void
yy_shift
(
yyParser
*
yypParser
,
/* The parser to be shifted */
int
yyNewState
,
/* The new state to shift in */
int
yyMajor
,
/* The major token to shift in */
YYACTIONTYPE
yyNewState
,
/* The new state to shift in */
YYCODETYPE
yyMajor
,
/* The major token to shift in */
ParseTOKENTYPE
yyMinor
/* The minor token to shift in */
){
yyStackEntry
*
yytos
;
...
...
@@ -1675,246 +1692,476 @@ static void yy_shift(
yyNewState
+=
YY_MIN_REDUCE
-
YY_MIN_SHIFTREDUCE
;
}
yytos
=
yypParser
->
yytos
;
yytos
->
stateno
=
(
YYACTIONTYPE
)
yyNewState
;
yytos
->
major
=
(
YYCODETYPE
)
yyMajor
;
yytos
->
stateno
=
yyNewState
;
yytos
->
major
=
yyMajor
;
yytos
->
minor
.
yy0
=
yyMinor
;
yyTraceShift
(
yypParser
,
yyNewState
,
"Shift"
);
}
/* The following table contains information about every rule that
** is used during the reduce.
*/
static
const
struct
{
YYCODETYPE
lhs
;
/* Symbol on the left-hand side of the rule */
signed
char
nrhs
;
/* Negative of the number of RHS symbols in the rule */
}
yyRuleInfo
[]
=
{
{
207
,
-
1
},
/* (0) program ::= cmd */
{
208
,
-
2
},
/* (1) cmd ::= SHOW DATABASES */
{
208
,
-
2
},
/* (2) cmd ::= SHOW MNODES */
{
208
,
-
2
},
/* (3) cmd ::= SHOW DNODES */
{
208
,
-
2
},
/* (4) cmd ::= SHOW ACCOUNTS */
{
208
,
-
2
},
/* (5) cmd ::= SHOW USERS */
{
208
,
-
2
},
/* (6) cmd ::= SHOW MODULES */
{
208
,
-
2
},
/* (7) cmd ::= SHOW QUERIES */
{
208
,
-
2
},
/* (8) cmd ::= SHOW CONNECTIONS */
{
208
,
-
2
},
/* (9) cmd ::= SHOW STREAMS */
{
208
,
-
2
},
/* (10) cmd ::= SHOW VARIABLES */
{
208
,
-
2
},
/* (11) cmd ::= SHOW SCORES */
{
208
,
-
2
},
/* (12) cmd ::= SHOW GRANTS */
{
208
,
-
2
},
/* (13) cmd ::= SHOW VNODES */
{
208
,
-
3
},
/* (14) cmd ::= SHOW VNODES IPTOKEN */
{
209
,
0
},
/* (15) dbPrefix ::= */
{
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 IS NULL */
{
260
,
-
4
},
/* (197) expr ::= expr IS NOT NULL */
{
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 AND expr */
{
260
,
-
3
},
/* (205) expr ::= expr OR 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 */
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static
const
YYCODETYPE
yyRuleInfoLhs
[]
=
{
206
,
/* (0) program ::= cmd */
207
,
/* (1) cmd ::= SHOW DATABASES */
207
,
/* (2) cmd ::= SHOW MNODES */
207
,
/* (3) cmd ::= SHOW DNODES */
207
,
/* (4) cmd ::= SHOW ACCOUNTS */
207
,
/* (5) cmd ::= SHOW USERS */
207
,
/* (6) cmd ::= SHOW MODULES */
207
,
/* (7) cmd ::= SHOW QUERIES */
207
,
/* (8) cmd ::= SHOW CONNECTIONS */
207
,
/* (9) cmd ::= SHOW STREAMS */
207
,
/* (10) cmd ::= SHOW VARIABLES */
207
,
/* (11) cmd ::= SHOW SCORES */
207
,
/* (12) cmd ::= SHOW GRANTS */
207
,
/* (13) cmd ::= SHOW VNODES */
207
,
/* (14) cmd ::= SHOW VNODES IPTOKEN */
208
,
/* (15) dbPrefix ::= */
208
,
/* (16) dbPrefix ::= ids DOT */
210
,
/* (17) cpxName ::= */
210
,
/* (18) cpxName ::= DOT ids */
207
,
/* (19) cmd ::= SHOW dbPrefix TABLES */
207
,
/* (20) cmd ::= SHOW dbPrefix TABLES LIKE ids */
207
,
/* (21) cmd ::= SHOW dbPrefix STABLES */
207
,
/* (22) cmd ::= SHOW dbPrefix STABLES LIKE ids */
207
,
/* (23) cmd ::= SHOW dbPrefix VGROUPS */
207
,
/* (24) cmd ::= SHOW dbPrefix VGROUPS ids */
207
,
/* (25) cmd ::= DROP TABLE ifexists ids cpxName */
207
,
/* (26) cmd ::= DROP DATABASE ifexists ids */
207
,
/* (27) cmd ::= DROP DNODE ids */
207
,
/* (28) cmd ::= DROP USER ids */
207
,
/* (29) cmd ::= DROP ACCOUNT ids */
207
,
/* (30) cmd ::= USE ids */
207
,
/* (31) cmd ::= DESCRIBE ids cpxName */
207
,
/* (32) cmd ::= ALTER USER ids PASS ids */
207
,
/* (33) cmd ::= ALTER USER ids PRIVILEGE ids */
207
,
/* (34) cmd ::= ALTER DNODE ids ids */
207
,
/* (35) cmd ::= ALTER DNODE ids ids ids */
207
,
/* (36) cmd ::= ALTER LOCAL ids */
207
,
/* (37) cmd ::= ALTER LOCAL ids ids */
207
,
/* (38) cmd ::= ALTER DATABASE ids alter_db_optr */
207
,
/* (39) cmd ::= ALTER ACCOUNT ids acct_optr */
207
,
/* (40) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
209
,
/* (41) ids ::= ID */
209
,
/* (42) ids ::= STRING */
211
,
/* (43) ifexists ::= IF EXISTS */
211
,
/* (44) ifexists ::= */
214
,
/* (45) ifnotexists ::= IF NOT EXISTS */
214
,
/* (46) ifnotexists ::= */
207
,
/* (47) cmd ::= CREATE DNODE ids */
207
,
/* (48) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
207
,
/* (49) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
207
,
/* (50) cmd ::= CREATE USER ids PASS ids */
216
,
/* (51) pps ::= */
216
,
/* (52) pps ::= PPS INTEGER */
217
,
/* (53) tseries ::= */
217
,
/* (54) tseries ::= TSERIES INTEGER */
218
,
/* (55) dbs ::= */
218
,
/* (56) dbs ::= DBS INTEGER */
219
,
/* (57) streams ::= */
219
,
/* (58) streams ::= STREAMS INTEGER */
220
,
/* (59) storage ::= */
220
,
/* (60) storage ::= STORAGE INTEGER */
221
,
/* (61) qtime ::= */
221
,
/* (62) qtime ::= QTIME INTEGER */
222
,
/* (63) users ::= */
222
,
/* (64) users ::= USERS INTEGER */
223
,
/* (65) conns ::= */
223
,
/* (66) conns ::= CONNS INTEGER */
224
,
/* (67) state ::= */
224
,
/* (68) state ::= STATE ids */
213
,
/* (69) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
225
,
/* (70) keep ::= KEEP tagitemlist */
227
,
/* (71) cache ::= CACHE INTEGER */
228
,
/* (72) replica ::= REPLICA INTEGER */
229
,
/* (73) quorum ::= QUORUM INTEGER */
230
,
/* (74) days ::= DAYS INTEGER */
231
,
/* (75) minrows ::= MINROWS INTEGER */
232
,
/* (76) maxrows ::= MAXROWS INTEGER */
233
,
/* (77) blocks ::= BLOCKS INTEGER */
234
,
/* (78) ctime ::= CTIME INTEGER */
235
,
/* (79) wal ::= WAL INTEGER */
236
,
/* (80) fsync ::= FSYNC INTEGER */
237
,
/* (81) comp ::= COMP INTEGER */
238
,
/* (82) prec ::= PRECISION STRING */
215
,
/* (83) db_optr ::= */
215
,
/* (84) db_optr ::= db_optr cache */
215
,
/* (85) db_optr ::= db_optr replica */
215
,
/* (86) db_optr ::= db_optr quorum */
215
,
/* (87) db_optr ::= db_optr days */
215
,
/* (88) db_optr ::= db_optr minrows */
215
,
/* (89) db_optr ::= db_optr maxrows */
215
,
/* (90) db_optr ::= db_optr blocks */
215
,
/* (91) db_optr ::= db_optr ctime */
215
,
/* (92) db_optr ::= db_optr wal */
215
,
/* (93) db_optr ::= db_optr fsync */
215
,
/* (94) db_optr ::= db_optr comp */
215
,
/* (95) db_optr ::= db_optr prec */
215
,
/* (96) db_optr ::= db_optr keep */
212
,
/* (97) alter_db_optr ::= */
212
,
/* (98) alter_db_optr ::= alter_db_optr replica */
212
,
/* (99) alter_db_optr ::= alter_db_optr quorum */
212
,
/* (100) alter_db_optr ::= alter_db_optr keep */
212
,
/* (101) alter_db_optr ::= alter_db_optr blocks */
212
,
/* (102) alter_db_optr ::= alter_db_optr comp */
212
,
/* (103) alter_db_optr ::= alter_db_optr wal */
212
,
/* (104) alter_db_optr ::= alter_db_optr fsync */
239
,
/* (105) typename ::= ids */
239
,
/* (106) typename ::= ids LP signed RP */
240
,
/* (107) signed ::= INTEGER */
240
,
/* (108) signed ::= PLUS INTEGER */
240
,
/* (109) signed ::= MINUS INTEGER */
207
,
/* (110) cmd ::= CREATE TABLE ifnotexists ids cpxName create_table_args */
241
,
/* (111) create_table_args ::= LP columnlist RP */
241
,
/* (112) create_table_args ::= LP columnlist RP TAGS LP columnlist RP */
241
,
/* (113) create_table_args ::= USING ids cpxName TAGS LP tagitemlist RP */
241
,
/* (114) create_table_args ::= AS select */
242
,
/* (115) columnlist ::= columnlist COMMA column */
242
,
/* (116) columnlist ::= column */
244
,
/* (117) column ::= ids typename */
226
,
/* (118) tagitemlist ::= tagitemlist COMMA tagitem */
226
,
/* (119) tagitemlist ::= tagitem */
245
,
/* (120) tagitem ::= INTEGER */
245
,
/* (121) tagitem ::= FLOAT */
245
,
/* (122) tagitem ::= STRING */
245
,
/* (123) tagitem ::= BOOL */
245
,
/* (124) tagitem ::= NULL */
245
,
/* (125) tagitem ::= MINUS INTEGER */
245
,
/* (126) tagitem ::= MINUS FLOAT */
245
,
/* (127) tagitem ::= PLUS INTEGER */
245
,
/* (128) tagitem ::= PLUS FLOAT */
243
,
/* (129) select ::= SELECT selcollist from where_opt interval_opt fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
257
,
/* (130) union ::= select */
257
,
/* (131) union ::= LP union RP */
257
,
/* (132) union ::= union UNION ALL select */
257
,
/* (133) union ::= union UNION ALL LP select RP */
207
,
/* (134) cmd ::= union */
243
,
/* (135) select ::= SELECT selcollist */
258
,
/* (136) sclp ::= selcollist COMMA */
258
,
/* (137) sclp ::= */
246
,
/* (138) selcollist ::= sclp expr as */
246
,
/* (139) selcollist ::= sclp STAR */
260
,
/* (140) as ::= AS ids */
260
,
/* (141) as ::= ids */
260
,
/* (142) as ::= */
247
,
/* (143) from ::= FROM tablelist */
261
,
/* (144) tablelist ::= ids cpxName */
261
,
/* (145) tablelist ::= ids cpxName ids */
261
,
/* (146) tablelist ::= tablelist COMMA ids cpxName */
261
,
/* (147) tablelist ::= tablelist COMMA ids cpxName ids */
262
,
/* (148) tmvar ::= VARIABLE */
249
,
/* (149) interval_opt ::= INTERVAL LP tmvar RP */
249
,
/* (150) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
249
,
/* (151) interval_opt ::= */
250
,
/* (152) fill_opt ::= */
250
,
/* (153) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
250
,
/* (154) fill_opt ::= FILL LP ID RP */
251
,
/* (155) sliding_opt ::= SLIDING LP tmvar RP */
251
,
/* (156) sliding_opt ::= */
253
,
/* (157) orderby_opt ::= */
253
,
/* (158) orderby_opt ::= ORDER BY sortlist */
263
,
/* (159) sortlist ::= sortlist COMMA item sortorder */
263
,
/* (160) sortlist ::= item sortorder */
265
,
/* (161) item ::= ids cpxName */
266
,
/* (162) sortorder ::= ASC */
266
,
/* (163) sortorder ::= DESC */
266
,
/* (164) sortorder ::= */
252
,
/* (165) groupby_opt ::= */
252
,
/* (166) groupby_opt ::= GROUP BY grouplist */
267
,
/* (167) grouplist ::= grouplist COMMA item */
267
,
/* (168) grouplist ::= item */
254
,
/* (169) having_opt ::= */
254
,
/* (170) having_opt ::= HAVING expr */
256
,
/* (171) limit_opt ::= */
256
,
/* (172) limit_opt ::= LIMIT signed */
256
,
/* (173) limit_opt ::= LIMIT signed OFFSET signed */
256
,
/* (174) limit_opt ::= LIMIT signed COMMA signed */
255
,
/* (175) slimit_opt ::= */
255
,
/* (176) slimit_opt ::= SLIMIT signed */
255
,
/* (177) slimit_opt ::= SLIMIT signed SOFFSET signed */
255
,
/* (178) slimit_opt ::= SLIMIT signed COMMA signed */
248
,
/* (179) where_opt ::= */
248
,
/* (180) where_opt ::= WHERE expr */
259
,
/* (181) expr ::= LP expr RP */
259
,
/* (182) expr ::= ID */
259
,
/* (183) expr ::= ID DOT ID */
259
,
/* (184) expr ::= ID DOT STAR */
259
,
/* (185) expr ::= INTEGER */
259
,
/* (186) expr ::= MINUS INTEGER */
259
,
/* (187) expr ::= PLUS INTEGER */
259
,
/* (188) expr ::= FLOAT */
259
,
/* (189) expr ::= MINUS FLOAT */
259
,
/* (190) expr ::= PLUS FLOAT */
259
,
/* (191) expr ::= STRING */
259
,
/* (192) expr ::= NOW */
259
,
/* (193) expr ::= VARIABLE */
259
,
/* (194) expr ::= BOOL */
259
,
/* (195) expr ::= ID LP exprlist RP */
259
,
/* (196) expr ::= ID LP STAR RP */
259
,
/* (197) expr ::= expr IS NULL */
259
,
/* (198) expr ::= expr IS NOT NULL */
259
,
/* (199) expr ::= expr LT expr */
259
,
/* (200) expr ::= expr GT expr */
259
,
/* (201) expr ::= expr LE expr */
259
,
/* (202) expr ::= expr GE expr */
259
,
/* (203) expr ::= expr NE expr */
259
,
/* (204) expr ::= expr EQ expr */
259
,
/* (205) expr ::= expr AND expr */
259
,
/* (206) expr ::= expr OR expr */
259
,
/* (207) expr ::= expr PLUS expr */
259
,
/* (208) expr ::= expr MINUS expr */
259
,
/* (209) expr ::= expr STAR expr */
259
,
/* (210) expr ::= expr SLASH expr */
259
,
/* (211) expr ::= expr REM expr */
259
,
/* (212) expr ::= expr LIKE expr */
259
,
/* (213) expr ::= expr IN LP exprlist RP */
268
,
/* (214) exprlist ::= exprlist COMMA expritem */
268
,
/* (215) exprlist ::= expritem */
269
,
/* (216) expritem ::= expr */
269
,
/* (217) expritem ::= */
207
,
/* (218) cmd ::= RESET QUERY CACHE */
207
,
/* (219) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
207
,
/* (220) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
207
,
/* (221) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
207
,
/* (222) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
207
,
/* (223) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
207
,
/* (224) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
207
,
/* (225) cmd ::= KILL CONNECTION INTEGER */
207
,
/* (226) cmd ::= KILL STREAM INTEGER COLON INTEGER */
207
,
/* (227) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static
const
signed
char
yyRuleInfoNRhs
[]
=
{
-
1
,
/* (0) program ::= cmd */
-
2
,
/* (1) cmd ::= SHOW DATABASES */
-
2
,
/* (2) cmd ::= SHOW MNODES */
-
2
,
/* (3) cmd ::= SHOW DNODES */
-
2
,
/* (4) cmd ::= SHOW ACCOUNTS */
-
2
,
/* (5) cmd ::= SHOW USERS */
-
2
,
/* (6) cmd ::= SHOW MODULES */
-
2
,
/* (7) cmd ::= SHOW QUERIES */
-
2
,
/* (8) cmd ::= SHOW CONNECTIONS */
-
2
,
/* (9) cmd ::= SHOW STREAMS */
-
2
,
/* (10) cmd ::= SHOW VARIABLES */
-
2
,
/* (11) cmd ::= SHOW SCORES */
-
2
,
/* (12) cmd ::= SHOW GRANTS */
-
2
,
/* (13) cmd ::= SHOW VNODES */
-
3
,
/* (14) cmd ::= SHOW VNODES IPTOKEN */
0
,
/* (15) dbPrefix ::= */
-
2
,
/* (16) dbPrefix ::= ids DOT */
0
,
/* (17) cpxName ::= */
-
2
,
/* (18) cpxName ::= DOT ids */
-
3
,
/* (19) cmd ::= SHOW dbPrefix TABLES */
-
5
,
/* (20) cmd ::= SHOW dbPrefix TABLES LIKE ids */
-
3
,
/* (21) cmd ::= SHOW dbPrefix STABLES */
-
5
,
/* (22) cmd ::= SHOW dbPrefix STABLES LIKE ids */
-
3
,
/* (23) cmd ::= SHOW dbPrefix VGROUPS */
-
4
,
/* (24) cmd ::= SHOW dbPrefix VGROUPS ids */
-
5
,
/* (25) cmd ::= DROP TABLE ifexists ids cpxName */
-
4
,
/* (26) cmd ::= DROP DATABASE ifexists ids */
-
3
,
/* (27) cmd ::= DROP DNODE ids */
-
3
,
/* (28) cmd ::= DROP USER ids */
-
3
,
/* (29) cmd ::= DROP ACCOUNT ids */
-
2
,
/* (30) cmd ::= USE ids */
-
3
,
/* (31) cmd ::= DESCRIBE ids cpxName */
-
5
,
/* (32) cmd ::= ALTER USER ids PASS ids */
-
5
,
/* (33) cmd ::= ALTER USER ids PRIVILEGE ids */
-
4
,
/* (34) cmd ::= ALTER DNODE ids ids */
-
5
,
/* (35) cmd ::= ALTER DNODE ids ids ids */
-
3
,
/* (36) cmd ::= ALTER LOCAL ids */
-
4
,
/* (37) cmd ::= ALTER LOCAL ids ids */
-
4
,
/* (38) cmd ::= ALTER DATABASE ids alter_db_optr */
-
4
,
/* (39) cmd ::= ALTER ACCOUNT ids acct_optr */
-
6
,
/* (40) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
-
1
,
/* (41) ids ::= ID */
-
1
,
/* (42) ids ::= STRING */
-
2
,
/* (43) ifexists ::= IF EXISTS */
0
,
/* (44) ifexists ::= */
-
3
,
/* (45) ifnotexists ::= IF NOT EXISTS */
0
,
/* (46) ifnotexists ::= */
-
3
,
/* (47) cmd ::= CREATE DNODE ids */
-
6
,
/* (48) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
-
5
,
/* (49) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
-
5
,
/* (50) cmd ::= CREATE USER ids PASS ids */
0
,
/* (51) pps ::= */
-
2
,
/* (52) pps ::= PPS INTEGER */
0
,
/* (53) tseries ::= */
-
2
,
/* (54) tseries ::= TSERIES INTEGER */
0
,
/* (55) dbs ::= */
-
2
,
/* (56) dbs ::= DBS INTEGER */
0
,
/* (57) streams ::= */
-
2
,
/* (58) streams ::= STREAMS INTEGER */
0
,
/* (59) storage ::= */
-
2
,
/* (60) storage ::= STORAGE INTEGER */
0
,
/* (61) qtime ::= */
-
2
,
/* (62) qtime ::= QTIME INTEGER */
0
,
/* (63) users ::= */
-
2
,
/* (64) users ::= USERS INTEGER */
0
,
/* (65) conns ::= */
-
2
,
/* (66) conns ::= CONNS INTEGER */
0
,
/* (67) state ::= */
-
2
,
/* (68) state ::= STATE ids */
-
9
,
/* (69) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
-
2
,
/* (70) keep ::= KEEP tagitemlist */
-
2
,
/* (71) cache ::= CACHE INTEGER */
-
2
,
/* (72) replica ::= REPLICA INTEGER */
-
2
,
/* (73) quorum ::= QUORUM INTEGER */
-
2
,
/* (74) days ::= DAYS INTEGER */
-
2
,
/* (75) minrows ::= MINROWS INTEGER */
-
2
,
/* (76) maxrows ::= MAXROWS INTEGER */
-
2
,
/* (77) blocks ::= BLOCKS INTEGER */
-
2
,
/* (78) ctime ::= CTIME INTEGER */
-
2
,
/* (79) wal ::= WAL INTEGER */
-
2
,
/* (80) fsync ::= FSYNC INTEGER */
-
2
,
/* (81) comp ::= COMP INTEGER */
-
2
,
/* (82) prec ::= PRECISION STRING */
0
,
/* (83) db_optr ::= */
-
2
,
/* (84) db_optr ::= db_optr cache */
-
2
,
/* (85) db_optr ::= db_optr replica */
-
2
,
/* (86) db_optr ::= db_optr quorum */
-
2
,
/* (87) db_optr ::= db_optr days */
-
2
,
/* (88) db_optr ::= db_optr minrows */
-
2
,
/* (89) db_optr ::= db_optr maxrows */
-
2
,
/* (90) db_optr ::= db_optr blocks */
-
2
,
/* (91) db_optr ::= db_optr ctime */
-
2
,
/* (92) db_optr ::= db_optr wal */
-
2
,
/* (93) db_optr ::= db_optr fsync */
-
2
,
/* (94) db_optr ::= db_optr comp */
-
2
,
/* (95) db_optr ::= db_optr prec */
-
2
,
/* (96) db_optr ::= db_optr keep */
0
,
/* (97) alter_db_optr ::= */
-
2
,
/* (98) alter_db_optr ::= alter_db_optr replica */
-
2
,
/* (99) alter_db_optr ::= alter_db_optr quorum */
-
2
,
/* (100) alter_db_optr ::= alter_db_optr keep */
-
2
,
/* (101) alter_db_optr ::= alter_db_optr blocks */
-
2
,
/* (102) alter_db_optr ::= alter_db_optr comp */
-
2
,
/* (103) alter_db_optr ::= alter_db_optr wal */
-
2
,
/* (104) alter_db_optr ::= alter_db_optr fsync */
-
1
,
/* (105) typename ::= ids */
-
4
,
/* (106) typename ::= ids LP signed RP */
-
1
,
/* (107) signed ::= INTEGER */
-
2
,
/* (108) signed ::= PLUS INTEGER */
-
2
,
/* (109) signed ::= MINUS INTEGER */
-
6
,
/* (110) cmd ::= CREATE TABLE ifnotexists ids cpxName create_table_args */
-
3
,
/* (111) create_table_args ::= LP columnlist RP */
-
7
,
/* (112) create_table_args ::= LP columnlist RP TAGS LP columnlist RP */
-
7
,
/* (113) create_table_args ::= USING ids cpxName TAGS LP tagitemlist RP */
-
2
,
/* (114) create_table_args ::= AS select */
-
3
,
/* (115) columnlist ::= columnlist COMMA column */
-
1
,
/* (116) columnlist ::= column */
-
2
,
/* (117) column ::= ids typename */
-
3
,
/* (118) tagitemlist ::= tagitemlist COMMA tagitem */
-
1
,
/* (119) tagitemlist ::= tagitem */
-
1
,
/* (120) tagitem ::= INTEGER */
-
1
,
/* (121) tagitem ::= FLOAT */
-
1
,
/* (122) tagitem ::= STRING */
-
1
,
/* (123) tagitem ::= BOOL */
-
1
,
/* (124) tagitem ::= NULL */
-
2
,
/* (125) tagitem ::= MINUS INTEGER */
-
2
,
/* (126) tagitem ::= MINUS FLOAT */
-
2
,
/* (127) tagitem ::= PLUS INTEGER */
-
2
,
/* (128) tagitem ::= PLUS FLOAT */
-
12
,
/* (129) select ::= SELECT selcollist from where_opt interval_opt fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
-
1
,
/* (130) union ::= select */
-
3
,
/* (131) union ::= LP union RP */
-
4
,
/* (132) union ::= union UNION ALL select */
-
6
,
/* (133) union ::= union UNION ALL LP select RP */
-
1
,
/* (134) cmd ::= union */
-
2
,
/* (135) select ::= SELECT selcollist */
-
2
,
/* (136) sclp ::= selcollist COMMA */
0
,
/* (137) sclp ::= */
-
3
,
/* (138) selcollist ::= sclp expr as */
-
2
,
/* (139) selcollist ::= sclp STAR */
-
2
,
/* (140) as ::= AS ids */
-
1
,
/* (141) as ::= ids */
0
,
/* (142) as ::= */
-
2
,
/* (143) from ::= FROM tablelist */
-
2
,
/* (144) tablelist ::= ids cpxName */
-
3
,
/* (145) tablelist ::= ids cpxName ids */
-
4
,
/* (146) tablelist ::= tablelist COMMA ids cpxName */
-
5
,
/* (147) tablelist ::= tablelist COMMA ids cpxName ids */
-
1
,
/* (148) tmvar ::= VARIABLE */
-
4
,
/* (149) interval_opt ::= INTERVAL LP tmvar RP */
-
6
,
/* (150) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
0
,
/* (151) interval_opt ::= */
0
,
/* (152) fill_opt ::= */
-
6
,
/* (153) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
-
4
,
/* (154) fill_opt ::= FILL LP ID RP */
-
4
,
/* (155) sliding_opt ::= SLIDING LP tmvar RP */
0
,
/* (156) sliding_opt ::= */
0
,
/* (157) orderby_opt ::= */
-
3
,
/* (158) orderby_opt ::= ORDER BY sortlist */
-
4
,
/* (159) sortlist ::= sortlist COMMA item sortorder */
-
2
,
/* (160) sortlist ::= item sortorder */
-
2
,
/* (161) item ::= ids cpxName */
-
1
,
/* (162) sortorder ::= ASC */
-
1
,
/* (163) sortorder ::= DESC */
0
,
/* (164) sortorder ::= */
0
,
/* (165) groupby_opt ::= */
-
3
,
/* (166) groupby_opt ::= GROUP BY grouplist */
-
3
,
/* (167) grouplist ::= grouplist COMMA item */
-
1
,
/* (168) grouplist ::= item */
0
,
/* (169) having_opt ::= */
-
2
,
/* (170) having_opt ::= HAVING expr */
0
,
/* (171) limit_opt ::= */
-
2
,
/* (172) limit_opt ::= LIMIT signed */
-
4
,
/* (173) limit_opt ::= LIMIT signed OFFSET signed */
-
4
,
/* (174) limit_opt ::= LIMIT signed COMMA signed */
0
,
/* (175) slimit_opt ::= */
-
2
,
/* (176) slimit_opt ::= SLIMIT signed */
-
4
,
/* (177) slimit_opt ::= SLIMIT signed SOFFSET signed */
-
4
,
/* (178) slimit_opt ::= SLIMIT signed COMMA signed */
0
,
/* (179) where_opt ::= */
-
2
,
/* (180) where_opt ::= WHERE expr */
-
3
,
/* (181) expr ::= LP expr RP */
-
1
,
/* (182) expr ::= ID */
-
3
,
/* (183) expr ::= ID DOT ID */
-
3
,
/* (184) expr ::= ID DOT STAR */
-
1
,
/* (185) expr ::= INTEGER */
-
2
,
/* (186) expr ::= MINUS INTEGER */
-
2
,
/* (187) expr ::= PLUS INTEGER */
-
1
,
/* (188) expr ::= FLOAT */
-
2
,
/* (189) expr ::= MINUS FLOAT */
-
2
,
/* (190) expr ::= PLUS FLOAT */
-
1
,
/* (191) expr ::= STRING */
-
1
,
/* (192) expr ::= NOW */
-
1
,
/* (193) expr ::= VARIABLE */
-
1
,
/* (194) expr ::= BOOL */
-
4
,
/* (195) expr ::= ID LP exprlist RP */
-
4
,
/* (196) expr ::= ID LP STAR RP */
-
3
,
/* (197) expr ::= expr IS NULL */
-
4
,
/* (198) expr ::= expr IS NOT NULL */
-
3
,
/* (199) expr ::= expr LT expr */
-
3
,
/* (200) expr ::= expr GT expr */
-
3
,
/* (201) expr ::= expr LE expr */
-
3
,
/* (202) expr ::= expr GE expr */
-
3
,
/* (203) expr ::= expr NE expr */
-
3
,
/* (204) expr ::= expr EQ expr */
-
3
,
/* (205) expr ::= expr AND expr */
-
3
,
/* (206) expr ::= expr OR expr */
-
3
,
/* (207) expr ::= expr PLUS expr */
-
3
,
/* (208) expr ::= expr MINUS expr */
-
3
,
/* (209) expr ::= expr STAR expr */
-
3
,
/* (210) expr ::= expr SLASH expr */
-
3
,
/* (211) expr ::= expr REM expr */
-
3
,
/* (212) expr ::= expr LIKE expr */
-
5
,
/* (213) expr ::= expr IN LP exprlist RP */
-
3
,
/* (214) exprlist ::= exprlist COMMA expritem */
-
1
,
/* (215) exprlist ::= expritem */
-
1
,
/* (216) expritem ::= expr */
0
,
/* (217) expritem ::= */
-
3
,
/* (218) cmd ::= RESET QUERY CACHE */
-
7
,
/* (219) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (220) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (221) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (222) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
-
8
,
/* (223) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
-
9
,
/* (224) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
-
3
,
/* (225) cmd ::= KILL CONNECTION INTEGER */
-
5
,
/* (226) cmd ::= KILL STREAM INTEGER COLON INTEGER */
-
5
,
/* (227) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
static
void
yy_accept
(
yyParser
*
);
/* Forward Declaration */
...
...
@@ -1929,30 +2176,34 @@ static void yy_accept(yyParser*); /* Forward Declaration */
** only called from one place, optimizing compilers will in-line it, which
** means that the extra parameters have no performance impact.
*/
static
void
yy_reduce
(
static
YYACTIONTYPE
yy_reduce
(
yyParser
*
yypParser
,
/* The parser */
unsigned
int
yyruleno
,
/* Number of the rule by which to reduce */
int
yyLookahead
,
/* Lookahead token, or YYNOCODE if none */
ParseTOKENTYPE
yyLookaheadToken
/* Value of the lookahead token */
ParseCTX_PDECL
/* %extra_context */
){
int
yygoto
;
/* The next state */
int
yyact
;
/* The next action */
YYACTIONTYPE
yyact
;
/* The next action */
yyStackEntry
*
yymsp
;
/* The top of the parser's stack */
int
yysize
;
/* Amount to pop the stack */
ParseARG_FETCH
;
ParseARG_FETCH
(
void
)
yyLookahead
;
(
void
)
yyLookaheadToken
;
yymsp
=
yypParser
->
yytos
;
#ifndef NDEBUG
if
(
yyTraceFILE
&&
yyruleno
<
(
int
)(
sizeof
(
yyRuleName
)
/
sizeof
(
yyRuleName
[
0
]))
){
yysize
=
yyRuleInfo
[
yyruleno
].
nrhs
;
yysize
=
yyRuleInfo
NRhs
[
yyruleno
]
;
if
(
yysize
){
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]
, go
to state %d.
\n
"
,
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]
%s, pop back
to state %d.
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
],
yymsp
[
yysize
].
stateno
);
yyruleno
,
yyRuleName
[
yyruleno
],
yyruleno
<
YYNRULE_WITH_ACTION
?
""
:
" without external action"
,
yymsp
[
yysize
].
stateno
);
}
else
{
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s].
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
]);
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]%s.
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
],
yyruleno
<
YYNRULE_WITH_ACTION
?
""
:
" without external action"
);
}
}
#endif
/* NDEBUG */
...
...
@@ -1960,7 +2211,7 @@ static void yy_reduce(
/* Check that the stack is large enough to grow by a single entry
** if the RHS of the rule is empty. This ensures that there is room
** enough on the stack to push the LHS value */
if
(
yyRuleInfo
[
yyruleno
].
nrhs
==
0
){
if
(
yyRuleInfo
NRhs
[
yyruleno
]
==
0
){
#ifdef YYTRACKMAXSTACKDEPTH
if
(
(
int
)(
yypParser
->
yytos
-
yypParser
->
yystack
)
>
yypParser
->
yyhwm
){
yypParser
->
yyhwm
++
;
...
...
@@ -1970,13 +2221,19 @@ static void yy_reduce(
#if YYSTACKDEPTH>0
if
(
yypParser
->
yytos
>=
yypParser
->
yystackEnd
){
yyStackOverflow
(
yypParser
);
return
;
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return
0
;
}
#else
if
(
yypParser
->
yytos
>=&
yypParser
->
yystack
[
yypParser
->
yystksz
-
1
]
){
if
(
yyGrowStack
(
yypParser
)
){
yyStackOverflow
(
yypParser
);
return
;
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return
0
;
}
yymsp
=
yypParser
->
yytos
;
}
...
...
@@ -2134,13 +2391,13 @@ static void yy_reduce(
{
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 */
{
SStrToken
t
=
{
0
};
setCreateDBSQL
(
pInfo
,
TSDB_SQL_ALTER_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy1
5
8
,
&
t
);}
{
SStrToken
t
=
{
0
};
setCreateDBSQL
(
pInfo
,
TSDB_SQL_ALTER_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy1
1
8
,
&
t
);}
break
;
case
39
:
/* cmd ::= ALTER ACCOUNT ids acct_optr */
{
setCreateAcctSQL
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
,
&
yymsp
[
0
].
minor
.
yy
73
);}
{
setCreateAcctSQL
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
1
].
minor
.
yy0
,
NULL
,
&
yymsp
[
0
].
minor
.
yy
479
);}
break
;
case
40
:
/* cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
{
setCreateAcctSQL
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
73
);}
{
setCreateAcctSQL
(
pInfo
,
TSDB_SQL_ALTER_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
479
);}
break
;
case
41
:
/* ids ::= ID */
case
42
:
/* ids ::= STRING */
yytestcase
(
yyruleno
==
42
);
...
...
@@ -2161,10 +2418,10 @@ static void yy_reduce(
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_CREATE_DNODE
,
1
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
48
:
/* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
setCreateAcctSQL
(
pInfo
,
TSDB_SQL_CREATE_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
73
);}
{
setCreateAcctSQL
(
pInfo
,
TSDB_SQL_CREATE_ACCT
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy
479
);}
break
;
case
49
:
/* cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
setCreateDBSQL
(
pInfo
,
TSDB_SQL_CREATE_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy1
5
8
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
{
setCreateDBSQL
(
pInfo
,
TSDB_SQL_CREATE_DB
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy1
1
8
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
case
50
:
/* cmd ::= CREATE USER ids PASS ids */
{
setCreateUserSQL
(
pInfo
,
&
yymsp
[
-
2
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
);}
...
...
@@ -2193,20 +2450,20 @@ static void yy_reduce(
break
;
case
69
:
/* acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
yylhsminor
.
yy
73
.
maxUsers
=
(
yymsp
[
-
2
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
2
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
73
.
maxDbs
=
(
yymsp
[
-
3
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
3
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
73
.
maxTimeSeries
=
(
yymsp
[
-
7
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
7
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
73
.
maxStreams
=
(
yymsp
[
-
5
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
5
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
73
.
maxPointsPerSecond
=
(
yymsp
[
-
8
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
8
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
73
.
maxStorage
=
(
yymsp
[
-
6
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
6
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
73
.
maxQueryTime
=
(
yymsp
[
-
4
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
4
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
73
.
maxConnections
=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
1
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
73
.
stat
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
8
].
minor
.
yy
73
=
yylhsminor
.
yy73
;
yylhsminor
.
yy
479
.
maxUsers
=
(
yymsp
[
-
2
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
2
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
479
.
maxDbs
=
(
yymsp
[
-
3
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
3
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
479
.
maxTimeSeries
=
(
yymsp
[
-
7
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
7
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
479
.
maxStreams
=
(
yymsp
[
-
5
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
5
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
479
.
maxPointsPerSecond
=
(
yymsp
[
-
8
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
8
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
479
.
maxStorage
=
(
yymsp
[
-
6
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
6
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
479
.
maxQueryTime
=
(
yymsp
[
-
4
].
minor
.
yy0
.
n
>
0
)
?
strtoll
(
yymsp
[
-
4
].
minor
.
yy0
.
z
,
NULL
,
10
)
:-
1
;
yylhsminor
.
yy
479
.
maxConnections
=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
>
0
)
?
atoi
(
yymsp
[
-
1
].
minor
.
yy0
.
z
)
:-
1
;
yylhsminor
.
yy
479
.
stat
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
8
].
minor
.
yy
479
=
yylhsminor
.
yy479
;
break
;
case
70
:
/* keep ::= KEEP tagitemlist */
{
yymsp
[
-
1
].
minor
.
yy
494
=
yymsp
[
0
].
minor
.
yy494
;
}
{
yymsp
[
-
1
].
minor
.
yy
156
=
yymsp
[
0
].
minor
.
yy156
;
}
break
;
case
71
:
/* cache ::= CACHE INTEGER */
case
72
:
/* replica ::= REPLICA INTEGER */
yytestcase
(
yyruleno
==
72
);
...
...
@@ -2223,98 +2480,98 @@ static void yy_reduce(
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
break
;
case
83
:
/* db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy1
5
8
);}
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy1
1
8
);}
break
;
case
84
:
/* db_optr ::= db_optr cache */
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
cacheBlockSize
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
cacheBlockSize
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
85
:
/* db_optr ::= db_optr replica */
case
98
:
/* alter_db_optr ::= alter_db_optr replica */
yytestcase
(
yyruleno
==
98
);
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
replica
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
replica
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
86
:
/* db_optr ::= db_optr quorum */
case
99
:
/* alter_db_optr ::= alter_db_optr quorum */
yytestcase
(
yyruleno
==
99
);
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
quorum
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
quorum
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
87
:
/* db_optr ::= db_optr days */
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
daysPerFile
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
daysPerFile
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
88
:
/* db_optr ::= db_optr minrows */
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
minRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
minRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
89
:
/* db_optr ::= db_optr maxrows */
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
maxRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
maxRowsPerBlock
=
strtod
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
90
:
/* db_optr ::= db_optr blocks */
case
101
:
/* alter_db_optr ::= alter_db_optr blocks */
yytestcase
(
yyruleno
==
101
);
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
numOfBlocks
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
numOfBlocks
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
91
:
/* db_optr ::= db_optr ctime */
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
commitTime
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
commitTime
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
92
:
/* db_optr ::= db_optr wal */
case
103
:
/* alter_db_optr ::= alter_db_optr wal */
yytestcase
(
yyruleno
==
103
);
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
walLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
walLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
93
:
/* db_optr ::= db_optr fsync */
case
104
:
/* alter_db_optr ::= alter_db_optr fsync */
yytestcase
(
yyruleno
==
104
);
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
fsyncPeriod
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
fsyncPeriod
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
94
:
/* db_optr ::= db_optr comp */
case
102
:
/* alter_db_optr ::= alter_db_optr comp */
yytestcase
(
yyruleno
==
102
);
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
compressionLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
compressionLevel
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
95
:
/* db_optr ::= db_optr prec */
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy15
8
.
precision
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy11
8
.
precision
=
yymsp
[
0
].
minor
.
yy0
;
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
96
:
/* db_optr ::= db_optr keep */
case
100
:
/* alter_db_optr ::= alter_db_optr keep */
yytestcase
(
yyruleno
==
100
);
{
yylhsminor
.
yy1
58
=
yymsp
[
-
1
].
minor
.
yy158
;
yylhsminor
.
yy158
.
keep
=
yymsp
[
0
].
minor
.
yy494
;
}
yymsp
[
-
1
].
minor
.
yy1
58
=
yylhsminor
.
yy15
8
;
{
yylhsminor
.
yy1
18
=
yymsp
[
-
1
].
minor
.
yy118
;
yylhsminor
.
yy118
.
keep
=
yymsp
[
0
].
minor
.
yy156
;
}
yymsp
[
-
1
].
minor
.
yy1
18
=
yylhsminor
.
yy11
8
;
break
;
case
97
:
/* alter_db_optr ::= */
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy1
5
8
);}
{
setDefaultCreateDbOption
(
&
yymsp
[
1
].
minor
.
yy1
1
8
);}
break
;
case
105
:
/* typename ::= ids */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tSQLSetColumnType
(
&
yylhsminor
.
yy
181
,
&
yymsp
[
0
].
minor
.
yy0
);
tSQLSetColumnType
(
&
yylhsminor
.
yy
343
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
181
=
yylhsminor
.
yy181
;
yymsp
[
0
].
minor
.
yy
343
=
yylhsminor
.
yy343
;
break
;
case
106
:
/* typename ::= ids LP signed RP */
{
if
(
yymsp
[
-
1
].
minor
.
yy
271
<=
0
)
{
if
(
yymsp
[
-
1
].
minor
.
yy
369
<=
0
)
{
yymsp
[
-
3
].
minor
.
yy0
.
type
=
0
;
tSQLSetColumnType
(
&
yylhsminor
.
yy
181
,
&
yymsp
[
-
3
].
minor
.
yy0
);
tSQLSetColumnType
(
&
yylhsminor
.
yy
343
,
&
yymsp
[
-
3
].
minor
.
yy0
);
}
else
{
yymsp
[
-
3
].
minor
.
yy0
.
type
=
-
yymsp
[
-
1
].
minor
.
yy
271
;
// negative value of name length
tSQLSetColumnType
(
&
yylhsminor
.
yy
181
,
&
yymsp
[
-
3
].
minor
.
yy0
);
yymsp
[
-
3
].
minor
.
yy0
.
type
=
-
yymsp
[
-
1
].
minor
.
yy
369
;
// negative value of name length
tSQLSetColumnType
(
&
yylhsminor
.
yy
343
,
&
yymsp
[
-
3
].
minor
.
yy0
);
}
}
yymsp
[
-
3
].
minor
.
yy
181
=
yylhsminor
.
yy181
;
yymsp
[
-
3
].
minor
.
yy
343
=
yylhsminor
.
yy343
;
break
;
case
107
:
/* signed ::= INTEGER */
{
yylhsminor
.
yy
271
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
0
].
minor
.
yy
271
=
yylhsminor
.
yy271
;
{
yylhsminor
.
yy
369
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
yymsp
[
0
].
minor
.
yy
369
=
yylhsminor
.
yy369
;
break
;
case
108
:
/* signed ::= PLUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy
271
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
{
yymsp
[
-
1
].
minor
.
yy
369
=
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);
}
break
;
case
109
:
/* signed ::= MINUS INTEGER */
{
yymsp
[
-
1
].
minor
.
yy
271
=
-
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);}
{
yymsp
[
-
1
].
minor
.
yy
369
=
-
strtol
(
yymsp
[
0
].
minor
.
yy0
.
z
,
NULL
,
10
);}
break
;
case
110
:
/* cmd ::= CREATE TABLE ifnotexists ids cpxName create_table_args */
{
...
...
@@ -2324,61 +2581,61 @@ static void yy_reduce(
break
;
case
111
:
/* create_table_args ::= LP columnlist RP */
{
yymsp
[
-
2
].
minor
.
yy3
74
=
tSetCreateSQLElems
(
yymsp
[
-
1
].
minor
.
yy449
,
NULL
,
NULL
,
NULL
,
NULL
,
TSQL_CREATE_TABLE
);
setSQLInfo
(
pInfo
,
yymsp
[
-
2
].
minor
.
yy3
74
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
2
].
minor
.
yy3
98
=
tSetCreateSQLElems
(
yymsp
[
-
1
].
minor
.
yy511
,
NULL
,
NULL
,
NULL
,
NULL
,
TSQL_CREATE_TABLE
);
setSQLInfo
(
pInfo
,
yymsp
[
-
2
].
minor
.
yy3
98
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
}
break
;
case
112
:
/* create_table_args ::= LP columnlist RP TAGS LP columnlist RP */
{
yymsp
[
-
6
].
minor
.
yy3
74
=
tSetCreateSQLElems
(
yymsp
[
-
5
].
minor
.
yy449
,
yymsp
[
-
1
].
minor
.
yy449
,
NULL
,
NULL
,
NULL
,
TSQL_CREATE_STABLE
);
setSQLInfo
(
pInfo
,
yymsp
[
-
6
].
minor
.
yy3
74
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
6
].
minor
.
yy3
98
=
tSetCreateSQLElems
(
yymsp
[
-
5
].
minor
.
yy511
,
yymsp
[
-
1
].
minor
.
yy511
,
NULL
,
NULL
,
NULL
,
TSQL_CREATE_STABLE
);
setSQLInfo
(
pInfo
,
yymsp
[
-
6
].
minor
.
yy3
98
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
}
break
;
case
113
:
/* create_table_args ::= USING ids cpxName TAGS LP tagitemlist RP */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
yymsp
[
-
6
].
minor
.
yy3
74
=
tSetCreateSQLElems
(
NULL
,
NULL
,
&
yymsp
[
-
5
].
minor
.
yy0
,
yymsp
[
-
1
].
minor
.
yy494
,
NULL
,
TSQL_CREATE_TABLE_FROM_STABLE
);
setSQLInfo
(
pInfo
,
yymsp
[
-
6
].
minor
.
yy3
74
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
6
].
minor
.
yy3
98
=
tSetCreateSQLElems
(
NULL
,
NULL
,
&
yymsp
[
-
5
].
minor
.
yy0
,
yymsp
[
-
1
].
minor
.
yy156
,
NULL
,
TSQL_CREATE_TABLE_FROM_STABLE
);
setSQLInfo
(
pInfo
,
yymsp
[
-
6
].
minor
.
yy3
98
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
}
break
;
case
114
:
/* create_table_args ::= AS select */
{
yymsp
[
-
1
].
minor
.
yy3
74
=
tSetCreateSQLElems
(
NULL
,
NULL
,
NULL
,
NULL
,
yymsp
[
0
].
minor
.
yy150
,
TSQL_CREATE_STREAM
);
setSQLInfo
(
pInfo
,
yymsp
[
-
1
].
minor
.
yy3
74
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
yymsp
[
-
1
].
minor
.
yy3
98
=
tSetCreateSQLElems
(
NULL
,
NULL
,
NULL
,
NULL
,
yymsp
[
0
].
minor
.
yy444
,
TSQL_CREATE_STREAM
);
setSQLInfo
(
pInfo
,
yymsp
[
-
1
].
minor
.
yy3
98
,
NULL
,
TSDB_SQL_CREATE_TABLE
);
}
break
;
case
115
:
/* columnlist ::= columnlist COMMA column */
{
yylhsminor
.
yy
449
=
tFieldListAppend
(
yymsp
[
-
2
].
minor
.
yy449
,
&
yymsp
[
0
].
minor
.
yy181
);
}
yymsp
[
-
2
].
minor
.
yy
449
=
yylhsminor
.
yy449
;
{
yylhsminor
.
yy
511
=
tFieldListAppend
(
yymsp
[
-
2
].
minor
.
yy511
,
&
yymsp
[
0
].
minor
.
yy343
);
}
yymsp
[
-
2
].
minor
.
yy
511
=
yylhsminor
.
yy511
;
break
;
case
116
:
/* columnlist ::= column */
{
yylhsminor
.
yy
449
=
tFieldListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy181
);}
yymsp
[
0
].
minor
.
yy
449
=
yylhsminor
.
yy449
;
{
yylhsminor
.
yy
511
=
tFieldListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy343
);}
yymsp
[
0
].
minor
.
yy
511
=
yylhsminor
.
yy511
;
break
;
case
117
:
/* column ::= ids typename */
{
tSQLSetColumnInfo
(
&
yylhsminor
.
yy
181
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy181
);
tSQLSetColumnInfo
(
&
yylhsminor
.
yy
343
,
&
yymsp
[
-
1
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy343
);
}
yymsp
[
-
1
].
minor
.
yy
181
=
yylhsminor
.
yy181
;
yymsp
[
-
1
].
minor
.
yy
343
=
yylhsminor
.
yy343
;
break
;
case
118
:
/* tagitemlist ::= tagitemlist COMMA tagitem */
{
yylhsminor
.
yy
494
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy494
,
&
yymsp
[
0
].
minor
.
yy312
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
{
yylhsminor
.
yy
156
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy156
,
&
yymsp
[
0
].
minor
.
yy506
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
119
:
/* tagitemlist ::= tagitem */
{
yylhsminor
.
yy
494
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy312
,
-
1
);
}
yymsp
[
0
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
{
yylhsminor
.
yy
156
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy506
,
-
1
);
}
yymsp
[
0
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
120
:
/* tagitem ::= INTEGER */
case
121
:
/* tagitem ::= FLOAT */
yytestcase
(
yyruleno
==
121
);
case
122
:
/* tagitem ::= STRING */
yytestcase
(
yyruleno
==
122
);
case
123
:
/* tagitem ::= BOOL */
yytestcase
(
yyruleno
==
123
);
{
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy
312
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
312
=
yylhsminor
.
yy312
;
{
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy
506
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
506
=
yylhsminor
.
yy506
;
break
;
case
124
:
/* tagitem ::= NULL */
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tVariantCreate
(
&
yylhsminor
.
yy
312
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
312
=
yylhsminor
.
yy312
;
{
yymsp
[
0
].
minor
.
yy0
.
type
=
0
;
tVariantCreate
(
&
yylhsminor
.
yy
506
,
&
yymsp
[
0
].
minor
.
yy0
);
}
yymsp
[
0
].
minor
.
yy
506
=
yylhsminor
.
yy506
;
break
;
case
125
:
/* tagitem ::= MINUS INTEGER */
case
126
:
/* tagitem ::= MINUS FLOAT */
yytestcase
(
yyruleno
==
126
);
...
...
@@ -2388,59 +2645,59 @@ static void yy_reduce(
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
yymsp
[
0
].
minor
.
yy0
.
type
;
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
yylhsminor
.
yy
312
,
&
yymsp
[
-
1
].
minor
.
yy0
);
tVariantCreate
(
&
yylhsminor
.
yy
506
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
yymsp
[
-
1
].
minor
.
yy
312
=
yylhsminor
.
yy312
;
yymsp
[
-
1
].
minor
.
yy
506
=
yylhsminor
.
yy506
;
break
;
case
129
:
/* select ::= SELECT selcollist from where_opt interval_opt fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
{
yylhsminor
.
yy
150
=
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
);
yylhsminor
.
yy
444
=
tSetQuerySQLElems
(
&
yymsp
[
-
11
].
minor
.
yy0
,
yymsp
[
-
10
].
minor
.
yy158
,
yymsp
[
-
9
].
minor
.
yy156
,
yymsp
[
-
8
].
minor
.
yy190
,
yymsp
[
-
4
].
minor
.
yy156
,
yymsp
[
-
3
].
minor
.
yy156
,
&
yymsp
[
-
7
].
minor
.
yy340
,
&
yymsp
[
-
5
].
minor
.
yy0
,
yymsp
[
-
6
].
minor
.
yy156
,
&
yymsp
[
0
].
minor
.
yy414
,
&
yymsp
[
-
1
].
minor
.
yy414
);
}
yymsp
[
-
11
].
minor
.
yy
150
=
yylhsminor
.
yy150
;
yymsp
[
-
11
].
minor
.
yy
444
=
yylhsminor
.
yy444
;
break
;
case
130
:
/* union ::= select */
{
yylhsminor
.
yy
25
=
setSubclause
(
NULL
,
yymsp
[
0
].
minor
.
yy150
);
}
yymsp
[
0
].
minor
.
yy
25
=
yylhsminor
.
yy25
;
{
yylhsminor
.
yy
333
=
setSubclause
(
NULL
,
yymsp
[
0
].
minor
.
yy444
);
}
yymsp
[
0
].
minor
.
yy
333
=
yylhsminor
.
yy333
;
break
;
case
131
:
/* union ::= LP union RP */
{
yymsp
[
-
2
].
minor
.
yy
25
=
yymsp
[
-
1
].
minor
.
yy25
;
}
{
yymsp
[
-
2
].
minor
.
yy
333
=
yymsp
[
-
1
].
minor
.
yy333
;
}
break
;
case
132
:
/* union ::= union UNION ALL select */
{
yylhsminor
.
yy
25
=
appendSelectClause
(
yymsp
[
-
3
].
minor
.
yy25
,
yymsp
[
0
].
minor
.
yy150
);
}
yymsp
[
-
3
].
minor
.
yy
25
=
yylhsminor
.
yy25
;
{
yylhsminor
.
yy
333
=
appendSelectClause
(
yymsp
[
-
3
].
minor
.
yy333
,
yymsp
[
0
].
minor
.
yy444
);
}
yymsp
[
-
3
].
minor
.
yy
333
=
yylhsminor
.
yy333
;
break
;
case
133
:
/* union ::= union UNION ALL LP select RP */
{
yylhsminor
.
yy
25
=
appendSelectClause
(
yymsp
[
-
5
].
minor
.
yy25
,
yymsp
[
-
1
].
minor
.
yy150
);
}
yymsp
[
-
5
].
minor
.
yy
25
=
yylhsminor
.
yy25
;
{
yylhsminor
.
yy
333
=
appendSelectClause
(
yymsp
[
-
5
].
minor
.
yy333
,
yymsp
[
-
1
].
minor
.
yy444
);
}
yymsp
[
-
5
].
minor
.
yy
333
=
yylhsminor
.
yy333
;
break
;
case
134
:
/* cmd ::= union */
{
setSQLInfo
(
pInfo
,
yymsp
[
0
].
minor
.
yy
25
,
NULL
,
TSDB_SQL_SELECT
);
}
{
setSQLInfo
(
pInfo
,
yymsp
[
0
].
minor
.
yy
333
,
NULL
,
TSDB_SQL_SELECT
);
}
break
;
case
135
:
/* select ::= SELECT selcollist */
{
yylhsminor
.
yy
150
=
tSetQuerySQLElems
(
&
yymsp
[
-
1
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy224
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
yylhsminor
.
yy
444
=
tSetQuerySQLElems
(
&
yymsp
[
-
1
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy158
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
}
yymsp
[
-
1
].
minor
.
yy
150
=
yylhsminor
.
yy150
;
yymsp
[
-
1
].
minor
.
yy
444
=
yylhsminor
.
yy444
;
break
;
case
136
:
/* sclp ::= selcollist COMMA */
{
yylhsminor
.
yy
224
=
yymsp
[
-
1
].
minor
.
yy224
;}
yymsp
[
-
1
].
minor
.
yy
224
=
yylhsminor
.
yy224
;
{
yylhsminor
.
yy
158
=
yymsp
[
-
1
].
minor
.
yy158
;}
yymsp
[
-
1
].
minor
.
yy
158
=
yylhsminor
.
yy158
;
break
;
case
137
:
/* sclp ::= */
{
yymsp
[
1
].
minor
.
yy
224
=
0
;}
{
yymsp
[
1
].
minor
.
yy
158
=
0
;}
break
;
case
138
:
/* selcollist ::= sclp expr as */
{
yylhsminor
.
yy
224
=
tSQLExprListAppend
(
yymsp
[
-
2
].
minor
.
yy224
,
yymsp
[
-
1
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy0
.
n
?&
yymsp
[
0
].
minor
.
yy0
:
0
);
yylhsminor
.
yy
158
=
tSQLExprListAppend
(
yymsp
[
-
2
].
minor
.
yy158
,
yymsp
[
-
1
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy0
.
n
?&
yymsp
[
0
].
minor
.
yy0
:
0
);
}
yymsp
[
-
2
].
minor
.
yy
224
=
yylhsminor
.
yy224
;
yymsp
[
-
2
].
minor
.
yy
158
=
yylhsminor
.
yy158
;
break
;
case
139
:
/* selcollist ::= sclp STAR */
{
tSQLExpr
*
pNode
=
tSQLExprIdValueCreate
(
NULL
,
TK_ALL
);
yylhsminor
.
yy
224
=
tSQLExprListAppend
(
yymsp
[
-
1
].
minor
.
yy224
,
pNode
,
0
);
yylhsminor
.
yy
158
=
tSQLExprListAppend
(
yymsp
[
-
1
].
minor
.
yy158
,
pNode
,
0
);
}
yymsp
[
-
1
].
minor
.
yy
224
=
yylhsminor
.
yy224
;
yymsp
[
-
1
].
minor
.
yy
158
=
yylhsminor
.
yy158
;
break
;
case
140
:
/* as ::= AS ids */
{
yymsp
[
-
1
].
minor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;
}
...
...
@@ -2453,300 +2710,307 @@ static void yy_reduce(
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
}
break
;
case
143
:
/* from ::= FROM tablelist */
{
yymsp
[
-
1
].
minor
.
yy
494
=
yymsp
[
0
].
minor
.
yy494
;}
{
yymsp
[
-
1
].
minor
.
yy
156
=
yymsp
[
0
].
minor
.
yy156
;}
break
;
case
144
:
/* tablelist ::= ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
494
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
494
=
tVariantListAppendToken
(
yylhsminor
.
yy494
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
// table alias name
yylhsminor
.
yy
156
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
156
=
tVariantListAppendToken
(
yylhsminor
.
yy156
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
// table alias name
}
yymsp
[
-
1
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
yymsp
[
-
1
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
145
:
/* tablelist ::= ids cpxName ids */
{
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
yymsp
[
-
1
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
494
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
494
=
tVariantListAppendToken
(
yylhsminor
.
yy494
,
&
yymsp
[
0
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
156
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
156
=
tVariantListAppendToken
(
yylhsminor
.
yy156
,
&
yymsp
[
0
].
minor
.
yy0
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
yymsp
[
-
2
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
146
:
/* tablelist ::= tablelist COMMA ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
494
=
tVariantListAppendToken
(
yymsp
[
-
3
].
minor
.
yy494
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
494
=
tVariantListAppendToken
(
yylhsminor
.
yy494
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
156
=
tVariantListAppendToken
(
yymsp
[
-
3
].
minor
.
yy156
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
156
=
tVariantListAppendToken
(
yylhsminor
.
yy156
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
}
yymsp
[
-
3
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
yymsp
[
-
3
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
147
:
/* tablelist ::= tablelist COMMA ids cpxName ids */
{
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
toTSDBType
(
yymsp
[
0
].
minor
.
yy0
.
type
);
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
yymsp
[
-
1
].
minor
.
yy0
.
n
;
yylhsminor
.
yy
494
=
tVariantListAppendToken
(
yymsp
[
-
4
].
minor
.
yy494
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
494
=
tVariantListAppendToken
(
yylhsminor
.
yy494
,
&
yymsp
[
0
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
156
=
tVariantListAppendToken
(
yymsp
[
-
4
].
minor
.
yy156
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
yylhsminor
.
yy
156
=
tVariantListAppendToken
(
yylhsminor
.
yy156
,
&
yymsp
[
0
].
minor
.
yy0
,
-
1
);
}
yymsp
[
-
4
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
yymsp
[
-
4
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
148
:
/* tmvar ::= VARIABLE */
{
yylhsminor
.
yy0
=
yymsp
[
0
].
minor
.
yy0
;}
yymsp
[
0
].
minor
.
yy0
=
yylhsminor
.
yy0
;
break
;
case
149
:
/* interval_opt ::= INTERVAL LP tmvar RP */
case
154
:
/* sliding_opt ::= SLIDING LP tmvar RP */
yytestcase
(
yyruleno
==
154
);
{
yymsp
[
-
3
].
minor
.
yy0
=
yymsp
[
-
1
].
minor
.
yy0
;
}
{
yymsp
[
-
3
].
minor
.
yy340
.
interval
=
yymsp
[
-
1
].
minor
.
yy0
;
yymsp
[
-
3
].
minor
.
yy340
.
offset
.
n
=
0
;
yymsp
[
-
3
].
minor
.
yy340
.
offset
.
z
=
NULL
;
yymsp
[
-
3
].
minor
.
yy340
.
offset
.
type
=
0
;}
break
;
case
150
:
/* interval_opt ::= */
case
155
:
/* sliding_opt ::= */
yytestcase
(
yyruleno
==
155
);
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
yymsp
[
1
].
minor
.
yy0
.
z
=
NULL
;
yymsp
[
1
].
minor
.
yy0
.
type
=
0
;
}
case
150
:
/* interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
{
yymsp
[
-
5
].
minor
.
yy340
.
interval
=
yymsp
[
-
3
].
minor
.
yy0
;
yymsp
[
-
5
].
minor
.
yy340
.
offset
=
yymsp
[
-
1
].
minor
.
yy0
;}
break
;
case
151
:
/* interval_opt ::= */
{
memset
(
&
yymsp
[
1
].
minor
.
yy340
,
0
,
sizeof
(
yymsp
[
1
].
minor
.
yy340
));}
break
;
case
15
1
:
/* fill_opt ::= */
{
yymsp
[
1
].
minor
.
yy
494
=
0
;
}
case
15
2
:
/* fill_opt ::= */
{
yymsp
[
1
].
minor
.
yy
156
=
0
;
}
break
;
case
15
2
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
case
15
3
:
/* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
tVariant
A
=
{
0
};
toTSDBType
(
yymsp
[
-
3
].
minor
.
yy0
.
type
);
tVariantCreate
(
&
A
,
&
yymsp
[
-
3
].
minor
.
yy0
);
tVariantListInsert
(
yymsp
[
-
1
].
minor
.
yy
494
,
&
A
,
-
1
,
0
);
yymsp
[
-
5
].
minor
.
yy
494
=
yymsp
[
-
1
].
minor
.
yy494
;
tVariantListInsert
(
yymsp
[
-
1
].
minor
.
yy
156
,
&
A
,
-
1
,
0
);
yymsp
[
-
5
].
minor
.
yy
156
=
yymsp
[
-
1
].
minor
.
yy156
;
}
break
;
case
15
3
:
/* fill_opt ::= FILL LP ID RP */
case
15
4
:
/* fill_opt ::= FILL LP ID RP */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
3
].
minor
.
yy
494
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
yymsp
[
-
3
].
minor
.
yy
156
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy0
,
-
1
);
}
break
;
case
156
:
/* orderby_opt ::= */
case
164
:
/* groupby_opt ::= */
yytestcase
(
yyruleno
==
164
);
{
yymsp
[
1
].
minor
.
yy494
=
0
;}
case
155
:
/* sliding_opt ::= SLIDING LP tmvar RP */
{
yymsp
[
-
3
].
minor
.
yy0
=
yymsp
[
-
1
].
minor
.
yy0
;
}
break
;
case
156
:
/* sliding_opt ::= */
{
yymsp
[
1
].
minor
.
yy0
.
n
=
0
;
yymsp
[
1
].
minor
.
yy0
.
z
=
NULL
;
yymsp
[
1
].
minor
.
yy0
.
type
=
0
;
}
break
;
case
157
:
/* orderby_opt ::= */
case
165
:
/* groupby_opt ::= */
yytestcase
(
yyruleno
==
165
);
{
yymsp
[
1
].
minor
.
yy156
=
0
;}
break
;
case
15
7
:
/* orderby_opt ::= ORDER BY sortlist */
case
16
5
:
/* groupby_opt ::= GROUP BY grouplist */
yytestcase
(
yyruleno
==
165
);
{
yymsp
[
-
2
].
minor
.
yy
494
=
yymsp
[
0
].
minor
.
yy494
;}
case
15
8
:
/* orderby_opt ::= ORDER BY sortlist */
case
16
6
:
/* groupby_opt ::= GROUP BY grouplist */
yytestcase
(
yyruleno
==
166
);
{
yymsp
[
-
2
].
minor
.
yy
156
=
yymsp
[
0
].
minor
.
yy156
;}
break
;
case
15
8
:
/* sortlist ::= sortlist COMMA item sortorder */
case
15
9
:
/* sortlist ::= sortlist COMMA item sortorder */
{
yylhsminor
.
yy
494
=
tVariantListAppend
(
yymsp
[
-
3
].
minor
.
yy494
,
&
yymsp
[
-
1
].
minor
.
yy312
,
yymsp
[
0
].
minor
.
yy8
2
);
yylhsminor
.
yy
156
=
tVariantListAppend
(
yymsp
[
-
3
].
minor
.
yy156
,
&
yymsp
[
-
1
].
minor
.
yy506
,
yymsp
[
0
].
minor
.
yy11
2
);
}
yymsp
[
-
3
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
yymsp
[
-
3
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
1
59
:
/* sortlist ::= item sortorder */
case
1
60
:
/* sortlist ::= item sortorder */
{
yylhsminor
.
yy
494
=
tVariantListAppend
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy312
,
yymsp
[
0
].
minor
.
yy8
2
);
yylhsminor
.
yy
156
=
tVariantListAppend
(
NULL
,
&
yymsp
[
-
1
].
minor
.
yy506
,
yymsp
[
0
].
minor
.
yy11
2
);
}
yymsp
[
-
1
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
yymsp
[
-
1
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
16
0
:
/* item ::= ids cpxName */
case
16
1
:
/* item ::= ids cpxName */
{
toTSDBType
(
yymsp
[
-
1
].
minor
.
yy0
.
type
);
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
tVariantCreate
(
&
yylhsminor
.
yy
312
,
&
yymsp
[
-
1
].
minor
.
yy0
);
tVariantCreate
(
&
yylhsminor
.
yy
506
,
&
yymsp
[
-
1
].
minor
.
yy0
);
}
yymsp
[
-
1
].
minor
.
yy
312
=
yylhsminor
.
yy312
;
yymsp
[
-
1
].
minor
.
yy
506
=
yylhsminor
.
yy506
;
break
;
case
16
1
:
/* sortorder ::= ASC */
{
yymsp
[
0
].
minor
.
yy
8
2
=
TSDB_ORDER_ASC
;
}
case
16
2
:
/* sortorder ::= ASC */
{
yymsp
[
0
].
minor
.
yy
11
2
=
TSDB_ORDER_ASC
;
}
break
;
case
16
2
:
/* sortorder ::= DESC */
{
yymsp
[
0
].
minor
.
yy
8
2
=
TSDB_ORDER_DESC
;}
case
16
3
:
/* sortorder ::= DESC */
{
yymsp
[
0
].
minor
.
yy
11
2
=
TSDB_ORDER_DESC
;}
break
;
case
16
3
:
/* sortorder ::= */
{
yymsp
[
1
].
minor
.
yy
8
2
=
TSDB_ORDER_ASC
;}
case
16
4
:
/* sortorder ::= */
{
yymsp
[
1
].
minor
.
yy
11
2
=
TSDB_ORDER_ASC
;}
break
;
case
16
6
:
/* grouplist ::= grouplist COMMA item */
case
16
7
:
/* grouplist ::= grouplist COMMA item */
{
yylhsminor
.
yy
494
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy494
,
&
yymsp
[
0
].
minor
.
yy312
,
-
1
);
yylhsminor
.
yy
156
=
tVariantListAppend
(
yymsp
[
-
2
].
minor
.
yy156
,
&
yymsp
[
0
].
minor
.
yy506
,
-
1
);
}
yymsp
[
-
2
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
yymsp
[
-
2
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
16
7
:
/* grouplist ::= item */
case
16
8
:
/* grouplist ::= item */
{
yylhsminor
.
yy
494
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy312
,
-
1
);
yylhsminor
.
yy
156
=
tVariantListAppend
(
NULL
,
&
yymsp
[
0
].
minor
.
yy506
,
-
1
);
}
yymsp
[
0
].
minor
.
yy
494
=
yylhsminor
.
yy494
;
yymsp
[
0
].
minor
.
yy
156
=
yylhsminor
.
yy156
;
break
;
case
16
8
:
/* having_opt ::= */
case
17
8
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
178
);
case
21
6
:
/* expritem ::= */
yytestcase
(
yyruleno
==
216
);
{
yymsp
[
1
].
minor
.
yy
66
=
0
;}
case
16
9
:
/* having_opt ::= */
case
17
9
:
/* where_opt ::= */
yytestcase
(
yyruleno
==
179
);
case
21
7
:
/* expritem ::= */
yytestcase
(
yyruleno
==
217
);
{
yymsp
[
1
].
minor
.
yy
190
=
0
;}
break
;
case
1
69
:
/* having_opt ::= HAVING expr */
case
1
79
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
179
);
{
yymsp
[
-
1
].
minor
.
yy
66
=
yymsp
[
0
].
minor
.
yy66
;}
case
1
70
:
/* having_opt ::= HAVING expr */
case
1
80
:
/* where_opt ::= WHERE expr */
yytestcase
(
yyruleno
==
180
);
{
yymsp
[
-
1
].
minor
.
yy
190
=
yymsp
[
0
].
minor
.
yy190
;}
break
;
case
17
0
:
/* limit_opt ::= */
case
17
4
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
174
);
{
yymsp
[
1
].
minor
.
yy
188
.
limit
=
-
1
;
yymsp
[
1
].
minor
.
yy188
.
offset
=
0
;}
case
17
1
:
/* limit_opt ::= */
case
17
5
:
/* slimit_opt ::= */
yytestcase
(
yyruleno
==
175
);
{
yymsp
[
1
].
minor
.
yy
414
.
limit
=
-
1
;
yymsp
[
1
].
minor
.
yy414
.
offset
=
0
;}
break
;
case
17
1
:
/* limit_opt ::= LIMIT signed */
case
17
5
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
175
);
{
yymsp
[
-
1
].
minor
.
yy
188
.
limit
=
yymsp
[
0
].
minor
.
yy271
;
yymsp
[
-
1
].
minor
.
yy188
.
offset
=
0
;}
case
17
2
:
/* limit_opt ::= LIMIT signed */
case
17
6
:
/* slimit_opt ::= SLIMIT signed */
yytestcase
(
yyruleno
==
176
);
{
yymsp
[
-
1
].
minor
.
yy
414
.
limit
=
yymsp
[
0
].
minor
.
yy369
;
yymsp
[
-
1
].
minor
.
yy414
.
offset
=
0
;}
break
;
case
17
2
:
/* limit_opt ::= LIMIT signed OFFSET signed */
case
17
6
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
yytestcase
(
yyruleno
==
176
);
{
yymsp
[
-
3
].
minor
.
yy
188
.
limit
=
yymsp
[
-
2
].
minor
.
yy271
;
yymsp
[
-
3
].
minor
.
yy188
.
offset
=
yymsp
[
0
].
minor
.
yy271
;}
case
17
3
:
/* limit_opt ::= LIMIT signed OFFSET signed */
case
17
7
:
/* slimit_opt ::= SLIMIT signed SOFFSET signed */
yytestcase
(
yyruleno
==
177
);
{
yymsp
[
-
3
].
minor
.
yy
414
.
limit
=
yymsp
[
-
2
].
minor
.
yy369
;
yymsp
[
-
3
].
minor
.
yy414
.
offset
=
yymsp
[
0
].
minor
.
yy369
;}
break
;
case
17
3
:
/* limit_opt ::= LIMIT signed COMMA signed */
case
17
7
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
yytestcase
(
yyruleno
==
177
);
{
yymsp
[
-
3
].
minor
.
yy
188
.
limit
=
yymsp
[
0
].
minor
.
yy271
;
yymsp
[
-
3
].
minor
.
yy188
.
offset
=
yymsp
[
-
2
].
minor
.
yy271
;}
case
17
4
:
/* limit_opt ::= LIMIT signed COMMA signed */
case
17
8
:
/* slimit_opt ::= SLIMIT signed COMMA signed */
yytestcase
(
yyruleno
==
178
);
{
yymsp
[
-
3
].
minor
.
yy
414
.
limit
=
yymsp
[
0
].
minor
.
yy369
;
yymsp
[
-
3
].
minor
.
yy414
.
offset
=
yymsp
[
-
2
].
minor
.
yy369
;}
break
;
case
18
0
:
/* expr ::= LP expr RP */
{
yymsp
[
-
2
].
minor
.
yy
66
=
yymsp
[
-
1
].
minor
.
yy66
;
}
case
18
1
:
/* expr ::= LP expr RP */
{
yymsp
[
-
2
].
minor
.
yy
190
=
yymsp
[
-
1
].
minor
.
yy190
;
}
break
;
case
18
1
:
/* expr ::= ID */
{
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
0
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
18
2
:
/* expr ::= ID */
{
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
0
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
18
2
:
/* expr ::= ID DOT ID */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
18
3
:
/* expr ::= ID DOT ID */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ID
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
18
3
:
/* expr ::= ID DOT STAR */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ALL
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
18
4
:
/* expr ::= ID DOT STAR */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
1
+
yymsp
[
0
].
minor
.
yy0
.
n
);
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
2
].
minor
.
yy0
,
TK_ALL
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
18
4
:
/* expr ::= INTEGER */
{
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
0
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
18
5
:
/* expr ::= INTEGER */
{
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
0
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
18
5
:
/* expr ::= MINUS INTEGER */
case
18
6
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
186
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_INTEGER
;
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
-
1
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
18
6
:
/* expr ::= MINUS INTEGER */
case
18
7
:
/* expr ::= PLUS INTEGER */
yytestcase
(
yyruleno
==
187
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_INTEGER
;
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_INTEGER
);}
yymsp
[
-
1
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
18
7
:
/* expr ::= FLOAT */
{
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
0
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
18
8
:
/* expr ::= FLOAT */
{
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
0
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
18
8
:
/* expr ::= MINUS FLOAT */
case
1
89
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
189
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_FLOAT
;
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
-
1
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
18
9
:
/* expr ::= MINUS FLOAT */
case
1
90
:
/* expr ::= PLUS FLOAT */
yytestcase
(
yyruleno
==
190
);
{
yymsp
[
-
1
].
minor
.
yy0
.
n
+=
yymsp
[
0
].
minor
.
yy0
.
n
;
yymsp
[
-
1
].
minor
.
yy0
.
type
=
TK_FLOAT
;
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
-
1
].
minor
.
yy0
,
TK_FLOAT
);}
yymsp
[
-
1
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
19
0
:
/* expr ::= STRING */
{
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_STRING
);}
yymsp
[
0
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
19
1
:
/* expr ::= STRING */
{
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_STRING
);}
yymsp
[
0
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
19
1
:
/* expr ::= NOW */
{
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NOW
);
}
yymsp
[
0
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
19
2
:
/* expr ::= NOW */
{
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_NOW
);
}
yymsp
[
0
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
19
2
:
/* expr ::= VARIABLE */
{
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
0
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
19
3
:
/* expr ::= VARIABLE */
{
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_VARIABLE
);}
yymsp
[
0
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
19
3
:
/* expr ::= BOOL */
{
yylhsminor
.
yy
66
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_BOOL
);}
yymsp
[
0
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
19
4
:
/* expr ::= BOOL */
{
yylhsminor
.
yy
190
=
tSQLExprIdValueCreate
(
&
yymsp
[
0
].
minor
.
yy0
,
TK_BOOL
);}
yymsp
[
0
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
19
4
:
/* expr ::= ID LP exprlist RP */
{
yylhsminor
.
yy
66
=
tSQLExprCreateFunction
(
yymsp
[
-
1
].
minor
.
yy224
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
19
5
:
/* expr ::= ID LP exprlist RP */
{
yylhsminor
.
yy
190
=
tSQLExprCreateFunction
(
yymsp
[
-
1
].
minor
.
yy158
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
19
5
:
/* expr ::= ID LP STAR RP */
{
yylhsminor
.
yy
66
=
tSQLExprCreateFunction
(
NULL
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
19
6
:
/* expr ::= ID LP STAR RP */
{
yylhsminor
.
yy
190
=
tSQLExprCreateFunction
(
NULL
,
&
yymsp
[
-
3
].
minor
.
yy0
,
&
yymsp
[
0
].
minor
.
yy0
,
yymsp
[
-
3
].
minor
.
yy0
.
type
);
}
yymsp
[
-
3
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
19
6
:
/* expr ::= expr IS NULL */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
NULL
,
TK_ISNULL
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
19
7
:
/* expr ::= expr IS NULL */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
NULL
,
TK_ISNULL
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
19
7
:
/* expr ::= expr IS NOT NULL */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
3
].
minor
.
yy66
,
NULL
,
TK_NOTNULL
);}
yymsp
[
-
3
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
19
8
:
/* expr ::= expr IS NOT NULL */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
3
].
minor
.
yy190
,
NULL
,
TK_NOTNULL
);}
yymsp
[
-
3
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
19
8
:
/* expr ::= expr LT expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_LT
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
19
9
:
/* expr ::= expr LT expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_LT
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
199
:
/* expr ::= expr GT expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_GT
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
200
:
/* expr ::= expr GT expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_GT
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
20
0
:
/* expr ::= expr LE expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_LE
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
20
1
:
/* expr ::= expr LE expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_LE
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
20
1
:
/* expr ::= expr GE expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_GE
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
20
2
:
/* expr ::= expr GE expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_GE
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
20
2
:
/* expr ::= expr NE expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_NE
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
20
3
:
/* expr ::= expr NE expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_NE
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
20
3
:
/* expr ::= expr EQ expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_EQ
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
20
4
:
/* expr ::= expr EQ expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_EQ
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
20
4
:
/* expr ::= expr AND expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_AND
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
20
5
:
/* expr ::= expr AND expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_AND
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
20
5
:
/* expr ::= expr OR expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_OR
);
}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
20
6
:
/* expr ::= expr OR expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_OR
);
}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
20
6
:
/* expr ::= expr PLUS expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_PLUS
);
}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
20
7
:
/* expr ::= expr PLUS expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_PLUS
);
}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
20
7
:
/* expr ::= expr MINUS expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_MINUS
);
}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
20
8
:
/* expr ::= expr MINUS expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_MINUS
);
}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
20
8
:
/* expr ::= expr STAR expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_STAR
);
}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
20
9
:
/* expr ::= expr STAR expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_STAR
);
}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
2
09
:
/* expr ::= expr SLASH expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_DIVIDE
);}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
2
10
:
/* expr ::= expr SLASH expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_DIVIDE
);}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
21
0
:
/* expr ::= expr REM expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_REM
);
}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
21
1
:
/* expr ::= expr REM expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_REM
);
}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
21
1
:
/* expr ::= expr LIKE expr */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy66
,
yymsp
[
0
].
minor
.
yy66
,
TK_LIKE
);
}
yymsp
[
-
2
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
21
2
:
/* expr ::= expr LIKE expr */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
2
].
minor
.
yy190
,
yymsp
[
0
].
minor
.
yy190
,
TK_LIKE
);
}
yymsp
[
-
2
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
21
2
:
/* expr ::= expr IN LP exprlist RP */
{
yylhsminor
.
yy
66
=
tSQLExprCreate
(
yymsp
[
-
4
].
minor
.
yy66
,
(
tSQLExpr
*
)
yymsp
[
-
1
].
minor
.
yy224
,
TK_IN
);
}
yymsp
[
-
4
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
21
3
:
/* expr ::= expr IN LP exprlist RP */
{
yylhsminor
.
yy
190
=
tSQLExprCreate
(
yymsp
[
-
4
].
minor
.
yy190
,
(
tSQLExpr
*
)
yymsp
[
-
1
].
minor
.
yy158
,
TK_IN
);
}
yymsp
[
-
4
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
21
3
:
/* exprlist ::= exprlist COMMA expritem */
{
yylhsminor
.
yy
224
=
tSQLExprListAppend
(
yymsp
[
-
2
].
minor
.
yy224
,
yymsp
[
0
].
minor
.
yy66
,
0
);}
yymsp
[
-
2
].
minor
.
yy
224
=
yylhsminor
.
yy224
;
case
21
4
:
/* exprlist ::= exprlist COMMA expritem */
{
yylhsminor
.
yy
158
=
tSQLExprListAppend
(
yymsp
[
-
2
].
minor
.
yy158
,
yymsp
[
0
].
minor
.
yy190
,
0
);}
yymsp
[
-
2
].
minor
.
yy
158
=
yylhsminor
.
yy158
;
break
;
case
21
4
:
/* exprlist ::= expritem */
{
yylhsminor
.
yy
224
=
tSQLExprListAppend
(
0
,
yymsp
[
0
].
minor
.
yy66
,
0
);}
yymsp
[
0
].
minor
.
yy
224
=
yylhsminor
.
yy224
;
case
21
5
:
/* exprlist ::= expritem */
{
yylhsminor
.
yy
158
=
tSQLExprListAppend
(
0
,
yymsp
[
0
].
minor
.
yy190
,
0
);}
yymsp
[
0
].
minor
.
yy
158
=
yylhsminor
.
yy158
;
break
;
case
21
5
:
/* expritem ::= expr */
{
yylhsminor
.
yy
66
=
yymsp
[
0
].
minor
.
yy66
;}
yymsp
[
0
].
minor
.
yy
66
=
yylhsminor
.
yy66
;
case
21
6
:
/* expritem ::= expr */
{
yylhsminor
.
yy
190
=
yymsp
[
0
].
minor
.
yy190
;}
yymsp
[
0
].
minor
.
yy
190
=
yylhsminor
.
yy190
;
break
;
case
21
7
:
/* cmd ::= RESET QUERY CACHE */
case
21
8
:
/* cmd ::= RESET QUERY CACHE */
{
setDCLSQLElems
(
pInfo
,
TSDB_SQL_RESET_CACHE
,
0
);}
break
;
case
21
8
:
/* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
case
21
9
:
/* 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
.
yy
449
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
);
SAlterTableSQL
*
pAlterTable
=
tAlterTableSQLElems
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
511
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
);
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
2
19
:
/* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
case
2
20
:
/* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -2757,14 +3021,14 @@ static void yy_reduce(
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
22
0
:
/* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
case
22
1
:
/* 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
.
yy
449
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
);
SAlterTableSQL
*
pAlterTable
=
tAlterTableSQLElems
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy
511
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
);
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
22
1
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
case
22
2
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
...
@@ -2775,7 +3039,7 @@ static void yy_reduce(
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
22
2
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
case
22
3
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
...
...
@@ -2789,34 +3053,34 @@ static void yy_reduce(
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
22
3
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
case
22
4
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
yymsp
[
-
6
].
minor
.
yy0
.
n
+=
yymsp
[
-
5
].
minor
.
yy0
.
n
;
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
tVariantList
*
A
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
312
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy
506
,
-
1
);
SAlterTableSQL
*
pAlterTable
=
tAlterTableSQLElems
(
&
yymsp
[
-
6
].
minor
.
yy0
,
NULL
,
A
,
TSDB_ALTER_TABLE_UPDATE_TAG_VAL
);
setSQLInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
22
4
:
/* cmd ::= KILL CONNECTION INTEGER */
case
22
5
:
/* cmd ::= KILL CONNECTION INTEGER */
{
setKillSQL
(
pInfo
,
TSDB_SQL_KILL_CONNECTION
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
case
22
5
:
/* cmd ::= KILL STREAM INTEGER COLON INTEGER */
case
22
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
22
6
:
/* cmd ::= KILL QUERY INTEGER COLON INTEGER */
case
22
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:
break
;
/********** End reduce actions ************************************************/
};
assert
(
yyruleno
<
sizeof
(
yyRuleInfo
)
/
sizeof
(
yyRuleInfo
[
0
])
);
yygoto
=
yyRuleInfo
[
yyruleno
].
lhs
;
yysize
=
yyRuleInfo
[
yyruleno
].
nrhs
;
assert
(
yyruleno
<
sizeof
(
yyRuleInfo
Lhs
)
/
sizeof
(
yyRuleInfoLhs
[
0
])
);
yygoto
=
yyRuleInfo
Lhs
[
yyruleno
]
;
yysize
=
yyRuleInfo
NRhs
[
yyruleno
]
;
yyact
=
yy_find_reduce_action
(
yymsp
[
yysize
].
stateno
,(
YYCODETYPE
)
yygoto
);
/* There are no SHIFTREDUCE actions on nonterminals because the table
...
...
@@ -2831,6 +3095,7 @@ static void yy_reduce(
yymsp
->
stateno
=
(
YYACTIONTYPE
)
yyact
;
yymsp
->
major
=
(
YYCODETYPE
)
yygoto
;
yyTraceShift
(
yypParser
,
yyact
,
"... then shift"
);
return
yyact
;
}
/*
...
...
@@ -2840,7 +3105,8 @@ static void yy_reduce(
static
void
yy_parse_failed
(
yyParser
*
yypParser
/* The parser */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sFail!
\n
"
,
yyTracePrompt
);
...
...
@@ -2851,7 +3117,8 @@ static void yy_parse_failed(
** parser fails */
/************ Begin %parse_failure code ***************************************/
/************ End %parse_failure code *****************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
#endif
/* YYNOERRORRECOVERY */
...
...
@@ -2863,7 +3130,8 @@ static void yy_syntax_error(
int
yymajor
,
/* The major type of the error token */
ParseTOKENTYPE
yyminor
/* The minor type of the error token */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
...
...
@@ -2889,7 +3157,8 @@ static void yy_syntax_error(
assert
(
len
<=
outputBufLen
);
/************ End %syntax_error code ******************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
/*
...
...
@@ -2898,7 +3167,8 @@ static void yy_syntax_error(
static
void
yy_accept
(
yyParser
*
yypParser
/* The parser */
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sAccept!
\n
"
,
yyTracePrompt
);
...
...
@@ -2913,7 +3183,8 @@ static void yy_accept(
/*********** Begin %parse_accept code *****************************************/
/*********** End %parse_accept code *******************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
/* The main parser program.
...
...
@@ -2942,45 +3213,47 @@ void Parse(
ParseARG_PDECL
/* Optional %extra_argument parameter */
){
YYMINORTYPE
yyminorunion
;
unsigned
int
yyact
;
/* The parser action. */
YYACTIONTYPE
yyact
;
/* The parser action. */
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
int
yyendofinput
;
/* True if we are at the end of input */
#endif
#ifdef YYERRORSYMBOL
int
yyerrorhit
=
0
;
/* True if yymajor has invoked an error */
#endif
yyParser
*
yypParser
;
/* The parser */
yyParser
*
yypParser
=
(
yyParser
*
)
yyp
;
/* The parser */
ParseCTX_FETCH
ParseARG_STORE
yypParser
=
(
yyParser
*
)
yyp
;
assert
(
yypParser
->
yytos
!=
0
);
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
yyendofinput
=
(
yymajor
==
0
);
#endif
ParseARG_STORE
;
yyact
=
yypParser
->
yytos
->
stateno
;
#ifndef NDEBUG
if
(
yyTraceFILE
){
int
stateno
=
yypParser
->
yytos
->
stateno
;
if
(
stateno
<
YY_MIN_REDUCE
){
if
(
yyact
<
YY_MIN_REDUCE
){
fprintf
(
yyTraceFILE
,
"%sInput '%s' in state %d
\n
"
,
yyTracePrompt
,
yyTokenName
[
yymajor
],
stateno
);
yyTracePrompt
,
yyTokenName
[
yymajor
],
yyact
);
}
else
{
fprintf
(
yyTraceFILE
,
"%sInput '%s' with pending reduce %d
\n
"
,
yyTracePrompt
,
yyTokenName
[
yymajor
],
stateno
-
YY_MIN_REDUCE
);
yyTracePrompt
,
yyTokenName
[
yymajor
],
yyact
-
YY_MIN_REDUCE
);
}
}
#endif
do
{
yyact
=
yy_find_shift_action
(
yypParser
,(
YYCODETYPE
)
yymajor
);
assert
(
yyact
==
yypParser
->
yytos
->
stateno
);
yyact
=
yy_find_shift_action
((
YYCODETYPE
)
yymajor
,
yyact
);
if
(
yyact
>=
YY_MIN_REDUCE
){
yy_reduce
(
yypParser
,
yyact
-
YY_MIN_REDUCE
,
yymajor
,
yyminor
);
yyact
=
yy_reduce
(
yypParser
,
yyact
-
YY_MIN_REDUCE
,
yymajor
,
yyminor
ParseCTX_PARAM
);
}
else
if
(
yyact
<=
YY_MAX_SHIFTREDUCE
){
yy_shift
(
yypParser
,
yyact
,
yymajor
,
yyminor
);
yy_shift
(
yypParser
,
yyact
,
(
YYCODETYPE
)
yymajor
,
yyminor
);
#ifndef YYNOERRORRECOVERY
yypParser
->
yyerrcnt
--
;
#endif
yymajor
=
YYNOCODE
;
break
;
}
else
if
(
yyact
==
YY_ACCEPT_ACTION
){
yypParser
->
yytos
--
;
yy_accept
(
yypParser
);
...
...
@@ -3031,10 +3304,9 @@ void Parse(
yymajor
=
YYNOCODE
;
}
else
{
while
(
yypParser
->
yytos
>=
yypParser
->
yystack
&&
yymx
!=
YYERRORSYMBOL
&&
(
yyact
=
yy_find_reduce_action
(
yypParser
->
yytos
->
stateno
,
YYERRORSYMBOL
))
>
=
YY_MIN_
REDUCE
YYERRORSYMBOL
))
>
YY_MAX_SHIFT
REDUCE
){
yy_pop_parser_stack
(
yypParser
);
}
...
...
@@ -3051,6 +3323,8 @@ void Parse(
}
yypParser
->
yyerrcnt
=
3
;
yyerrorhit
=
1
;
if
(
yymajor
==
YYNOCODE
)
break
;
yyact
=
yypParser
->
yytos
->
stateno
;
#elif defined(YYNOERRORRECOVERY)
/* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
** do any kind of error recovery. Instead, simply invoke the syntax
...
...
@@ -3061,8 +3335,7 @@ void Parse(
*/
yy_syntax_error
(
yypParser
,
yymajor
,
yyminor
);
yy_destructor
(
yypParser
,(
YYCODETYPE
)
yymajor
,
&
yyminorunion
);
yymajor
=
YYNOCODE
;
break
;
#else
/* YYERRORSYMBOL is not defined */
/* This is what we do if the grammar does not define ERROR:
**
...
...
@@ -3084,10 +3357,10 @@ void Parse(
yypParser
->
yyerrcnt
=
-
1
;
#endif
}
yymajor
=
YYNOCODE
;
break
;
#endif
}
}
while
(
yy
major
!=
YYNOCODE
&&
yy
pParser
->
yytos
>
yypParser
->
yystack
);
}
while
(
yypParser
->
yytos
>
yypParser
->
yystack
);
#ifndef NDEBUG
if
(
yyTraceFILE
){
yyStackEntry
*
i
;
...
...
@@ -3102,3 +3375,17 @@ void Parse(
#endif
return
;
}
/*
** Return the fallback token corresponding to canonical token iToken, or
** 0 if iToken has no fallback.
*/
int
ParseFallback
(
int
iToken
){
#ifdef YYFALLBACK
assert
(
iToken
<
(
int
)(
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
]))
);
return
yyFallback
[
iToken
];
#else
(
void
)
iToken
;
return
0
;
#endif
}
src/util/src/tarray.c
100755 → 100644
浏览文件 @
4456951e
文件模式从 100755 更改为 100644
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录