提交 2c30118c 编写于 作者: H Haojun Liao

[td-4780]<fix>: disable the update of fsync and wal parameters after the database created.

上级 128c1bc5
...@@ -7809,11 +7809,9 @@ static STableMeta* extractTempTableMetaFromSubquery(SQueryInfo* pUpstream) { ...@@ -7809,11 +7809,9 @@ static STableMeta* extractTempTableMetaFromSubquery(SQueryInfo* pUpstream) {
meta->tableType = TSDB_TEMP_TABLE; meta->tableType = TSDB_TEMP_TABLE;
STableComInfo *info = &meta->tableInfo; STableComInfo *info = &meta->tableInfo;
info->numOfColumns = numOfColumns;
// todo : row size, numOfTags, numOfCols, tag info
// info->numOfColumns = numOfColumns;
info->precision = pUpstreamTableMetaInfo->pTableMeta->tableInfo.precision; info->precision = pUpstreamTableMetaInfo->pTableMeta->tableInfo.precision;
// info->numOfTags = 0; info->numOfTags = 0;
int32_t n = 0; int32_t n = 0;
for(int32_t i = 0; i < numOfColumns; ++i) { for(int32_t i = 0; i < numOfColumns; ++i) {
...@@ -7831,16 +7829,6 @@ static STableMeta* extractTempTableMetaFromSubquery(SQueryInfo* pUpstream) { ...@@ -7831,16 +7829,6 @@ static STableMeta* extractTempTableMetaFromSubquery(SQueryInfo* pUpstream) {
info->rowSize += meta->schema[n].bytes; info->rowSize += meta->schema[n].bytes;
n += 1; n += 1;
if (pExpr->pExpr != NULL) {
info->numOfColumns += 1;
} else {
if (TSDB_COL_IS_TAG(pExpr->base.colInfo.flag)) {
info->numOfTags += 1;
} else {
info->numOfColumns += 1;
}
}
} }
return meta; return meta;
......
...@@ -303,10 +303,11 @@ alter_db_optr(Y) ::= alter_db_optr(Z) quorum(X). { Y = Z; Y.quorum = strtol ...@@ -303,10 +303,11 @@ alter_db_optr(Y) ::= alter_db_optr(Z) quorum(X). { Y = Z; Y.quorum = strtol
alter_db_optr(Y) ::= alter_db_optr(Z) keep(X). { Y = Z; Y.keep = X; } alter_db_optr(Y) ::= alter_db_optr(Z) keep(X). { Y = Z; Y.keep = X; }
alter_db_optr(Y) ::= alter_db_optr(Z) blocks(X). { Y = Z; Y.numOfBlocks = strtol(X.z, NULL, 10); } alter_db_optr(Y) ::= alter_db_optr(Z) blocks(X). { Y = Z; Y.numOfBlocks = strtol(X.z, NULL, 10); }
alter_db_optr(Y) ::= alter_db_optr(Z) comp(X). { Y = Z; Y.compressionLevel = strtol(X.z, NULL, 10); } alter_db_optr(Y) ::= alter_db_optr(Z) comp(X). { Y = Z; Y.compressionLevel = strtol(X.z, NULL, 10); }
alter_db_optr(Y) ::= alter_db_optr(Z) fsync(X). { Y = Z; Y.fsyncPeriod = strtol(X.z, NULL, 10); }
alter_db_optr(Y) ::= alter_db_optr(Z) update(X). { Y = Z; Y.update = strtol(X.z, NULL, 10); } alter_db_optr(Y) ::= alter_db_optr(Z) update(X). { Y = Z; Y.update = strtol(X.z, NULL, 10); }
alter_db_optr(Y) ::= alter_db_optr(Z) cachelast(X). { Y = Z; Y.cachelast = strtol(X.z, NULL, 10); } alter_db_optr(Y) ::= alter_db_optr(Z) cachelast(X). { Y = Z; Y.cachelast = strtol(X.z, NULL, 10); }
// dynamically update the following two parameters are not allowed.
//alter_db_optr(Y) ::= alter_db_optr(Z) fsync(X). { Y = Z; Y.fsyncPeriod = strtol(X.z, NULL, 10); }
//alter_db_optr(Y) ::= alter_db_optr(Z) wal(X). { Y = Z; Y.walLevel = strtol(X.z, NULL, 10); } not support yet //alter_db_optr(Y) ::= alter_db_optr(Z) wal(X). { Y = Z; Y.walLevel = strtol(X.z, NULL, 10); } not support yet
%type alter_topic_optr {SCreateDbInfo} %type alter_topic_optr {SCreateDbInfo}
......
...@@ -129,16 +129,16 @@ typedef union { ...@@ -129,16 +129,16 @@ typedef union {
#define ParseARG_STORE yypParser->pInfo = pInfo #define ParseARG_STORE yypParser->pInfo = pInfo
#define YYFALLBACK 1 #define YYFALLBACK 1
#define YYNSTATE 347 #define YYNSTATE 347
#define YYNRULE 284 #define YYNRULE 283
#define YYNTOKEN 190 #define YYNTOKEN 190
#define YY_MAX_SHIFT 346 #define YY_MAX_SHIFT 346
#define YY_MIN_SHIFTREDUCE 548 #define YY_MIN_SHIFTREDUCE 547
#define YY_MAX_SHIFTREDUCE 831 #define YY_MAX_SHIFTREDUCE 829
#define YY_ERROR_ACTION 832 #define YY_ERROR_ACTION 830
#define YY_ACCEPT_ACTION 833 #define YY_ACCEPT_ACTION 831
#define YY_NO_ACTION 834 #define YY_NO_ACTION 832
#define YY_MIN_REDUCE 835 #define YY_MIN_REDUCE 833
#define YY_MAX_REDUCE 1118 #define YY_MAX_REDUCE 1115
/************* End control #defines *******************************************/ /************* End control #defines *******************************************/
/* Define the yytestcase() macro to be a no-op if is not already defined /* Define the yytestcase() macro to be a no-op if is not already defined
...@@ -204,82 +204,82 @@ typedef union { ...@@ -204,82 +204,82 @@ typedef union {
** yy_default[] Default action for each state. ** yy_default[] Default action for each state.
** **
*********** Begin parsing tables **********************************************/ *********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (732) #define YY_ACTTAB_COUNT (731)
static const YYACTIONTYPE yy_action[] = { static const YYACTIONTYPE yy_action[] = {
/* 0 */ 23, 597, 1007, 597, 219, 344, 194, 833, 346, 598, /* 0 */ 23, 596, 1004, 596, 219, 344, 194, 831, 346, 597,
/* 10 */ 597, 598, 197, 54, 55, 225, 58, 59, 598, 985, /* 10 */ 596, 597, 197, 54, 55, 225, 58, 59, 597, 982,
/* 20 */ 239, 48, 1094, 57, 301, 62, 60, 63, 61, 998, /* 20 */ 239, 48, 1091, 57, 302, 62, 60, 63, 61, 995,
/* 30 */ 998, 231, 233, 53, 52, 985, 985, 51, 50, 49, /* 30 */ 995, 231, 233, 53, 52, 982, 982, 51, 50, 49,
/* 40 */ 54, 55, 35, 58, 59, 222, 223, 239, 48, 597, /* 40 */ 54, 55, 35, 58, 59, 222, 223, 239, 48, 596,
/* 50 */ 57, 301, 62, 60, 63, 61, 998, 598, 152, 236, /* 50 */ 57, 302, 62, 60, 63, 61, 995, 597, 152, 236,
/* 60 */ 53, 52, 235, 152, 51, 50, 49, 55, 1004, 58, /* 60 */ 53, 52, 235, 152, 51, 50, 49, 55, 1001, 58,
/* 70 */ 59, 629, 261, 239, 48, 240, 57, 301, 62, 60, /* 70 */ 59, 770, 261, 239, 48, 240, 57, 302, 62, 60,
/* 80 */ 63, 61, 29, 83, 979, 221, 53, 52, 145, 982, /* 80 */ 63, 61, 29, 83, 976, 221, 53, 52, 145, 979,
/* 90 */ 51, 50, 49, 549, 550, 551, 552, 553, 554, 555, /* 90 */ 51, 50, 49, 548, 549, 550, 551, 552, 553, 554,
/* 100 */ 556, 557, 558, 559, 560, 561, 345, 80, 770, 220, /* 100 */ 555, 556, 557, 558, 559, 560, 345, 771, 768, 220,
/* 110 */ 95, 77, 54, 55, 35, 58, 59, 42, 197, 239, /* 110 */ 95, 77, 54, 55, 35, 58, 59, 42, 197, 239,
/* 120 */ 48, 197, 57, 301, 62, 60, 63, 61, 1095, 232, /* 120 */ 48, 197, 57, 302, 62, 60, 63, 61, 1092, 232,
/* 130 */ 1043, 1095, 53, 52, 197, 89, 51, 50, 49, 54, /* 130 */ 1040, 1092, 53, 52, 197, 89, 51, 50, 49, 54,
/* 140 */ 56, 264, 58, 59, 1095, 973, 239, 48, 971, 57, /* 140 */ 56, 968, 58, 59, 1092, 970, 239, 48, 262, 57,
/* 150 */ 301, 62, 60, 63, 61, 268, 267, 229, 299, 53, /* 150 */ 302, 62, 60, 63, 61, 268, 267, 229, 36, 53,
/* 160 */ 52, 982, 248, 51, 50, 49, 41, 297, 339, 338, /* 160 */ 52, 979, 248, 51, 50, 49, 41, 298, 339, 338,
/* 170 */ 296, 295, 294, 337, 293, 292, 336, 335, 291, 334, /* 170 */ 297, 296, 295, 337, 294, 293, 292, 336, 291, 335,
/* 180 */ 333, 946, 934, 935, 936, 937, 938, 939, 940, 941, /* 180 */ 334, 944, 932, 933, 934, 935, 936, 937, 938, 939,
/* 190 */ 942, 943, 944, 945, 947, 948, 58, 59, 24, 983, /* 190 */ 940, 941, 942, 943, 945, 946, 58, 59, 24, 980,
/* 200 */ 239, 48, 253, 57, 301, 62, 60, 63, 61, 152, /* 200 */ 239, 48, 90, 57, 302, 62, 60, 63, 61, 51,
/* 210 */ 195, 257, 256, 53, 52, 205, 772, 51, 50, 49, /* 210 */ 50, 49, 152, 53, 52, 205, 78, 51, 50, 49,
/* 220 */ 53, 52, 206, 14, 51, 50, 49, 129, 128, 204, /* 220 */ 53, 52, 206, 300, 51, 50, 49, 129, 128, 204,
/* 230 */ 299, 238, 785, 306, 83, 774, 90, 777, 116, 780, /* 230 */ 732, 238, 783, 307, 83, 772, 740, 775, 35, 778,
/* 240 */ 331, 238, 785, 152, 35, 774, 331, 777, 200, 780, /* 240 */ 147, 238, 783, 116, 253, 772, 65, 775, 35, 778,
/* 250 */ 78, 35, 773, 94, 91, 35, 237, 62, 60, 63, /* 250 */ 300, 332, 152, 257, 256, 35, 879, 62, 60, 63,
/* 260 */ 61, 1, 167, 217, 218, 53, 52, 302, 42, 51, /* 260 */ 61, 179, 332, 217, 218, 53, 52, 303, 42, 51,
/* 270 */ 50, 49, 76, 217, 218, 41, 6, 339, 338, 881, /* 270 */ 50, 49, 700, 217, 218, 697, 304, 698, 14, 699,
/* 280 */ 74, 1044, 337, 280, 179, 336, 335, 230, 334, 333, /* 280 */ 41, 230, 339, 338, 1041, 979, 280, 337, 340, 913,
/* 290 */ 260, 982, 75, 954, 310, 952, 953, 678, 982, 213, /* 290 */ 260, 336, 75, 335, 334, 978, 1, 167, 311, 213,
/* 300 */ 955, 92, 981, 957, 956, 970, 958, 959, 677, 702, /* 300 */ 628, 242, 979, 244, 245, 114, 108, 119, 94, 91,
/* 310 */ 64, 242, 699, 282, 700, 88, 701, 776, 247, 779, /* 310 */ 64, 195, 118, 124, 127, 117, 952, 80, 950, 951,
/* 320 */ 64, 114, 108, 119, 984, 321, 320, 891, 118, 124, /* 320 */ 64, 121, 282, 953, 88, 76, 247, 954, 35, 955,
/* 330 */ 127, 117, 179, 968, 969, 34, 972, 121, 35, 1114, /* 330 */ 956, 5, 38, 169, 92, 3, 180, 35, 168, 102,
/* 340 */ 244, 245, 786, 781, 775, 35, 778, 340, 915, 782, /* 340 */ 97, 101, 784, 779, 35, 35, 35, 35, 716, 780,
/* 350 */ 3, 180, 786, 781, 35, 5, 38, 169, 718, 782, /* 350 */ 676, 264, 784, 779, 188, 186, 184, 200, 967, 780,
/* 360 */ 35, 35, 168, 102, 97, 101, 188, 186, 184, 35, /* 360 */ 35, 183, 132, 131, 130, 1088, 965, 966, 34, 969,
/* 370 */ 35, 1091, 882, 183, 132, 131, 130, 179, 51, 50, /* 370 */ 1087, 312, 243, 787, 241, 979, 310, 309, 322, 321,
/* 380 */ 49, 311, 243, 303, 241, 982, 309, 308, 312, 249, /* 380 */ 313, 889, 701, 702, 979, 81, 179, 314, 318, 319,
/* 390 */ 1090, 246, 982, 316, 315, 751, 752, 313, 143, 141, /* 390 */ 320, 979, 979, 979, 979, 880, 774, 249, 777, 246,
/* 400 */ 140, 982, 715, 317, 318, 262, 68, 982, 982, 343, /* 400 */ 179, 317, 316, 324, 773, 713, 776, 979, 343, 342,
/* 410 */ 342, 137, 319, 323, 81, 36, 982, 982, 734, 703, /* 410 */ 137, 741, 143, 141, 140, 749, 750, 68, 71, 264,
/* 420 */ 704, 71, 1089, 742, 743, 1054, 688, 285, 147, 9, /* 420 */ 686, 26, 237, 285, 16, 688, 15, 287, 720, 687,
/* 430 */ 690, 783, 287, 65, 26, 689, 36, 36, 722, 33, /* 430 */ 36, 981, 9, 36, 33, 65, 804, 93, 785, 65,
/* 440 */ 65, 806, 93, 787, 596, 65, 126, 125, 264, 69, /* 440 */ 595, 74, 6, 107, 1086, 106, 25, 18, 25, 17,
/* 450 */ 16, 25, 15, 25, 25, 1106, 215, 107, 784, 106, /* 450 */ 25, 705, 703, 706, 704, 20, 113, 19, 112, 72,
/* 460 */ 216, 198, 72, 18, 707, 17, 708, 199, 288, 705, /* 460 */ 69, 215, 22, 288, 21, 126, 125, 216, 198, 675,
/* 470 */ 201, 706, 20, 196, 19, 113, 202, 112, 203, 208, /* 470 */ 199, 201, 196, 202, 203, 208, 209, 210, 207, 193,
/* 480 */ 789, 209, 210, 207, 193, 1053, 227, 22, 1050, 21, /* 480 */ 1111, 1103, 1051, 1050, 227, 1047, 1046, 228, 323, 45,
/* 490 */ 1049, 258, 228, 322, 144, 1006, 45, 1017, 1036, 1014, /* 490 */ 258, 144, 1003, 1014, 1011, 1012, 1016, 996, 142, 265,
/* 500 */ 1015, 1035, 999, 265, 980, 142, 996, 1019, 146, 163, /* 500 */ 146, 1033, 150, 274, 1032, 977, 163, 164, 269, 224,
/* 510 */ 150, 269, 274, 164, 978, 224, 165, 157, 271, 166, /* 510 */ 781, 975, 165, 166, 892, 290, 731, 43, 782, 191,
/* 520 */ 894, 290, 43, 191, 733, 39, 153, 154, 300, 278, /* 520 */ 283, 993, 39, 301, 154, 888, 308, 1110, 104, 1109,
/* 530 */ 155, 283, 890, 73, 307, 156, 70, 47, 281, 279, /* 530 */ 1106, 170, 315, 73, 1102, 110, 271, 278, 70, 153,
/* 540 */ 277, 275, 1113, 158, 104, 273, 1112, 1109, 270, 170, /* 540 */ 47, 1101, 155, 1098, 281, 171, 910, 40, 279, 277,
/* 550 */ 314, 1105, 110, 46, 162, 1104, 159, 332, 1101, 171, /* 550 */ 37, 275, 44, 273, 192, 270, 156, 876, 120, 874,
/* 560 */ 912, 40, 115, 37, 324, 44, 192, 878, 120, 876, /* 560 */ 122, 123, 872, 871, 250, 182, 869, 868, 867, 866,
/* 570 */ 122, 123, 874, 873, 250, 182, 871, 870, 869, 868, /* 570 */ 865, 864, 185, 187, 861, 859, 857, 855, 189, 852,
/* 580 */ 867, 866, 185, 187, 863, 861, 859, 857, 189, 854, /* 580 */ 190, 333, 263, 79, 46, 84, 115, 272, 1034, 325,
/* 590 */ 190, 325, 263, 79, 84, 272, 1037, 326, 327, 328, /* 590 */ 326, 327, 328, 329, 330, 331, 214, 341, 829, 234,
/* 600 */ 329, 330, 341, 831, 251, 214, 234, 289, 252, 830, /* 600 */ 251, 252, 289, 828, 254, 255, 827, 211, 212, 809,
/* 610 */ 254, 255, 829, 812, 811, 98, 211, 99, 212, 259, /* 610 */ 98, 810, 99, 259, 264, 284, 10, 82, 708, 266,
/* 620 */ 264, 284, 10, 82, 710, 266, 30, 85, 735, 872, /* 620 */ 85, 30, 870, 174, 178, 863, 911, 172, 173, 175,
/* 630 */ 865, 178, 913, 172, 176, 173, 174, 133, 175, 177, /* 630 */ 176, 4, 133, 177, 862, 912, 134, 135, 948, 136,
/* 640 */ 134, 2, 135, 950, 864, 4, 856, 914, 136, 855, /* 640 */ 854, 733, 148, 853, 157, 158, 159, 160, 736, 161,
/* 650 */ 148, 160, 738, 149, 161, 86, 226, 740, 87, 276, /* 650 */ 149, 162, 958, 2, 86, 226, 738, 87, 276, 31,
/* 660 */ 31, 744, 961, 151, 11, 32, 12, 13, 27, 286, /* 660 */ 742, 151, 32, 13, 11, 27, 286, 28, 12, 641,
/* 670 */ 28, 94, 96, 642, 639, 638, 636, 635, 634, 631, /* 670 */ 96, 94, 639, 638, 637, 635, 634, 633, 630, 299,
/* 680 */ 601, 298, 7, 304, 100, 790, 788, 305, 680, 8, /* 680 */ 600, 100, 7, 305, 786, 788, 8, 306, 103, 105,
/* 690 */ 103, 66, 105, 67, 109, 111, 679, 676, 623, 621, /* 690 */ 66, 67, 109, 111, 678, 36, 677, 674, 622, 620,
/* 700 */ 613, 36, 619, 615, 617, 611, 609, 645, 644, 643, /* 700 */ 612, 618, 614, 616, 610, 608, 644, 643, 642, 640,
/* 710 */ 641, 640, 637, 633, 632, 181, 599, 138, 565, 563, /* 710 */ 636, 632, 631, 181, 598, 564, 562, 833, 832, 832,
/* 720 */ 835, 834, 834, 834, 834, 834, 834, 834, 834, 834, /* 720 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 138,
/* 730 */ 834, 139, /* 730 */ 139,
}; };
static const YYCODETYPE yy_lookahead[] = { static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 259, 1, 194, 1, 193, 194, 259, 191, 192, 9, /* 0 */ 259, 1, 194, 1, 193, 194, 259, 191, 192, 9,
...@@ -289,73 +289,73 @@ static const YYCODETYPE yy_lookahead[] = { ...@@ -289,73 +289,73 @@ static const YYCODETYPE yy_lookahead[] = {
/* 40 */ 13, 14, 194, 16, 17, 256, 256, 20, 21, 1, /* 40 */ 13, 14, 194, 16, 17, 256, 256, 20, 21, 1,
/* 50 */ 23, 24, 25, 26, 27, 28, 240, 9, 194, 200, /* 50 */ 23, 24, 25, 26, 27, 28, 240, 9, 194, 200,
/* 60 */ 33, 34, 200, 194, 37, 38, 39, 14, 260, 16, /* 60 */ 33, 34, 200, 194, 37, 38, 39, 14, 260, 16,
/* 70 */ 17, 5, 256, 20, 21, 200, 23, 24, 25, 26, /* 70 */ 17, 1, 256, 20, 21, 200, 23, 24, 25, 26,
/* 80 */ 27, 28, 80, 80, 194, 237, 33, 34, 194, 241, /* 80 */ 27, 28, 80, 80, 194, 237, 33, 34, 194, 241,
/* 90 */ 37, 38, 39, 45, 46, 47, 48, 49, 50, 51, /* 90 */ 37, 38, 39, 45, 46, 47, 48, 49, 50, 51,
/* 100 */ 52, 53, 54, 55, 56, 57, 58, 81, 81, 61, /* 100 */ 52, 53, 54, 55, 56, 57, 58, 37, 81, 61,
/* 110 */ 201, 111, 13, 14, 194, 16, 17, 114, 259, 20, /* 110 */ 201, 111, 13, 14, 194, 16, 17, 114, 259, 20,
/* 120 */ 21, 259, 23, 24, 25, 26, 27, 28, 269, 239, /* 120 */ 21, 259, 23, 24, 25, 26, 27, 28, 269, 239,
/* 130 */ 266, 269, 33, 34, 259, 266, 37, 38, 39, 13, /* 130 */ 266, 269, 33, 34, 259, 266, 37, 38, 39, 13,
/* 140 */ 14, 115, 16, 17, 269, 236, 20, 21, 0, 23, /* 140 */ 14, 0, 16, 17, 269, 236, 20, 21, 81, 23,
/* 150 */ 24, 25, 26, 27, 28, 261, 262, 237, 82, 33, /* 150 */ 24, 25, 26, 27, 28, 261, 262, 237, 91, 33,
/* 160 */ 34, 241, 194, 37, 38, 39, 92, 93, 94, 95, /* 160 */ 34, 241, 194, 37, 38, 39, 92, 93, 94, 95,
/* 170 */ 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, /* 170 */ 96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
/* 180 */ 106, 215, 216, 217, 218, 219, 220, 221, 222, 223, /* 180 */ 106, 215, 216, 217, 218, 219, 220, 221, 222, 223,
/* 190 */ 224, 225, 226, 227, 228, 229, 16, 17, 44, 231, /* 190 */ 224, 225, 226, 227, 228, 229, 16, 17, 44, 231,
/* 200 */ 20, 21, 137, 23, 24, 25, 26, 27, 28, 194, /* 200 */ 20, 21, 243, 23, 24, 25, 26, 27, 28, 37,
/* 210 */ 259, 146, 147, 33, 34, 61, 1, 37, 38, 39, /* 210 */ 38, 39, 194, 33, 34, 61, 257, 37, 38, 39,
/* 220 */ 33, 34, 68, 80, 37, 38, 39, 73, 74, 75, /* 220 */ 33, 34, 68, 82, 37, 38, 39, 73, 74, 75,
/* 230 */ 82, 1, 2, 79, 80, 5, 243, 7, 76, 9, /* 230 */ 81, 1, 2, 79, 80, 5, 81, 7, 194, 9,
/* 240 */ 84, 1, 2, 194, 194, 5, 84, 7, 259, 9, /* 240 */ 91, 1, 2, 76, 137, 5, 91, 7, 194, 9,
/* 250 */ 257, 194, 37, 110, 111, 194, 60, 25, 26, 27, /* 250 */ 82, 84, 194, 146, 147, 194, 199, 25, 26, 27,
/* 260 */ 28, 202, 203, 33, 34, 33, 34, 37, 114, 37, /* 260 */ 28, 204, 84, 33, 34, 33, 34, 37, 114, 37,
/* 270 */ 38, 39, 201, 33, 34, 92, 80, 94, 95, 199, /* 270 */ 38, 39, 2, 33, 34, 5, 15, 7, 80, 9,
/* 280 */ 80, 266, 99, 268, 204, 102, 103, 237, 105, 106, /* 280 */ 92, 237, 94, 95, 266, 241, 268, 99, 213, 214,
/* 290 */ 136, 241, 138, 215, 237, 217, 218, 5, 241, 145, /* 290 */ 136, 103, 138, 105, 106, 241, 202, 203, 237, 145,
/* 300 */ 222, 201, 241, 225, 226, 234, 228, 229, 108, 2, /* 300 */ 5, 68, 241, 33, 34, 62, 63, 64, 110, 111,
/* 310 */ 80, 68, 5, 264, 7, 266, 9, 5, 68, 7, /* 310 */ 80, 259, 69, 70, 71, 72, 215, 81, 217, 218,
/* 320 */ 80, 62, 63, 64, 242, 33, 34, 199, 69, 70, /* 320 */ 80, 78, 264, 222, 266, 201, 68, 226, 194, 228,
/* 330 */ 71, 72, 204, 233, 234, 235, 236, 78, 194, 242, /* 330 */ 229, 62, 63, 64, 201, 197, 198, 194, 69, 70,
/* 340 */ 33, 34, 112, 113, 5, 194, 7, 213, 214, 119, /* 340 */ 71, 72, 112, 113, 194, 194, 194, 194, 37, 119,
/* 350 */ 197, 198, 112, 113, 194, 62, 63, 64, 37, 119, /* 350 */ 5, 115, 112, 113, 62, 63, 64, 259, 234, 119,
/* 360 */ 194, 194, 69, 70, 71, 72, 62, 63, 64, 194, /* 360 */ 194, 69, 70, 71, 72, 259, 233, 234, 235, 236,
/* 370 */ 194, 259, 199, 69, 70, 71, 72, 204, 37, 38, /* 370 */ 259, 237, 139, 112, 141, 241, 143, 144, 33, 34,
/* 380 */ 39, 237, 139, 15, 141, 241, 143, 144, 237, 139, /* 380 */ 237, 199, 112, 113, 241, 81, 204, 237, 237, 237,
/* 390 */ 259, 141, 241, 143, 144, 127, 128, 237, 62, 63, /* 390 */ 237, 241, 241, 241, 241, 199, 5, 139, 7, 141,
/* 400 */ 64, 241, 91, 237, 237, 81, 91, 241, 241, 65, /* 400 */ 204, 143, 144, 237, 5, 91, 7, 241, 65, 66,
/* 410 */ 66, 67, 237, 237, 81, 91, 241, 241, 81, 112, /* 410 */ 67, 81, 62, 63, 64, 127, 128, 91, 91, 115,
/* 420 */ 113, 91, 259, 81, 81, 232, 81, 81, 91, 118, /* 420 */ 81, 91, 60, 81, 140, 81, 142, 81, 117, 81,
/* 430 */ 81, 119, 81, 91, 91, 81, 91, 91, 117, 80, /* 430 */ 91, 242, 118, 91, 80, 91, 81, 91, 81, 91,
/* 440 */ 91, 81, 91, 81, 81, 91, 76, 77, 115, 134, /* 440 */ 81, 80, 80, 140, 259, 142, 91, 140, 91, 142,
/* 450 */ 140, 91, 142, 91, 91, 242, 259, 140, 119, 142, /* 450 */ 91, 5, 5, 7, 7, 140, 140, 142, 142, 132,
/* 460 */ 259, 259, 132, 140, 5, 142, 7, 259, 109, 5, /* 460 */ 134, 259, 140, 109, 142, 76, 77, 259, 259, 108,
/* 470 */ 259, 7, 140, 259, 142, 140, 259, 142, 259, 259, /* 470 */ 259, 259, 259, 259, 259, 259, 259, 259, 259, 259,
/* 480 */ 112, 259, 259, 259, 259, 232, 232, 140, 232, 142, /* 480 */ 242, 242, 232, 232, 232, 232, 232, 232, 232, 258,
/* 490 */ 232, 194, 232, 232, 194, 194, 258, 194, 267, 194, /* 490 */ 194, 194, 194, 194, 194, 194, 194, 240, 60, 240,
/* 500 */ 194, 267, 240, 240, 240, 60, 255, 194, 194, 244, /* 500 */ 194, 267, 194, 194, 267, 240, 244, 194, 263, 263,
/* 510 */ 194, 263, 194, 194, 194, 263, 194, 250, 263, 194, /* 510 */ 119, 194, 194, 194, 194, 194, 119, 194, 119, 194,
/* 520 */ 194, 194, 194, 194, 119, 194, 254, 253, 194, 263, /* 520 */ 125, 255, 194, 194, 253, 194, 194, 194, 194, 194,
/* 530 */ 252, 125, 194, 131, 194, 251, 133, 130, 129, 124, /* 530 */ 194, 194, 194, 131, 194, 194, 263, 263, 133, 254,
/* 540 */ 123, 122, 194, 249, 194, 121, 194, 194, 120, 194, /* 540 */ 130, 194, 252, 194, 129, 194, 194, 194, 124, 123,
/* 550 */ 194, 194, 194, 135, 245, 194, 248, 107, 194, 194, /* 550 */ 194, 122, 194, 121, 194, 120, 251, 194, 194, 194,
/* 560 */ 194, 194, 90, 194, 89, 194, 194, 194, 194, 194, /* 560 */ 194, 194, 194, 194, 194, 194, 194, 194, 194, 194,
/* 570 */ 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, /* 570 */ 194, 194, 194, 194, 194, 194, 194, 194, 194, 194,
/* 580 */ 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, /* 580 */ 194, 107, 195, 195, 135, 195, 90, 195, 195, 89,
/* 590 */ 194, 50, 195, 195, 195, 195, 195, 86, 88, 54, /* 590 */ 50, 86, 88, 54, 87, 85, 195, 82, 5, 195,
/* 600 */ 87, 85, 82, 5, 148, 195, 195, 195, 5, 5, /* 600 */ 148, 5, 195, 5, 148, 5, 5, 195, 195, 93,
/* 610 */ 148, 5, 5, 94, 93, 201, 195, 201, 195, 137, /* 610 */ 201, 94, 201, 137, 115, 109, 80, 116, 81, 91,
/* 620 */ 115, 109, 80, 116, 81, 91, 80, 91, 81, 195, /* 620 */ 91, 80, 195, 206, 205, 195, 212, 211, 210, 209,
/* 630 */ 195, 205, 212, 211, 207, 210, 206, 196, 209, 208, /* 630 */ 207, 197, 196, 208, 195, 214, 196, 196, 230, 196,
/* 640 */ 196, 202, 196, 230, 195, 197, 195, 214, 196, 195, /* 640 */ 195, 81, 80, 195, 250, 249, 248, 247, 81, 246,
/* 650 */ 80, 247, 81, 91, 246, 80, 1, 81, 80, 80, /* 650 */ 91, 245, 230, 202, 80, 1, 81, 80, 80, 91,
/* 660 */ 91, 81, 230, 80, 126, 91, 126, 80, 80, 109, /* 660 */ 81, 80, 91, 80, 126, 80, 109, 80, 126, 9,
/* 670 */ 80, 110, 76, 9, 5, 5, 5, 5, 5, 5, /* 670 */ 76, 110, 5, 5, 5, 5, 5, 5, 5, 15,
/* 680 */ 83, 15, 80, 24, 76, 112, 81, 58, 5, 80, /* 680 */ 83, 76, 80, 24, 81, 112, 80, 58, 142, 142,
/* 690 */ 142, 16, 142, 16, 142, 142, 5, 81, 5, 5, /* 690 */ 16, 16, 142, 142, 5, 91, 5, 81, 5, 5,
/* 700 */ 5, 91, 5, 5, 5, 5, 5, 5, 5, 5, /* 700 */ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
/* 710 */ 5, 5, 5, 5, 5, 91, 83, 21, 60, 59, /* 710 */ 5, 5, 5, 91, 83, 60, 59, 0, 270, 270,
/* 720 */ 0, 270, 270, 270, 270, 270, 270, 270, 270, 270, /* 720 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 21,
/* 730 */ 270, 21, 270, 270, 270, 270, 270, 270, 270, 270, /* 730 */ 21, 270, 270, 270, 270, 270, 270, 270, 270, 270,
/* 740 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, /* 740 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270,
/* 750 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, /* 750 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270,
/* 760 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, /* 760 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270,
...@@ -374,109 +374,109 @@ static const YYCODETYPE yy_lookahead[] = { ...@@ -374,109 +374,109 @@ static const YYCODETYPE yy_lookahead[] = {
/* 890 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, /* 890 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270,
/* 900 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, /* 900 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270,
/* 910 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, /* 910 */ 270, 270, 270, 270, 270, 270, 270, 270, 270, 270,
/* 920 */ 270, 270, /* 920 */ 270,
}; };
#define YY_SHIFT_COUNT (346) #define YY_SHIFT_COUNT (346)
#define YY_SHIFT_MIN (0) #define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (720) #define YY_SHIFT_MAX (717)
static const unsigned short int yy_shift_ofst[] = { static const unsigned short int yy_shift_ofst[] = {
/* 0 */ 154, 74, 74, 183, 183, 76, 230, 240, 240, 2, /* 0 */ 154, 74, 74, 188, 188, 168, 230, 240, 240, 2,
/* 10 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, /* 10 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
/* 20 */ 9, 9, 9, 0, 48, 240, 307, 307, 307, 3, /* 20 */ 9, 9, 9, 0, 48, 240, 270, 270, 270, 3,
/* 30 */ 3, 9, 9, 9, 148, 9, 9, 162, 76, 156, /* 30 */ 3, 9, 9, 9, 141, 9, 9, 167, 168, 178,
/* 40 */ 156, 66, 732, 732, 732, 240, 240, 240, 240, 240, /* 40 */ 178, 295, 731, 731, 731, 240, 240, 240, 240, 240,
/* 50 */ 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, /* 50 */ 240, 240, 240, 240, 240, 240, 240, 240, 240, 240,
/* 60 */ 240, 240, 240, 240, 240, 307, 307, 307, 292, 292, /* 60 */ 240, 240, 240, 240, 240, 270, 270, 270, 345, 345,
/* 70 */ 292, 292, 292, 292, 292, 9, 9, 9, 321, 9, /* 70 */ 345, 345, 345, 345, 345, 9, 9, 9, 311, 9,
/* 80 */ 9, 9, 3, 3, 9, 9, 9, 9, 268, 268, /* 80 */ 9, 9, 3, 3, 9, 9, 9, 9, 288, 288,
/* 90 */ 311, 3, 9, 9, 9, 9, 9, 9, 9, 9, /* 90 */ 314, 3, 9, 9, 9, 9, 9, 9, 9, 9,
/* 100 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, /* 100 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
/* 110 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, /* 110 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
/* 120 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, /* 120 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
/* 130 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, /* 130 */ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
/* 140 */ 9, 9, 9, 9, 445, 445, 445, 405, 405, 405, /* 140 */ 9, 9, 9, 9, 438, 438, 438, 397, 397, 397,
/* 150 */ 445, 405, 445, 402, 403, 406, 407, 409, 415, 417, /* 150 */ 438, 397, 438, 402, 405, 395, 410, 415, 424, 426,
/* 160 */ 419, 424, 428, 418, 445, 445, 445, 450, 76, 76, /* 160 */ 429, 432, 435, 449, 438, 438, 438, 474, 168, 168,
/* 170 */ 445, 445, 472, 475, 541, 511, 510, 545, 513, 516, /* 170 */ 438, 438, 496, 500, 540, 505, 504, 539, 507, 510,
/* 180 */ 450, 66, 445, 520, 520, 445, 520, 445, 520, 445, /* 180 */ 474, 295, 438, 515, 515, 438, 515, 438, 515, 438,
/* 190 */ 445, 732, 732, 27, 99, 99, 126, 99, 53, 180, /* 190 */ 438, 731, 731, 27, 99, 99, 126, 99, 53, 180,
/* 200 */ 232, 232, 232, 232, 259, 293, 304, 187, 187, 187, /* 200 */ 232, 232, 232, 232, 243, 269, 292, 187, 187, 187,
/* 210 */ 187, 243, 250, 65, 143, 341, 341, 312, 339, 344, /* 210 */ 187, 233, 258, 107, 198, 172, 172, 391, 399, 343,
/* 220 */ 336, 324, 26, 333, 337, 342, 343, 315, 330, 345, /* 220 */ 350, 67, 236, 304, 149, 155, 330, 326, 327, 339,
/* 230 */ 346, 349, 351, 354, 359, 360, 362, 215, 196, 368, /* 230 */ 342, 344, 346, 348, 354, 355, 357, 70, 362, 261,
/* 240 */ 363, 310, 317, 323, 459, 464, 332, 335, 200, 347, /* 240 */ 359, 284, 303, 307, 446, 447, 315, 316, 361, 322,
/* 250 */ 370, 598, 456, 603, 604, 462, 606, 607, 519, 521, /* 250 */ 389, 593, 452, 596, 598, 456, 600, 601, 517, 516,
/* 260 */ 482, 505, 512, 542, 507, 543, 546, 534, 536, 547, /* 260 */ 476, 499, 506, 536, 501, 537, 541, 528, 529, 560,
/* 270 */ 570, 571, 562, 575, 576, 578, 655, 579, 580, 583, /* 270 */ 562, 567, 559, 574, 575, 577, 654, 578, 579, 581,
/* 280 */ 569, 538, 574, 540, 587, 512, 588, 560, 590, 561, /* 280 */ 568, 538, 571, 542, 583, 506, 585, 557, 587, 561,
/* 290 */ 596, 664, 669, 670, 671, 672, 673, 674, 597, 666, /* 290 */ 594, 660, 667, 668, 669, 670, 671, 672, 673, 597,
/* 300 */ 608, 602, 605, 573, 609, 659, 629, 675, 548, 550, /* 300 */ 664, 605, 602, 603, 573, 606, 659, 629, 674, 546,
/* 310 */ 610, 610, 610, 610, 677, 552, 553, 610, 610, 610, /* 310 */ 547, 604, 604, 604, 604, 675, 550, 551, 604, 604,
/* 320 */ 683, 691, 616, 610, 693, 694, 695, 697, 698, 699, /* 320 */ 604, 689, 691, 616, 604, 693, 694, 695, 696, 697,
/* 330 */ 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, /* 330 */ 698, 699, 700, 701, 702, 703, 704, 705, 706, 707,
/* 340 */ 624, 633, 696, 710, 658, 660, 720, /* 340 */ 622, 631, 708, 709, 655, 657, 717,
}; };
#define YY_REDUCE_COUNT (192) #define YY_REDUCE_COUNT (192)
#define YY_REDUCE_MIN (-259) #define YY_REDUCE_MIN (-259)
#define YY_REDUCE_MAX (454) #define YY_REDUCE_MAX (451)
static const short yy_reduce_ofst[] = { static const short yy_reduce_ofst[] = {
/* 0 */ -184, -34, -34, 78, 78, 100, -141, -138, -125, -106, /* 0 */ -184, -34, -34, 101, 101, 133, -141, -138, -125, -106,
/* 10 */ -152, 15, 49, -80, 50, 57, 144, 151, 160, 166, /* 10 */ -152, 18, 58, -80, 44, 61, 134, 143, 150, 151,
/* 20 */ 167, 175, 176, -192, -189, -247, -223, -207, -206, -211, /* 20 */ 152, 153, 166, -192, -189, -247, -223, -207, -206, -211,
/* 30 */ -210, -136, -131, -110, -91, -32, 61, 80, 71, 128, /* 30 */ -210, -136, -131, -110, -91, -32, 54, 57, 124, 182,
/* 40 */ 173, 134, -7, 59, 153, -259, -253, -49, -11, 112, /* 40 */ 196, 75, -41, 94, 138, -259, -253, 52, 98, 106,
/* 50 */ 131, 163, 197, 201, 202, 208, 211, 214, 217, 219, /* 50 */ 111, 185, 202, 208, 209, 211, 212, 213, 214, 215,
/* 60 */ 220, 222, 223, 224, 225, 82, 97, 213, 193, 253, /* 60 */ 216, 217, 218, 219, 220, 189, 238, 239, 250, 251,
/* 70 */ 254, 256, 258, 260, 261, 297, 300, 301, 238, 303, /* 70 */ 252, 253, 254, 255, 256, 296, 297, 298, 231, 299,
/* 80 */ 305, 306, 262, 263, 313, 314, 316, 318, 231, 234, /* 80 */ 300, 301, 257, 259, 302, 306, 308, 309, 234, 237,
/* 90 */ 265, 264, 319, 320, 322, 325, 326, 327, 328, 329, /* 90 */ 262, 265, 313, 317, 318, 319, 320, 321, 323, 325,
/* 100 */ 331, 334, 338, 340, 348, 350, 352, 353, 355, 356, /* 100 */ 328, 329, 331, 332, 333, 334, 335, 336, 337, 338,
/* 110 */ 357, 358, 361, 364, 365, 366, 367, 369, 371, 372, /* 110 */ 340, 341, 347, 349, 351, 352, 353, 356, 358, 360,
/* 120 */ 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, /* 120 */ 363, 364, 365, 366, 367, 368, 369, 370, 371, 372,
/* 130 */ 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, /* 130 */ 373, 374, 375, 376, 377, 378, 379, 380, 381, 382,
/* 140 */ 393, 394, 395, 396, 397, 398, 399, 248, 252, 255, /* 140 */ 383, 384, 385, 386, 387, 388, 390, 245, 246, 273,
/* 150 */ 400, 266, 401, 251, 272, 274, 278, 284, 267, 294, /* 150 */ 392, 274, 393, 266, 285, 271, 290, 305, 394, 396,
/* 160 */ 308, 404, 408, 309, 410, 411, 412, 413, 414, 416, /* 160 */ 398, 400, 403, 406, 401, 404, 407, 408, 409, 411,
/* 170 */ 421, 423, 420, 422, 425, 430, 429, 427, 431, 426, /* 170 */ 412, 413, 414, 416, 418, 417, 420, 423, 425, 419,
/* 180 */ 432, 433, 434, 441, 444, 435, 446, 449, 452, 451, /* 180 */ 422, 421, 427, 436, 440, 430, 441, 439, 443, 445,
/* 190 */ 454, 439, 448, /* 190 */ 448, 451, 434,
}; };
static const YYACTIONTYPE yy_default[] = { static const YYACTIONTYPE yy_default[] = {
/* 0 */ 832, 949, 892, 960, 879, 889, 1097, 1097, 1097, 832, /* 0 */ 830, 947, 890, 957, 877, 887, 1094, 1094, 1094, 830,
/* 10 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 10 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 20 */ 832, 832, 832, 1008, 851, 1097, 832, 832, 832, 832, /* 20 */ 830, 830, 830, 1005, 849, 1094, 830, 830, 830, 830,
/* 30 */ 832, 832, 832, 832, 889, 832, 832, 895, 889, 895, /* 30 */ 830, 830, 830, 830, 887, 830, 830, 893, 887, 893,
/* 40 */ 895, 832, 1003, 933, 951, 832, 832, 832, 832, 832, /* 40 */ 893, 830, 1000, 931, 949, 830, 830, 830, 830, 830,
/* 50 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 50 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 60 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 60 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 70 */ 832, 832, 832, 832, 832, 832, 832, 832, 1010, 1016, /* 70 */ 830, 830, 830, 830, 830, 830, 830, 830, 1007, 1013,
/* 80 */ 1013, 832, 832, 832, 1018, 832, 832, 832, 1040, 1040, /* 80 */ 1010, 830, 830, 830, 1015, 830, 830, 830, 1037, 1037,
/* 90 */ 1001, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 90 */ 998, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 100 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 100 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 110 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 110 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 120 */ 877, 832, 875, 832, 832, 832, 832, 832, 832, 832, /* 120 */ 875, 830, 873, 830, 830, 830, 830, 830, 830, 830,
/* 130 */ 832, 832, 832, 832, 832, 832, 832, 862, 832, 832, /* 130 */ 830, 830, 830, 830, 830, 830, 830, 860, 830, 830,
/* 140 */ 832, 832, 832, 832, 853, 853, 853, 832, 832, 832, /* 140 */ 830, 830, 830, 830, 851, 851, 851, 830, 830, 830,
/* 150 */ 853, 832, 853, 1047, 1051, 1033, 1045, 1041, 1032, 1028, /* 150 */ 851, 830, 851, 1044, 1048, 1030, 1042, 1038, 1029, 1025,
/* 160 */ 1026, 1024, 1023, 1055, 853, 853, 853, 893, 889, 889, /* 160 */ 1023, 1021, 1020, 1052, 851, 851, 851, 891, 887, 887,
/* 170 */ 853, 853, 911, 909, 907, 899, 905, 901, 903, 897, /* 170 */ 851, 851, 909, 907, 905, 897, 903, 899, 901, 895,
/* 180 */ 880, 832, 853, 887, 887, 853, 887, 853, 887, 853, /* 180 */ 878, 830, 851, 885, 885, 851, 885, 851, 885, 851,
/* 190 */ 853, 933, 951, 832, 1056, 1046, 832, 1096, 1086, 1085, /* 190 */ 851, 931, 949, 830, 1053, 1043, 830, 1093, 1083, 1082,
/* 200 */ 1092, 1084, 1083, 1082, 832, 832, 832, 1078, 1081, 1080, /* 200 */ 1089, 1081, 1080, 1079, 830, 830, 830, 1075, 1078, 1077,
/* 210 */ 1079, 832, 832, 832, 832, 1088, 1087, 832, 832, 832, /* 210 */ 1076, 830, 830, 830, 830, 1085, 1084, 830, 830, 830,
/* 220 */ 832, 832, 832, 832, 832, 832, 832, 1052, 1048, 832, /* 220 */ 830, 830, 830, 830, 830, 830, 830, 1049, 1045, 830,
/* 230 */ 832, 832, 832, 832, 832, 832, 832, 832, 1058, 832, /* 230 */ 830, 830, 830, 830, 830, 830, 830, 830, 1055, 830,
/* 240 */ 832, 832, 832, 832, 832, 832, 832, 832, 962, 832, /* 240 */ 830, 830, 830, 830, 830, 830, 830, 830, 959, 830,
/* 250 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 250 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 260 */ 832, 1000, 832, 832, 832, 832, 832, 1012, 1011, 832, /* 260 */ 830, 997, 830, 830, 830, 830, 830, 1009, 1008, 830,
/* 270 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 270 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 280 */ 1042, 832, 1034, 832, 832, 974, 832, 832, 832, 832, /* 280 */ 1039, 830, 1031, 830, 830, 971, 830, 830, 830, 830,
/* 290 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 290 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 300 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 300 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 310 */ 1115, 1110, 1111, 1108, 832, 832, 832, 1107, 1102, 1103, /* 310 */ 830, 1112, 1107, 1108, 1105, 830, 830, 830, 1104, 1099,
/* 320 */ 832, 832, 832, 1100, 832, 832, 832, 832, 832, 832, /* 320 */ 1100, 830, 830, 830, 1097, 830, 830, 830, 830, 830,
/* 330 */ 832, 832, 832, 832, 832, 832, 832, 832, 832, 832, /* 330 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
/* 340 */ 917, 832, 860, 858, 832, 849, 832, /* 340 */ 915, 830, 858, 856, 830, 847, 830,
}; };
/********** End of lemon-generated parsing tables *****************************/ /********** End of lemon-generated parsing tables *****************************/
...@@ -1171,168 +1171,167 @@ static const char *const yyRuleName[] = { ...@@ -1171,168 +1171,167 @@ static const char *const yyRuleName[] = {
/* 119 */ "alter_db_optr ::= alter_db_optr keep", /* 119 */ "alter_db_optr ::= alter_db_optr keep",
/* 120 */ "alter_db_optr ::= alter_db_optr blocks", /* 120 */ "alter_db_optr ::= alter_db_optr blocks",
/* 121 */ "alter_db_optr ::= alter_db_optr comp", /* 121 */ "alter_db_optr ::= alter_db_optr comp",
/* 122 */ "alter_db_optr ::= alter_db_optr fsync", /* 122 */ "alter_db_optr ::= alter_db_optr update",
/* 123 */ "alter_db_optr ::= alter_db_optr update", /* 123 */ "alter_db_optr ::= alter_db_optr cachelast",
/* 124 */ "alter_db_optr ::= alter_db_optr cachelast", /* 124 */ "alter_topic_optr ::= alter_db_optr",
/* 125 */ "alter_topic_optr ::= alter_db_optr", /* 125 */ "alter_topic_optr ::= alter_topic_optr partitions",
/* 126 */ "alter_topic_optr ::= alter_topic_optr partitions", /* 126 */ "typename ::= ids",
/* 127 */ "typename ::= ids", /* 127 */ "typename ::= ids LP signed RP",
/* 128 */ "typename ::= ids LP signed RP", /* 128 */ "typename ::= ids UNSIGNED",
/* 129 */ "typename ::= ids UNSIGNED", /* 129 */ "signed ::= INTEGER",
/* 130 */ "signed ::= INTEGER", /* 130 */ "signed ::= PLUS INTEGER",
/* 131 */ "signed ::= PLUS INTEGER", /* 131 */ "signed ::= MINUS INTEGER",
/* 132 */ "signed ::= MINUS INTEGER", /* 132 */ "cmd ::= CREATE TABLE create_table_args",
/* 133 */ "cmd ::= CREATE TABLE create_table_args", /* 133 */ "cmd ::= CREATE TABLE create_stable_args",
/* 134 */ "cmd ::= CREATE TABLE create_stable_args", /* 134 */ "cmd ::= CREATE STABLE create_stable_args",
/* 135 */ "cmd ::= CREATE STABLE create_stable_args", /* 135 */ "cmd ::= CREATE TABLE create_table_list",
/* 136 */ "cmd ::= CREATE TABLE create_table_list", /* 136 */ "create_table_list ::= create_from_stable",
/* 137 */ "create_table_list ::= create_from_stable", /* 137 */ "create_table_list ::= create_table_list create_from_stable",
/* 138 */ "create_table_list ::= create_table_list create_from_stable", /* 138 */ "create_table_args ::= ifnotexists ids cpxName LP columnlist RP",
/* 139 */ "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_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP", /* 140 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP",
/* 141 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP", /* 141 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP",
/* 142 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP", /* 142 */ "tagNamelist ::= tagNamelist COMMA ids",
/* 143 */ "tagNamelist ::= tagNamelist COMMA ids", /* 143 */ "tagNamelist ::= ids",
/* 144 */ "tagNamelist ::= ids", /* 144 */ "create_table_args ::= ifnotexists ids cpxName AS select",
/* 145 */ "create_table_args ::= ifnotexists ids cpxName AS select", /* 145 */ "columnlist ::= columnlist COMMA column",
/* 146 */ "columnlist ::= columnlist COMMA column", /* 146 */ "columnlist ::= column",
/* 147 */ "columnlist ::= column", /* 147 */ "column ::= ids typename",
/* 148 */ "column ::= ids typename", /* 148 */ "tagitemlist ::= tagitemlist COMMA tagitem",
/* 149 */ "tagitemlist ::= tagitemlist COMMA tagitem", /* 149 */ "tagitemlist ::= tagitem",
/* 150 */ "tagitemlist ::= tagitem", /* 150 */ "tagitem ::= INTEGER",
/* 151 */ "tagitem ::= INTEGER", /* 151 */ "tagitem ::= FLOAT",
/* 152 */ "tagitem ::= FLOAT", /* 152 */ "tagitem ::= STRING",
/* 153 */ "tagitem ::= STRING", /* 153 */ "tagitem ::= BOOL",
/* 154 */ "tagitem ::= BOOL", /* 154 */ "tagitem ::= NULL",
/* 155 */ "tagitem ::= NULL", /* 155 */ "tagitem ::= NOW",
/* 156 */ "tagitem ::= NOW", /* 156 */ "tagitem ::= MINUS INTEGER",
/* 157 */ "tagitem ::= MINUS INTEGER", /* 157 */ "tagitem ::= MINUS FLOAT",
/* 158 */ "tagitem ::= MINUS FLOAT", /* 158 */ "tagitem ::= PLUS INTEGER",
/* 159 */ "tagitem ::= PLUS INTEGER", /* 159 */ "tagitem ::= PLUS FLOAT",
/* 160 */ "tagitem ::= PLUS FLOAT", /* 160 */ "select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt",
/* 161 */ "select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt", /* 161 */ "select ::= LP select RP",
/* 162 */ "select ::= LP select RP", /* 162 */ "union ::= select",
/* 163 */ "union ::= select", /* 163 */ "union ::= union UNION ALL select",
/* 164 */ "union ::= union UNION ALL select", /* 164 */ "cmd ::= union",
/* 165 */ "cmd ::= union", /* 165 */ "select ::= SELECT selcollist",
/* 166 */ "select ::= SELECT selcollist", /* 166 */ "sclp ::= selcollist COMMA",
/* 167 */ "sclp ::= selcollist COMMA", /* 167 */ "sclp ::=",
/* 168 */ "sclp ::=", /* 168 */ "selcollist ::= sclp distinct expr as",
/* 169 */ "selcollist ::= sclp distinct expr as", /* 169 */ "selcollist ::= sclp STAR",
/* 170 */ "selcollist ::= sclp STAR", /* 170 */ "as ::= AS ids",
/* 171 */ "as ::= AS ids", /* 171 */ "as ::= ids",
/* 172 */ "as ::= ids", /* 172 */ "as ::=",
/* 173 */ "as ::=", /* 173 */ "distinct ::= DISTINCT",
/* 174 */ "distinct ::= DISTINCT", /* 174 */ "distinct ::=",
/* 175 */ "distinct ::=", /* 175 */ "from ::= FROM tablelist",
/* 176 */ "from ::= FROM tablelist", /* 176 */ "from ::= FROM sub",
/* 177 */ "from ::= FROM sub", /* 177 */ "sub ::= LP union RP",
/* 178 */ "sub ::= LP union RP", /* 178 */ "sub ::= LP union RP ids",
/* 179 */ "sub ::= LP union RP ids", /* 179 */ "sub ::= sub COMMA LP union RP ids",
/* 180 */ "sub ::= sub COMMA LP union RP ids", /* 180 */ "tablelist ::= ids cpxName",
/* 181 */ "tablelist ::= ids cpxName", /* 181 */ "tablelist ::= ids cpxName ids",
/* 182 */ "tablelist ::= ids cpxName ids", /* 182 */ "tablelist ::= tablelist COMMA ids cpxName",
/* 183 */ "tablelist ::= tablelist COMMA ids cpxName", /* 183 */ "tablelist ::= tablelist COMMA ids cpxName ids",
/* 184 */ "tablelist ::= tablelist COMMA ids cpxName ids", /* 184 */ "tmvar ::= VARIABLE",
/* 185 */ "tmvar ::= VARIABLE", /* 185 */ "interval_opt ::= INTERVAL LP tmvar RP",
/* 186 */ "interval_opt ::= INTERVAL LP tmvar RP", /* 186 */ "interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP",
/* 187 */ "interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP", /* 187 */ "interval_opt ::=",
/* 188 */ "interval_opt ::=", /* 188 */ "session_option ::=",
/* 189 */ "session_option ::=", /* 189 */ "session_option ::= SESSION LP ids cpxName COMMA tmvar RP",
/* 190 */ "session_option ::= SESSION LP ids cpxName COMMA tmvar RP", /* 190 */ "windowstate_option ::=",
/* 191 */ "windowstate_option ::=", /* 191 */ "windowstate_option ::= STATE_WINDOW LP ids RP",
/* 192 */ "windowstate_option ::= STATE_WINDOW LP ids RP", /* 192 */ "fill_opt ::=",
/* 193 */ "fill_opt ::=", /* 193 */ "fill_opt ::= FILL LP ID COMMA tagitemlist RP",
/* 194 */ "fill_opt ::= FILL LP ID COMMA tagitemlist RP", /* 194 */ "fill_opt ::= FILL LP ID RP",
/* 195 */ "fill_opt ::= FILL LP ID RP", /* 195 */ "sliding_opt ::= SLIDING LP tmvar RP",
/* 196 */ "sliding_opt ::= SLIDING LP tmvar RP", /* 196 */ "sliding_opt ::=",
/* 197 */ "sliding_opt ::=", /* 197 */ "orderby_opt ::=",
/* 198 */ "orderby_opt ::=", /* 198 */ "orderby_opt ::= ORDER BY sortlist",
/* 199 */ "orderby_opt ::= ORDER BY sortlist", /* 199 */ "sortlist ::= sortlist COMMA item sortorder",
/* 200 */ "sortlist ::= sortlist COMMA item sortorder", /* 200 */ "sortlist ::= item sortorder",
/* 201 */ "sortlist ::= item sortorder", /* 201 */ "item ::= ids cpxName",
/* 202 */ "item ::= ids cpxName", /* 202 */ "sortorder ::= ASC",
/* 203 */ "sortorder ::= ASC", /* 203 */ "sortorder ::= DESC",
/* 204 */ "sortorder ::= DESC", /* 204 */ "sortorder ::=",
/* 205 */ "sortorder ::=", /* 205 */ "groupby_opt ::=",
/* 206 */ "groupby_opt ::=", /* 206 */ "groupby_opt ::= GROUP BY grouplist",
/* 207 */ "groupby_opt ::= GROUP BY grouplist", /* 207 */ "grouplist ::= grouplist COMMA item",
/* 208 */ "grouplist ::= grouplist COMMA item", /* 208 */ "grouplist ::= item",
/* 209 */ "grouplist ::= item", /* 209 */ "having_opt ::=",
/* 210 */ "having_opt ::=", /* 210 */ "having_opt ::= HAVING expr",
/* 211 */ "having_opt ::= HAVING expr", /* 211 */ "limit_opt ::=",
/* 212 */ "limit_opt ::=", /* 212 */ "limit_opt ::= LIMIT signed",
/* 213 */ "limit_opt ::= LIMIT signed", /* 213 */ "limit_opt ::= LIMIT signed OFFSET signed",
/* 214 */ "limit_opt ::= LIMIT signed OFFSET signed", /* 214 */ "limit_opt ::= LIMIT signed COMMA signed",
/* 215 */ "limit_opt ::= LIMIT signed COMMA signed", /* 215 */ "slimit_opt ::=",
/* 216 */ "slimit_opt ::=", /* 216 */ "slimit_opt ::= SLIMIT signed",
/* 217 */ "slimit_opt ::= SLIMIT signed", /* 217 */ "slimit_opt ::= SLIMIT signed SOFFSET signed",
/* 218 */ "slimit_opt ::= SLIMIT signed SOFFSET signed", /* 218 */ "slimit_opt ::= SLIMIT signed COMMA signed",
/* 219 */ "slimit_opt ::= SLIMIT signed COMMA signed", /* 219 */ "where_opt ::=",
/* 220 */ "where_opt ::=", /* 220 */ "where_opt ::= WHERE expr",
/* 221 */ "where_opt ::= WHERE expr", /* 221 */ "expr ::= LP expr RP",
/* 222 */ "expr ::= LP expr RP", /* 222 */ "expr ::= ID",
/* 223 */ "expr ::= ID", /* 223 */ "expr ::= ID DOT ID",
/* 224 */ "expr ::= ID DOT ID", /* 224 */ "expr ::= ID DOT STAR",
/* 225 */ "expr ::= ID DOT STAR", /* 225 */ "expr ::= INTEGER",
/* 226 */ "expr ::= INTEGER", /* 226 */ "expr ::= MINUS INTEGER",
/* 227 */ "expr ::= MINUS INTEGER", /* 227 */ "expr ::= PLUS INTEGER",
/* 228 */ "expr ::= PLUS INTEGER", /* 228 */ "expr ::= FLOAT",
/* 229 */ "expr ::= FLOAT", /* 229 */ "expr ::= MINUS FLOAT",
/* 230 */ "expr ::= MINUS FLOAT", /* 230 */ "expr ::= PLUS FLOAT",
/* 231 */ "expr ::= PLUS FLOAT", /* 231 */ "expr ::= STRING",
/* 232 */ "expr ::= STRING", /* 232 */ "expr ::= NOW",
/* 233 */ "expr ::= NOW", /* 233 */ "expr ::= VARIABLE",
/* 234 */ "expr ::= VARIABLE", /* 234 */ "expr ::= PLUS VARIABLE",
/* 235 */ "expr ::= PLUS VARIABLE", /* 235 */ "expr ::= MINUS VARIABLE",
/* 236 */ "expr ::= MINUS VARIABLE", /* 236 */ "expr ::= BOOL",
/* 237 */ "expr ::= BOOL", /* 237 */ "expr ::= NULL",
/* 238 */ "expr ::= NULL", /* 238 */ "expr ::= ID LP exprlist RP",
/* 239 */ "expr ::= ID LP exprlist RP", /* 239 */ "expr ::= ID LP STAR RP",
/* 240 */ "expr ::= ID LP STAR RP", /* 240 */ "expr ::= expr IS NULL",
/* 241 */ "expr ::= expr IS NULL", /* 241 */ "expr ::= expr IS NOT NULL",
/* 242 */ "expr ::= expr IS NOT NULL", /* 242 */ "expr ::= expr LT expr",
/* 243 */ "expr ::= expr LT expr", /* 243 */ "expr ::= expr GT expr",
/* 244 */ "expr ::= expr GT expr", /* 244 */ "expr ::= expr LE expr",
/* 245 */ "expr ::= expr LE expr", /* 245 */ "expr ::= expr GE expr",
/* 246 */ "expr ::= expr GE expr", /* 246 */ "expr ::= expr NE expr",
/* 247 */ "expr ::= expr NE expr", /* 247 */ "expr ::= expr EQ expr",
/* 248 */ "expr ::= expr EQ expr", /* 248 */ "expr ::= expr BETWEEN expr AND expr",
/* 249 */ "expr ::= expr BETWEEN expr AND expr", /* 249 */ "expr ::= expr AND expr",
/* 250 */ "expr ::= expr AND expr", /* 250 */ "expr ::= expr OR expr",
/* 251 */ "expr ::= expr OR expr", /* 251 */ "expr ::= expr PLUS expr",
/* 252 */ "expr ::= expr PLUS expr", /* 252 */ "expr ::= expr MINUS expr",
/* 253 */ "expr ::= expr MINUS expr", /* 253 */ "expr ::= expr STAR expr",
/* 254 */ "expr ::= expr STAR expr", /* 254 */ "expr ::= expr SLASH expr",
/* 255 */ "expr ::= expr SLASH expr", /* 255 */ "expr ::= expr REM expr",
/* 256 */ "expr ::= expr REM expr", /* 256 */ "expr ::= expr LIKE expr",
/* 257 */ "expr ::= expr LIKE expr", /* 257 */ "expr ::= expr IN LP exprlist RP",
/* 258 */ "expr ::= expr IN LP exprlist RP", /* 258 */ "exprlist ::= exprlist COMMA expritem",
/* 259 */ "exprlist ::= exprlist COMMA expritem", /* 259 */ "exprlist ::= expritem",
/* 260 */ "exprlist ::= expritem", /* 260 */ "expritem ::= expr",
/* 261 */ "expritem ::= expr", /* 261 */ "expritem ::=",
/* 262 */ "expritem ::=", /* 262 */ "cmd ::= RESET QUERY CACHE",
/* 263 */ "cmd ::= RESET QUERY CACHE", /* 263 */ "cmd ::= SYNCDB ids REPLICA",
/* 264 */ "cmd ::= SYNCDB ids REPLICA", /* 264 */ "cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist",
/* 265 */ "cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist", /* 265 */ "cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids",
/* 266 */ "cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids", /* 266 */ "cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist",
/* 267 */ "cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist", /* 267 */ "cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist",
/* 268 */ "cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist", /* 268 */ "cmd ::= ALTER TABLE ids cpxName DROP TAG ids",
/* 269 */ "cmd ::= ALTER TABLE ids cpxName DROP TAG ids", /* 269 */ "cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids",
/* 270 */ "cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids", /* 270 */ "cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem",
/* 271 */ "cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem", /* 271 */ "cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist",
/* 272 */ "cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist", /* 272 */ "cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist",
/* 273 */ "cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist", /* 273 */ "cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids",
/* 274 */ "cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids", /* 274 */ "cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist",
/* 275 */ "cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist", /* 275 */ "cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist",
/* 276 */ "cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist", /* 276 */ "cmd ::= ALTER STABLE ids cpxName DROP TAG ids",
/* 277 */ "cmd ::= ALTER STABLE ids cpxName DROP TAG ids", /* 277 */ "cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids",
/* 278 */ "cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids", /* 278 */ "cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem",
/* 279 */ "cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem", /* 279 */ "cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist",
/* 280 */ "cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist", /* 280 */ "cmd ::= KILL CONNECTION INTEGER",
/* 281 */ "cmd ::= KILL CONNECTION INTEGER", /* 281 */ "cmd ::= KILL STREAM INTEGER COLON INTEGER",
/* 282 */ "cmd ::= KILL STREAM INTEGER COLON INTEGER", /* 282 */ "cmd ::= KILL QUERY INTEGER COLON INTEGER",
/* 283 */ "cmd ::= KILL QUERY INTEGER COLON INTEGER",
}; };
#endif /* NDEBUG */ #endif /* NDEBUG */
...@@ -1922,168 +1921,167 @@ static const struct { ...@@ -1922,168 +1921,167 @@ static const struct {
{ 197, -2 }, /* (119) alter_db_optr ::= alter_db_optr keep */ { 197, -2 }, /* (119) alter_db_optr ::= alter_db_optr keep */
{ 197, -2 }, /* (120) alter_db_optr ::= alter_db_optr blocks */ { 197, -2 }, /* (120) alter_db_optr ::= alter_db_optr blocks */
{ 197, -2 }, /* (121) alter_db_optr ::= alter_db_optr comp */ { 197, -2 }, /* (121) alter_db_optr ::= alter_db_optr comp */
{ 197, -2 }, /* (122) alter_db_optr ::= alter_db_optr fsync */ { 197, -2 }, /* (122) alter_db_optr ::= alter_db_optr update */
{ 197, -2 }, /* (123) alter_db_optr ::= alter_db_optr update */ { 197, -2 }, /* (123) alter_db_optr ::= alter_db_optr cachelast */
{ 197, -2 }, /* (124) alter_db_optr ::= alter_db_optr cachelast */ { 198, -1 }, /* (124) alter_topic_optr ::= alter_db_optr */
{ 198, -1 }, /* (125) alter_topic_optr ::= alter_db_optr */ { 198, -2 }, /* (125) alter_topic_optr ::= alter_topic_optr partitions */
{ 198, -2 }, /* (126) alter_topic_optr ::= alter_topic_optr partitions */ { 231, -1 }, /* (126) typename ::= ids */
{ 231, -1 }, /* (127) typename ::= ids */ { 231, -4 }, /* (127) typename ::= ids LP signed RP */
{ 231, -4 }, /* (128) typename ::= ids LP signed RP */ { 231, -2 }, /* (128) typename ::= ids UNSIGNED */
{ 231, -2 }, /* (129) typename ::= ids UNSIGNED */ { 232, -1 }, /* (129) signed ::= INTEGER */
{ 232, -1 }, /* (130) signed ::= INTEGER */ { 232, -2 }, /* (130) signed ::= PLUS INTEGER */
{ 232, -2 }, /* (131) signed ::= PLUS INTEGER */ { 232, -2 }, /* (131) signed ::= MINUS INTEGER */
{ 232, -2 }, /* (132) signed ::= MINUS INTEGER */ { 192, -3 }, /* (132) cmd ::= CREATE TABLE create_table_args */
{ 192, -3 }, /* (133) cmd ::= CREATE TABLE create_table_args */ { 192, -3 }, /* (133) cmd ::= CREATE TABLE create_stable_args */
{ 192, -3 }, /* (134) cmd ::= CREATE TABLE create_stable_args */ { 192, -3 }, /* (134) cmd ::= CREATE STABLE create_stable_args */
{ 192, -3 }, /* (135) cmd ::= CREATE STABLE create_stable_args */ { 192, -3 }, /* (135) cmd ::= CREATE TABLE create_table_list */
{ 192, -3 }, /* (136) cmd ::= CREATE TABLE create_table_list */ { 235, -1 }, /* (136) create_table_list ::= create_from_stable */
{ 235, -1 }, /* (137) create_table_list ::= create_from_stable */ { 235, -2 }, /* (137) create_table_list ::= create_table_list create_from_stable */
{ 235, -2 }, /* (138) create_table_list ::= create_table_list create_from_stable */ { 233, -6 }, /* (138) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{ 233, -6 }, /* (139) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ { 234, -10 }, /* (139) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{ 234, -10 }, /* (140) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ { 236, -10 }, /* (140) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
{ 236, -10 }, /* (141) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ { 236, -13 }, /* (141) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
{ 236, -13 }, /* (142) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ { 239, -3 }, /* (142) tagNamelist ::= tagNamelist COMMA ids */
{ 239, -3 }, /* (143) tagNamelist ::= tagNamelist COMMA ids */ { 239, -1 }, /* (143) tagNamelist ::= ids */
{ 239, -1 }, /* (144) tagNamelist ::= ids */ { 233, -5 }, /* (144) create_table_args ::= ifnotexists ids cpxName AS select */
{ 233, -5 }, /* (145) create_table_args ::= ifnotexists ids cpxName AS select */ { 237, -3 }, /* (145) columnlist ::= columnlist COMMA column */
{ 237, -3 }, /* (146) columnlist ::= columnlist COMMA column */ { 237, -1 }, /* (146) columnlist ::= column */
{ 237, -1 }, /* (147) columnlist ::= column */ { 241, -2 }, /* (147) column ::= ids typename */
{ 241, -2 }, /* (148) column ::= ids typename */ { 238, -3 }, /* (148) tagitemlist ::= tagitemlist COMMA tagitem */
{ 238, -3 }, /* (149) tagitemlist ::= tagitemlist COMMA tagitem */ { 238, -1 }, /* (149) tagitemlist ::= tagitem */
{ 238, -1 }, /* (150) tagitemlist ::= tagitem */ { 242, -1 }, /* (150) tagitem ::= INTEGER */
{ 242, -1 }, /* (151) tagitem ::= INTEGER */ { 242, -1 }, /* (151) tagitem ::= FLOAT */
{ 242, -1 }, /* (152) tagitem ::= FLOAT */ { 242, -1 }, /* (152) tagitem ::= STRING */
{ 242, -1 }, /* (153) tagitem ::= STRING */ { 242, -1 }, /* (153) tagitem ::= BOOL */
{ 242, -1 }, /* (154) tagitem ::= BOOL */ { 242, -1 }, /* (154) tagitem ::= NULL */
{ 242, -1 }, /* (155) tagitem ::= NULL */ { 242, -1 }, /* (155) tagitem ::= NOW */
{ 242, -1 }, /* (156) tagitem ::= NOW */ { 242, -2 }, /* (156) tagitem ::= MINUS INTEGER */
{ 242, -2 }, /* (157) tagitem ::= MINUS INTEGER */ { 242, -2 }, /* (157) tagitem ::= MINUS FLOAT */
{ 242, -2 }, /* (158) tagitem ::= MINUS FLOAT */ { 242, -2 }, /* (158) tagitem ::= PLUS INTEGER */
{ 242, -2 }, /* (159) tagitem ::= PLUS INTEGER */ { 242, -2 }, /* (159) tagitem ::= PLUS FLOAT */
{ 242, -2 }, /* (160) tagitem ::= PLUS FLOAT */ { 240, -14 }, /* (160) select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
{ 240, -14 }, /* (161) select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */ { 240, -3 }, /* (161) select ::= LP select RP */
{ 240, -3 }, /* (162) select ::= LP select RP */ { 256, -1 }, /* (162) union ::= select */
{ 256, -1 }, /* (163) union ::= select */ { 256, -4 }, /* (163) union ::= union UNION ALL select */
{ 256, -4 }, /* (164) union ::= union UNION ALL select */ { 192, -1 }, /* (164) cmd ::= union */
{ 192, -1 }, /* (165) cmd ::= union */ { 240, -2 }, /* (165) select ::= SELECT selcollist */
{ 240, -2 }, /* (166) select ::= SELECT selcollist */ { 257, -2 }, /* (166) sclp ::= selcollist COMMA */
{ 257, -2 }, /* (167) sclp ::= selcollist COMMA */ { 257, 0 }, /* (167) sclp ::= */
{ 257, 0 }, /* (168) sclp ::= */ { 243, -4 }, /* (168) selcollist ::= sclp distinct expr as */
{ 243, -4 }, /* (169) selcollist ::= sclp distinct expr as */ { 243, -2 }, /* (169) selcollist ::= sclp STAR */
{ 243, -2 }, /* (170) selcollist ::= sclp STAR */ { 260, -2 }, /* (170) as ::= AS ids */
{ 260, -2 }, /* (171) as ::= AS ids */ { 260, -1 }, /* (171) as ::= ids */
{ 260, -1 }, /* (172) as ::= ids */ { 260, 0 }, /* (172) as ::= */
{ 260, 0 }, /* (173) as ::= */ { 258, -1 }, /* (173) distinct ::= DISTINCT */
{ 258, -1 }, /* (174) distinct ::= DISTINCT */ { 258, 0 }, /* (174) distinct ::= */
{ 258, 0 }, /* (175) distinct ::= */ { 244, -2 }, /* (175) from ::= FROM tablelist */
{ 244, -2 }, /* (176) from ::= FROM tablelist */ { 244, -2 }, /* (176) from ::= FROM sub */
{ 244, -2 }, /* (177) from ::= FROM sub */ { 262, -3 }, /* (177) sub ::= LP union RP */
{ 262, -3 }, /* (178) sub ::= LP union RP */ { 262, -4 }, /* (178) sub ::= LP union RP ids */
{ 262, -4 }, /* (179) sub ::= LP union RP ids */ { 262, -6 }, /* (179) sub ::= sub COMMA LP union RP ids */
{ 262, -6 }, /* (180) sub ::= sub COMMA LP union RP ids */ { 261, -2 }, /* (180) tablelist ::= ids cpxName */
{ 261, -2 }, /* (181) tablelist ::= ids cpxName */ { 261, -3 }, /* (181) tablelist ::= ids cpxName ids */
{ 261, -3 }, /* (182) tablelist ::= ids cpxName ids */ { 261, -4 }, /* (182) tablelist ::= tablelist COMMA ids cpxName */
{ 261, -4 }, /* (183) tablelist ::= tablelist COMMA ids cpxName */ { 261, -5 }, /* (183) tablelist ::= tablelist COMMA ids cpxName ids */
{ 261, -5 }, /* (184) tablelist ::= tablelist COMMA ids cpxName ids */ { 263, -1 }, /* (184) tmvar ::= VARIABLE */
{ 263, -1 }, /* (185) tmvar ::= VARIABLE */ { 246, -4 }, /* (185) interval_opt ::= INTERVAL LP tmvar RP */
{ 246, -4 }, /* (186) interval_opt ::= INTERVAL LP tmvar RP */ { 246, -6 }, /* (186) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
{ 246, -6 }, /* (187) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */ { 246, 0 }, /* (187) interval_opt ::= */
{ 246, 0 }, /* (188) interval_opt ::= */ { 247, 0 }, /* (188) session_option ::= */
{ 247, 0 }, /* (189) session_option ::= */ { 247, -7 }, /* (189) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{ 247, -7 }, /* (190) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ { 248, 0 }, /* (190) windowstate_option ::= */
{ 248, 0 }, /* (191) windowstate_option ::= */ { 248, -4 }, /* (191) windowstate_option ::= STATE_WINDOW LP ids RP */
{ 248, -4 }, /* (192) windowstate_option ::= STATE_WINDOW LP ids RP */ { 249, 0 }, /* (192) fill_opt ::= */
{ 249, 0 }, /* (193) fill_opt ::= */ { 249, -6 }, /* (193) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{ 249, -6 }, /* (194) fill_opt ::= FILL LP ID COMMA tagitemlist RP */ { 249, -4 }, /* (194) fill_opt ::= FILL LP ID RP */
{ 249, -4 }, /* (195) fill_opt ::= FILL LP ID RP */ { 250, -4 }, /* (195) sliding_opt ::= SLIDING LP tmvar RP */
{ 250, -4 }, /* (196) sliding_opt ::= SLIDING LP tmvar RP */ { 250, 0 }, /* (196) sliding_opt ::= */
{ 250, 0 }, /* (197) sliding_opt ::= */ { 253, 0 }, /* (197) orderby_opt ::= */
{ 253, 0 }, /* (198) orderby_opt ::= */ { 253, -3 }, /* (198) orderby_opt ::= ORDER BY sortlist */
{ 253, -3 }, /* (199) orderby_opt ::= ORDER BY sortlist */ { 264, -4 }, /* (199) sortlist ::= sortlist COMMA item sortorder */
{ 264, -4 }, /* (200) sortlist ::= sortlist COMMA item sortorder */ { 264, -2 }, /* (200) sortlist ::= item sortorder */
{ 264, -2 }, /* (201) sortlist ::= item sortorder */ { 266, -2 }, /* (201) item ::= ids cpxName */
{ 266, -2 }, /* (202) item ::= ids cpxName */ { 267, -1 }, /* (202) sortorder ::= ASC */
{ 267, -1 }, /* (203) sortorder ::= ASC */ { 267, -1 }, /* (203) sortorder ::= DESC */
{ 267, -1 }, /* (204) sortorder ::= DESC */ { 267, 0 }, /* (204) sortorder ::= */
{ 267, 0 }, /* (205) sortorder ::= */ { 251, 0 }, /* (205) groupby_opt ::= */
{ 251, 0 }, /* (206) groupby_opt ::= */ { 251, -3 }, /* (206) groupby_opt ::= GROUP BY grouplist */
{ 251, -3 }, /* (207) groupby_opt ::= GROUP BY grouplist */ { 268, -3 }, /* (207) grouplist ::= grouplist COMMA item */
{ 268, -3 }, /* (208) grouplist ::= grouplist COMMA item */ { 268, -1 }, /* (208) grouplist ::= item */
{ 268, -1 }, /* (209) grouplist ::= item */ { 252, 0 }, /* (209) having_opt ::= */
{ 252, 0 }, /* (210) having_opt ::= */ { 252, -2 }, /* (210) having_opt ::= HAVING expr */
{ 252, -2 }, /* (211) having_opt ::= HAVING expr */ { 255, 0 }, /* (211) limit_opt ::= */
{ 255, 0 }, /* (212) limit_opt ::= */ { 255, -2 }, /* (212) limit_opt ::= LIMIT signed */
{ 255, -2 }, /* (213) limit_opt ::= LIMIT signed */ { 255, -4 }, /* (213) limit_opt ::= LIMIT signed OFFSET signed */
{ 255, -4 }, /* (214) limit_opt ::= LIMIT signed OFFSET signed */ { 255, -4 }, /* (214) limit_opt ::= LIMIT signed COMMA signed */
{ 255, -4 }, /* (215) limit_opt ::= LIMIT signed COMMA signed */ { 254, 0 }, /* (215) slimit_opt ::= */
{ 254, 0 }, /* (216) slimit_opt ::= */ { 254, -2 }, /* (216) slimit_opt ::= SLIMIT signed */
{ 254, -2 }, /* (217) slimit_opt ::= SLIMIT signed */ { 254, -4 }, /* (217) slimit_opt ::= SLIMIT signed SOFFSET signed */
{ 254, -4 }, /* (218) slimit_opt ::= SLIMIT signed SOFFSET signed */ { 254, -4 }, /* (218) slimit_opt ::= SLIMIT signed COMMA signed */
{ 254, -4 }, /* (219) slimit_opt ::= SLIMIT signed COMMA signed */ { 245, 0 }, /* (219) where_opt ::= */
{ 245, 0 }, /* (220) where_opt ::= */ { 245, -2 }, /* (220) where_opt ::= WHERE expr */
{ 245, -2 }, /* (221) where_opt ::= WHERE expr */ { 259, -3 }, /* (221) expr ::= LP expr RP */
{ 259, -3 }, /* (222) expr ::= LP expr RP */ { 259, -1 }, /* (222) expr ::= ID */
{ 259, -1 }, /* (223) expr ::= ID */ { 259, -3 }, /* (223) expr ::= ID DOT ID */
{ 259, -3 }, /* (224) expr ::= ID DOT ID */ { 259, -3 }, /* (224) expr ::= ID DOT STAR */
{ 259, -3 }, /* (225) expr ::= ID DOT STAR */ { 259, -1 }, /* (225) expr ::= INTEGER */
{ 259, -1 }, /* (226) expr ::= INTEGER */ { 259, -2 }, /* (226) expr ::= MINUS INTEGER */
{ 259, -2 }, /* (227) expr ::= MINUS INTEGER */ { 259, -2 }, /* (227) expr ::= PLUS INTEGER */
{ 259, -2 }, /* (228) expr ::= PLUS INTEGER */ { 259, -1 }, /* (228) expr ::= FLOAT */
{ 259, -1 }, /* (229) expr ::= FLOAT */ { 259, -2 }, /* (229) expr ::= MINUS FLOAT */
{ 259, -2 }, /* (230) expr ::= MINUS FLOAT */ { 259, -2 }, /* (230) expr ::= PLUS FLOAT */
{ 259, -2 }, /* (231) expr ::= PLUS FLOAT */ { 259, -1 }, /* (231) expr ::= STRING */
{ 259, -1 }, /* (232) expr ::= STRING */ { 259, -1 }, /* (232) expr ::= NOW */
{ 259, -1 }, /* (233) expr ::= NOW */ { 259, -1 }, /* (233) expr ::= VARIABLE */
{ 259, -1 }, /* (234) expr ::= VARIABLE */ { 259, -2 }, /* (234) expr ::= PLUS VARIABLE */
{ 259, -2 }, /* (235) expr ::= PLUS VARIABLE */ { 259, -2 }, /* (235) expr ::= MINUS VARIABLE */
{ 259, -2 }, /* (236) expr ::= MINUS VARIABLE */ { 259, -1 }, /* (236) expr ::= BOOL */
{ 259, -1 }, /* (237) expr ::= BOOL */ { 259, -1 }, /* (237) expr ::= NULL */
{ 259, -1 }, /* (238) expr ::= NULL */ { 259, -4 }, /* (238) expr ::= ID LP exprlist RP */
{ 259, -4 }, /* (239) expr ::= ID LP exprlist RP */ { 259, -4 }, /* (239) expr ::= ID LP STAR RP */
{ 259, -4 }, /* (240) expr ::= ID LP STAR RP */ { 259, -3 }, /* (240) expr ::= expr IS NULL */
{ 259, -3 }, /* (241) expr ::= expr IS NULL */ { 259, -4 }, /* (241) expr ::= expr IS NOT NULL */
{ 259, -4 }, /* (242) expr ::= expr IS NOT NULL */ { 259, -3 }, /* (242) expr ::= expr LT expr */
{ 259, -3 }, /* (243) expr ::= expr LT expr */ { 259, -3 }, /* (243) expr ::= expr GT expr */
{ 259, -3 }, /* (244) expr ::= expr GT expr */ { 259, -3 }, /* (244) expr ::= expr LE expr */
{ 259, -3 }, /* (245) expr ::= expr LE expr */ { 259, -3 }, /* (245) expr ::= expr GE expr */
{ 259, -3 }, /* (246) expr ::= expr GE expr */ { 259, -3 }, /* (246) expr ::= expr NE expr */
{ 259, -3 }, /* (247) expr ::= expr NE expr */ { 259, -3 }, /* (247) expr ::= expr EQ expr */
{ 259, -3 }, /* (248) expr ::= expr EQ expr */ { 259, -5 }, /* (248) expr ::= expr BETWEEN expr AND expr */
{ 259, -5 }, /* (249) expr ::= expr BETWEEN expr AND expr */ { 259, -3 }, /* (249) expr ::= expr AND expr */
{ 259, -3 }, /* (250) expr ::= expr AND expr */ { 259, -3 }, /* (250) expr ::= expr OR expr */
{ 259, -3 }, /* (251) expr ::= expr OR expr */ { 259, -3 }, /* (251) expr ::= expr PLUS expr */
{ 259, -3 }, /* (252) expr ::= expr PLUS expr */ { 259, -3 }, /* (252) expr ::= expr MINUS expr */
{ 259, -3 }, /* (253) expr ::= expr MINUS expr */ { 259, -3 }, /* (253) expr ::= expr STAR expr */
{ 259, -3 }, /* (254) expr ::= expr STAR expr */ { 259, -3 }, /* (254) expr ::= expr SLASH expr */
{ 259, -3 }, /* (255) expr ::= expr SLASH expr */ { 259, -3 }, /* (255) expr ::= expr REM expr */
{ 259, -3 }, /* (256) expr ::= expr REM expr */ { 259, -3 }, /* (256) expr ::= expr LIKE expr */
{ 259, -3 }, /* (257) expr ::= expr LIKE expr */ { 259, -5 }, /* (257) expr ::= expr IN LP exprlist RP */
{ 259, -5 }, /* (258) expr ::= expr IN LP exprlist RP */ { 200, -3 }, /* (258) exprlist ::= exprlist COMMA expritem */
{ 200, -3 }, /* (259) exprlist ::= exprlist COMMA expritem */ { 200, -1 }, /* (259) exprlist ::= expritem */
{ 200, -1 }, /* (260) exprlist ::= expritem */ { 269, -1 }, /* (260) expritem ::= expr */
{ 269, -1 }, /* (261) expritem ::= expr */ { 269, 0 }, /* (261) expritem ::= */
{ 269, 0 }, /* (262) expritem ::= */ { 192, -3 }, /* (262) cmd ::= RESET QUERY CACHE */
{ 192, -3 }, /* (263) cmd ::= RESET QUERY CACHE */ { 192, -3 }, /* (263) cmd ::= SYNCDB ids REPLICA */
{ 192, -3 }, /* (264) cmd ::= SYNCDB ids REPLICA */ { 192, -7 }, /* (264) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{ 192, -7 }, /* (265) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ { 192, -7 }, /* (265) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{ 192, -7 }, /* (266) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */ { 192, -7 }, /* (266) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
{ 192, -7 }, /* (267) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ { 192, -7 }, /* (267) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{ 192, -7 }, /* (268) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ { 192, -7 }, /* (268) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{ 192, -7 }, /* (269) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */ { 192, -8 }, /* (269) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{ 192, -8 }, /* (270) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */ { 192, -9 }, /* (270) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{ 192, -9 }, /* (271) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */ { 192, -7 }, /* (271) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
{ 192, -7 }, /* (272) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ { 192, -7 }, /* (272) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{ 192, -7 }, /* (273) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ { 192, -7 }, /* (273) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{ 192, -7 }, /* (274) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */ { 192, -7 }, /* (274) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
{ 192, -7 }, /* (275) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ { 192, -7 }, /* (275) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{ 192, -7 }, /* (276) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ { 192, -7 }, /* (276) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{ 192, -7 }, /* (277) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */ { 192, -8 }, /* (277) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{ 192, -8 }, /* (278) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */ { 192, -9 }, /* (278) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
{ 192, -9 }, /* (279) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */ { 192, -7 }, /* (279) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
{ 192, -7 }, /* (280) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ { 192, -3 }, /* (280) cmd ::= KILL CONNECTION INTEGER */
{ 192, -3 }, /* (281) cmd ::= KILL CONNECTION INTEGER */ { 192, -5 }, /* (281) cmd ::= KILL STREAM INTEGER COLON INTEGER */
{ 192, -5 }, /* (282) cmd ::= KILL STREAM INTEGER COLON INTEGER */ { 192, -5 }, /* (282) cmd ::= KILL QUERY INTEGER COLON INTEGER */
{ 192, -5 }, /* (283) cmd ::= KILL QUERY INTEGER COLON INTEGER */
}; };
static void yy_accept(yyParser*); /* Forward Declaration */ static void yy_accept(yyParser*); /* Forward Declaration */
...@@ -2164,9 +2162,9 @@ static void yy_reduce( ...@@ -2164,9 +2162,9 @@ static void yy_reduce(
/********** Begin reduce actions **********************************************/ /********** Begin reduce actions **********************************************/
YYMINORTYPE yylhsminor; YYMINORTYPE yylhsminor;
case 0: /* program ::= cmd */ case 0: /* program ::= cmd */
case 133: /* cmd ::= CREATE TABLE create_table_args */ yytestcase(yyruleno==133); case 132: /* cmd ::= CREATE TABLE create_table_args */ yytestcase(yyruleno==132);
case 134: /* cmd ::= CREATE TABLE create_stable_args */ yytestcase(yyruleno==134); case 133: /* cmd ::= CREATE TABLE create_stable_args */ yytestcase(yyruleno==133);
case 135: /* cmd ::= CREATE STABLE create_stable_args */ yytestcase(yyruleno==135); case 134: /* cmd ::= CREATE STABLE create_stable_args */ yytestcase(yyruleno==134);
{} {}
break; break;
case 1: /* cmd ::= SHOW DATABASES */ case 1: /* cmd ::= SHOW DATABASES */
...@@ -2357,7 +2355,7 @@ static void yy_reduce( ...@@ -2357,7 +2355,7 @@ static void yy_reduce(
break; break;
case 52: /* ifexists ::= */ case 52: /* ifexists ::= */
case 54: /* ifnotexists ::= */ yytestcase(yyruleno==54); case 54: /* ifnotexists ::= */ yytestcase(yyruleno==54);
case 175: /* distinct ::= */ yytestcase(yyruleno==175); case 174: /* distinct ::= */ yytestcase(yyruleno==174);
{ yymsp[1].minor.yy0.n = 0;} { yymsp[1].minor.yy0.n = 0;}
break; break;
case 53: /* ifnotexists ::= IF NOT EXISTS */ case 53: /* ifnotexists ::= IF NOT EXISTS */
...@@ -2413,20 +2411,20 @@ static void yy_reduce( ...@@ -2413,20 +2411,20 @@ static void yy_reduce(
yymsp[-8].minor.yy151 = yylhsminor.yy151; yymsp[-8].minor.yy151 = yylhsminor.yy151;
break; break;
case 79: /* intitemlist ::= intitemlist COMMA intitem */ case 79: /* intitemlist ::= intitemlist COMMA intitem */
case 149: /* tagitemlist ::= tagitemlist COMMA tagitem */ yytestcase(yyruleno==149); case 148: /* tagitemlist ::= tagitemlist COMMA tagitem */ yytestcase(yyruleno==148);
{ yylhsminor.yy441 = tVariantListAppend(yymsp[-2].minor.yy441, &yymsp[0].minor.yy506, -1); } { yylhsminor.yy441 = tVariantListAppend(yymsp[-2].minor.yy441, &yymsp[0].minor.yy506, -1); }
yymsp[-2].minor.yy441 = yylhsminor.yy441; yymsp[-2].minor.yy441 = yylhsminor.yy441;
break; break;
case 80: /* intitemlist ::= intitem */ case 80: /* intitemlist ::= intitem */
case 150: /* tagitemlist ::= tagitem */ yytestcase(yyruleno==150); case 149: /* tagitemlist ::= tagitem */ yytestcase(yyruleno==149);
{ yylhsminor.yy441 = tVariantListAppend(NULL, &yymsp[0].minor.yy506, -1); } { yylhsminor.yy441 = tVariantListAppend(NULL, &yymsp[0].minor.yy506, -1); }
yymsp[0].minor.yy441 = yylhsminor.yy441; yymsp[0].minor.yy441 = yylhsminor.yy441;
break; break;
case 81: /* intitem ::= INTEGER */ case 81: /* intitem ::= INTEGER */
case 151: /* tagitem ::= INTEGER */ yytestcase(yyruleno==151); case 150: /* tagitem ::= INTEGER */ yytestcase(yyruleno==150);
case 152: /* tagitem ::= FLOAT */ yytestcase(yyruleno==152); case 151: /* tagitem ::= FLOAT */ yytestcase(yyruleno==151);
case 153: /* tagitem ::= STRING */ yytestcase(yyruleno==153); case 152: /* tagitem ::= STRING */ yytestcase(yyruleno==152);
case 154: /* tagitem ::= BOOL */ yytestcase(yyruleno==154); case 153: /* tagitem ::= BOOL */ yytestcase(yyruleno==153);
{ toTSDBType(yymsp[0].minor.yy0.type); tVariantCreate(&yylhsminor.yy506, &yymsp[0].minor.yy0); } { toTSDBType(yymsp[0].minor.yy0.type); tVariantCreate(&yylhsminor.yy506, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy506 = yylhsminor.yy506; yymsp[0].minor.yy506 = yylhsminor.yy506;
break; break;
...@@ -2493,7 +2491,6 @@ static void yy_reduce( ...@@ -2493,7 +2491,6 @@ static void yy_reduce(
yymsp[-1].minor.yy382 = yylhsminor.yy382; yymsp[-1].minor.yy382 = yylhsminor.yy382;
break; break;
case 108: /* db_optr ::= db_optr fsync */ case 108: /* db_optr ::= db_optr fsync */
case 122: /* alter_db_optr ::= alter_db_optr fsync */ yytestcase(yyruleno==122);
{ yylhsminor.yy382 = yymsp[-1].minor.yy382; yylhsminor.yy382.fsyncPeriod = strtol(yymsp[0].minor.yy0.z, NULL, 10); } { yylhsminor.yy382 = yymsp[-1].minor.yy382; yylhsminor.yy382.fsyncPeriod = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
yymsp[-1].minor.yy382 = yylhsminor.yy382; yymsp[-1].minor.yy382 = yylhsminor.yy382;
break; break;
...@@ -2512,36 +2509,36 @@ static void yy_reduce( ...@@ -2512,36 +2509,36 @@ static void yy_reduce(
yymsp[-1].minor.yy382 = yylhsminor.yy382; yymsp[-1].minor.yy382 = yylhsminor.yy382;
break; break;
case 112: /* db_optr ::= db_optr update */ case 112: /* db_optr ::= db_optr update */
case 123: /* alter_db_optr ::= alter_db_optr update */ yytestcase(yyruleno==123); case 122: /* alter_db_optr ::= alter_db_optr update */ yytestcase(yyruleno==122);
{ yylhsminor.yy382 = yymsp[-1].minor.yy382; yylhsminor.yy382.update = strtol(yymsp[0].minor.yy0.z, NULL, 10); } { yylhsminor.yy382 = yymsp[-1].minor.yy382; yylhsminor.yy382.update = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
yymsp[-1].minor.yy382 = yylhsminor.yy382; yymsp[-1].minor.yy382 = yylhsminor.yy382;
break; break;
case 113: /* db_optr ::= db_optr cachelast */ case 113: /* db_optr ::= db_optr cachelast */
case 124: /* alter_db_optr ::= alter_db_optr cachelast */ yytestcase(yyruleno==124); case 123: /* alter_db_optr ::= alter_db_optr cachelast */ yytestcase(yyruleno==123);
{ yylhsminor.yy382 = yymsp[-1].minor.yy382; yylhsminor.yy382.cachelast = strtol(yymsp[0].minor.yy0.z, NULL, 10); } { yylhsminor.yy382 = yymsp[-1].minor.yy382; yylhsminor.yy382.cachelast = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
yymsp[-1].minor.yy382 = yylhsminor.yy382; yymsp[-1].minor.yy382 = yylhsminor.yy382;
break; break;
case 114: /* topic_optr ::= db_optr */ case 114: /* topic_optr ::= db_optr */
case 125: /* alter_topic_optr ::= alter_db_optr */ yytestcase(yyruleno==125); case 124: /* alter_topic_optr ::= alter_db_optr */ yytestcase(yyruleno==124);
{ yylhsminor.yy382 = yymsp[0].minor.yy382; yylhsminor.yy382.dbType = TSDB_DB_TYPE_TOPIC; } { yylhsminor.yy382 = yymsp[0].minor.yy382; yylhsminor.yy382.dbType = TSDB_DB_TYPE_TOPIC; }
yymsp[0].minor.yy382 = yylhsminor.yy382; yymsp[0].minor.yy382 = yylhsminor.yy382;
break; break;
case 115: /* topic_optr ::= topic_optr partitions */ case 115: /* topic_optr ::= topic_optr partitions */
case 126: /* alter_topic_optr ::= alter_topic_optr partitions */ yytestcase(yyruleno==126); case 125: /* alter_topic_optr ::= alter_topic_optr partitions */ yytestcase(yyruleno==125);
{ yylhsminor.yy382 = yymsp[-1].minor.yy382; yylhsminor.yy382.partitions = strtol(yymsp[0].minor.yy0.z, NULL, 10); } { yylhsminor.yy382 = yymsp[-1].minor.yy382; yylhsminor.yy382.partitions = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
yymsp[-1].minor.yy382 = yylhsminor.yy382; yymsp[-1].minor.yy382 = yylhsminor.yy382;
break; break;
case 116: /* alter_db_optr ::= */ case 116: /* alter_db_optr ::= */
{ setDefaultCreateDbOption(&yymsp[1].minor.yy382); yymsp[1].minor.yy382.dbType = TSDB_DB_TYPE_DEFAULT;} { setDefaultCreateDbOption(&yymsp[1].minor.yy382); yymsp[1].minor.yy382.dbType = TSDB_DB_TYPE_DEFAULT;}
break; break;
case 127: /* typename ::= ids */ case 126: /* typename ::= ids */
{ {
yymsp[0].minor.yy0.type = 0; yymsp[0].minor.yy0.type = 0;
tSetColumnType (&yylhsminor.yy343, &yymsp[0].minor.yy0); tSetColumnType (&yylhsminor.yy343, &yymsp[0].minor.yy0);
} }
yymsp[0].minor.yy343 = yylhsminor.yy343; yymsp[0].minor.yy343 = yylhsminor.yy343;
break; break;
case 128: /* typename ::= ids LP signed RP */ case 127: /* typename ::= ids LP signed RP */
{ {
if (yymsp[-1].minor.yy369 <= 0) { if (yymsp[-1].minor.yy369 <= 0) {
yymsp[-3].minor.yy0.type = 0; yymsp[-3].minor.yy0.type = 0;
...@@ -2553,7 +2550,7 @@ static void yy_reduce( ...@@ -2553,7 +2550,7 @@ static void yy_reduce(
} }
yymsp[-3].minor.yy343 = yylhsminor.yy343; yymsp[-3].minor.yy343 = yylhsminor.yy343;
break; break;
case 129: /* typename ::= ids UNSIGNED */ case 128: /* typename ::= ids UNSIGNED */
{ {
yymsp[-1].minor.yy0.type = 0; 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); yymsp[-1].minor.yy0.n = ((yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z);
...@@ -2561,20 +2558,20 @@ static void yy_reduce( ...@@ -2561,20 +2558,20 @@ static void yy_reduce(
} }
yymsp[-1].minor.yy343 = yylhsminor.yy343; yymsp[-1].minor.yy343 = yylhsminor.yy343;
break; break;
case 130: /* signed ::= INTEGER */ case 129: /* signed ::= INTEGER */
{ yylhsminor.yy369 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } { yylhsminor.yy369 = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
yymsp[0].minor.yy369 = yylhsminor.yy369; yymsp[0].minor.yy369 = yylhsminor.yy369;
break; break;
case 131: /* signed ::= PLUS INTEGER */ case 130: /* signed ::= PLUS INTEGER */
{ yymsp[-1].minor.yy369 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } { yymsp[-1].minor.yy369 = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
break; break;
case 132: /* signed ::= MINUS INTEGER */ case 131: /* signed ::= MINUS INTEGER */
{ yymsp[-1].minor.yy369 = -strtol(yymsp[0].minor.yy0.z, NULL, 10);} { yymsp[-1].minor.yy369 = -strtol(yymsp[0].minor.yy0.z, NULL, 10);}
break; break;
case 136: /* cmd ::= CREATE TABLE create_table_list */ case 135: /* cmd ::= CREATE TABLE create_table_list */
{ pInfo->type = TSDB_SQL_CREATE_TABLE; pInfo->pCreateTableInfo = yymsp[0].minor.yy182;} { pInfo->type = TSDB_SQL_CREATE_TABLE; pInfo->pCreateTableInfo = yymsp[0].minor.yy182;}
break; break;
case 137: /* create_table_list ::= create_from_stable */ case 136: /* create_table_list ::= create_from_stable */
{ {
SCreateTableSql* pCreateTable = calloc(1, sizeof(SCreateTableSql)); SCreateTableSql* pCreateTable = calloc(1, sizeof(SCreateTableSql));
pCreateTable->childTableInfo = taosArrayInit(4, sizeof(SCreatedTableInfo)); pCreateTable->childTableInfo = taosArrayInit(4, sizeof(SCreatedTableInfo));
...@@ -2585,14 +2582,14 @@ static void yy_reduce( ...@@ -2585,14 +2582,14 @@ static void yy_reduce(
} }
yymsp[0].minor.yy182 = yylhsminor.yy182; yymsp[0].minor.yy182 = yylhsminor.yy182;
break; break;
case 138: /* create_table_list ::= create_table_list create_from_stable */ case 137: /* create_table_list ::= create_table_list create_from_stable */
{ {
taosArrayPush(yymsp[-1].minor.yy182->childTableInfo, &yymsp[0].minor.yy456); taosArrayPush(yymsp[-1].minor.yy182->childTableInfo, &yymsp[0].minor.yy456);
yylhsminor.yy182 = yymsp[-1].minor.yy182; yylhsminor.yy182 = yymsp[-1].minor.yy182;
} }
yymsp[-1].minor.yy182 = yylhsminor.yy182; yymsp[-1].minor.yy182 = yylhsminor.yy182;
break; break;
case 139: /* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ case 138: /* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{ {
yylhsminor.yy182 = tSetCreateTableInfo(yymsp[-1].minor.yy441, NULL, NULL, TSQL_CREATE_TABLE); yylhsminor.yy182 = tSetCreateTableInfo(yymsp[-1].minor.yy441, NULL, NULL, TSQL_CREATE_TABLE);
setSqlInfo(pInfo, yylhsminor.yy182, NULL, TSDB_SQL_CREATE_TABLE); setSqlInfo(pInfo, yylhsminor.yy182, NULL, TSDB_SQL_CREATE_TABLE);
...@@ -2602,7 +2599,7 @@ static void yy_reduce( ...@@ -2602,7 +2599,7 @@ static void yy_reduce(
} }
yymsp[-5].minor.yy182 = yylhsminor.yy182; yymsp[-5].minor.yy182 = yylhsminor.yy182;
break; break;
case 140: /* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ case 139: /* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{ {
yylhsminor.yy182 = tSetCreateTableInfo(yymsp[-5].minor.yy441, yymsp[-1].minor.yy441, NULL, TSQL_CREATE_STABLE); yylhsminor.yy182 = tSetCreateTableInfo(yymsp[-5].minor.yy441, yymsp[-1].minor.yy441, NULL, TSQL_CREATE_STABLE);
setSqlInfo(pInfo, yylhsminor.yy182, NULL, TSDB_SQL_CREATE_TABLE); setSqlInfo(pInfo, yylhsminor.yy182, NULL, TSDB_SQL_CREATE_TABLE);
...@@ -2612,7 +2609,7 @@ static void yy_reduce( ...@@ -2612,7 +2609,7 @@ static void yy_reduce(
} }
yymsp[-9].minor.yy182 = yylhsminor.yy182; yymsp[-9].minor.yy182 = yylhsminor.yy182;
break; break;
case 141: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ case 140: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
{ {
yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n; yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n; yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n;
...@@ -2620,7 +2617,7 @@ static void yy_reduce( ...@@ -2620,7 +2617,7 @@ static void yy_reduce(
} }
yymsp[-9].minor.yy456 = yylhsminor.yy456; yymsp[-9].minor.yy456 = yylhsminor.yy456;
break; break;
case 142: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ case 141: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
{ {
yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n; yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n;
yymsp[-11].minor.yy0.n += yymsp[-10].minor.yy0.n; yymsp[-11].minor.yy0.n += yymsp[-10].minor.yy0.n;
...@@ -2628,15 +2625,15 @@ static void yy_reduce( ...@@ -2628,15 +2625,15 @@ static void yy_reduce(
} }
yymsp[-12].minor.yy456 = yylhsminor.yy456; yymsp[-12].minor.yy456 = yylhsminor.yy456;
break; break;
case 143: /* tagNamelist ::= tagNamelist COMMA ids */ case 142: /* tagNamelist ::= tagNamelist COMMA ids */
{taosArrayPush(yymsp[-2].minor.yy441, &yymsp[0].minor.yy0); yylhsminor.yy441 = yymsp[-2].minor.yy441; } {taosArrayPush(yymsp[-2].minor.yy441, &yymsp[0].minor.yy0); yylhsminor.yy441 = yymsp[-2].minor.yy441; }
yymsp[-2].minor.yy441 = yylhsminor.yy441; yymsp[-2].minor.yy441 = yylhsminor.yy441;
break; break;
case 144: /* tagNamelist ::= ids */ case 143: /* tagNamelist ::= ids */
{yylhsminor.yy441 = taosArrayInit(4, sizeof(SStrToken)); taosArrayPush(yylhsminor.yy441, &yymsp[0].minor.yy0);} {yylhsminor.yy441 = taosArrayInit(4, sizeof(SStrToken)); taosArrayPush(yylhsminor.yy441, &yymsp[0].minor.yy0);}
yymsp[0].minor.yy441 = yylhsminor.yy441; yymsp[0].minor.yy441 = yylhsminor.yy441;
break; break;
case 145: /* create_table_args ::= ifnotexists ids cpxName AS select */ case 144: /* create_table_args ::= ifnotexists ids cpxName AS select */
{ {
yylhsminor.yy182 = tSetCreateTableInfo(NULL, NULL, yymsp[0].minor.yy236, TSQL_CREATE_STREAM); yylhsminor.yy182 = tSetCreateTableInfo(NULL, NULL, yymsp[0].minor.yy236, TSQL_CREATE_STREAM);
setSqlInfo(pInfo, yylhsminor.yy182, NULL, TSDB_SQL_CREATE_TABLE); setSqlInfo(pInfo, yylhsminor.yy182, NULL, TSDB_SQL_CREATE_TABLE);
...@@ -2646,32 +2643,32 @@ static void yy_reduce( ...@@ -2646,32 +2643,32 @@ static void yy_reduce(
} }
yymsp[-4].minor.yy182 = yylhsminor.yy182; yymsp[-4].minor.yy182 = yylhsminor.yy182;
break; break;
case 146: /* columnlist ::= columnlist COMMA column */ case 145: /* columnlist ::= columnlist COMMA column */
{taosArrayPush(yymsp[-2].minor.yy441, &yymsp[0].minor.yy343); yylhsminor.yy441 = yymsp[-2].minor.yy441; } {taosArrayPush(yymsp[-2].minor.yy441, &yymsp[0].minor.yy343); yylhsminor.yy441 = yymsp[-2].minor.yy441; }
yymsp[-2].minor.yy441 = yylhsminor.yy441; yymsp[-2].minor.yy441 = yylhsminor.yy441;
break; break;
case 147: /* columnlist ::= column */ case 146: /* columnlist ::= column */
{yylhsminor.yy441 = taosArrayInit(4, sizeof(TAOS_FIELD)); taosArrayPush(yylhsminor.yy441, &yymsp[0].minor.yy343);} {yylhsminor.yy441 = taosArrayInit(4, sizeof(TAOS_FIELD)); taosArrayPush(yylhsminor.yy441, &yymsp[0].minor.yy343);}
yymsp[0].minor.yy441 = yylhsminor.yy441; yymsp[0].minor.yy441 = yylhsminor.yy441;
break; break;
case 148: /* column ::= ids typename */ case 147: /* column ::= ids typename */
{ {
tSetColumnInfo(&yylhsminor.yy343, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy343); tSetColumnInfo(&yylhsminor.yy343, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy343);
} }
yymsp[-1].minor.yy343 = yylhsminor.yy343; yymsp[-1].minor.yy343 = yylhsminor.yy343;
break; break;
case 155: /* tagitem ::= NULL */ case 154: /* tagitem ::= NULL */
{ yymsp[0].minor.yy0.type = 0; tVariantCreate(&yylhsminor.yy506, &yymsp[0].minor.yy0); } { yymsp[0].minor.yy0.type = 0; tVariantCreate(&yylhsminor.yy506, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy506 = yylhsminor.yy506; yymsp[0].minor.yy506 = yylhsminor.yy506;
break; break;
case 156: /* tagitem ::= NOW */ case 155: /* tagitem ::= NOW */
{ yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; tVariantCreate(&yylhsminor.yy506, &yymsp[0].minor.yy0);} { yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; tVariantCreate(&yylhsminor.yy506, &yymsp[0].minor.yy0);}
yymsp[0].minor.yy506 = yylhsminor.yy506; yymsp[0].minor.yy506 = yylhsminor.yy506;
break; break;
case 157: /* tagitem ::= MINUS INTEGER */ case 156: /* tagitem ::= MINUS INTEGER */
case 158: /* tagitem ::= MINUS FLOAT */ yytestcase(yyruleno==158); case 157: /* tagitem ::= MINUS FLOAT */ yytestcase(yyruleno==157);
case 159: /* tagitem ::= PLUS INTEGER */ yytestcase(yyruleno==159); case 158: /* tagitem ::= PLUS INTEGER */ yytestcase(yyruleno==158);
case 160: /* tagitem ::= PLUS FLOAT */ yytestcase(yyruleno==160); case 159: /* tagitem ::= PLUS FLOAT */ yytestcase(yyruleno==159);
{ {
yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
yymsp[-1].minor.yy0.type = yymsp[0].minor.yy0.type; yymsp[-1].minor.yy0.type = yymsp[0].minor.yy0.type;
...@@ -2680,142 +2677,142 @@ static void yy_reduce( ...@@ -2680,142 +2677,142 @@ static void yy_reduce(
} }
yymsp[-1].minor.yy506 = yylhsminor.yy506; yymsp[-1].minor.yy506 = yylhsminor.yy506;
break; break;
case 161: /* select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */ case 160: /* select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
{ {
yylhsminor.yy236 = tSetQuerySqlNode(&yymsp[-13].minor.yy0, yymsp[-12].minor.yy441, yymsp[-11].minor.yy244, yymsp[-10].minor.yy166, yymsp[-4].minor.yy441, yymsp[-2].minor.yy441, &yymsp[-9].minor.yy340, &yymsp[-8].minor.yy259, &yymsp[-7].minor.yy348, &yymsp[-5].minor.yy0, yymsp[-6].minor.yy441, &yymsp[0].minor.yy414, &yymsp[-1].minor.yy414, yymsp[-3].minor.yy166); yylhsminor.yy236 = tSetQuerySqlNode(&yymsp[-13].minor.yy0, yymsp[-12].minor.yy441, yymsp[-11].minor.yy244, yymsp[-10].minor.yy166, yymsp[-4].minor.yy441, yymsp[-2].minor.yy441, &yymsp[-9].minor.yy340, &yymsp[-8].minor.yy259, &yymsp[-7].minor.yy348, &yymsp[-5].minor.yy0, yymsp[-6].minor.yy441, &yymsp[0].minor.yy414, &yymsp[-1].minor.yy414, yymsp[-3].minor.yy166);
} }
yymsp[-13].minor.yy236 = yylhsminor.yy236; yymsp[-13].minor.yy236 = yylhsminor.yy236;
break; break;
case 162: /* select ::= LP select RP */ case 161: /* select ::= LP select RP */
{yymsp[-2].minor.yy236 = yymsp[-1].minor.yy236;} {yymsp[-2].minor.yy236 = yymsp[-1].minor.yy236;}
break; break;
case 163: /* union ::= select */ case 162: /* union ::= select */
{ yylhsminor.yy441 = setSubclause(NULL, yymsp[0].minor.yy236); } { yylhsminor.yy441 = setSubclause(NULL, yymsp[0].minor.yy236); }
yymsp[0].minor.yy441 = yylhsminor.yy441; yymsp[0].minor.yy441 = yylhsminor.yy441;
break; break;
case 164: /* union ::= union UNION ALL select */ case 163: /* union ::= union UNION ALL select */
{ yylhsminor.yy441 = appendSelectClause(yymsp[-3].minor.yy441, yymsp[0].minor.yy236); } { yylhsminor.yy441 = appendSelectClause(yymsp[-3].minor.yy441, yymsp[0].minor.yy236); }
yymsp[-3].minor.yy441 = yylhsminor.yy441; yymsp[-3].minor.yy441 = yylhsminor.yy441;
break; break;
case 165: /* cmd ::= union */ case 164: /* cmd ::= union */
{ setSqlInfo(pInfo, yymsp[0].minor.yy441, NULL, TSDB_SQL_SELECT); } { setSqlInfo(pInfo, yymsp[0].minor.yy441, NULL, TSDB_SQL_SELECT); }
break; break;
case 166: /* select ::= SELECT selcollist */ case 165: /* select ::= SELECT selcollist */
{ {
yylhsminor.yy236 = tSetQuerySqlNode(&yymsp[-1].minor.yy0, yymsp[0].minor.yy441, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); yylhsminor.yy236 = tSetQuerySqlNode(&yymsp[-1].minor.yy0, yymsp[0].minor.yy441, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
} }
yymsp[-1].minor.yy236 = yylhsminor.yy236; yymsp[-1].minor.yy236 = yylhsminor.yy236;
break; break;
case 167: /* sclp ::= selcollist COMMA */ case 166: /* sclp ::= selcollist COMMA */
{yylhsminor.yy441 = yymsp[-1].minor.yy441;} {yylhsminor.yy441 = yymsp[-1].minor.yy441;}
yymsp[-1].minor.yy441 = yylhsminor.yy441; yymsp[-1].minor.yy441 = yylhsminor.yy441;
break; break;
case 168: /* sclp ::= */ case 167: /* sclp ::= */
case 198: /* orderby_opt ::= */ yytestcase(yyruleno==198); case 197: /* orderby_opt ::= */ yytestcase(yyruleno==197);
{yymsp[1].minor.yy441 = 0;} {yymsp[1].minor.yy441 = 0;}
break; break;
case 169: /* selcollist ::= sclp distinct expr as */ case 168: /* selcollist ::= sclp distinct expr as */
{ {
yylhsminor.yy441 = tSqlExprListAppend(yymsp[-3].minor.yy441, yymsp[-1].minor.yy166, yymsp[-2].minor.yy0.n? &yymsp[-2].minor.yy0:0, yymsp[0].minor.yy0.n?&yymsp[0].minor.yy0:0); yylhsminor.yy441 = tSqlExprListAppend(yymsp[-3].minor.yy441, yymsp[-1].minor.yy166, yymsp[-2].minor.yy0.n? &yymsp[-2].minor.yy0:0, yymsp[0].minor.yy0.n?&yymsp[0].minor.yy0:0);
} }
yymsp[-3].minor.yy441 = yylhsminor.yy441; yymsp[-3].minor.yy441 = yylhsminor.yy441;
break; break;
case 170: /* selcollist ::= sclp STAR */ case 169: /* selcollist ::= sclp STAR */
{ {
tSqlExpr *pNode = tSqlExprCreateIdValue(NULL, TK_ALL); tSqlExpr *pNode = tSqlExprCreateIdValue(NULL, TK_ALL);
yylhsminor.yy441 = tSqlExprListAppend(yymsp[-1].minor.yy441, pNode, 0, 0); yylhsminor.yy441 = tSqlExprListAppend(yymsp[-1].minor.yy441, pNode, 0, 0);
} }
yymsp[-1].minor.yy441 = yylhsminor.yy441; yymsp[-1].minor.yy441 = yylhsminor.yy441;
break; break;
case 171: /* as ::= AS ids */ case 170: /* as ::= AS ids */
{ yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; } { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; }
break; break;
case 172: /* as ::= ids */ case 171: /* as ::= ids */
{ yylhsminor.yy0 = yymsp[0].minor.yy0; } { yylhsminor.yy0 = yymsp[0].minor.yy0; }
yymsp[0].minor.yy0 = yylhsminor.yy0; yymsp[0].minor.yy0 = yylhsminor.yy0;
break; break;
case 173: /* as ::= */ case 172: /* as ::= */
{ yymsp[1].minor.yy0.n = 0; } { yymsp[1].minor.yy0.n = 0; }
break; break;
case 174: /* distinct ::= DISTINCT */ case 173: /* distinct ::= DISTINCT */
{ yylhsminor.yy0 = yymsp[0].minor.yy0; } { yylhsminor.yy0 = yymsp[0].minor.yy0; }
yymsp[0].minor.yy0 = yylhsminor.yy0; yymsp[0].minor.yy0 = yylhsminor.yy0;
break; break;
case 176: /* from ::= FROM tablelist */ case 175: /* from ::= FROM tablelist */
case 177: /* from ::= FROM sub */ yytestcase(yyruleno==177); case 176: /* from ::= FROM sub */ yytestcase(yyruleno==176);
{yymsp[-1].minor.yy244 = yymsp[0].minor.yy244;} {yymsp[-1].minor.yy244 = yymsp[0].minor.yy244;}
break; break;
case 178: /* sub ::= LP union RP */ case 177: /* sub ::= LP union RP */
{yymsp[-2].minor.yy244 = addSubqueryElem(NULL, yymsp[-1].minor.yy441, NULL);} {yymsp[-2].minor.yy244 = addSubqueryElem(NULL, yymsp[-1].minor.yy441, NULL);}
break; break;
case 179: /* sub ::= LP union RP ids */ case 178: /* sub ::= LP union RP ids */
{yymsp[-3].minor.yy244 = addSubqueryElem(NULL, yymsp[-2].minor.yy441, &yymsp[0].minor.yy0);} {yymsp[-3].minor.yy244 = addSubqueryElem(NULL, yymsp[-2].minor.yy441, &yymsp[0].minor.yy0);}
break; break;
case 180: /* sub ::= sub COMMA LP union RP ids */ case 179: /* sub ::= sub COMMA LP union RP ids */
{yylhsminor.yy244 = addSubqueryElem(yymsp[-5].minor.yy244, yymsp[-2].minor.yy441, &yymsp[0].minor.yy0);} {yylhsminor.yy244 = addSubqueryElem(yymsp[-5].minor.yy244, yymsp[-2].minor.yy441, &yymsp[0].minor.yy0);}
yymsp[-5].minor.yy244 = yylhsminor.yy244; yymsp[-5].minor.yy244 = yylhsminor.yy244;
break; break;
case 181: /* tablelist ::= ids cpxName */ case 180: /* tablelist ::= ids cpxName */
{ {
yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
yylhsminor.yy244 = setTableNameList(NULL, &yymsp[-1].minor.yy0, NULL); yylhsminor.yy244 = setTableNameList(NULL, &yymsp[-1].minor.yy0, NULL);
} }
yymsp[-1].minor.yy244 = yylhsminor.yy244; yymsp[-1].minor.yy244 = yylhsminor.yy244;
break; break;
case 182: /* tablelist ::= ids cpxName ids */ case 181: /* tablelist ::= ids cpxName ids */
{ {
yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n; yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n;
yylhsminor.yy244 = setTableNameList(NULL, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); yylhsminor.yy244 = setTableNameList(NULL, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);
} }
yymsp[-2].minor.yy244 = yylhsminor.yy244; yymsp[-2].minor.yy244 = yylhsminor.yy244;
break; break;
case 183: /* tablelist ::= tablelist COMMA ids cpxName */ case 182: /* tablelist ::= tablelist COMMA ids cpxName */
{ {
yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
yylhsminor.yy244 = setTableNameList(yymsp[-3].minor.yy244, &yymsp[-1].minor.yy0, NULL); yylhsminor.yy244 = setTableNameList(yymsp[-3].minor.yy244, &yymsp[-1].minor.yy0, NULL);
} }
yymsp[-3].minor.yy244 = yylhsminor.yy244; yymsp[-3].minor.yy244 = yylhsminor.yy244;
break; break;
case 184: /* tablelist ::= tablelist COMMA ids cpxName ids */ case 183: /* tablelist ::= tablelist COMMA ids cpxName ids */
{ {
yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n; yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n;
yylhsminor.yy244 = setTableNameList(yymsp[-4].minor.yy244, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); yylhsminor.yy244 = setTableNameList(yymsp[-4].minor.yy244, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);
} }
yymsp[-4].minor.yy244 = yylhsminor.yy244; yymsp[-4].minor.yy244 = yylhsminor.yy244;
break; break;
case 185: /* tmvar ::= VARIABLE */ case 184: /* tmvar ::= VARIABLE */
{yylhsminor.yy0 = yymsp[0].minor.yy0;} {yylhsminor.yy0 = yymsp[0].minor.yy0;}
yymsp[0].minor.yy0 = yylhsminor.yy0; yymsp[0].minor.yy0 = yylhsminor.yy0;
break; break;
case 186: /* interval_opt ::= INTERVAL LP tmvar RP */ case 185: /* interval_opt ::= INTERVAL LP tmvar RP */
{yymsp[-3].minor.yy340.interval = yymsp[-1].minor.yy0; yymsp[-3].minor.yy340.offset.n = 0;} {yymsp[-3].minor.yy340.interval = yymsp[-1].minor.yy0; yymsp[-3].minor.yy340.offset.n = 0;}
break; break;
case 187: /* interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */ case 186: /* interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
{yymsp[-5].minor.yy340.interval = yymsp[-3].minor.yy0; yymsp[-5].minor.yy340.offset = yymsp[-1].minor.yy0;} {yymsp[-5].minor.yy340.interval = yymsp[-3].minor.yy0; yymsp[-5].minor.yy340.offset = yymsp[-1].minor.yy0;}
break; break;
case 188: /* interval_opt ::= */ case 187: /* interval_opt ::= */
{memset(&yymsp[1].minor.yy340, 0, sizeof(yymsp[1].minor.yy340));} {memset(&yymsp[1].minor.yy340, 0, sizeof(yymsp[1].minor.yy340));}
break; break;
case 189: /* session_option ::= */ case 188: /* session_option ::= */
{yymsp[1].minor.yy259.col.n = 0; yymsp[1].minor.yy259.gap.n = 0;} {yymsp[1].minor.yy259.col.n = 0; yymsp[1].minor.yy259.gap.n = 0;}
break; break;
case 190: /* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ case 189: /* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
yymsp[-6].minor.yy259.col = yymsp[-4].minor.yy0; yymsp[-6].minor.yy259.col = yymsp[-4].minor.yy0;
yymsp[-6].minor.yy259.gap = yymsp[-1].minor.yy0; yymsp[-6].minor.yy259.gap = yymsp[-1].minor.yy0;
} }
break; break;
case 191: /* windowstate_option ::= */ case 190: /* windowstate_option ::= */
{ yymsp[1].minor.yy348.col.n = 0; yymsp[1].minor.yy348.col.z = NULL;} { yymsp[1].minor.yy348.col.n = 0; yymsp[1].minor.yy348.col.z = NULL;}
break; break;
case 192: /* windowstate_option ::= STATE_WINDOW LP ids RP */ case 191: /* windowstate_option ::= STATE_WINDOW LP ids RP */
{ yymsp[-3].minor.yy348.col = yymsp[-1].minor.yy0; } { yymsp[-3].minor.yy348.col = yymsp[-1].minor.yy0; }
break; break;
case 193: /* fill_opt ::= */ case 192: /* fill_opt ::= */
{ yymsp[1].minor.yy441 = 0; } { yymsp[1].minor.yy441 = 0; }
break; break;
case 194: /* fill_opt ::= FILL LP ID COMMA tagitemlist RP */ case 193: /* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{ {
tVariant A = {0}; tVariant A = {0};
toTSDBType(yymsp[-3].minor.yy0.type); toTSDBType(yymsp[-3].minor.yy0.type);
...@@ -2825,34 +2822,34 @@ static void yy_reduce( ...@@ -2825,34 +2822,34 @@ static void yy_reduce(
yymsp[-5].minor.yy441 = yymsp[-1].minor.yy441; yymsp[-5].minor.yy441 = yymsp[-1].minor.yy441;
} }
break; break;
case 195: /* fill_opt ::= FILL LP ID RP */ case 194: /* fill_opt ::= FILL LP ID RP */
{ {
toTSDBType(yymsp[-1].minor.yy0.type); toTSDBType(yymsp[-1].minor.yy0.type);
yymsp[-3].minor.yy441 = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1); yymsp[-3].minor.yy441 = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1);
} }
break; break;
case 196: /* sliding_opt ::= SLIDING LP tmvar RP */ case 195: /* sliding_opt ::= SLIDING LP tmvar RP */
{yymsp[-3].minor.yy0 = yymsp[-1].minor.yy0; } {yymsp[-3].minor.yy0 = yymsp[-1].minor.yy0; }
break; break;
case 197: /* sliding_opt ::= */ case 196: /* sliding_opt ::= */
{yymsp[1].minor.yy0.n = 0; yymsp[1].minor.yy0.z = NULL; yymsp[1].minor.yy0.type = 0; } {yymsp[1].minor.yy0.n = 0; yymsp[1].minor.yy0.z = NULL; yymsp[1].minor.yy0.type = 0; }
break; break;
case 199: /* orderby_opt ::= ORDER BY sortlist */ case 198: /* orderby_opt ::= ORDER BY sortlist */
{yymsp[-2].minor.yy441 = yymsp[0].minor.yy441;} {yymsp[-2].minor.yy441 = yymsp[0].minor.yy441;}
break; break;
case 200: /* sortlist ::= sortlist COMMA item sortorder */ case 199: /* sortlist ::= sortlist COMMA item sortorder */
{ {
yylhsminor.yy441 = tVariantListAppend(yymsp[-3].minor.yy441, &yymsp[-1].minor.yy506, yymsp[0].minor.yy112); yylhsminor.yy441 = tVariantListAppend(yymsp[-3].minor.yy441, &yymsp[-1].minor.yy506, yymsp[0].minor.yy112);
} }
yymsp[-3].minor.yy441 = yylhsminor.yy441; yymsp[-3].minor.yy441 = yylhsminor.yy441;
break; break;
case 201: /* sortlist ::= item sortorder */ case 200: /* sortlist ::= item sortorder */
{ {
yylhsminor.yy441 = tVariantListAppend(NULL, &yymsp[-1].minor.yy506, yymsp[0].minor.yy112); yylhsminor.yy441 = tVariantListAppend(NULL, &yymsp[-1].minor.yy506, yymsp[0].minor.yy112);
} }
yymsp[-1].minor.yy441 = yylhsminor.yy441; yymsp[-1].minor.yy441 = yylhsminor.yy441;
break; break;
case 202: /* item ::= ids cpxName */ case 201: /* item ::= ids cpxName */
{ {
toTSDBType(yymsp[-1].minor.yy0.type); toTSDBType(yymsp[-1].minor.yy0.type);
yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
...@@ -2861,227 +2858,227 @@ static void yy_reduce( ...@@ -2861,227 +2858,227 @@ static void yy_reduce(
} }
yymsp[-1].minor.yy506 = yylhsminor.yy506; yymsp[-1].minor.yy506 = yylhsminor.yy506;
break; break;
case 203: /* sortorder ::= ASC */ case 202: /* sortorder ::= ASC */
{ yymsp[0].minor.yy112 = TSDB_ORDER_ASC; } { yymsp[0].minor.yy112 = TSDB_ORDER_ASC; }
break; break;
case 204: /* sortorder ::= DESC */ case 203: /* sortorder ::= DESC */
{ yymsp[0].minor.yy112 = TSDB_ORDER_DESC;} { yymsp[0].minor.yy112 = TSDB_ORDER_DESC;}
break; break;
case 205: /* sortorder ::= */ case 204: /* sortorder ::= */
{ yymsp[1].minor.yy112 = TSDB_ORDER_ASC; } { yymsp[1].minor.yy112 = TSDB_ORDER_ASC; }
break; break;
case 206: /* groupby_opt ::= */ case 205: /* groupby_opt ::= */
{ yymsp[1].minor.yy441 = 0;} { yymsp[1].minor.yy441 = 0;}
break; break;
case 207: /* groupby_opt ::= GROUP BY grouplist */ case 206: /* groupby_opt ::= GROUP BY grouplist */
{ yymsp[-2].minor.yy441 = yymsp[0].minor.yy441;} { yymsp[-2].minor.yy441 = yymsp[0].minor.yy441;}
break; break;
case 208: /* grouplist ::= grouplist COMMA item */ case 207: /* grouplist ::= grouplist COMMA item */
{ {
yylhsminor.yy441 = tVariantListAppend(yymsp[-2].minor.yy441, &yymsp[0].minor.yy506, -1); yylhsminor.yy441 = tVariantListAppend(yymsp[-2].minor.yy441, &yymsp[0].minor.yy506, -1);
} }
yymsp[-2].minor.yy441 = yylhsminor.yy441; yymsp[-2].minor.yy441 = yylhsminor.yy441;
break; break;
case 209: /* grouplist ::= item */ case 208: /* grouplist ::= item */
{ {
yylhsminor.yy441 = tVariantListAppend(NULL, &yymsp[0].minor.yy506, -1); yylhsminor.yy441 = tVariantListAppend(NULL, &yymsp[0].minor.yy506, -1);
} }
yymsp[0].minor.yy441 = yylhsminor.yy441; yymsp[0].minor.yy441 = yylhsminor.yy441;
break; break;
case 210: /* having_opt ::= */ case 209: /* having_opt ::= */
case 220: /* where_opt ::= */ yytestcase(yyruleno==220); case 219: /* where_opt ::= */ yytestcase(yyruleno==219);
case 262: /* expritem ::= */ yytestcase(yyruleno==262); case 261: /* expritem ::= */ yytestcase(yyruleno==261);
{yymsp[1].minor.yy166 = 0;} {yymsp[1].minor.yy166 = 0;}
break; break;
case 211: /* having_opt ::= HAVING expr */ case 210: /* having_opt ::= HAVING expr */
case 221: /* where_opt ::= WHERE expr */ yytestcase(yyruleno==221); case 220: /* where_opt ::= WHERE expr */ yytestcase(yyruleno==220);
{yymsp[-1].minor.yy166 = yymsp[0].minor.yy166;} {yymsp[-1].minor.yy166 = yymsp[0].minor.yy166;}
break; break;
case 212: /* limit_opt ::= */ case 211: /* limit_opt ::= */
case 216: /* slimit_opt ::= */ yytestcase(yyruleno==216); case 215: /* slimit_opt ::= */ yytestcase(yyruleno==215);
{yymsp[1].minor.yy414.limit = -1; yymsp[1].minor.yy414.offset = 0;} {yymsp[1].minor.yy414.limit = -1; yymsp[1].minor.yy414.offset = 0;}
break; break;
case 213: /* limit_opt ::= LIMIT signed */ case 212: /* limit_opt ::= LIMIT signed */
case 217: /* slimit_opt ::= SLIMIT signed */ yytestcase(yyruleno==217); case 216: /* slimit_opt ::= SLIMIT signed */ yytestcase(yyruleno==216);
{yymsp[-1].minor.yy414.limit = yymsp[0].minor.yy369; yymsp[-1].minor.yy414.offset = 0;} {yymsp[-1].minor.yy414.limit = yymsp[0].minor.yy369; yymsp[-1].minor.yy414.offset = 0;}
break; break;
case 214: /* limit_opt ::= LIMIT signed OFFSET signed */ case 213: /* limit_opt ::= LIMIT signed OFFSET signed */
{ yymsp[-3].minor.yy414.limit = yymsp[-2].minor.yy369; yymsp[-3].minor.yy414.offset = yymsp[0].minor.yy369;} { yymsp[-3].minor.yy414.limit = yymsp[-2].minor.yy369; yymsp[-3].minor.yy414.offset = yymsp[0].minor.yy369;}
break; break;
case 215: /* limit_opt ::= LIMIT signed COMMA signed */ case 214: /* limit_opt ::= LIMIT signed COMMA signed */
{ yymsp[-3].minor.yy414.limit = yymsp[0].minor.yy369; yymsp[-3].minor.yy414.offset = yymsp[-2].minor.yy369;} { yymsp[-3].minor.yy414.limit = yymsp[0].minor.yy369; yymsp[-3].minor.yy414.offset = yymsp[-2].minor.yy369;}
break; break;
case 218: /* slimit_opt ::= SLIMIT signed SOFFSET signed */ case 217: /* slimit_opt ::= SLIMIT signed SOFFSET signed */
{yymsp[-3].minor.yy414.limit = yymsp[-2].minor.yy369; yymsp[-3].minor.yy414.offset = yymsp[0].minor.yy369;} {yymsp[-3].minor.yy414.limit = yymsp[-2].minor.yy369; yymsp[-3].minor.yy414.offset = yymsp[0].minor.yy369;}
break; break;
case 219: /* slimit_opt ::= SLIMIT signed COMMA signed */ case 218: /* slimit_opt ::= SLIMIT signed COMMA signed */
{yymsp[-3].minor.yy414.limit = yymsp[0].minor.yy369; yymsp[-3].minor.yy414.offset = yymsp[-2].minor.yy369;} {yymsp[-3].minor.yy414.limit = yymsp[0].minor.yy369; yymsp[-3].minor.yy414.offset = yymsp[-2].minor.yy369;}
break; break;
case 222: /* expr ::= LP expr RP */ case 221: /* expr ::= LP expr RP */
{yylhsminor.yy166 = yymsp[-1].minor.yy166; yylhsminor.yy166->exprToken.z = yymsp[-2].minor.yy0.z; yylhsminor.yy166->exprToken.n = (yymsp[0].minor.yy0.z - yymsp[-2].minor.yy0.z + 1);} {yylhsminor.yy166 = yymsp[-1].minor.yy166; yylhsminor.yy166->exprToken.z = yymsp[-2].minor.yy0.z; yylhsminor.yy166->exprToken.n = (yymsp[0].minor.yy0.z - yymsp[-2].minor.yy0.z + 1);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 223: /* expr ::= ID */ case 222: /* expr ::= ID */
{ yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_ID);} { yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_ID);}
yymsp[0].minor.yy166 = yylhsminor.yy166; yymsp[0].minor.yy166 = yylhsminor.yy166;
break; break;
case 224: /* expr ::= ID DOT ID */ case 223: /* expr ::= ID DOT ID */
{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ID);} { yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ID);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 225: /* expr ::= ID DOT STAR */ case 224: /* expr ::= ID DOT STAR */
{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ALL);} { yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ALL);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 226: /* expr ::= INTEGER */ case 225: /* expr ::= INTEGER */
{ yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_INTEGER);} { yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_INTEGER);}
yymsp[0].minor.yy166 = yylhsminor.yy166; yymsp[0].minor.yy166 = yylhsminor.yy166;
break; break;
case 227: /* expr ::= MINUS INTEGER */ case 226: /* expr ::= MINUS INTEGER */
case 228: /* expr ::= PLUS INTEGER */ yytestcase(yyruleno==228); case 227: /* expr ::= PLUS INTEGER */ yytestcase(yyruleno==227);
{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_INTEGER);} { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_INTEGER);}
yymsp[-1].minor.yy166 = yylhsminor.yy166; yymsp[-1].minor.yy166 = yylhsminor.yy166;
break; break;
case 229: /* expr ::= FLOAT */ case 228: /* expr ::= FLOAT */
{ yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_FLOAT);} { yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_FLOAT);}
yymsp[0].minor.yy166 = yylhsminor.yy166; yymsp[0].minor.yy166 = yylhsminor.yy166;
break; break;
case 230: /* expr ::= MINUS FLOAT */ case 229: /* expr ::= MINUS FLOAT */
case 231: /* expr ::= PLUS FLOAT */ yytestcase(yyruleno==231); case 230: /* expr ::= PLUS FLOAT */ yytestcase(yyruleno==230);
{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_FLOAT; yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_FLOAT);} { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_FLOAT; yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_FLOAT);}
yymsp[-1].minor.yy166 = yylhsminor.yy166; yymsp[-1].minor.yy166 = yylhsminor.yy166;
break; break;
case 232: /* expr ::= STRING */ case 231: /* expr ::= STRING */
{ yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_STRING);} { yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_STRING);}
yymsp[0].minor.yy166 = yylhsminor.yy166; yymsp[0].minor.yy166 = yylhsminor.yy166;
break; break;
case 233: /* expr ::= NOW */ case 232: /* expr ::= NOW */
{ yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NOW); } { yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NOW); }
yymsp[0].minor.yy166 = yylhsminor.yy166; yymsp[0].minor.yy166 = yylhsminor.yy166;
break; break;
case 234: /* expr ::= VARIABLE */ case 233: /* expr ::= VARIABLE */
{ yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_VARIABLE);} { yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_VARIABLE);}
yymsp[0].minor.yy166 = yylhsminor.yy166; yymsp[0].minor.yy166 = yylhsminor.yy166;
break; break;
case 235: /* expr ::= PLUS VARIABLE */ case 234: /* expr ::= PLUS VARIABLE */
case 236: /* expr ::= MINUS VARIABLE */ yytestcase(yyruleno==236); case 235: /* expr ::= MINUS VARIABLE */ yytestcase(yyruleno==235);
{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_VARIABLE; yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_VARIABLE);} { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_VARIABLE; yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_VARIABLE);}
yymsp[-1].minor.yy166 = yylhsminor.yy166; yymsp[-1].minor.yy166 = yylhsminor.yy166;
break; break;
case 237: /* expr ::= BOOL */ case 236: /* expr ::= BOOL */
{ yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_BOOL);} { yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_BOOL);}
yymsp[0].minor.yy166 = yylhsminor.yy166; yymsp[0].minor.yy166 = yylhsminor.yy166;
break; break;
case 238: /* expr ::= NULL */ case 237: /* expr ::= NULL */
{ yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NULL);} { yylhsminor.yy166 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NULL);}
yymsp[0].minor.yy166 = yylhsminor.yy166; yymsp[0].minor.yy166 = yylhsminor.yy166;
break; break;
case 239: /* expr ::= ID LP exprlist RP */ case 238: /* expr ::= ID LP exprlist RP */
{ yylhsminor.yy166 = tSqlExprCreateFunction(yymsp[-1].minor.yy441, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); } { yylhsminor.yy166 = tSqlExprCreateFunction(yymsp[-1].minor.yy441, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); }
yymsp[-3].minor.yy166 = yylhsminor.yy166; yymsp[-3].minor.yy166 = yylhsminor.yy166;
break; break;
case 240: /* expr ::= ID LP STAR RP */ case 239: /* expr ::= ID LP STAR RP */
{ yylhsminor.yy166 = tSqlExprCreateFunction(NULL, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); } { yylhsminor.yy166 = tSqlExprCreateFunction(NULL, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); }
yymsp[-3].minor.yy166 = yylhsminor.yy166; yymsp[-3].minor.yy166 = yylhsminor.yy166;
break; break;
case 241: /* expr ::= expr IS NULL */ case 240: /* expr ::= expr IS NULL */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, NULL, TK_ISNULL);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, NULL, TK_ISNULL);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 242: /* expr ::= expr IS NOT NULL */ case 241: /* expr ::= expr IS NOT NULL */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-3].minor.yy166, NULL, TK_NOTNULL);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-3].minor.yy166, NULL, TK_NOTNULL);}
yymsp[-3].minor.yy166 = yylhsminor.yy166; yymsp[-3].minor.yy166 = yylhsminor.yy166;
break; break;
case 243: /* expr ::= expr LT expr */ case 242: /* expr ::= expr LT expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_LT);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_LT);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 244: /* expr ::= expr GT expr */ case 243: /* expr ::= expr GT expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_GT);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_GT);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 245: /* expr ::= expr LE expr */ case 244: /* expr ::= expr LE expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_LE);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_LE);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 246: /* expr ::= expr GE expr */ case 245: /* expr ::= expr GE expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_GE);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_GE);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 247: /* expr ::= expr NE expr */ case 246: /* expr ::= expr NE expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_NE);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_NE);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 248: /* expr ::= expr EQ expr */ case 247: /* expr ::= expr EQ expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_EQ);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_EQ);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 249: /* expr ::= expr BETWEEN expr AND expr */ case 248: /* expr ::= expr BETWEEN expr AND expr */
{ tSqlExpr* X2 = tSqlExprClone(yymsp[-4].minor.yy166); yylhsminor.yy166 = tSqlExprCreate(tSqlExprCreate(yymsp[-4].minor.yy166, yymsp[-2].minor.yy166, TK_GE), tSqlExprCreate(X2, yymsp[0].minor.yy166, TK_LE), TK_AND);} { tSqlExpr* X2 = tSqlExprClone(yymsp[-4].minor.yy166); yylhsminor.yy166 = tSqlExprCreate(tSqlExprCreate(yymsp[-4].minor.yy166, yymsp[-2].minor.yy166, TK_GE), tSqlExprCreate(X2, yymsp[0].minor.yy166, TK_LE), TK_AND);}
yymsp[-4].minor.yy166 = yylhsminor.yy166; yymsp[-4].minor.yy166 = yylhsminor.yy166;
break; break;
case 250: /* expr ::= expr AND expr */ case 249: /* expr ::= expr AND expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_AND);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_AND);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 251: /* expr ::= expr OR expr */ case 250: /* expr ::= expr OR expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_OR); } {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_OR); }
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 252: /* expr ::= expr PLUS expr */ case 251: /* expr ::= expr PLUS expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_PLUS); } {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_PLUS); }
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 253: /* expr ::= expr MINUS expr */ case 252: /* expr ::= expr MINUS expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_MINUS); } {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_MINUS); }
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 254: /* expr ::= expr STAR expr */ case 253: /* expr ::= expr STAR expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_STAR); } {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_STAR); }
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 255: /* expr ::= expr SLASH expr */ case 254: /* expr ::= expr SLASH expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_DIVIDE);} {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_DIVIDE);}
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 256: /* expr ::= expr REM expr */ case 255: /* expr ::= expr REM expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_REM); } {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_REM); }
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 257: /* expr ::= expr LIKE expr */ case 256: /* expr ::= expr LIKE expr */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_LIKE); } {yylhsminor.yy166 = tSqlExprCreate(yymsp[-2].minor.yy166, yymsp[0].minor.yy166, TK_LIKE); }
yymsp[-2].minor.yy166 = yylhsminor.yy166; yymsp[-2].minor.yy166 = yylhsminor.yy166;
break; break;
case 258: /* expr ::= expr IN LP exprlist RP */ case 257: /* expr ::= expr IN LP exprlist RP */
{yylhsminor.yy166 = tSqlExprCreate(yymsp[-4].minor.yy166, (tSqlExpr*)yymsp[-1].minor.yy441, TK_IN); } {yylhsminor.yy166 = tSqlExprCreate(yymsp[-4].minor.yy166, (tSqlExpr*)yymsp[-1].minor.yy441, TK_IN); }
yymsp[-4].minor.yy166 = yylhsminor.yy166; yymsp[-4].minor.yy166 = yylhsminor.yy166;
break; break;
case 259: /* exprlist ::= exprlist COMMA expritem */ case 258: /* exprlist ::= exprlist COMMA expritem */
{yylhsminor.yy441 = tSqlExprListAppend(yymsp[-2].minor.yy441,yymsp[0].minor.yy166,0, 0);} {yylhsminor.yy441 = tSqlExprListAppend(yymsp[-2].minor.yy441,yymsp[0].minor.yy166,0, 0);}
yymsp[-2].minor.yy441 = yylhsminor.yy441; yymsp[-2].minor.yy441 = yylhsminor.yy441;
break; break;
case 260: /* exprlist ::= expritem */ case 259: /* exprlist ::= expritem */
{yylhsminor.yy441 = tSqlExprListAppend(0,yymsp[0].minor.yy166,0, 0);} {yylhsminor.yy441 = tSqlExprListAppend(0,yymsp[0].minor.yy166,0, 0);}
yymsp[0].minor.yy441 = yylhsminor.yy441; yymsp[0].minor.yy441 = yylhsminor.yy441;
break; break;
case 261: /* expritem ::= expr */ case 260: /* expritem ::= expr */
{yylhsminor.yy166 = yymsp[0].minor.yy166;} {yylhsminor.yy166 = yymsp[0].minor.yy166;}
yymsp[0].minor.yy166 = yylhsminor.yy166; yymsp[0].minor.yy166 = yylhsminor.yy166;
break; break;
case 263: /* cmd ::= RESET QUERY CACHE */ case 262: /* cmd ::= RESET QUERY CACHE */
{ setDCLSqlElems(pInfo, TSDB_SQL_RESET_CACHE, 0);} { setDCLSqlElems(pInfo, TSDB_SQL_RESET_CACHE, 0);}
break; break;
case 264: /* cmd ::= SYNCDB ids REPLICA */ case 263: /* cmd ::= SYNCDB ids REPLICA */
{ setDCLSqlElems(pInfo, TSDB_SQL_SYNC_DB_REPLICA, 1, &yymsp[-1].minor.yy0);} { setDCLSqlElems(pInfo, TSDB_SQL_SYNC_DB_REPLICA, 1, &yymsp[-1].minor.yy0);}
break; break;
case 265: /* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ case 264: /* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, -1); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, -1);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 266: /* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */ case 265: /* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
...@@ -3092,21 +3089,21 @@ static void yy_reduce( ...@@ -3092,21 +3089,21 @@ static void yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 267: /* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ case 266: /* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, -1); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, -1);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 268: /* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ case 267: /* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, -1); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, -1);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 269: /* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */ case 268: /* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
...@@ -3117,7 +3114,7 @@ static void yy_reduce( ...@@ -3117,7 +3114,7 @@ static void yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 270: /* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */ case 269: /* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{ {
yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n; yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
...@@ -3131,7 +3128,7 @@ static void yy_reduce( ...@@ -3131,7 +3128,7 @@ static void yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 271: /* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */ case 270: /* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{ {
yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n; yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n;
...@@ -3143,21 +3140,21 @@ static void yy_reduce( ...@@ -3143,21 +3140,21 @@ static void yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 272: /* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ case 271: /* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, -1); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, -1);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 273: /* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ case 272: /* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, TSDB_SUPER_TABLE); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, TSDB_SUPER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 274: /* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */ case 273: /* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
...@@ -3168,21 +3165,21 @@ static void yy_reduce( ...@@ -3168,21 +3165,21 @@ static void yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 275: /* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ case 274: /* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, TSDB_SUPER_TABLE); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, TSDB_SUPER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 276: /* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ case 275: /* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, TSDB_SUPER_TABLE); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, TSDB_SUPER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 277: /* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */ case 276: /* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
...@@ -3193,7 +3190,7 @@ static void yy_reduce( ...@@ -3193,7 +3190,7 @@ static void yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 278: /* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */ case 277: /* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{ {
yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n; yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
...@@ -3207,7 +3204,7 @@ static void yy_reduce( ...@@ -3207,7 +3204,7 @@ static void yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 279: /* cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */ case 278: /* cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
{ {
yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n; yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n;
...@@ -3219,20 +3216,20 @@ static void yy_reduce( ...@@ -3219,20 +3216,20 @@ static void yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 280: /* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ case 279: /* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
{ {
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, TSDB_SUPER_TABLE); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy441, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, TSDB_SUPER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
} }
break; break;
case 281: /* cmd ::= KILL CONNECTION INTEGER */ case 280: /* cmd ::= KILL CONNECTION INTEGER */
{setKillSql(pInfo, TSDB_SQL_KILL_CONNECTION, &yymsp[0].minor.yy0);} {setKillSql(pInfo, TSDB_SQL_KILL_CONNECTION, &yymsp[0].minor.yy0);}
break; break;
case 282: /* cmd ::= KILL STREAM INTEGER COLON INTEGER */ case 281: /* 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);} {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; break;
case 283: /* cmd ::= KILL QUERY INTEGER COLON INTEGER */ case 282: /* 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);} {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; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册