未验证 提交 a4282fc2 编写于 作者: H Haojun Liao 提交者: GitHub

Merge pull request #9456 from taosdata/feature/3.0_liaohj

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