diff --git a/src/query/src/sql.c b/src/query/src/sql.c
index fd087ba92b429d4bfde5e67183ab83e2d8493996..80553872b4e5dafc602404c8bc8528f45906aaf6 100644
--- a/src/query/src/sql.c
+++ b/src/query/src/sql.c
@@ -238,6 +238,7 @@
#define TK_INSERT 193
#define TK_INTO 194
#define TK_VALUES 195
+#define TK_FILE 196
#endif
/**************** End token definitions ***************************************/
@@ -264,7 +265,7 @@
** the minor type might be the name of the identifier.
** Each non-terminal can have a different minor type.
** Terminal symbols all have the same minor type, though.
-** This macros defines the minor type for terminal
+** This macros defines the minor type for terminal
** symbols.
** YYMINORTYPE is the data type used for all minor types.
** This is typically a union of many types, one of
@@ -297,29 +298,29 @@
#endif
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned short int
-#define YYNOCODE 277
+#define YYNOCODE 278
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SStrToken
typedef union {
int yyinit;
ParseTOKENTYPE yy0;
- SCreateTableSql* yy56;
- int yy70;
- SCreatedTableInfo yy84;
- SRelationInfo* yy114;
- int32_t yy202;
- SIntervalVal yy222;
- SSqlNode* yy224;
- SCreateDbInfo yy246;
- tSqlExpr* yy260;
- TAOS_FIELD yy363;
- SSessionWindowVal yy365;
- SCreateAcctInfo yy377;
- int64_t yy387;
- SArray* yy403;
- SLimitVal yy404;
- tVariant yy488;
- SWindowStateVal yy544;
+ SRelationInfo* yy8;
+ SWindowStateVal yy40;
+ SSqlNode* yy56;
+ SCreateDbInfo yy90;
+ int yy96;
+ int32_t yy104;
+ SSessionWindowVal yy147;
+ SCreatedTableInfo yy152;
+ SLimitVal yy166;
+ SCreateAcctInfo yy171;
+ TAOS_FIELD yy183;
+ int64_t yy325;
+ SIntervalVal yy400;
+ SArray* yy421;
+ tVariant yy430;
+ SCreateTableSql* yy438;
+ tSqlExpr* yy439;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
@@ -335,18 +336,18 @@ typedef union {
#define ParseCTX_FETCH
#define ParseCTX_STORE
#define YYFALLBACK 1
-#define YYNSTATE 364
-#define YYNRULE 292
-#define YYNRULE_WITH_ACTION 292
-#define YYNTOKEN 196
-#define YY_MAX_SHIFT 363
-#define YY_MIN_SHIFTREDUCE 572
-#define YY_MAX_SHIFTREDUCE 863
-#define YY_ERROR_ACTION 864
-#define YY_ACCEPT_ACTION 865
-#define YY_NO_ACTION 866
-#define YY_MIN_REDUCE 867
-#define YY_MAX_REDUCE 1158
+#define YYNSTATE 363
+#define YYNRULE 291
+#define YYNRULE_WITH_ACTION 291
+#define YYNTOKEN 197
+#define YY_MAX_SHIFT 362
+#define YY_MIN_SHIFTREDUCE 571
+#define YY_MAX_SHIFTREDUCE 861
+#define YY_ERROR_ACTION 862
+#define YY_ACCEPT_ACTION 863
+#define YY_NO_ACTION 864
+#define YY_MIN_REDUCE 865
+#define YY_MAX_REDUCE 1155
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
@@ -366,7 +367,7 @@ typedef union {
/* Next are the tables used to determine what action to take based on the
** current state and lookahead token. These tables are used to implement
** functions that take a state number and lookahead value and return an
-** action integer.
+** action integer.
**
** Suppose the action integer is N. Then the action is determined as
** follows
@@ -413,295 +414,295 @@ typedef union {
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
-#define YY_ACTTAB_COUNT (758)
+#define YY_ACTTAB_COUNT (757)
static const YYACTIONTYPE yy_action[] = {
- /* 0 */ 170, 624, 236, 624, 230, 361, 1023, 1045, 242, 625,
- /* 10 */ 247, 625, 1023, 57, 58, 154, 61, 62, 281, 38,
- /* 20 */ 250, 51, 624, 60, 319, 65, 63, 66, 64, 993,
- /* 30 */ 625, 991, 992, 56, 55, 161, 994, 54, 53, 52,
- /* 40 */ 995, 161, 996, 997, 865, 363, 1036, 573, 574, 575,
- /* 50 */ 576, 577, 578, 579, 580, 581, 582, 583, 584, 585,
- /* 60 */ 586, 362, 233, 232, 231, 57, 58, 1020, 61, 62,
- /* 70 */ 208, 660, 250, 51, 1042, 60, 319, 65, 63, 66,
- /* 80 */ 64, 1135, 1009, 279, 278, 56, 55, 80, 98, 54,
- /* 90 */ 53, 52, 57, 58, 1036, 61, 62, 208, 86, 250,
- /* 100 */ 51, 1017, 60, 319, 65, 63, 66, 64, 1134, 1084,
- /* 110 */ 272, 291, 56, 55, 317, 1083, 54, 53, 52, 57,
- /* 120 */ 59, 244, 61, 62, 1011, 1023, 250, 51, 95, 60,
- /* 130 */ 319, 65, 63, 66, 64, 45, 802, 23, 1036, 56,
- /* 140 */ 55, 161, 349, 54, 53, 52, 58, 243, 61, 62,
- /* 150 */ 767, 768, 250, 51, 234, 60, 319, 65, 63, 66,
- /* 160 */ 64, 1006, 1007, 35, 1010, 56, 55, 317, 246, 54,
- /* 170 */ 53, 52, 44, 315, 356, 355, 314, 313, 312, 354,
- /* 180 */ 311, 310, 309, 353, 308, 352, 351, 985, 973, 974,
- /* 190 */ 975, 976, 977, 978, 979, 980, 981, 982, 983, 984,
- /* 200 */ 986, 987, 61, 62, 24, 205, 250, 51, 264, 60,
- /* 210 */ 319, 65, 63, 66, 64, 92, 74, 268, 267, 56,
- /* 220 */ 55, 259, 211, 54, 53, 52, 249, 817, 208, 217,
- /* 230 */ 806, 175, 809, 123, 812, 137, 136, 135, 216, 1135,
- /* 240 */ 249, 817, 324, 86, 806, 349, 809, 161, 812, 251,
- /* 250 */ 916, 206, 65, 63, 66, 64, 75, 189, 228, 229,
- /* 260 */ 56, 55, 320, 926, 54, 53, 52, 5, 41, 179,
- /* 270 */ 189, 624, 228, 229, 178, 104, 109, 100, 108, 625,
- /* 280 */ 45, 732, 357, 954, 729, 38, 730, 38, 731, 121,
- /* 290 */ 115, 126, 253, 304, 38, 808, 125, 811, 131, 134,
- /* 300 */ 124, 807, 271, 810, 78, 258, 38, 128, 67, 208,
- /* 310 */ 212, 224, 255, 256, 3, 190, 199, 197, 195, 293,
- /* 320 */ 1135, 91, 67, 194, 141, 140, 139, 138, 1131, 240,
- /* 330 */ 38, 241, 38, 1020, 44, 1020, 356, 355, 328, 259,
- /* 340 */ 38, 354, 1020, 818, 813, 353, 38, 352, 351, 176,
- /* 350 */ 814, 748, 38, 29, 1019, 38, 745, 818, 813, 1130,
- /* 360 */ 38, 56, 55, 708, 814, 54, 53, 52, 254, 259,
- /* 370 */ 252, 14, 327, 326, 329, 94, 330, 784, 1020, 1021,
- /* 380 */ 1020, 260, 9, 257, 331, 334, 333, 273, 1020, 79,
- /* 390 */ 335, 339, 338, 93, 1020, 917, 336, 733, 734, 337,
- /* 400 */ 1020, 39, 189, 1020, 341, 97, 83, 81, 1020, 54,
- /* 410 */ 53, 52, 360, 359, 146, 815, 152, 150, 149, 1,
- /* 420 */ 177, 816, 84, 1008, 764, 774, 775, 718, 71, 804,
- /* 430 */ 248, 296, 720, 298, 783, 719, 838, 752, 156, 68,
- /* 440 */ 26, 39, 34, 275, 321, 39, 68, 96, 819, 68,
- /* 450 */ 25, 16, 6, 15, 623, 114, 18, 113, 17, 275,
- /* 460 */ 77, 737, 25, 738, 735, 805, 736, 20, 25, 19,
- /* 470 */ 72, 120, 22, 119, 21, 299, 133, 132, 1129, 226,
- /* 480 */ 227, 209, 210, 213, 207, 214, 215, 219, 1022, 220,
- /* 490 */ 1154, 1146, 707, 221, 218, 204, 269, 1094, 1093, 238,
- /* 500 */ 1090, 1089, 239, 340, 171, 153, 1044, 1055, 48, 151,
- /* 510 */ 1052, 1053, 1037, 276, 1057, 155, 160, 287, 1018, 1076,
- /* 520 */ 1075, 280, 172, 1016, 235, 282, 173, 164, 174, 1034,
- /* 530 */ 931, 301, 302, 303, 306, 307, 46, 763, 202, 163,
- /* 540 */ 284, 162, 294, 42, 318, 290, 165, 821, 76, 925,
- /* 550 */ 50, 292, 73, 325, 1153, 111, 1152, 166, 286, 1149,
- /* 560 */ 180, 332, 1145, 288, 117, 1144, 1141, 181, 167, 283,
- /* 570 */ 951, 33, 43, 40, 47, 203, 49, 913, 127, 911,
- /* 580 */ 129, 130, 909, 908, 261, 192, 193, 905, 904, 903,
- /* 590 */ 902, 901, 900, 899, 196, 198, 305, 896, 894, 892,
- /* 600 */ 890, 200, 887, 201, 350, 274, 82, 87, 285, 1077,
- /* 610 */ 122, 342, 343, 344, 345, 346, 347, 348, 225, 358,
- /* 620 */ 245, 300, 863, 262, 263, 862, 222, 223, 265, 266,
- /* 630 */ 861, 105, 930, 929, 844, 843, 270, 106, 275, 295,
- /* 640 */ 10, 277, 740, 85, 88, 907, 906, 30, 142, 898,
- /* 650 */ 183, 952, 184, 185, 182, 186, 188, 187, 143, 144,
- /* 660 */ 897, 989, 145, 889, 953, 888, 4, 765, 157, 2,
- /* 670 */ 776, 168, 169, 158, 159, 770, 89, 999, 772, 90,
- /* 680 */ 237, 289, 31, 11, 12, 32, 13, 27, 297, 28,
- /* 690 */ 97, 99, 102, 36, 101, 638, 37, 103, 673, 671,
- /* 700 */ 670, 669, 667, 666, 665, 662, 316, 107, 628, 7,
- /* 710 */ 822, 820, 8, 323, 110, 112, 322, 69, 70, 116,
- /* 720 */ 710, 39, 118, 709, 706, 654, 652, 644, 650, 646,
- /* 730 */ 648, 642, 640, 676, 675, 674, 672, 668, 664, 663,
- /* 740 */ 191, 626, 590, 588, 867, 866, 866, 866, 866, 866,
- /* 750 */ 866, 866, 866, 866, 866, 866, 147, 148,
+ /* 0 */ 169, 622, 235, 622, 229, 360, 1020, 1042, 241, 623,
+ /* 10 */ 246, 623, 1020, 57, 58, 153, 61, 62, 280, 38,
+ /* 20 */ 249, 51, 622, 60, 318, 65, 63, 66, 64, 990,
+ /* 30 */ 623, 988, 989, 56, 55, 160, 991, 54, 53, 52,
+ /* 40 */ 992, 160, 993, 994, 863, 362, 1033, 572, 573, 574,
+ /* 50 */ 575, 576, 577, 578, 579, 580, 581, 582, 583, 584,
+ /* 60 */ 585, 361, 232, 231, 230, 57, 58, 1017, 61, 62,
+ /* 70 */ 207, 658, 249, 51, 1039, 60, 318, 65, 63, 66,
+ /* 80 */ 64, 1132, 1006, 278, 277, 56, 55, 80, 98, 54,
+ /* 90 */ 53, 52, 57, 58, 1033, 61, 62, 207, 86, 249,
+ /* 100 */ 51, 1014, 60, 318, 65, 63, 66, 64, 1131, 1081,
+ /* 110 */ 271, 290, 56, 55, 316, 1080, 54, 53, 52, 57,
+ /* 120 */ 59, 243, 61, 62, 1008, 1020, 249, 51, 95, 60,
+ /* 130 */ 318, 65, 63, 66, 64, 45, 800, 348, 1033, 56,
+ /* 140 */ 55, 160, 1019, 54, 53, 52, 58, 242, 61, 62,
+ /* 150 */ 765, 766, 249, 51, 233, 60, 318, 65, 63, 66,
+ /* 160 */ 64, 1003, 1004, 35, 1007, 56, 55, 316, 245, 54,
+ /* 170 */ 53, 52, 44, 314, 355, 354, 313, 312, 311, 353,
+ /* 180 */ 310, 309, 308, 352, 307, 351, 350, 982, 970, 971,
+ /* 190 */ 972, 973, 974, 975, 976, 977, 978, 979, 980, 981,
+ /* 200 */ 983, 984, 61, 62, 24, 23, 249, 51, 263, 60,
+ /* 210 */ 318, 65, 63, 66, 64, 92, 79, 267, 266, 56,
+ /* 220 */ 55, 123, 210, 54, 53, 52, 248, 815, 207, 216,
+ /* 230 */ 804, 93, 807, 348, 810, 137, 136, 135, 215, 1132,
+ /* 240 */ 248, 815, 323, 86, 804, 81, 807, 258, 810, 250,
+ /* 250 */ 1005, 204, 65, 63, 66, 64, 160, 174, 227, 228,
+ /* 260 */ 56, 55, 319, 913, 54, 53, 52, 5, 41, 178,
+ /* 270 */ 188, 622, 227, 228, 177, 104, 109, 100, 108, 623,
+ /* 280 */ 45, 730, 356, 951, 727, 38, 728, 38, 729, 121,
+ /* 290 */ 115, 126, 252, 303, 38, 16, 125, 15, 131, 134,
+ /* 300 */ 124, 205, 270, 38, 78, 257, 782, 128, 67, 207,
+ /* 310 */ 746, 223, 254, 255, 3, 189, 198, 196, 194, 806,
+ /* 320 */ 1132, 809, 67, 193, 141, 140, 139, 138, 292, 239,
+ /* 330 */ 91, 240, 923, 1017, 44, 1017, 355, 354, 327, 188,
+ /* 340 */ 38, 353, 1017, 816, 811, 352, 38, 351, 350, 706,
+ /* 350 */ 812, 1016, 805, 29, 808, 211, 38, 816, 811, 38,
+ /* 360 */ 1091, 56, 55, 781, 812, 54, 53, 52, 253, 38,
+ /* 370 */ 251, 38, 326, 325, 38, 14, 1128, 338, 337, 94,
+ /* 380 */ 914, 259, 743, 256, 328, 333, 332, 188, 1017, 258,
+ /* 390 */ 329, 54, 53, 52, 1017, 258, 750, 731, 732, 175,
+ /* 400 */ 330, 1, 176, 334, 1017, 1018, 272, 1017, 9, 97,
+ /* 410 */ 83, 84, 34, 335, 71, 336, 762, 1017, 340, 1017,
+ /* 420 */ 39, 772, 1017, 359, 358, 599, 151, 149, 148, 773,
+ /* 430 */ 155, 74, 716, 802, 320, 68, 295, 718, 77, 813,
+ /* 440 */ 247, 133, 132, 26, 297, 298, 39, 274, 274, 717,
+ /* 450 */ 39, 68, 836, 817, 621, 114, 72, 113, 96, 18,
+ /* 460 */ 1127, 17, 6, 68, 1126, 225, 25, 25, 25, 803,
+ /* 470 */ 705, 75, 814, 735, 733, 736, 734, 20, 226, 19,
+ /* 480 */ 120, 22, 119, 21, 208, 209, 212, 206, 213, 1151,
+ /* 490 */ 214, 1143, 1034, 1090, 218, 237, 219, 220, 217, 203,
+ /* 500 */ 1087, 1086, 238, 339, 268, 152, 1041, 1052, 48, 1073,
+ /* 510 */ 1049, 1050, 275, 1072, 1015, 1054, 150, 154, 159, 286,
+ /* 520 */ 170, 171, 279, 1013, 172, 173, 162, 234, 281, 283,
+ /* 530 */ 928, 163, 165, 1031, 761, 161, 300, 819, 301, 302,
+ /* 540 */ 305, 306, 46, 201, 293, 164, 42, 289, 291, 317,
+ /* 550 */ 922, 324, 76, 73, 50, 287, 1150, 166, 111, 1149,
+ /* 560 */ 282, 1146, 285, 167, 179, 49, 331, 1142, 304, 122,
+ /* 570 */ 349, 117, 1141, 1138, 180, 948, 43, 40, 47, 341,
+ /* 580 */ 202, 910, 127, 908, 129, 130, 906, 905, 260, 191,
+ /* 590 */ 192, 902, 901, 900, 899, 898, 897, 896, 195, 197,
+ /* 600 */ 892, 890, 888, 199, 885, 200, 342, 273, 82, 87,
+ /* 610 */ 343, 284, 1074, 344, 345, 346, 347, 357, 861, 261,
+ /* 620 */ 262, 860, 224, 244, 299, 264, 265, 859, 842, 841,
+ /* 630 */ 269, 274, 221, 10, 85, 294, 927, 105, 926, 222,
+ /* 640 */ 106, 738, 276, 30, 88, 763, 904, 156, 903, 774,
+ /* 650 */ 142, 143, 895, 183, 182, 949, 181, 184, 185, 187,
+ /* 660 */ 186, 144, 894, 887, 950, 145, 986, 886, 2, 157,
+ /* 670 */ 168, 768, 33, 4, 158, 89, 236, 770, 90, 996,
+ /* 680 */ 288, 31, 11, 32, 12, 13, 27, 296, 28, 97,
+ /* 690 */ 99, 102, 36, 101, 636, 37, 103, 671, 669, 668,
+ /* 700 */ 667, 665, 664, 663, 660, 626, 315, 107, 7, 820,
+ /* 710 */ 818, 321, 8, 322, 110, 112, 69, 70, 116, 708,
+ /* 720 */ 707, 39, 118, 704, 652, 650, 642, 648, 644, 646,
+ /* 730 */ 640, 638, 674, 673, 672, 670, 666, 662, 661, 190,
+ /* 740 */ 589, 624, 587, 865, 864, 864, 864, 864, 864, 864,
+ /* 750 */ 864, 864, 864, 864, 864, 146, 147,
};
static const YYCODETYPE yy_lookahead[] = {
- /* 0 */ 252, 1, 244, 1, 198, 199, 248, 199, 244, 9,
- /* 10 */ 205, 9, 248, 13, 14, 199, 16, 17, 270, 199,
- /* 20 */ 20, 21, 1, 23, 24, 25, 26, 27, 28, 222,
- /* 30 */ 9, 224, 225, 33, 34, 199, 229, 37, 38, 39,
- /* 40 */ 233, 199, 235, 236, 196, 197, 246, 45, 46, 47,
- /* 50 */ 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
- /* 60 */ 58, 59, 262, 243, 62, 13, 14, 247, 16, 17,
- /* 70 */ 265, 5, 20, 21, 266, 23, 24, 25, 26, 27,
- /* 80 */ 28, 276, 0, 267, 268, 33, 34, 87, 206, 37,
- /* 90 */ 38, 39, 13, 14, 246, 16, 17, 265, 83, 20,
- /* 100 */ 21, 199, 23, 24, 25, 26, 27, 28, 276, 273,
- /* 110 */ 262, 275, 33, 34, 85, 273, 37, 38, 39, 13,
- /* 120 */ 14, 244, 16, 17, 242, 248, 20, 21, 206, 23,
- /* 130 */ 24, 25, 26, 27, 28, 120, 84, 265, 246, 33,
- /* 140 */ 34, 199, 91, 37, 38, 39, 14, 245, 16, 17,
- /* 150 */ 126, 127, 20, 21, 262, 23, 24, 25, 26, 27,
- /* 160 */ 28, 239, 240, 241, 242, 33, 34, 85, 205, 37,
- /* 170 */ 38, 39, 99, 100, 101, 102, 103, 104, 105, 106,
- /* 180 */ 107, 108, 109, 110, 111, 112, 113, 222, 223, 224,
- /* 190 */ 225, 226, 227, 228, 229, 230, 231, 232, 233, 234,
- /* 200 */ 235, 236, 16, 17, 44, 265, 20, 21, 143, 23,
- /* 210 */ 24, 25, 26, 27, 28, 273, 98, 152, 153, 33,
- /* 220 */ 34, 199, 62, 37, 38, 39, 1, 2, 265, 69,
- /* 230 */ 5, 209, 7, 79, 9, 75, 76, 77, 78, 276,
- /* 240 */ 1, 2, 82, 83, 5, 91, 7, 199, 9, 205,
- /* 250 */ 204, 265, 25, 26, 27, 28, 138, 211, 33, 34,
- /* 260 */ 33, 34, 37, 204, 37, 38, 39, 63, 64, 65,
- /* 270 */ 211, 1, 33, 34, 70, 71, 72, 73, 74, 9,
- /* 280 */ 120, 2, 220, 221, 5, 199, 7, 199, 9, 63,
- /* 290 */ 64, 65, 69, 89, 199, 5, 70, 7, 72, 73,
- /* 300 */ 74, 5, 142, 7, 144, 69, 199, 81, 83, 265,
- /* 310 */ 265, 151, 33, 34, 202, 203, 63, 64, 65, 271,
- /* 320 */ 276, 273, 83, 70, 71, 72, 73, 74, 265, 243,
- /* 330 */ 199, 243, 199, 247, 99, 247, 101, 102, 243, 199,
- /* 340 */ 199, 106, 247, 118, 119, 110, 199, 112, 113, 209,
- /* 350 */ 125, 37, 199, 83, 247, 199, 98, 118, 119, 265,
- /* 360 */ 199, 33, 34, 5, 125, 37, 38, 39, 145, 199,
- /* 370 */ 147, 83, 149, 150, 243, 87, 243, 77, 247, 209,
- /* 380 */ 247, 145, 124, 147, 243, 149, 150, 84, 247, 206,
- /* 390 */ 243, 33, 34, 249, 247, 204, 243, 118, 119, 243,
- /* 400 */ 247, 98, 211, 247, 243, 117, 84, 263, 247, 37,
- /* 410 */ 38, 39, 66, 67, 68, 125, 63, 64, 65, 207,
- /* 420 */ 208, 125, 84, 240, 84, 84, 84, 84, 98, 1,
- /* 430 */ 61, 84, 84, 84, 134, 84, 84, 123, 98, 98,
- /* 440 */ 98, 98, 83, 121, 15, 98, 98, 98, 84, 98,
- /* 450 */ 98, 146, 83, 148, 84, 146, 146, 148, 148, 121,
- /* 460 */ 83, 5, 98, 7, 5, 37, 7, 146, 98, 148,
- /* 470 */ 140, 146, 146, 148, 148, 116, 79, 80, 265, 265,
- /* 480 */ 265, 265, 265, 265, 265, 265, 265, 265, 248, 265,
- /* 490 */ 248, 248, 115, 265, 265, 265, 199, 238, 238, 238,
- /* 500 */ 238, 238, 238, 238, 250, 199, 199, 199, 264, 61,
- /* 510 */ 199, 199, 246, 246, 199, 199, 199, 199, 246, 274,
- /* 520 */ 274, 269, 199, 199, 269, 269, 199, 258, 199, 261,
- /* 530 */ 199, 199, 199, 199, 199, 199, 199, 125, 199, 259,
- /* 540 */ 269, 260, 132, 199, 199, 130, 257, 118, 137, 199,
- /* 550 */ 136, 135, 139, 199, 199, 199, 199, 256, 128, 199,
- /* 560 */ 199, 199, 199, 129, 199, 199, 199, 199, 255, 131,
- /* 570 */ 199, 251, 199, 199, 199, 199, 141, 199, 199, 199,
- /* 580 */ 199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
- /* 590 */ 199, 199, 199, 199, 199, 199, 90, 199, 199, 199,
- /* 600 */ 199, 199, 199, 199, 114, 200, 200, 200, 200, 200,
- /* 610 */ 97, 96, 51, 93, 95, 55, 94, 92, 200, 85,
- /* 620 */ 200, 200, 5, 154, 5, 5, 200, 200, 154, 5,
- /* 630 */ 5, 206, 210, 210, 101, 100, 143, 206, 121, 116,
- /* 640 */ 83, 98, 84, 122, 98, 200, 200, 83, 201, 200,
- /* 650 */ 217, 219, 213, 216, 218, 214, 212, 215, 201, 201,
- /* 660 */ 200, 237, 201, 200, 221, 200, 202, 84, 83, 207,
- /* 670 */ 84, 254, 253, 83, 98, 84, 83, 237, 84, 83,
- /* 680 */ 1, 83, 98, 133, 133, 98, 83, 83, 116, 83,
- /* 690 */ 117, 79, 71, 88, 87, 5, 88, 87, 9, 5,
- /* 700 */ 5, 5, 5, 5, 5, 5, 15, 79, 86, 83,
- /* 710 */ 118, 84, 83, 59, 148, 148, 24, 16, 16, 148,
- /* 720 */ 5, 98, 148, 5, 84, 5, 5, 5, 5, 5,
- /* 730 */ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- /* 740 */ 98, 86, 61, 60, 0, 277, 277, 277, 277, 277,
- /* 750 */ 277, 277, 277, 277, 277, 277, 21, 21, 277, 277,
- /* 760 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 770 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 780 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 790 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 800 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 810 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 820 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 830 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 840 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 850 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 860 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 870 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 880 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 890 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 900 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 910 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 920 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 930 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 940 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277,
- /* 950 */ 277, 277, 277, 277,
+ /* 0 */ 253, 1, 245, 1, 199, 200, 249, 200, 245, 9,
+ /* 10 */ 206, 9, 249, 13, 14, 200, 16, 17, 271, 200,
+ /* 20 */ 20, 21, 1, 23, 24, 25, 26, 27, 28, 223,
+ /* 30 */ 9, 225, 226, 33, 34, 200, 230, 37, 38, 39,
+ /* 40 */ 234, 200, 236, 237, 197, 198, 247, 45, 46, 47,
+ /* 50 */ 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
+ /* 60 */ 58, 59, 263, 244, 62, 13, 14, 248, 16, 17,
+ /* 70 */ 266, 5, 20, 21, 267, 23, 24, 25, 26, 27,
+ /* 80 */ 28, 277, 0, 268, 269, 33, 34, 87, 207, 37,
+ /* 90 */ 38, 39, 13, 14, 247, 16, 17, 266, 83, 20,
+ /* 100 */ 21, 200, 23, 24, 25, 26, 27, 28, 277, 274,
+ /* 110 */ 263, 276, 33, 34, 85, 274, 37, 38, 39, 13,
+ /* 120 */ 14, 245, 16, 17, 243, 249, 20, 21, 207, 23,
+ /* 130 */ 24, 25, 26, 27, 28, 120, 84, 91, 247, 33,
+ /* 140 */ 34, 200, 249, 37, 38, 39, 14, 246, 16, 17,
+ /* 150 */ 126, 127, 20, 21, 263, 23, 24, 25, 26, 27,
+ /* 160 */ 28, 240, 241, 242, 243, 33, 34, 85, 206, 37,
+ /* 170 */ 38, 39, 99, 100, 101, 102, 103, 104, 105, 106,
+ /* 180 */ 107, 108, 109, 110, 111, 112, 113, 223, 224, 225,
+ /* 190 */ 226, 227, 228, 229, 230, 231, 232, 233, 234, 235,
+ /* 200 */ 236, 237, 16, 17, 44, 266, 20, 21, 143, 23,
+ /* 210 */ 24, 25, 26, 27, 28, 274, 207, 152, 153, 33,
+ /* 220 */ 34, 79, 62, 37, 38, 39, 1, 2, 266, 69,
+ /* 230 */ 5, 250, 7, 91, 9, 75, 76, 77, 78, 277,
+ /* 240 */ 1, 2, 82, 83, 5, 264, 7, 200, 9, 206,
+ /* 250 */ 241, 266, 25, 26, 27, 28, 200, 210, 33, 34,
+ /* 260 */ 33, 34, 37, 205, 37, 38, 39, 63, 64, 65,
+ /* 270 */ 212, 1, 33, 34, 70, 71, 72, 73, 74, 9,
+ /* 280 */ 120, 2, 221, 222, 5, 200, 7, 200, 9, 63,
+ /* 290 */ 64, 65, 69, 89, 200, 146, 70, 148, 72, 73,
+ /* 300 */ 74, 266, 142, 200, 144, 69, 77, 81, 83, 266,
+ /* 310 */ 37, 151, 33, 34, 203, 204, 63, 64, 65, 5,
+ /* 320 */ 277, 7, 83, 70, 71, 72, 73, 74, 272, 244,
+ /* 330 */ 274, 244, 205, 248, 99, 248, 101, 102, 244, 212,
+ /* 340 */ 200, 106, 248, 118, 119, 110, 200, 112, 113, 5,
+ /* 350 */ 125, 248, 5, 83, 7, 266, 200, 118, 119, 200,
+ /* 360 */ 239, 33, 34, 134, 125, 37, 38, 39, 145, 200,
+ /* 370 */ 147, 200, 149, 150, 200, 83, 266, 33, 34, 87,
+ /* 380 */ 205, 145, 98, 147, 244, 149, 150, 212, 248, 200,
+ /* 390 */ 244, 37, 38, 39, 248, 200, 123, 118, 119, 210,
+ /* 400 */ 244, 208, 209, 244, 248, 210, 84, 248, 124, 117,
+ /* 410 */ 84, 84, 83, 244, 98, 244, 84, 248, 244, 248,
+ /* 420 */ 98, 84, 248, 66, 67, 68, 63, 64, 65, 84,
+ /* 430 */ 98, 98, 84, 1, 15, 98, 84, 84, 83, 125,
+ /* 440 */ 61, 79, 80, 98, 84, 116, 98, 121, 121, 84,
+ /* 450 */ 98, 98, 84, 84, 84, 146, 140, 148, 98, 146,
+ /* 460 */ 266, 148, 83, 98, 266, 266, 98, 98, 98, 37,
+ /* 470 */ 115, 138, 125, 5, 5, 7, 7, 146, 266, 148,
+ /* 480 */ 146, 146, 148, 148, 266, 266, 266, 266, 266, 249,
+ /* 490 */ 266, 249, 247, 239, 266, 239, 266, 266, 266, 266,
+ /* 500 */ 239, 239, 239, 239, 200, 200, 200, 200, 265, 275,
+ /* 510 */ 200, 200, 247, 275, 247, 200, 61, 200, 200, 200,
+ /* 520 */ 251, 200, 270, 200, 200, 200, 260, 270, 270, 270,
+ /* 530 */ 200, 259, 257, 262, 125, 261, 200, 118, 200, 200,
+ /* 540 */ 200, 200, 200, 200, 132, 258, 200, 130, 135, 200,
+ /* 550 */ 200, 200, 137, 139, 136, 129, 200, 256, 200, 200,
+ /* 560 */ 131, 200, 128, 255, 200, 141, 200, 200, 90, 97,
+ /* 570 */ 114, 200, 200, 200, 200, 200, 200, 200, 200, 96,
+ /* 580 */ 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
+ /* 590 */ 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
+ /* 600 */ 200, 200, 200, 200, 200, 200, 51, 201, 201, 201,
+ /* 610 */ 93, 201, 201, 95, 55, 94, 92, 85, 5, 154,
+ /* 620 */ 5, 5, 201, 201, 201, 154, 5, 5, 101, 100,
+ /* 630 */ 143, 121, 201, 83, 122, 116, 211, 207, 211, 201,
+ /* 640 */ 207, 84, 98, 83, 98, 84, 201, 83, 201, 84,
+ /* 650 */ 202, 202, 201, 214, 218, 220, 219, 217, 215, 213,
+ /* 660 */ 216, 202, 201, 201, 222, 202, 238, 201, 208, 83,
+ /* 670 */ 254, 84, 252, 203, 98, 83, 1, 84, 83, 238,
+ /* 680 */ 83, 98, 133, 98, 133, 83, 83, 116, 83, 117,
+ /* 690 */ 79, 71, 88, 87, 5, 88, 87, 9, 5, 5,
+ /* 700 */ 5, 5, 5, 5, 5, 86, 15, 79, 83, 118,
+ /* 710 */ 84, 24, 83, 59, 148, 148, 16, 16, 148, 5,
+ /* 720 */ 5, 98, 148, 84, 5, 5, 5, 5, 5, 5,
+ /* 730 */ 5, 5, 5, 5, 5, 5, 5, 5, 5, 98,
+ /* 740 */ 61, 86, 60, 0, 278, 278, 278, 278, 278, 278,
+ /* 750 */ 278, 278, 278, 278, 278, 21, 21, 278, 278, 278,
+ /* 760 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 770 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 780 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 790 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 800 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 810 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 820 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 830 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 840 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 850 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 860 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 870 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 880 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 890 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 900 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 910 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 920 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 930 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 940 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278,
+ /* 950 */ 278, 278, 278, 278,
};
-#define YY_SHIFT_COUNT (363)
+#define YY_SHIFT_COUNT (362)
#define YY_SHIFT_MIN (0)
-#define YY_SHIFT_MAX (744)
+#define YY_SHIFT_MAX (743)
static const unsigned short int yy_shift_ofst[] = {
- /* 0 */ 160, 73, 73, 235, 235, 29, 225, 239, 239, 270,
- /* 10 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
- /* 20 */ 21, 21, 21, 0, 2, 239, 279, 279, 279, 15,
- /* 30 */ 15, 21, 21, 24, 21, 82, 21, 21, 21, 21,
- /* 40 */ 154, 29, 51, 51, 66, 758, 758, 758, 239, 239,
- /* 50 */ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
- /* 60 */ 239, 239, 239, 239, 239, 239, 239, 239, 279, 279,
- /* 70 */ 279, 358, 358, 358, 358, 358, 358, 358, 21, 21,
- /* 80 */ 21, 314, 21, 21, 21, 15, 15, 21, 21, 21,
- /* 90 */ 21, 300, 300, 258, 15, 21, 21, 21, 21, 21,
- /* 100 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
- /* 110 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
- /* 120 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
- /* 130 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
- /* 140 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
- /* 150 */ 21, 21, 21, 448, 448, 448, 412, 412, 412, 412,
- /* 160 */ 448, 448, 411, 413, 410, 414, 416, 415, 434, 430,
- /* 170 */ 438, 435, 448, 448, 448, 506, 506, 490, 29, 29,
- /* 180 */ 448, 448, 513, 515, 561, 520, 519, 560, 522, 525,
- /* 190 */ 490, 66, 448, 448, 534, 534, 448, 534, 448, 534,
- /* 200 */ 448, 448, 758, 758, 52, 79, 79, 106, 79, 132,
- /* 210 */ 186, 204, 227, 227, 227, 227, 226, 253, 328, 328,
- /* 220 */ 328, 328, 223, 236, 65, 288, 372, 372, 290, 296,
- /* 230 */ 346, 353, 303, 322, 338, 340, 341, 342, 330, 118,
- /* 240 */ 343, 347, 348, 349, 351, 359, 352, 364, 428, 369,
- /* 250 */ 429, 370, 305, 309, 310, 456, 459, 321, 325, 377,
- /* 260 */ 326, 397, 617, 469, 619, 620, 474, 624, 625, 533,
- /* 270 */ 535, 493, 517, 523, 557, 521, 558, 564, 543, 546,
- /* 280 */ 583, 585, 586, 590, 591, 576, 593, 594, 596, 679,
- /* 290 */ 598, 584, 550, 587, 551, 603, 523, 604, 572, 606,
- /* 300 */ 573, 612, 605, 607, 621, 690, 608, 610, 689, 694,
- /* 310 */ 695, 696, 697, 698, 699, 700, 622, 691, 628, 626,
- /* 320 */ 627, 592, 629, 692, 654, 701, 566, 567, 623, 623,
- /* 330 */ 623, 623, 702, 571, 574, 623, 623, 623, 715, 718,
- /* 340 */ 640, 623, 720, 721, 722, 723, 724, 725, 726, 727,
- /* 350 */ 728, 729, 730, 731, 732, 733, 734, 642, 655, 735,
- /* 360 */ 736, 681, 683, 744,
+ /* 0 */ 160, 73, 73, 235, 235, 29, 225, 239, 239, 270,
+ /* 10 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
+ /* 20 */ 21, 21, 21, 0, 2, 239, 279, 279, 279, 15,
+ /* 30 */ 15, 21, 21, 24, 21, 82, 21, 21, 21, 21,
+ /* 40 */ 142, 29, 46, 46, 66, 757, 757, 757, 239, 239,
+ /* 50 */ 239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
+ /* 60 */ 239, 239, 239, 239, 239, 239, 239, 239, 279, 279,
+ /* 70 */ 279, 344, 344, 344, 344, 344, 344, 344, 21, 21,
+ /* 80 */ 21, 273, 21, 21, 21, 15, 15, 21, 21, 21,
+ /* 90 */ 21, 229, 229, 284, 15, 21, 21, 21, 21, 21,
+ /* 100 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
+ /* 110 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
+ /* 120 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
+ /* 130 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
+ /* 140 */ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
+ /* 150 */ 21, 21, 455, 455, 455, 409, 409, 409, 409, 455,
+ /* 160 */ 455, 415, 414, 412, 418, 413, 417, 426, 434, 429,
+ /* 170 */ 424, 455, 455, 455, 478, 478, 456, 29, 29, 455,
+ /* 180 */ 455, 472, 483, 555, 517, 518, 559, 521, 524, 456,
+ /* 190 */ 66, 455, 455, 532, 532, 455, 532, 455, 532, 455,
+ /* 200 */ 455, 757, 757, 52, 79, 79, 106, 79, 132, 186,
+ /* 210 */ 204, 227, 227, 227, 227, 226, 253, 328, 328, 328,
+ /* 220 */ 328, 223, 236, 65, 292, 354, 354, 314, 347, 357,
+ /* 230 */ 363, 322, 326, 327, 332, 337, 345, 316, 333, 348,
+ /* 240 */ 352, 353, 360, 365, 329, 368, 369, 432, 379, 419,
+ /* 250 */ 370, 149, 309, 313, 468, 469, 331, 334, 355, 335,
+ /* 260 */ 362, 613, 465, 615, 616, 471, 621, 622, 527, 529,
+ /* 270 */ 487, 510, 519, 550, 512, 557, 560, 544, 546, 561,
+ /* 280 */ 564, 565, 586, 587, 576, 592, 593, 595, 675, 597,
+ /* 290 */ 583, 549, 585, 551, 602, 519, 603, 571, 605, 572,
+ /* 300 */ 611, 604, 606, 620, 689, 607, 609, 688, 693, 694,
+ /* 310 */ 695, 696, 697, 698, 699, 619, 691, 628, 625, 626,
+ /* 320 */ 591, 629, 687, 654, 700, 566, 567, 623, 623, 623,
+ /* 330 */ 623, 701, 570, 574, 623, 623, 623, 714, 715, 639,
+ /* 340 */ 623, 719, 720, 721, 722, 723, 724, 725, 726, 727,
+ /* 350 */ 728, 729, 730, 731, 732, 733, 641, 655, 734, 735,
+ /* 360 */ 679, 682, 743,
};
-#define YY_REDUCE_COUNT (203)
-#define YY_REDUCE_MIN (-252)
-#define YY_REDUCE_MAX (465)
+#define YY_REDUCE_COUNT (202)
+#define YY_REDUCE_MIN (-253)
+#define YY_REDUCE_MAX (470)
static const short yy_reduce_ofst[] = {
- /* 0 */ -152, -35, -35, -193, -193, -78, -195, -37, 44, -184,
- /* 10 */ -180, -164, 48, 86, 88, 95, 131, 133, 141, 147,
- /* 20 */ 153, 156, 161, -192, -194, -168, -242, -236, -123, -200,
- /* 30 */ -108, -158, -58, -252, -98, -118, 22, 140, 170, 107,
- /* 40 */ 46, 183, 59, 191, 62, 144, 212, 112, -128, -60,
- /* 50 */ -14, 45, 63, 94, 213, 214, 215, 216, 217, 218,
- /* 60 */ 219, 220, 221, 222, 224, 228, 229, 230, 240, 242,
- /* 70 */ 243, 259, 260, 261, 262, 263, 264, 265, 297, 306,
- /* 80 */ 307, 244, 308, 311, 312, 266, 267, 315, 316, 317,
- /* 90 */ 318, 245, 246, 254, 272, 323, 324, 327, 329, 331,
- /* 100 */ 332, 333, 334, 335, 336, 337, 339, 344, 345, 350,
- /* 110 */ 354, 355, 356, 357, 360, 361, 362, 363, 365, 366,
- /* 120 */ 367, 368, 371, 373, 374, 375, 376, 378, 379, 380,
- /* 130 */ 381, 382, 383, 384, 385, 386, 387, 388, 389, 390,
- /* 140 */ 391, 392, 393, 394, 395, 396, 398, 399, 400, 401,
- /* 150 */ 402, 403, 404, 405, 406, 407, 252, 255, 256, 271,
- /* 160 */ 408, 409, 268, 281, 280, 269, 289, 301, 313, 417,
- /* 170 */ 419, 320, 418, 420, 421, 422, 423, 424, 425, 431,
- /* 180 */ 426, 427, 432, 436, 433, 439, 437, 441, 442, 444,
- /* 190 */ 440, 443, 445, 446, 447, 457, 449, 458, 460, 461,
- /* 200 */ 463, 465, 462, 464,
+ /* 0 */ -153, -36, -36, -194, -194, -79, -196, -38, 43, -185,
+ /* 10 */ -181, -165, 56, 85, 87, 94, 140, 146, 156, 159,
+ /* 20 */ 169, 171, 174, -193, -195, -169, -243, -237, -124, -201,
+ /* 30 */ -109, -159, -59, -253, -99, -119, 47, 189, 195, 103,
+ /* 40 */ 58, 9, 127, 175, 61, -19, 193, 111, -61, -15,
+ /* 50 */ 35, 89, 110, 194, 198, 199, 212, 218, 219, 220,
+ /* 60 */ 221, 222, 224, 228, 230, 231, 232, 233, -107, 240,
+ /* 70 */ 242, 121, 254, 256, 261, 262, 263, 264, 304, 305,
+ /* 80 */ 306, 243, 307, 310, 311, 245, 265, 315, 317, 318,
+ /* 90 */ 319, 234, 238, 269, 267, 321, 323, 324, 325, 330,
+ /* 100 */ 336, 338, 339, 340, 341, 342, 343, 346, 349, 350,
+ /* 110 */ 351, 356, 358, 359, 361, 364, 366, 367, 371, 372,
+ /* 120 */ 373, 374, 375, 376, 377, 378, 380, 381, 382, 383,
+ /* 130 */ 384, 385, 386, 387, 388, 389, 390, 391, 392, 393,
+ /* 140 */ 394, 395, 396, 397, 398, 399, 400, 401, 402, 403,
+ /* 150 */ 404, 405, 406, 407, 408, 252, 257, 258, 259, 410,
+ /* 160 */ 411, 271, 274, 266, 272, 287, 275, 301, 308, 416,
+ /* 170 */ 420, 421, 422, 423, 425, 427, 428, 430, 433, 431,
+ /* 180 */ 438, 435, 437, 436, 439, 440, 443, 444, 446, 441,
+ /* 190 */ 442, 445, 447, 448, 449, 451, 459, 461, 463, 462,
+ /* 200 */ 466, 460, 470,
};
static const YYACTIONTYPE yy_default[] = {
- /* 0 */ 864, 988, 927, 998, 914, 924, 1137, 1137, 1137, 864,
- /* 10 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 20 */ 864, 864, 864, 1046, 884, 1137, 864, 864, 864, 864,
- /* 30 */ 864, 864, 864, 1061, 864, 924, 864, 864, 864, 864,
- /* 40 */ 934, 924, 934, 934, 864, 1041, 972, 990, 864, 864,
- /* 50 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 60 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 70 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 80 */ 864, 1048, 1054, 1051, 864, 864, 864, 1056, 864, 864,
- /* 90 */ 864, 1080, 1080, 1039, 864, 864, 864, 864, 864, 864,
- /* 100 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 110 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 120 */ 864, 864, 864, 864, 864, 864, 864, 912, 864, 910,
- /* 130 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 140 */ 864, 864, 864, 864, 864, 864, 895, 864, 864, 864,
- /* 150 */ 864, 864, 864, 886, 886, 886, 864, 864, 864, 864,
- /* 160 */ 886, 886, 1087, 1091, 1073, 1085, 1081, 1068, 1066, 1064,
- /* 170 */ 1072, 1095, 886, 886, 886, 932, 932, 928, 924, 924,
- /* 180 */ 886, 886, 950, 948, 946, 938, 944, 940, 942, 936,
- /* 190 */ 915, 864, 886, 886, 922, 922, 886, 922, 886, 922,
- /* 200 */ 886, 886, 972, 990, 864, 1096, 1086, 864, 1136, 1126,
- /* 210 */ 1125, 864, 1132, 1124, 1123, 1122, 864, 864, 1118, 1121,
- /* 220 */ 1120, 1119, 864, 864, 864, 864, 1128, 1127, 864, 864,
- /* 230 */ 864, 864, 864, 864, 864, 864, 864, 864, 1092, 1088,
- /* 240 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 1098,
- /* 250 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 1000,
- /* 260 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 270 */ 864, 864, 1038, 864, 864, 864, 864, 864, 1050, 1049,
- /* 280 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 290 */ 864, 1082, 864, 1074, 864, 864, 1012, 864, 864, 864,
- /* 300 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 310 */ 864, 864, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 320 */ 864, 864, 864, 864, 864, 864, 864, 864, 1155, 1150,
- /* 330 */ 1151, 1148, 864, 864, 864, 1147, 1142, 1143, 864, 864,
- /* 340 */ 864, 1140, 864, 864, 864, 864, 864, 864, 864, 864,
- /* 350 */ 864, 864, 864, 864, 864, 864, 864, 956, 864, 893,
- /* 360 */ 891, 864, 882, 864,
+ /* 0 */ 862, 985, 924, 995, 911, 921, 1134, 1134, 1134, 862,
+ /* 10 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 20 */ 862, 862, 862, 1043, 882, 1134, 862, 862, 862, 862,
+ /* 30 */ 862, 862, 862, 1058, 862, 921, 862, 862, 862, 862,
+ /* 40 */ 931, 921, 931, 931, 862, 1038, 969, 987, 862, 862,
+ /* 50 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 60 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 70 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 80 */ 862, 1045, 1051, 1048, 862, 862, 862, 1053, 862, 862,
+ /* 90 */ 862, 1077, 1077, 1036, 862, 862, 862, 862, 862, 862,
+ /* 100 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 110 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 120 */ 862, 862, 862, 862, 862, 862, 862, 909, 862, 907,
+ /* 130 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 140 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 150 */ 862, 862, 884, 884, 884, 862, 862, 862, 862, 884,
+ /* 160 */ 884, 1084, 1088, 1070, 1082, 1078, 1065, 1063, 1061, 1069,
+ /* 170 */ 1092, 884, 884, 884, 929, 929, 925, 921, 921, 884,
+ /* 180 */ 884, 947, 945, 943, 935, 941, 937, 939, 933, 912,
+ /* 190 */ 862, 884, 884, 919, 919, 884, 919, 884, 919, 884,
+ /* 200 */ 884, 969, 987, 862, 1093, 1083, 862, 1133, 1123, 1122,
+ /* 210 */ 862, 1129, 1121, 1120, 1119, 862, 862, 1115, 1118, 1117,
+ /* 220 */ 1116, 862, 862, 862, 862, 1125, 1124, 862, 862, 862,
+ /* 230 */ 862, 862, 862, 862, 862, 862, 862, 1089, 1085, 862,
+ /* 240 */ 862, 862, 862, 862, 862, 862, 862, 862, 1095, 862,
+ /* 250 */ 862, 862, 862, 862, 862, 862, 862, 862, 997, 862,
+ /* 260 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 270 */ 862, 1035, 862, 862, 862, 862, 862, 1047, 1046, 862,
+ /* 280 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 290 */ 1079, 862, 1071, 862, 862, 1009, 862, 862, 862, 862,
+ /* 300 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 310 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 320 */ 862, 862, 862, 862, 862, 862, 862, 1152, 1147, 1148,
+ /* 330 */ 1145, 862, 862, 862, 1144, 1139, 1140, 862, 862, 862,
+ /* 340 */ 1137, 862, 862, 862, 862, 862, 862, 862, 862, 862,
+ /* 350 */ 862, 862, 862, 862, 862, 862, 953, 862, 891, 889,
+ /* 360 */ 862, 880, 862,
};
/********** End of lemon-generated parsing tables *****************************/
-/* The next table maps tokens (terminal symbols) into fallback tokens.
+/* The next table maps tokens (terminal symbols) into fallback tokens.
** If a construct like the following:
-**
+**
** %fallback ID X Y Z.
**
** appears in the grammar, then ID becomes a fallback token for X, Y,
@@ -911,6 +912,7 @@ static const YYCODETYPE yyFallback[] = {
1, /* INSERT => ID */
1, /* INTO => ID */
1, /* VALUES => ID */
+ 1, /* FILE => ID */
};
#endif /* YYFALLBACK */
@@ -950,13 +952,13 @@ struct yyParser {
int yyerrcnt; /* Shifts left before out of the error */
#endif
ParseARG_SDECL /* A place to hold %extra_argument */
- ParseCTX_SDECL /* A place to hold %extra_context */
+ ParseCTX_SDECL /* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
- int yystksz; /* Current side of the stack */
+ int yystksz; /* Current side of the stack */
yyStackEntry *yystack; /* The parser's stack */
yyStackEntry yystk0; /* First stack entry */
#else
- yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
+ yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
yyStackEntry *yystackEnd; /* Last entry in the stack */
#endif
};
@@ -970,10 +972,10 @@ static char *yyTracePrompt = 0;
#endif /* NDEBUG */
#ifndef NDEBUG
-/*
+/*
** Turn parser tracing on by giving a stream to which to write the trace
** and a prompt to preface each trace message. Tracing is turned off
-** by making either argument NULL
+** by making either argument NULL
**
** Inputs:
**
@@ -998,583 +1000,583 @@ void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
#if defined(YYCOVERAGE) || !defined(NDEBUG)
/* For tracing shifts, the names of all terminals and nonterminals
** are required. The following table supplies these names */
-static const char *const yyTokenName[] = {
- /* 0 */ "$",
- /* 1 */ "ID",
- /* 2 */ "BOOL",
- /* 3 */ "TINYINT",
- /* 4 */ "SMALLINT",
- /* 5 */ "INTEGER",
- /* 6 */ "BIGINT",
- /* 7 */ "FLOAT",
- /* 8 */ "DOUBLE",
- /* 9 */ "STRING",
- /* 10 */ "TIMESTAMP",
- /* 11 */ "BINARY",
- /* 12 */ "NCHAR",
- /* 13 */ "OR",
- /* 14 */ "AND",
- /* 15 */ "NOT",
- /* 16 */ "EQ",
- /* 17 */ "NE",
- /* 18 */ "ISNULL",
- /* 19 */ "NOTNULL",
- /* 20 */ "IS",
- /* 21 */ "LIKE",
- /* 22 */ "GLOB",
- /* 23 */ "BETWEEN",
- /* 24 */ "IN",
- /* 25 */ "GT",
- /* 26 */ "GE",
- /* 27 */ "LT",
- /* 28 */ "LE",
- /* 29 */ "BITAND",
- /* 30 */ "BITOR",
- /* 31 */ "LSHIFT",
- /* 32 */ "RSHIFT",
- /* 33 */ "PLUS",
- /* 34 */ "MINUS",
- /* 35 */ "DIVIDE",
- /* 36 */ "TIMES",
- /* 37 */ "STAR",
- /* 38 */ "SLASH",
- /* 39 */ "REM",
- /* 40 */ "CONCAT",
- /* 41 */ "UMINUS",
- /* 42 */ "UPLUS",
- /* 43 */ "BITNOT",
- /* 44 */ "SHOW",
- /* 45 */ "DATABASES",
- /* 46 */ "TOPICS",
- /* 47 */ "FUNCTIONS",
- /* 48 */ "MNODES",
- /* 49 */ "DNODES",
- /* 50 */ "ACCOUNTS",
- /* 51 */ "USERS",
- /* 52 */ "MODULES",
- /* 53 */ "QUERIES",
- /* 54 */ "CONNECTIONS",
- /* 55 */ "STREAMS",
- /* 56 */ "VARIABLES",
- /* 57 */ "SCORES",
- /* 58 */ "GRANTS",
- /* 59 */ "VNODES",
- /* 60 */ "IPTOKEN",
- /* 61 */ "DOT",
- /* 62 */ "CREATE",
- /* 63 */ "TABLE",
- /* 64 */ "STABLE",
- /* 65 */ "DATABASE",
- /* 66 */ "TABLES",
- /* 67 */ "STABLES",
- /* 68 */ "VGROUPS",
- /* 69 */ "DROP",
- /* 70 */ "TOPIC",
- /* 71 */ "FUNCTION",
- /* 72 */ "DNODE",
- /* 73 */ "USER",
- /* 74 */ "ACCOUNT",
- /* 75 */ "USE",
- /* 76 */ "DESCRIBE",
- /* 77 */ "DESC",
- /* 78 */ "ALTER",
- /* 79 */ "PASS",
- /* 80 */ "PRIVILEGE",
- /* 81 */ "LOCAL",
- /* 82 */ "COMPACT",
- /* 83 */ "LP",
- /* 84 */ "RP",
- /* 85 */ "IF",
- /* 86 */ "EXISTS",
- /* 87 */ "AS",
- /* 88 */ "OUTPUTTYPE",
- /* 89 */ "AGGREGATE",
- /* 90 */ "BUFSIZE",
- /* 91 */ "PPS",
- /* 92 */ "TSERIES",
- /* 93 */ "DBS",
- /* 94 */ "STORAGE",
- /* 95 */ "QTIME",
- /* 96 */ "CONNS",
- /* 97 */ "STATE",
- /* 98 */ "COMMA",
- /* 99 */ "KEEP",
- /* 100 */ "CACHE",
- /* 101 */ "REPLICA",
- /* 102 */ "QUORUM",
- /* 103 */ "DAYS",
- /* 104 */ "MINROWS",
- /* 105 */ "MAXROWS",
- /* 106 */ "BLOCKS",
- /* 107 */ "CTIME",
- /* 108 */ "WAL",
- /* 109 */ "FSYNC",
- /* 110 */ "COMP",
- /* 111 */ "PRECISION",
- /* 112 */ "UPDATE",
- /* 113 */ "CACHELAST",
- /* 114 */ "PARTITIONS",
- /* 115 */ "UNSIGNED",
- /* 116 */ "TAGS",
- /* 117 */ "USING",
- /* 118 */ "NULL",
- /* 119 */ "NOW",
- /* 120 */ "SELECT",
- /* 121 */ "UNION",
- /* 122 */ "ALL",
- /* 123 */ "DISTINCT",
- /* 124 */ "FROM",
- /* 125 */ "VARIABLE",
- /* 126 */ "INTERVAL",
- /* 127 */ "EVERY",
- /* 128 */ "SESSION",
- /* 129 */ "STATE_WINDOW",
- /* 130 */ "FILL",
- /* 131 */ "SLIDING",
- /* 132 */ "ORDER",
- /* 133 */ "BY",
- /* 134 */ "ASC",
- /* 135 */ "GROUP",
- /* 136 */ "HAVING",
- /* 137 */ "LIMIT",
- /* 138 */ "OFFSET",
- /* 139 */ "SLIMIT",
- /* 140 */ "SOFFSET",
- /* 141 */ "WHERE",
- /* 142 */ "RESET",
- /* 143 */ "QUERY",
- /* 144 */ "SYNCDB",
- /* 145 */ "ADD",
- /* 146 */ "COLUMN",
- /* 147 */ "MODIFY",
- /* 148 */ "TAG",
- /* 149 */ "CHANGE",
- /* 150 */ "SET",
- /* 151 */ "KILL",
- /* 152 */ "CONNECTION",
- /* 153 */ "STREAM",
- /* 154 */ "COLON",
- /* 155 */ "ABORT",
- /* 156 */ "AFTER",
- /* 157 */ "ATTACH",
- /* 158 */ "BEFORE",
- /* 159 */ "BEGIN",
- /* 160 */ "CASCADE",
- /* 161 */ "CLUSTER",
- /* 162 */ "CONFLICT",
- /* 163 */ "COPY",
- /* 164 */ "DEFERRED",
- /* 165 */ "DELIMITERS",
- /* 166 */ "DETACH",
- /* 167 */ "EACH",
- /* 168 */ "END",
- /* 169 */ "EXPLAIN",
- /* 170 */ "FAIL",
- /* 171 */ "FOR",
- /* 172 */ "IGNORE",
- /* 173 */ "IMMEDIATE",
- /* 174 */ "INITIALLY",
- /* 175 */ "INSTEAD",
- /* 176 */ "MATCH",
- /* 177 */ "KEY",
- /* 178 */ "OF",
- /* 179 */ "RAISE",
- /* 180 */ "REPLACE",
- /* 181 */ "RESTRICT",
- /* 182 */ "ROW",
- /* 183 */ "STATEMENT",
- /* 184 */ "TRIGGER",
- /* 185 */ "VIEW",
- /* 186 */ "SEMI",
- /* 187 */ "NONE",
- /* 188 */ "PREV",
- /* 189 */ "LINEAR",
- /* 190 */ "IMPORT",
- /* 191 */ "TBNAME",
- /* 192 */ "JOIN",
- /* 193 */ "INSERT",
- /* 194 */ "INTO",
- /* 195 */ "VALUES",
- /* 196 */ "program",
- /* 197 */ "cmd",
- /* 198 */ "dbPrefix",
- /* 199 */ "ids",
- /* 200 */ "cpxName",
- /* 201 */ "ifexists",
- /* 202 */ "alter_db_optr",
- /* 203 */ "alter_topic_optr",
- /* 204 */ "acct_optr",
- /* 205 */ "exprlist",
- /* 206 */ "ifnotexists",
- /* 207 */ "db_optr",
- /* 208 */ "topic_optr",
- /* 209 */ "typename",
- /* 210 */ "bufsize",
- /* 211 */ "pps",
- /* 212 */ "tseries",
- /* 213 */ "dbs",
- /* 214 */ "streams",
- /* 215 */ "storage",
- /* 216 */ "qtime",
- /* 217 */ "users",
- /* 218 */ "conns",
- /* 219 */ "state",
- /* 220 */ "intitemlist",
- /* 221 */ "intitem",
- /* 222 */ "keep",
- /* 223 */ "cache",
- /* 224 */ "replica",
- /* 225 */ "quorum",
- /* 226 */ "days",
- /* 227 */ "minrows",
- /* 228 */ "maxrows",
- /* 229 */ "blocks",
- /* 230 */ "ctime",
- /* 231 */ "wal",
- /* 232 */ "fsync",
- /* 233 */ "comp",
- /* 234 */ "prec",
- /* 235 */ "update",
- /* 236 */ "cachelast",
- /* 237 */ "partitions",
- /* 238 */ "signed",
- /* 239 */ "create_table_args",
- /* 240 */ "create_stable_args",
- /* 241 */ "create_table_list",
- /* 242 */ "create_from_stable",
- /* 243 */ "columnlist",
- /* 244 */ "tagitemlist",
- /* 245 */ "tagNamelist",
- /* 246 */ "select",
- /* 247 */ "column",
- /* 248 */ "tagitem",
- /* 249 */ "selcollist",
- /* 250 */ "from",
- /* 251 */ "where_opt",
- /* 252 */ "interval_option",
- /* 253 */ "sliding_opt",
- /* 254 */ "session_option",
- /* 255 */ "windowstate_option",
- /* 256 */ "fill_opt",
- /* 257 */ "groupby_opt",
- /* 258 */ "having_opt",
- /* 259 */ "orderby_opt",
- /* 260 */ "slimit_opt",
- /* 261 */ "limit_opt",
- /* 262 */ "union",
- /* 263 */ "sclp",
- /* 264 */ "distinct",
- /* 265 */ "expr",
- /* 266 */ "as",
- /* 267 */ "tablelist",
- /* 268 */ "sub",
- /* 269 */ "tmvar",
- /* 270 */ "intervalKey",
- /* 271 */ "sortlist",
- /* 272 */ "sortitem",
- /* 273 */ "item",
- /* 274 */ "sortorder",
- /* 275 */ "grouplist",
- /* 276 */ "expritem",
+static const char *const yyTokenName[] = {
+ /* 0 */ "$",
+ /* 1 */ "ID",
+ /* 2 */ "BOOL",
+ /* 3 */ "TINYINT",
+ /* 4 */ "SMALLINT",
+ /* 5 */ "INTEGER",
+ /* 6 */ "BIGINT",
+ /* 7 */ "FLOAT",
+ /* 8 */ "DOUBLE",
+ /* 9 */ "STRING",
+ /* 10 */ "TIMESTAMP",
+ /* 11 */ "BINARY",
+ /* 12 */ "NCHAR",
+ /* 13 */ "OR",
+ /* 14 */ "AND",
+ /* 15 */ "NOT",
+ /* 16 */ "EQ",
+ /* 17 */ "NE",
+ /* 18 */ "ISNULL",
+ /* 19 */ "NOTNULL",
+ /* 20 */ "IS",
+ /* 21 */ "LIKE",
+ /* 22 */ "GLOB",
+ /* 23 */ "BETWEEN",
+ /* 24 */ "IN",
+ /* 25 */ "GT",
+ /* 26 */ "GE",
+ /* 27 */ "LT",
+ /* 28 */ "LE",
+ /* 29 */ "BITAND",
+ /* 30 */ "BITOR",
+ /* 31 */ "LSHIFT",
+ /* 32 */ "RSHIFT",
+ /* 33 */ "PLUS",
+ /* 34 */ "MINUS",
+ /* 35 */ "DIVIDE",
+ /* 36 */ "TIMES",
+ /* 37 */ "STAR",
+ /* 38 */ "SLASH",
+ /* 39 */ "REM",
+ /* 40 */ "CONCAT",
+ /* 41 */ "UMINUS",
+ /* 42 */ "UPLUS",
+ /* 43 */ "BITNOT",
+ /* 44 */ "SHOW",
+ /* 45 */ "DATABASES",
+ /* 46 */ "TOPICS",
+ /* 47 */ "FUNCTIONS",
+ /* 48 */ "MNODES",
+ /* 49 */ "DNODES",
+ /* 50 */ "ACCOUNTS",
+ /* 51 */ "USERS",
+ /* 52 */ "MODULES",
+ /* 53 */ "QUERIES",
+ /* 54 */ "CONNECTIONS",
+ /* 55 */ "STREAMS",
+ /* 56 */ "VARIABLES",
+ /* 57 */ "SCORES",
+ /* 58 */ "GRANTS",
+ /* 59 */ "VNODES",
+ /* 60 */ "IPTOKEN",
+ /* 61 */ "DOT",
+ /* 62 */ "CREATE",
+ /* 63 */ "TABLE",
+ /* 64 */ "STABLE",
+ /* 65 */ "DATABASE",
+ /* 66 */ "TABLES",
+ /* 67 */ "STABLES",
+ /* 68 */ "VGROUPS",
+ /* 69 */ "DROP",
+ /* 70 */ "TOPIC",
+ /* 71 */ "FUNCTION",
+ /* 72 */ "DNODE",
+ /* 73 */ "USER",
+ /* 74 */ "ACCOUNT",
+ /* 75 */ "USE",
+ /* 76 */ "DESCRIBE",
+ /* 77 */ "DESC",
+ /* 78 */ "ALTER",
+ /* 79 */ "PASS",
+ /* 80 */ "PRIVILEGE",
+ /* 81 */ "LOCAL",
+ /* 82 */ "COMPACT",
+ /* 83 */ "LP",
+ /* 84 */ "RP",
+ /* 85 */ "IF",
+ /* 86 */ "EXISTS",
+ /* 87 */ "AS",
+ /* 88 */ "OUTPUTTYPE",
+ /* 89 */ "AGGREGATE",
+ /* 90 */ "BUFSIZE",
+ /* 91 */ "PPS",
+ /* 92 */ "TSERIES",
+ /* 93 */ "DBS",
+ /* 94 */ "STORAGE",
+ /* 95 */ "QTIME",
+ /* 96 */ "CONNS",
+ /* 97 */ "STATE",
+ /* 98 */ "COMMA",
+ /* 99 */ "KEEP",
+ /* 100 */ "CACHE",
+ /* 101 */ "REPLICA",
+ /* 102 */ "QUORUM",
+ /* 103 */ "DAYS",
+ /* 104 */ "MINROWS",
+ /* 105 */ "MAXROWS",
+ /* 106 */ "BLOCKS",
+ /* 107 */ "CTIME",
+ /* 108 */ "WAL",
+ /* 109 */ "FSYNC",
+ /* 110 */ "COMP",
+ /* 111 */ "PRECISION",
+ /* 112 */ "UPDATE",
+ /* 113 */ "CACHELAST",
+ /* 114 */ "PARTITIONS",
+ /* 115 */ "UNSIGNED",
+ /* 116 */ "TAGS",
+ /* 117 */ "USING",
+ /* 118 */ "NULL",
+ /* 119 */ "NOW",
+ /* 120 */ "SELECT",
+ /* 121 */ "UNION",
+ /* 122 */ "ALL",
+ /* 123 */ "DISTINCT",
+ /* 124 */ "FROM",
+ /* 125 */ "VARIABLE",
+ /* 126 */ "INTERVAL",
+ /* 127 */ "EVERY",
+ /* 128 */ "SESSION",
+ /* 129 */ "STATE_WINDOW",
+ /* 130 */ "FILL",
+ /* 131 */ "SLIDING",
+ /* 132 */ "ORDER",
+ /* 133 */ "BY",
+ /* 134 */ "ASC",
+ /* 135 */ "GROUP",
+ /* 136 */ "HAVING",
+ /* 137 */ "LIMIT",
+ /* 138 */ "OFFSET",
+ /* 139 */ "SLIMIT",
+ /* 140 */ "SOFFSET",
+ /* 141 */ "WHERE",
+ /* 142 */ "RESET",
+ /* 143 */ "QUERY",
+ /* 144 */ "SYNCDB",
+ /* 145 */ "ADD",
+ /* 146 */ "COLUMN",
+ /* 147 */ "MODIFY",
+ /* 148 */ "TAG",
+ /* 149 */ "CHANGE",
+ /* 150 */ "SET",
+ /* 151 */ "KILL",
+ /* 152 */ "CONNECTION",
+ /* 153 */ "STREAM",
+ /* 154 */ "COLON",
+ /* 155 */ "ABORT",
+ /* 156 */ "AFTER",
+ /* 157 */ "ATTACH",
+ /* 158 */ "BEFORE",
+ /* 159 */ "BEGIN",
+ /* 160 */ "CASCADE",
+ /* 161 */ "CLUSTER",
+ /* 162 */ "CONFLICT",
+ /* 163 */ "COPY",
+ /* 164 */ "DEFERRED",
+ /* 165 */ "DELIMITERS",
+ /* 166 */ "DETACH",
+ /* 167 */ "EACH",
+ /* 168 */ "END",
+ /* 169 */ "EXPLAIN",
+ /* 170 */ "FAIL",
+ /* 171 */ "FOR",
+ /* 172 */ "IGNORE",
+ /* 173 */ "IMMEDIATE",
+ /* 174 */ "INITIALLY",
+ /* 175 */ "INSTEAD",
+ /* 176 */ "MATCH",
+ /* 177 */ "KEY",
+ /* 178 */ "OF",
+ /* 179 */ "RAISE",
+ /* 180 */ "REPLACE",
+ /* 181 */ "RESTRICT",
+ /* 182 */ "ROW",
+ /* 183 */ "STATEMENT",
+ /* 184 */ "TRIGGER",
+ /* 185 */ "VIEW",
+ /* 186 */ "SEMI",
+ /* 187 */ "NONE",
+ /* 188 */ "PREV",
+ /* 189 */ "LINEAR",
+ /* 190 */ "IMPORT",
+ /* 191 */ "TBNAME",
+ /* 192 */ "JOIN",
+ /* 193 */ "INSERT",
+ /* 194 */ "INTO",
+ /* 195 */ "VALUES",
+ /* 196 */ "FILE",
+ /* 197 */ "program",
+ /* 198 */ "cmd",
+ /* 199 */ "dbPrefix",
+ /* 200 */ "ids",
+ /* 201 */ "cpxName",
+ /* 202 */ "ifexists",
+ /* 203 */ "alter_db_optr",
+ /* 204 */ "alter_topic_optr",
+ /* 205 */ "acct_optr",
+ /* 206 */ "exprlist",
+ /* 207 */ "ifnotexists",
+ /* 208 */ "db_optr",
+ /* 209 */ "topic_optr",
+ /* 210 */ "typename",
+ /* 211 */ "bufsize",
+ /* 212 */ "pps",
+ /* 213 */ "tseries",
+ /* 214 */ "dbs",
+ /* 215 */ "streams",
+ /* 216 */ "storage",
+ /* 217 */ "qtime",
+ /* 218 */ "users",
+ /* 219 */ "conns",
+ /* 220 */ "state",
+ /* 221 */ "intitemlist",
+ /* 222 */ "intitem",
+ /* 223 */ "keep",
+ /* 224 */ "cache",
+ /* 225 */ "replica",
+ /* 226 */ "quorum",
+ /* 227 */ "days",
+ /* 228 */ "minrows",
+ /* 229 */ "maxrows",
+ /* 230 */ "blocks",
+ /* 231 */ "ctime",
+ /* 232 */ "wal",
+ /* 233 */ "fsync",
+ /* 234 */ "comp",
+ /* 235 */ "prec",
+ /* 236 */ "update",
+ /* 237 */ "cachelast",
+ /* 238 */ "partitions",
+ /* 239 */ "signed",
+ /* 240 */ "create_table_args",
+ /* 241 */ "create_stable_args",
+ /* 242 */ "create_table_list",
+ /* 243 */ "create_from_stable",
+ /* 244 */ "columnlist",
+ /* 245 */ "tagitemlist",
+ /* 246 */ "tagNamelist",
+ /* 247 */ "select",
+ /* 248 */ "column",
+ /* 249 */ "tagitem",
+ /* 250 */ "selcollist",
+ /* 251 */ "from",
+ /* 252 */ "where_opt",
+ /* 253 */ "interval_option",
+ /* 254 */ "sliding_opt",
+ /* 255 */ "session_option",
+ /* 256 */ "windowstate_option",
+ /* 257 */ "fill_opt",
+ /* 258 */ "groupby_opt",
+ /* 259 */ "having_opt",
+ /* 260 */ "orderby_opt",
+ /* 261 */ "slimit_opt",
+ /* 262 */ "limit_opt",
+ /* 263 */ "union",
+ /* 264 */ "sclp",
+ /* 265 */ "distinct",
+ /* 266 */ "expr",
+ /* 267 */ "as",
+ /* 268 */ "tablelist",
+ /* 269 */ "sub",
+ /* 270 */ "tmvar",
+ /* 271 */ "intervalKey",
+ /* 272 */ "sortlist",
+ /* 273 */ "sortitem",
+ /* 274 */ "item",
+ /* 275 */ "sortorder",
+ /* 276 */ "grouplist",
+ /* 277 */ "expritem",
};
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
#ifndef NDEBUG
/* For tracing reduce actions, the names of all rules are required.
- */
+*/
static const char *const yyRuleName[] = {
- /* 0 */ "program ::= cmd",
- /* 1 */ "cmd ::= SHOW DATABASES",
- /* 2 */ "cmd ::= SHOW TOPICS",
- /* 3 */ "cmd ::= SHOW FUNCTIONS",
- /* 4 */ "cmd ::= SHOW MNODES",
- /* 5 */ "cmd ::= SHOW DNODES",
- /* 6 */ "cmd ::= SHOW ACCOUNTS",
- /* 7 */ "cmd ::= SHOW USERS",
- /* 8 */ "cmd ::= SHOW MODULES",
- /* 9 */ "cmd ::= SHOW QUERIES",
- /* 10 */ "cmd ::= SHOW CONNECTIONS",
- /* 11 */ "cmd ::= SHOW STREAMS",
- /* 12 */ "cmd ::= SHOW VARIABLES",
- /* 13 */ "cmd ::= SHOW SCORES",
- /* 14 */ "cmd ::= SHOW GRANTS",
- /* 15 */ "cmd ::= SHOW VNODES",
- /* 16 */ "cmd ::= SHOW VNODES IPTOKEN",
- /* 17 */ "dbPrefix ::=",
- /* 18 */ "dbPrefix ::= ids DOT",
- /* 19 */ "cpxName ::=",
- /* 20 */ "cpxName ::= DOT ids",
- /* 21 */ "cmd ::= SHOW CREATE TABLE ids cpxName",
- /* 22 */ "cmd ::= SHOW CREATE STABLE ids cpxName",
- /* 23 */ "cmd ::= SHOW CREATE DATABASE ids",
- /* 24 */ "cmd ::= SHOW dbPrefix TABLES",
- /* 25 */ "cmd ::= SHOW dbPrefix TABLES LIKE ids",
- /* 26 */ "cmd ::= SHOW dbPrefix STABLES",
- /* 27 */ "cmd ::= SHOW dbPrefix STABLES LIKE ids",
- /* 28 */ "cmd ::= SHOW dbPrefix VGROUPS",
- /* 29 */ "cmd ::= SHOW dbPrefix VGROUPS ids",
- /* 30 */ "cmd ::= DROP TABLE ifexists ids cpxName",
- /* 31 */ "cmd ::= DROP STABLE ifexists ids cpxName",
- /* 32 */ "cmd ::= DROP DATABASE ifexists ids",
- /* 33 */ "cmd ::= DROP TOPIC ifexists ids",
- /* 34 */ "cmd ::= DROP FUNCTION ids",
- /* 35 */ "cmd ::= DROP DNODE ids",
- /* 36 */ "cmd ::= DROP USER ids",
- /* 37 */ "cmd ::= DROP ACCOUNT ids",
- /* 38 */ "cmd ::= USE ids",
- /* 39 */ "cmd ::= DESCRIBE ids cpxName",
- /* 40 */ "cmd ::= DESC ids cpxName",
- /* 41 */ "cmd ::= ALTER USER ids PASS ids",
- /* 42 */ "cmd ::= ALTER USER ids PRIVILEGE ids",
- /* 43 */ "cmd ::= ALTER DNODE ids ids",
- /* 44 */ "cmd ::= ALTER DNODE ids ids ids",
- /* 45 */ "cmd ::= ALTER LOCAL ids",
- /* 46 */ "cmd ::= ALTER LOCAL ids ids",
- /* 47 */ "cmd ::= ALTER DATABASE ids alter_db_optr",
- /* 48 */ "cmd ::= ALTER TOPIC ids alter_topic_optr",
- /* 49 */ "cmd ::= ALTER ACCOUNT ids acct_optr",
- /* 50 */ "cmd ::= ALTER ACCOUNT ids PASS ids acct_optr",
- /* 51 */ "cmd ::= COMPACT VNODES IN LP exprlist RP",
- /* 52 */ "ids ::= ID",
- /* 53 */ "ids ::= STRING",
- /* 54 */ "ifexists ::= IF EXISTS",
- /* 55 */ "ifexists ::=",
- /* 56 */ "ifnotexists ::= IF NOT EXISTS",
- /* 57 */ "ifnotexists ::=",
- /* 58 */ "cmd ::= CREATE DNODE ids",
- /* 59 */ "cmd ::= CREATE ACCOUNT ids PASS ids acct_optr",
- /* 60 */ "cmd ::= CREATE DATABASE ifnotexists ids db_optr",
- /* 61 */ "cmd ::= CREATE TOPIC ifnotexists ids topic_optr",
- /* 62 */ "cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize",
- /* 63 */ "cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize",
- /* 64 */ "cmd ::= CREATE USER ids PASS ids",
- /* 65 */ "bufsize ::=",
- /* 66 */ "bufsize ::= BUFSIZE INTEGER",
- /* 67 */ "pps ::=",
- /* 68 */ "pps ::= PPS INTEGER",
- /* 69 */ "tseries ::=",
- /* 70 */ "tseries ::= TSERIES INTEGER",
- /* 71 */ "dbs ::=",
- /* 72 */ "dbs ::= DBS INTEGER",
- /* 73 */ "streams ::=",
- /* 74 */ "streams ::= STREAMS INTEGER",
- /* 75 */ "storage ::=",
- /* 76 */ "storage ::= STORAGE INTEGER",
- /* 77 */ "qtime ::=",
- /* 78 */ "qtime ::= QTIME INTEGER",
- /* 79 */ "users ::=",
- /* 80 */ "users ::= USERS INTEGER",
- /* 81 */ "conns ::=",
- /* 82 */ "conns ::= CONNS INTEGER",
- /* 83 */ "state ::=",
- /* 84 */ "state ::= STATE ids",
- /* 85 */ "acct_optr ::= pps tseries storage streams qtime dbs users conns state",
- /* 86 */ "intitemlist ::= intitemlist COMMA intitem",
- /* 87 */ "intitemlist ::= intitem",
- /* 88 */ "intitem ::= INTEGER",
- /* 89 */ "keep ::= KEEP intitemlist",
- /* 90 */ "cache ::= CACHE INTEGER",
- /* 91 */ "replica ::= REPLICA INTEGER",
- /* 92 */ "quorum ::= QUORUM INTEGER",
- /* 93 */ "days ::= DAYS INTEGER",
- /* 94 */ "minrows ::= MINROWS INTEGER",
- /* 95 */ "maxrows ::= MAXROWS INTEGER",
- /* 96 */ "blocks ::= BLOCKS INTEGER",
- /* 97 */ "ctime ::= CTIME INTEGER",
- /* 98 */ "wal ::= WAL INTEGER",
- /* 99 */ "fsync ::= FSYNC INTEGER",
- /* 100 */ "comp ::= COMP INTEGER",
- /* 101 */ "prec ::= PRECISION STRING",
- /* 102 */ "update ::= UPDATE INTEGER",
- /* 103 */ "cachelast ::= CACHELAST INTEGER",
- /* 104 */ "partitions ::= PARTITIONS INTEGER",
- /* 105 */ "db_optr ::=",
- /* 106 */ "db_optr ::= db_optr cache",
- /* 107 */ "db_optr ::= db_optr replica",
- /* 108 */ "db_optr ::= db_optr quorum",
- /* 109 */ "db_optr ::= db_optr days",
- /* 110 */ "db_optr ::= db_optr minrows",
- /* 111 */ "db_optr ::= db_optr maxrows",
- /* 112 */ "db_optr ::= db_optr blocks",
- /* 113 */ "db_optr ::= db_optr ctime",
- /* 114 */ "db_optr ::= db_optr wal",
- /* 115 */ "db_optr ::= db_optr fsync",
- /* 116 */ "db_optr ::= db_optr comp",
- /* 117 */ "db_optr ::= db_optr prec",
- /* 118 */ "db_optr ::= db_optr keep",
- /* 119 */ "db_optr ::= db_optr update",
- /* 120 */ "db_optr ::= db_optr cachelast",
- /* 121 */ "topic_optr ::= db_optr",
- /* 122 */ "topic_optr ::= topic_optr partitions",
- /* 123 */ "alter_db_optr ::=",
- /* 124 */ "alter_db_optr ::= alter_db_optr replica",
- /* 125 */ "alter_db_optr ::= alter_db_optr quorum",
- /* 126 */ "alter_db_optr ::= alter_db_optr keep",
- /* 127 */ "alter_db_optr ::= alter_db_optr blocks",
- /* 128 */ "alter_db_optr ::= alter_db_optr comp",
- /* 129 */ "alter_db_optr ::= alter_db_optr update",
- /* 130 */ "alter_db_optr ::= alter_db_optr cachelast",
- /* 131 */ "alter_topic_optr ::= alter_db_optr",
- /* 132 */ "alter_topic_optr ::= alter_topic_optr partitions",
- /* 133 */ "typename ::= ids",
- /* 134 */ "typename ::= ids LP signed RP",
- /* 135 */ "typename ::= ids UNSIGNED",
- /* 136 */ "signed ::= INTEGER",
- /* 137 */ "signed ::= PLUS INTEGER",
- /* 138 */ "signed ::= MINUS INTEGER",
- /* 139 */ "cmd ::= CREATE TABLE create_table_args",
- /* 140 */ "cmd ::= CREATE TABLE create_stable_args",
- /* 141 */ "cmd ::= CREATE STABLE create_stable_args",
- /* 142 */ "cmd ::= CREATE TABLE create_table_list",
- /* 143 */ "create_table_list ::= create_from_stable",
- /* 144 */ "create_table_list ::= create_table_list create_from_stable",
- /* 145 */ "create_table_args ::= ifnotexists ids cpxName LP columnlist RP",
- /* 146 */ "create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP",
- /* 147 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP",
- /* 148 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP",
- /* 149 */ "tagNamelist ::= tagNamelist COMMA ids",
- /* 150 */ "tagNamelist ::= ids",
- /* 151 */ "create_table_args ::= ifnotexists ids cpxName AS select",
- /* 152 */ "columnlist ::= columnlist COMMA column",
- /* 153 */ "columnlist ::= column",
- /* 154 */ "column ::= ids typename",
- /* 155 */ "tagitemlist ::= tagitemlist COMMA tagitem",
- /* 156 */ "tagitemlist ::= tagitem",
- /* 157 */ "tagitem ::= INTEGER",
- /* 158 */ "tagitem ::= FLOAT",
- /* 159 */ "tagitem ::= STRING",
- /* 160 */ "tagitem ::= BOOL",
- /* 161 */ "tagitem ::= NULL",
- /* 162 */ "tagitem ::= NOW",
- /* 163 */ "tagitem ::= MINUS INTEGER",
- /* 164 */ "tagitem ::= MINUS FLOAT",
- /* 165 */ "tagitem ::= PLUS INTEGER",
- /* 166 */ "tagitem ::= PLUS FLOAT",
- /* 167 */ "select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt",
- /* 168 */ "select ::= LP select RP",
- /* 169 */ "union ::= select",
- /* 170 */ "union ::= union UNION ALL select",
- /* 171 */ "cmd ::= union",
- /* 172 */ "select ::= SELECT selcollist",
- /* 173 */ "sclp ::= selcollist COMMA",
- /* 174 */ "sclp ::=",
- /* 175 */ "selcollist ::= sclp distinct expr as",
- /* 176 */ "selcollist ::= sclp STAR",
- /* 177 */ "as ::= AS ids",
- /* 178 */ "as ::= ids",
- /* 179 */ "as ::=",
- /* 180 */ "distinct ::= DISTINCT",
- /* 181 */ "distinct ::=",
- /* 182 */ "from ::= FROM tablelist",
- /* 183 */ "from ::= FROM sub",
- /* 184 */ "sub ::= LP union RP",
- /* 185 */ "sub ::= LP union RP ids",
- /* 186 */ "sub ::= sub COMMA LP union RP ids",
- /* 187 */ "tablelist ::= ids cpxName",
- /* 188 */ "tablelist ::= ids cpxName ids",
- /* 189 */ "tablelist ::= tablelist COMMA ids cpxName",
- /* 190 */ "tablelist ::= tablelist COMMA ids cpxName ids",
- /* 191 */ "tmvar ::= VARIABLE",
- /* 192 */ "interval_option ::= intervalKey LP tmvar RP",
- /* 193 */ "interval_option ::= intervalKey LP tmvar COMMA tmvar RP",
- /* 194 */ "interval_option ::=",
- /* 195 */ "intervalKey ::= INTERVAL",
- /* 196 */ "intervalKey ::= EVERY",
- /* 197 */ "session_option ::=",
- /* 198 */ "session_option ::= SESSION LP ids cpxName COMMA tmvar RP",
- /* 199 */ "windowstate_option ::=",
- /* 200 */ "windowstate_option ::= STATE_WINDOW LP ids RP",
- /* 201 */ "fill_opt ::=",
- /* 202 */ "fill_opt ::= FILL LP ID COMMA tagitemlist RP",
- /* 203 */ "fill_opt ::= FILL LP ID RP",
- /* 204 */ "sliding_opt ::= SLIDING LP tmvar RP",
- /* 205 */ "sliding_opt ::=",
- /* 206 */ "orderby_opt ::=",
- /* 207 */ "orderby_opt ::= ORDER BY sortlist",
- /* 208 */ "sortlist ::= sortlist COMMA item sortorder",
- /* 209 */ "sortlist ::= item sortorder",
- /* 210 */ "item ::= ids cpxName",
- /* 211 */ "sortorder ::= ASC",
- /* 212 */ "sortorder ::= DESC",
- /* 213 */ "sortorder ::=",
- /* 214 */ "groupby_opt ::=",
- /* 215 */ "groupby_opt ::= GROUP BY grouplist",
- /* 216 */ "grouplist ::= grouplist COMMA item",
- /* 217 */ "grouplist ::= item",
- /* 218 */ "having_opt ::=",
- /* 219 */ "having_opt ::= HAVING expr",
- /* 220 */ "limit_opt ::=",
- /* 221 */ "limit_opt ::= LIMIT signed",
- /* 222 */ "limit_opt ::= LIMIT signed OFFSET signed",
- /* 223 */ "limit_opt ::= LIMIT signed COMMA signed",
- /* 224 */ "slimit_opt ::=",
- /* 225 */ "slimit_opt ::= SLIMIT signed",
- /* 226 */ "slimit_opt ::= SLIMIT signed SOFFSET signed",
- /* 227 */ "slimit_opt ::= SLIMIT signed COMMA signed",
- /* 228 */ "where_opt ::=",
- /* 229 */ "where_opt ::= WHERE expr",
- /* 230 */ "expr ::= LP expr RP",
- /* 231 */ "expr ::= ID",
- /* 232 */ "expr ::= ID DOT ID",
- /* 233 */ "expr ::= ID DOT STAR",
- /* 234 */ "expr ::= INTEGER",
- /* 235 */ "expr ::= MINUS INTEGER",
- /* 236 */ "expr ::= PLUS INTEGER",
- /* 237 */ "expr ::= FLOAT",
- /* 238 */ "expr ::= MINUS FLOAT",
- /* 239 */ "expr ::= PLUS FLOAT",
- /* 240 */ "expr ::= STRING",
- /* 241 */ "expr ::= NOW",
- /* 242 */ "expr ::= VARIABLE",
- /* 243 */ "expr ::= PLUS VARIABLE",
- /* 244 */ "expr ::= MINUS VARIABLE",
- /* 245 */ "expr ::= BOOL",
- /* 246 */ "expr ::= NULL",
- /* 247 */ "expr ::= ID LP exprlist RP",
- /* 248 */ "expr ::= ID LP STAR RP",
- /* 249 */ "expr ::= expr IS NULL",
- /* 250 */ "expr ::= expr IS NOT NULL",
- /* 251 */ "expr ::= expr LT expr",
- /* 252 */ "expr ::= expr GT expr",
- /* 253 */ "expr ::= expr LE expr",
- /* 254 */ "expr ::= expr GE expr",
- /* 255 */ "expr ::= expr NE expr",
- /* 256 */ "expr ::= expr EQ expr",
- /* 257 */ "expr ::= expr BETWEEN expr AND expr",
- /* 258 */ "expr ::= expr AND expr",
- /* 259 */ "expr ::= expr OR expr",
- /* 260 */ "expr ::= expr PLUS expr",
- /* 261 */ "expr ::= expr MINUS expr",
- /* 262 */ "expr ::= expr STAR expr",
- /* 263 */ "expr ::= expr SLASH expr",
- /* 264 */ "expr ::= expr REM expr",
- /* 265 */ "expr ::= expr LIKE expr",
- /* 266 */ "expr ::= expr IN LP exprlist RP",
- /* 267 */ "exprlist ::= exprlist COMMA expritem",
- /* 268 */ "exprlist ::= expritem",
- /* 269 */ "expritem ::= expr",
- /* 270 */ "expritem ::=",
- /* 271 */ "cmd ::= RESET QUERY CACHE",
- /* 272 */ "cmd ::= SYNCDB ids REPLICA",
- /* 273 */ "cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist",
- /* 274 */ "cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids",
- /* 275 */ "cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist",
- /* 276 */ "cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist",
- /* 277 */ "cmd ::= ALTER TABLE ids cpxName DROP TAG ids",
- /* 278 */ "cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids",
- /* 279 */ "cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem",
- /* 280 */ "cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist",
- /* 281 */ "cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist",
- /* 282 */ "cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids",
- /* 283 */ "cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist",
- /* 284 */ "cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist",
- /* 285 */ "cmd ::= ALTER STABLE ids cpxName DROP TAG ids",
- /* 286 */ "cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids",
- /* 287 */ "cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem",
- /* 288 */ "cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist",
- /* 289 */ "cmd ::= KILL CONNECTION INTEGER",
- /* 290 */ "cmd ::= KILL STREAM INTEGER COLON INTEGER",
- /* 291 */ "cmd ::= KILL QUERY INTEGER COLON INTEGER",
+ /* 0 */ "program ::= cmd",
+ /* 1 */ "cmd ::= SHOW DATABASES",
+ /* 2 */ "cmd ::= SHOW TOPICS",
+ /* 3 */ "cmd ::= SHOW FUNCTIONS",
+ /* 4 */ "cmd ::= SHOW MNODES",
+ /* 5 */ "cmd ::= SHOW DNODES",
+ /* 6 */ "cmd ::= SHOW ACCOUNTS",
+ /* 7 */ "cmd ::= SHOW USERS",
+ /* 8 */ "cmd ::= SHOW MODULES",
+ /* 9 */ "cmd ::= SHOW QUERIES",
+ /* 10 */ "cmd ::= SHOW CONNECTIONS",
+ /* 11 */ "cmd ::= SHOW STREAMS",
+ /* 12 */ "cmd ::= SHOW VARIABLES",
+ /* 13 */ "cmd ::= SHOW SCORES",
+ /* 14 */ "cmd ::= SHOW GRANTS",
+ /* 15 */ "cmd ::= SHOW VNODES",
+ /* 16 */ "cmd ::= SHOW VNODES IPTOKEN",
+ /* 17 */ "dbPrefix ::=",
+ /* 18 */ "dbPrefix ::= ids DOT",
+ /* 19 */ "cpxName ::=",
+ /* 20 */ "cpxName ::= DOT ids",
+ /* 21 */ "cmd ::= SHOW CREATE TABLE ids cpxName",
+ /* 22 */ "cmd ::= SHOW CREATE STABLE ids cpxName",
+ /* 23 */ "cmd ::= SHOW CREATE DATABASE ids",
+ /* 24 */ "cmd ::= SHOW dbPrefix TABLES",
+ /* 25 */ "cmd ::= SHOW dbPrefix TABLES LIKE ids",
+ /* 26 */ "cmd ::= SHOW dbPrefix STABLES",
+ /* 27 */ "cmd ::= SHOW dbPrefix STABLES LIKE ids",
+ /* 28 */ "cmd ::= SHOW dbPrefix VGROUPS",
+ /* 29 */ "cmd ::= DROP TABLE ifexists ids cpxName",
+ /* 30 */ "cmd ::= DROP STABLE ifexists ids cpxName",
+ /* 31 */ "cmd ::= DROP DATABASE ifexists ids",
+ /* 32 */ "cmd ::= DROP TOPIC ifexists ids",
+ /* 33 */ "cmd ::= DROP FUNCTION ids",
+ /* 34 */ "cmd ::= DROP DNODE ids",
+ /* 35 */ "cmd ::= DROP USER ids",
+ /* 36 */ "cmd ::= DROP ACCOUNT ids",
+ /* 37 */ "cmd ::= USE ids",
+ /* 38 */ "cmd ::= DESCRIBE ids cpxName",
+ /* 39 */ "cmd ::= DESC ids cpxName",
+ /* 40 */ "cmd ::= ALTER USER ids PASS ids",
+ /* 41 */ "cmd ::= ALTER USER ids PRIVILEGE ids",
+ /* 42 */ "cmd ::= ALTER DNODE ids ids",
+ /* 43 */ "cmd ::= ALTER DNODE ids ids ids",
+ /* 44 */ "cmd ::= ALTER LOCAL ids",
+ /* 45 */ "cmd ::= ALTER LOCAL ids ids",
+ /* 46 */ "cmd ::= ALTER DATABASE ids alter_db_optr",
+ /* 47 */ "cmd ::= ALTER TOPIC ids alter_topic_optr",
+ /* 48 */ "cmd ::= ALTER ACCOUNT ids acct_optr",
+ /* 49 */ "cmd ::= ALTER ACCOUNT ids PASS ids acct_optr",
+ /* 50 */ "cmd ::= COMPACT VNODES IN LP exprlist RP",
+ /* 51 */ "ids ::= ID",
+ /* 52 */ "ids ::= STRING",
+ /* 53 */ "ifexists ::= IF EXISTS",
+ /* 54 */ "ifexists ::=",
+ /* 55 */ "ifnotexists ::= IF NOT EXISTS",
+ /* 56 */ "ifnotexists ::=",
+ /* 57 */ "cmd ::= CREATE DNODE ids",
+ /* 58 */ "cmd ::= CREATE ACCOUNT ids PASS ids acct_optr",
+ /* 59 */ "cmd ::= CREATE DATABASE ifnotexists ids db_optr",
+ /* 60 */ "cmd ::= CREATE TOPIC ifnotexists ids topic_optr",
+ /* 61 */ "cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize",
+ /* 62 */ "cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize",
+ /* 63 */ "cmd ::= CREATE USER ids PASS ids",
+ /* 64 */ "bufsize ::=",
+ /* 65 */ "bufsize ::= BUFSIZE INTEGER",
+ /* 66 */ "pps ::=",
+ /* 67 */ "pps ::= PPS INTEGER",
+ /* 68 */ "tseries ::=",
+ /* 69 */ "tseries ::= TSERIES INTEGER",
+ /* 70 */ "dbs ::=",
+ /* 71 */ "dbs ::= DBS INTEGER",
+ /* 72 */ "streams ::=",
+ /* 73 */ "streams ::= STREAMS INTEGER",
+ /* 74 */ "storage ::=",
+ /* 75 */ "storage ::= STORAGE INTEGER",
+ /* 76 */ "qtime ::=",
+ /* 77 */ "qtime ::= QTIME INTEGER",
+ /* 78 */ "users ::=",
+ /* 79 */ "users ::= USERS INTEGER",
+ /* 80 */ "conns ::=",
+ /* 81 */ "conns ::= CONNS INTEGER",
+ /* 82 */ "state ::=",
+ /* 83 */ "state ::= STATE ids",
+ /* 84 */ "acct_optr ::= pps tseries storage streams qtime dbs users conns state",
+ /* 85 */ "intitemlist ::= intitemlist COMMA intitem",
+ /* 86 */ "intitemlist ::= intitem",
+ /* 87 */ "intitem ::= INTEGER",
+ /* 88 */ "keep ::= KEEP intitemlist",
+ /* 89 */ "cache ::= CACHE INTEGER",
+ /* 90 */ "replica ::= REPLICA INTEGER",
+ /* 91 */ "quorum ::= QUORUM INTEGER",
+ /* 92 */ "days ::= DAYS INTEGER",
+ /* 93 */ "minrows ::= MINROWS INTEGER",
+ /* 94 */ "maxrows ::= MAXROWS INTEGER",
+ /* 95 */ "blocks ::= BLOCKS INTEGER",
+ /* 96 */ "ctime ::= CTIME INTEGER",
+ /* 97 */ "wal ::= WAL INTEGER",
+ /* 98 */ "fsync ::= FSYNC INTEGER",
+ /* 99 */ "comp ::= COMP INTEGER",
+ /* 100 */ "prec ::= PRECISION STRING",
+ /* 101 */ "update ::= UPDATE INTEGER",
+ /* 102 */ "cachelast ::= CACHELAST INTEGER",
+ /* 103 */ "partitions ::= PARTITIONS INTEGER",
+ /* 104 */ "db_optr ::=",
+ /* 105 */ "db_optr ::= db_optr cache",
+ /* 106 */ "db_optr ::= db_optr replica",
+ /* 107 */ "db_optr ::= db_optr quorum",
+ /* 108 */ "db_optr ::= db_optr days",
+ /* 109 */ "db_optr ::= db_optr minrows",
+ /* 110 */ "db_optr ::= db_optr maxrows",
+ /* 111 */ "db_optr ::= db_optr blocks",
+ /* 112 */ "db_optr ::= db_optr ctime",
+ /* 113 */ "db_optr ::= db_optr wal",
+ /* 114 */ "db_optr ::= db_optr fsync",
+ /* 115 */ "db_optr ::= db_optr comp",
+ /* 116 */ "db_optr ::= db_optr prec",
+ /* 117 */ "db_optr ::= db_optr keep",
+ /* 118 */ "db_optr ::= db_optr update",
+ /* 119 */ "db_optr ::= db_optr cachelast",
+ /* 120 */ "topic_optr ::= db_optr",
+ /* 121 */ "topic_optr ::= topic_optr partitions",
+ /* 122 */ "alter_db_optr ::=",
+ /* 123 */ "alter_db_optr ::= alter_db_optr replica",
+ /* 124 */ "alter_db_optr ::= alter_db_optr quorum",
+ /* 125 */ "alter_db_optr ::= alter_db_optr keep",
+ /* 126 */ "alter_db_optr ::= alter_db_optr blocks",
+ /* 127 */ "alter_db_optr ::= alter_db_optr comp",
+ /* 128 */ "alter_db_optr ::= alter_db_optr update",
+ /* 129 */ "alter_db_optr ::= alter_db_optr cachelast",
+ /* 130 */ "alter_topic_optr ::= alter_db_optr",
+ /* 131 */ "alter_topic_optr ::= alter_topic_optr partitions",
+ /* 132 */ "typename ::= ids",
+ /* 133 */ "typename ::= ids LP signed RP",
+ /* 134 */ "typename ::= ids UNSIGNED",
+ /* 135 */ "signed ::= INTEGER",
+ /* 136 */ "signed ::= PLUS INTEGER",
+ /* 137 */ "signed ::= MINUS INTEGER",
+ /* 138 */ "cmd ::= CREATE TABLE create_table_args",
+ /* 139 */ "cmd ::= CREATE TABLE create_stable_args",
+ /* 140 */ "cmd ::= CREATE STABLE create_stable_args",
+ /* 141 */ "cmd ::= CREATE TABLE create_table_list",
+ /* 142 */ "create_table_list ::= create_from_stable",
+ /* 143 */ "create_table_list ::= create_table_list create_from_stable",
+ /* 144 */ "create_table_args ::= ifnotexists ids cpxName LP columnlist RP",
+ /* 145 */ "create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP",
+ /* 146 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP",
+ /* 147 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP",
+ /* 148 */ "tagNamelist ::= tagNamelist COMMA ids",
+ /* 149 */ "tagNamelist ::= ids",
+ /* 150 */ "create_table_args ::= ifnotexists ids cpxName AS select",
+ /* 151 */ "columnlist ::= columnlist COMMA column",
+ /* 152 */ "columnlist ::= column",
+ /* 153 */ "column ::= ids typename",
+ /* 154 */ "tagitemlist ::= tagitemlist COMMA tagitem",
+ /* 155 */ "tagitemlist ::= tagitem",
+ /* 156 */ "tagitem ::= INTEGER",
+ /* 157 */ "tagitem ::= FLOAT",
+ /* 158 */ "tagitem ::= STRING",
+ /* 159 */ "tagitem ::= BOOL",
+ /* 160 */ "tagitem ::= NULL",
+ /* 161 */ "tagitem ::= NOW",
+ /* 162 */ "tagitem ::= MINUS INTEGER",
+ /* 163 */ "tagitem ::= MINUS FLOAT",
+ /* 164 */ "tagitem ::= PLUS INTEGER",
+ /* 165 */ "tagitem ::= PLUS FLOAT",
+ /* 166 */ "select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt",
+ /* 167 */ "select ::= LP select RP",
+ /* 168 */ "union ::= select",
+ /* 169 */ "union ::= union UNION ALL select",
+ /* 170 */ "cmd ::= union",
+ /* 171 */ "select ::= SELECT selcollist",
+ /* 172 */ "sclp ::= selcollist COMMA",
+ /* 173 */ "sclp ::=",
+ /* 174 */ "selcollist ::= sclp distinct expr as",
+ /* 175 */ "selcollist ::= sclp STAR",
+ /* 176 */ "as ::= AS ids",
+ /* 177 */ "as ::= ids",
+ /* 178 */ "as ::=",
+ /* 179 */ "distinct ::= DISTINCT",
+ /* 180 */ "distinct ::=",
+ /* 181 */ "from ::= FROM tablelist",
+ /* 182 */ "from ::= FROM sub",
+ /* 183 */ "sub ::= LP union RP",
+ /* 184 */ "sub ::= LP union RP ids",
+ /* 185 */ "sub ::= sub COMMA LP union RP ids",
+ /* 186 */ "tablelist ::= ids cpxName",
+ /* 187 */ "tablelist ::= ids cpxName ids",
+ /* 188 */ "tablelist ::= tablelist COMMA ids cpxName",
+ /* 189 */ "tablelist ::= tablelist COMMA ids cpxName ids",
+ /* 190 */ "tmvar ::= VARIABLE",
+ /* 191 */ "interval_option ::= intervalKey LP tmvar RP",
+ /* 192 */ "interval_option ::= intervalKey LP tmvar COMMA tmvar RP",
+ /* 193 */ "interval_option ::=",
+ /* 194 */ "intervalKey ::= INTERVAL",
+ /* 195 */ "intervalKey ::= EVERY",
+ /* 196 */ "session_option ::=",
+ /* 197 */ "session_option ::= SESSION LP ids cpxName COMMA tmvar RP",
+ /* 198 */ "windowstate_option ::=",
+ /* 199 */ "windowstate_option ::= STATE_WINDOW LP ids RP",
+ /* 200 */ "fill_opt ::=",
+ /* 201 */ "fill_opt ::= FILL LP ID COMMA tagitemlist RP",
+ /* 202 */ "fill_opt ::= FILL LP ID RP",
+ /* 203 */ "sliding_opt ::= SLIDING LP tmvar RP",
+ /* 204 */ "sliding_opt ::=",
+ /* 205 */ "orderby_opt ::=",
+ /* 206 */ "orderby_opt ::= ORDER BY sortlist",
+ /* 207 */ "sortlist ::= sortlist COMMA item sortorder",
+ /* 208 */ "sortlist ::= item sortorder",
+ /* 209 */ "item ::= ids cpxName",
+ /* 210 */ "sortorder ::= ASC",
+ /* 211 */ "sortorder ::= DESC",
+ /* 212 */ "sortorder ::=",
+ /* 213 */ "groupby_opt ::=",
+ /* 214 */ "groupby_opt ::= GROUP BY grouplist",
+ /* 215 */ "grouplist ::= grouplist COMMA item",
+ /* 216 */ "grouplist ::= item",
+ /* 217 */ "having_opt ::=",
+ /* 218 */ "having_opt ::= HAVING expr",
+ /* 219 */ "limit_opt ::=",
+ /* 220 */ "limit_opt ::= LIMIT signed",
+ /* 221 */ "limit_opt ::= LIMIT signed OFFSET signed",
+ /* 222 */ "limit_opt ::= LIMIT signed COMMA signed",
+ /* 223 */ "slimit_opt ::=",
+ /* 224 */ "slimit_opt ::= SLIMIT signed",
+ /* 225 */ "slimit_opt ::= SLIMIT signed SOFFSET signed",
+ /* 226 */ "slimit_opt ::= SLIMIT signed COMMA signed",
+ /* 227 */ "where_opt ::=",
+ /* 228 */ "where_opt ::= WHERE expr",
+ /* 229 */ "expr ::= LP expr RP",
+ /* 230 */ "expr ::= ID",
+ /* 231 */ "expr ::= ID DOT ID",
+ /* 232 */ "expr ::= ID DOT STAR",
+ /* 233 */ "expr ::= INTEGER",
+ /* 234 */ "expr ::= MINUS INTEGER",
+ /* 235 */ "expr ::= PLUS INTEGER",
+ /* 236 */ "expr ::= FLOAT",
+ /* 237 */ "expr ::= MINUS FLOAT",
+ /* 238 */ "expr ::= PLUS FLOAT",
+ /* 239 */ "expr ::= STRING",
+ /* 240 */ "expr ::= NOW",
+ /* 241 */ "expr ::= VARIABLE",
+ /* 242 */ "expr ::= PLUS VARIABLE",
+ /* 243 */ "expr ::= MINUS VARIABLE",
+ /* 244 */ "expr ::= BOOL",
+ /* 245 */ "expr ::= NULL",
+ /* 246 */ "expr ::= ID LP exprlist RP",
+ /* 247 */ "expr ::= ID LP STAR RP",
+ /* 248 */ "expr ::= expr IS NULL",
+ /* 249 */ "expr ::= expr IS NOT NULL",
+ /* 250 */ "expr ::= expr LT expr",
+ /* 251 */ "expr ::= expr GT expr",
+ /* 252 */ "expr ::= expr LE expr",
+ /* 253 */ "expr ::= expr GE expr",
+ /* 254 */ "expr ::= expr NE expr",
+ /* 255 */ "expr ::= expr EQ expr",
+ /* 256 */ "expr ::= expr BETWEEN expr AND expr",
+ /* 257 */ "expr ::= expr AND expr",
+ /* 258 */ "expr ::= expr OR expr",
+ /* 259 */ "expr ::= expr PLUS expr",
+ /* 260 */ "expr ::= expr MINUS expr",
+ /* 261 */ "expr ::= expr STAR expr",
+ /* 262 */ "expr ::= expr SLASH expr",
+ /* 263 */ "expr ::= expr REM expr",
+ /* 264 */ "expr ::= expr LIKE expr",
+ /* 265 */ "expr ::= expr IN LP exprlist RP",
+ /* 266 */ "exprlist ::= exprlist COMMA expritem",
+ /* 267 */ "exprlist ::= expritem",
+ /* 268 */ "expritem ::= expr",
+ /* 269 */ "expritem ::=",
+ /* 270 */ "cmd ::= RESET QUERY CACHE",
+ /* 271 */ "cmd ::= SYNCDB ids REPLICA",
+ /* 272 */ "cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist",
+ /* 273 */ "cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids",
+ /* 274 */ "cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist",
+ /* 275 */ "cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist",
+ /* 276 */ "cmd ::= ALTER TABLE ids cpxName DROP TAG ids",
+ /* 277 */ "cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids",
+ /* 278 */ "cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem",
+ /* 279 */ "cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist",
+ /* 280 */ "cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist",
+ /* 281 */ "cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids",
+ /* 282 */ "cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist",
+ /* 283 */ "cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist",
+ /* 284 */ "cmd ::= ALTER STABLE ids cpxName DROP TAG ids",
+ /* 285 */ "cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids",
+ /* 286 */ "cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem",
+ /* 287 */ "cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist",
+ /* 288 */ "cmd ::= KILL CONNECTION INTEGER",
+ /* 289 */ "cmd ::= KILL STREAM INTEGER COLON INTEGER",
+ /* 290 */ "cmd ::= KILL QUERY INTEGER COLON INTEGER",
};
#endif /* NDEBUG */
@@ -1608,7 +1610,7 @@ static int yyGrowStack(yyParser *p){
#endif
p->yystksz = newSize;
}
- return pNew==0;
+ return pNew==0;
}
#endif
@@ -1622,12 +1624,12 @@ static int yyGrowStack(yyParser *p){
#endif
/* Initialize a new parser that has already been allocated.
- */
+*/
void ParseInit(void *yypRawParser ParseCTX_PDECL){
yyParser *yypParser = (yyParser*)yypRawParser;
ParseCTX_STORE
#ifdef YYTRACKMAXSTACKDEPTH
- yypParser->yyhwm = 0;
+ yypParser->yyhwm = 0;
#endif
#if YYSTACKDEPTH<=0
yypParser->yytos = NULL;
@@ -1650,7 +1652,7 @@ void ParseInit(void *yypRawParser ParseCTX_PDECL){
}
#ifndef Parse_ENGINEALWAYSONSTACK
-/*
+/*
** This function allocates a new parser.
** The only argument is a pointer to a function which works like
** malloc.
@@ -1677,102 +1679,102 @@ void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
/* The following function deletes the "minor type" or semantic value
** associated with a symbol. The symbol can be either a terminal
** or nonterminal. "yymajor" is the symbol code, and "yypminor" is
-** a pointer to the value to be deleted. The code used to do the
+** a pointer to the value to be deleted. The code used to do the
** deletions is derived from the %destructor and/or %token_destructor
** directives of the input grammar.
*/
static void yy_destructor(
- yyParser *yypParser, /* The parser */
- YYCODETYPE yymajor, /* Type code for object to destroy */
- YYMINORTYPE *yypminor /* The object to be destroyed */
+ yyParser *yypParser, /* The parser */
+ YYCODETYPE yymajor, /* Type code for object to destroy */
+ YYMINORTYPE *yypminor /* The object to be destroyed */
){
ParseARG_FETCH
- ParseCTX_FETCH
- switch( yymajor ){
- /* Here is inserted the actions which take place when a
+ ParseCTX_FETCH
+ switch( yymajor ){
+ /* Here is inserted the actions which take place when a
** terminal or non-terminal is destroyed. This can happen
** when the symbol is popped from the stack during a
- ** reduce or during error processing or when a parser is
+ ** reduce or during error processing or when a parser is
** being destroyed before it is finished parsing.
**
** Note: during a reduce, the only symbols destroyed are those
** which appear on the RHS of the rule, but which are *not* used
** inside the C code.
- */
- /********* Begin destructor definitions ***************************************/
- case 205: /* exprlist */
- case 249: /* selcollist */
- case 263: /* sclp */
- {
-#line 760 "sql.y"
- tSqlExprListDestroy((yypminor->yy403));
-#line 1709 "sql.c"
- }
- break;
- case 220: /* intitemlist */
- case 222: /* keep */
- case 243: /* columnlist */
- case 244: /* tagitemlist */
- case 245: /* tagNamelist */
- case 256: /* fill_opt */
- case 257: /* groupby_opt */
- case 259: /* orderby_opt */
- case 271: /* sortlist */
- case 275: /* grouplist */
- {
-#line 258 "sql.y"
- taosArrayDestroy((yypminor->yy403));
-#line 1725 "sql.c"
- }
- break;
- case 241: /* create_table_list */
- {
-#line 366 "sql.y"
- destroyCreateTableSql((yypminor->yy56));
-#line 1732 "sql.c"
- }
- break;
- case 246: /* select */
- {
-#line 486 "sql.y"
- destroySqlNode((yypminor->yy224));
-#line 1739 "sql.c"
- }
- break;
- case 250: /* from */
- case 267: /* tablelist */
- case 268: /* sub */
- {
-#line 541 "sql.y"
- destroyRelationInfo((yypminor->yy114));
-#line 1748 "sql.c"
- }
- break;
- case 251: /* where_opt */
- case 258: /* having_opt */
- case 265: /* expr */
- case 276: /* expritem */
- {
-#line 693 "sql.y"
- tSqlExprDestroy((yypminor->yy260));
-#line 1758 "sql.c"
- }
- break;
- case 262: /* union */
- {
-#line 494 "sql.y"
- destroyAllSqlNode((yypminor->yy403));
-#line 1765 "sql.c"
- }
- break;
- case 272: /* sortitem */
- {
-#line 626 "sql.y"
- tVariantDestroy(&(yypminor->yy488));
-#line 1772 "sql.c"
- }
- break;
- /********* End destructor definitions *****************************************/
+ */
+/********* Begin destructor definitions ***************************************/
+ case 206: /* exprlist */
+ case 250: /* selcollist */
+ case 264: /* sclp */
+{
+#line 754 "sql.y"
+tSqlExprListDestroy((yypminor->yy421));
+#line 1711 "sql.c"
+}
+ break;
+ case 221: /* intitemlist */
+ case 223: /* keep */
+ case 244: /* columnlist */
+ case 245: /* tagitemlist */
+ case 246: /* tagNamelist */
+ case 257: /* fill_opt */
+ case 258: /* groupby_opt */
+ case 260: /* orderby_opt */
+ case 272: /* sortlist */
+ case 276: /* grouplist */
+{
+#line 252 "sql.y"
+taosArrayDestroy((yypminor->yy421));
+#line 1727 "sql.c"
+}
+ break;
+ case 242: /* create_table_list */
+{
+#line 360 "sql.y"
+destroyCreateTableSql((yypminor->yy438));
+#line 1734 "sql.c"
+}
+ break;
+ case 247: /* select */
+{
+#line 480 "sql.y"
+destroySqlNode((yypminor->yy56));
+#line 1741 "sql.c"
+}
+ break;
+ case 251: /* from */
+ case 268: /* tablelist */
+ case 269: /* sub */
+{
+#line 535 "sql.y"
+destroyRelationInfo((yypminor->yy8));
+#line 1750 "sql.c"
+}
+ break;
+ case 252: /* where_opt */
+ case 259: /* having_opt */
+ case 266: /* expr */
+ case 277: /* expritem */
+{
+#line 687 "sql.y"
+tSqlExprDestroy((yypminor->yy439));
+#line 1760 "sql.c"
+}
+ break;
+ case 263: /* union */
+{
+#line 488 "sql.y"
+destroyAllSqlNode((yypminor->yy421));
+#line 1767 "sql.c"
+}
+ break;
+ case 273: /* sortitem */
+{
+#line 620 "sql.y"
+tVariantDestroy(&(yypminor->yy430));
+#line 1774 "sql.c"
+}
+ break;
+/********* End destructor definitions *****************************************/
default: break; /* If no destructor action specified: do nothing */
}
}
@@ -1791,8 +1793,8 @@ static void yy_pop_parser_stack(yyParser *pParser){
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sPopping %s\n",
- yyTracePrompt,
- yyTokenName[yytos->major]);
+ yyTracePrompt,
+ yyTokenName[yytos->major]);
}
#endif
yy_destructor(pParser, yytos->major, &yytos->minor);
@@ -1810,7 +1812,7 @@ void ParseFinalize(void *p){
}
#ifndef Parse_ENGINEALWAYSONSTACK
-/*
+/*
** Deallocate and destroy a parser. Destructors are called for
** all stack elements before shutting the parser down.
**
@@ -1819,8 +1821,8 @@ void ParseFinalize(void *p){
** assumed that the input pointer is never NULL.
*/
void ParseFree(
- void *p, /* The parser to be deleted */
- void (*freeProc)(void*) /* Function used to reclaim memory */
+ void *p, /* The parser to be deleted */
+ void (*freeProc)(void*) /* Function used to reclaim memory */
){
#ifndef YYPARSEFREENEVERNULL
if( p==0 ) return;
@@ -1882,8 +1884,8 @@ int ParseCoverage(FILE *out){
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_shift_action(
- YYCODETYPE iLookAhead, /* The look-ahead token */
- YYACTIONTYPE stateno /* Current state number */
+ YYCODETYPE iLookAhead, /* The look-ahead token */
+ YYACTIONTYPE stateno /* Current state number */
){
int i;
@@ -1910,7 +1912,7 @@ static YYACTIONTYPE yy_find_shift_action(
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
- yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
+ yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
}
#endif
assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
@@ -1926,8 +1928,8 @@ static YYACTIONTYPE yy_find_shift_action(
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
- yyTracePrompt, yyTokenName[iLookAhead],
- yyTokenName[YYWILDCARD]);
+ yyTracePrompt, yyTokenName[iLookAhead],
+ yyTokenName[YYWILDCARD]);
}
#endif /* NDEBUG */
return yy_action[j];
@@ -1947,8 +1949,8 @@ static YYACTIONTYPE yy_find_shift_action(
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_reduce_action(
- YYACTIONTYPE stateno, /* Current state number */
- YYCODETYPE iLookAhead /* The look-ahead token */
+ YYACTIONTYPE stateno, /* Current state number */
+ YYCODETYPE iLookAhead /* The look-ahead token */
){
int i;
#ifdef YYERRORSYMBOL
@@ -1976,20 +1978,20 @@ static YYACTIONTYPE yy_find_reduce_action(
** The following routine is called if the stack overflows.
*/
static void yyStackOverflow(yyParser *yypParser){
- ParseARG_FETCH
- ParseCTX_FETCH
+ ParseARG_FETCH
+ ParseCTX_FETCH
#ifndef NDEBUG
- if( yyTraceFILE ){
- fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
- }
+ if( yyTraceFILE ){
+ fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
+ }
#endif
- while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
- /* Here code is inserted which will execute if the parser
+ while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
+ /* Here code is inserted which will execute if the parser
** stack every overflows */
- /******** Begin %stack_overflow code ******************************************/
- /******** End %stack_overflow code ********************************************/
- ParseARG_STORE /* Suppress warning about unused %extra_argument var */
- ParseCTX_STORE
+/******** Begin %stack_overflow code ******************************************/
+/******** End %stack_overflow code ********************************************/
+ ParseARG_STORE /* Suppress warning about unused %extra_argument var */
+ ParseCTX_STORE
}
/*
@@ -2000,12 +2002,12 @@ static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
if( yyTraceFILE ){
if( yyNewStateyytos->major],
- yyNewState);
+ yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
+ yyNewState);
}else{
fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n",
- yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
- yyNewState - YY_MIN_REDUCE);
+ yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
+ yyNewState - YY_MIN_REDUCE);
}
}
}
@@ -2017,10 +2019,10 @@ static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
** Perform a shift action.
*/
static void yy_shift(
- yyParser *yypParser, /* The parser to be shifted */
- YYACTIONTYPE yyNewState, /* The new state to shift in */
- YYCODETYPE yyMajor, /* The major token to shift in */
- ParseTOKENTYPE yyMinor /* The minor token to shift in */
+ yyParser *yypParser, /* The parser to be shifted */
+ YYACTIONTYPE yyNewState, /* The new state to shift in */
+ YYCODETYPE yyMajor, /* The major token to shift in */
+ ParseTOKENTYPE yyMinor /* The minor token to shift in */
){
yyStackEntry *yytos;
yypParser->yytos++;
@@ -2030,7 +2032,7 @@ static void yy_shift(
assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) );
}
#endif
-#if YYSTACKDEPTH>0
+#if YYSTACKDEPTH>0
if( yypParser->yytos>yypParser->yystackEnd ){
yypParser->yytos--;
yyStackOverflow(yypParser);
@@ -2058,595 +2060,593 @@ static void yy_shift(
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static const YYCODETYPE yyRuleInfoLhs[] = {
- 196, /* (0) program ::= cmd */
- 197, /* (1) cmd ::= SHOW DATABASES */
- 197, /* (2) cmd ::= SHOW TOPICS */
- 197, /* (3) cmd ::= SHOW FUNCTIONS */
- 197, /* (4) cmd ::= SHOW MNODES */
- 197, /* (5) cmd ::= SHOW DNODES */
- 197, /* (6) cmd ::= SHOW ACCOUNTS */
- 197, /* (7) cmd ::= SHOW USERS */
- 197, /* (8) cmd ::= SHOW MODULES */
- 197, /* (9) cmd ::= SHOW QUERIES */
- 197, /* (10) cmd ::= SHOW CONNECTIONS */
- 197, /* (11) cmd ::= SHOW STREAMS */
- 197, /* (12) cmd ::= SHOW VARIABLES */
- 197, /* (13) cmd ::= SHOW SCORES */
- 197, /* (14) cmd ::= SHOW GRANTS */
- 197, /* (15) cmd ::= SHOW VNODES */
- 197, /* (16) cmd ::= SHOW VNODES IPTOKEN */
- 198, /* (17) dbPrefix ::= */
- 198, /* (18) dbPrefix ::= ids DOT */
- 200, /* (19) cpxName ::= */
- 200, /* (20) cpxName ::= DOT ids */
- 197, /* (21) cmd ::= SHOW CREATE TABLE ids cpxName */
- 197, /* (22) cmd ::= SHOW CREATE STABLE ids cpxName */
- 197, /* (23) cmd ::= SHOW CREATE DATABASE ids */
- 197, /* (24) cmd ::= SHOW dbPrefix TABLES */
- 197, /* (25) cmd ::= SHOW dbPrefix TABLES LIKE ids */
- 197, /* (26) cmd ::= SHOW dbPrefix STABLES */
- 197, /* (27) cmd ::= SHOW dbPrefix STABLES LIKE ids */
- 197, /* (28) cmd ::= SHOW dbPrefix VGROUPS */
- 197, /* (29) cmd ::= SHOW dbPrefix VGROUPS ids */
- 197, /* (30) cmd ::= DROP TABLE ifexists ids cpxName */
- 197, /* (31) cmd ::= DROP STABLE ifexists ids cpxName */
- 197, /* (32) cmd ::= DROP DATABASE ifexists ids */
- 197, /* (33) cmd ::= DROP TOPIC ifexists ids */
- 197, /* (34) cmd ::= DROP FUNCTION ids */
- 197, /* (35) cmd ::= DROP DNODE ids */
- 197, /* (36) cmd ::= DROP USER ids */
- 197, /* (37) cmd ::= DROP ACCOUNT ids */
- 197, /* (38) cmd ::= USE ids */
- 197, /* (39) cmd ::= DESCRIBE ids cpxName */
- 197, /* (40) cmd ::= DESC ids cpxName */
- 197, /* (41) cmd ::= ALTER USER ids PASS ids */
- 197, /* (42) cmd ::= ALTER USER ids PRIVILEGE ids */
- 197, /* (43) cmd ::= ALTER DNODE ids ids */
- 197, /* (44) cmd ::= ALTER DNODE ids ids ids */
- 197, /* (45) cmd ::= ALTER LOCAL ids */
- 197, /* (46) cmd ::= ALTER LOCAL ids ids */
- 197, /* (47) cmd ::= ALTER DATABASE ids alter_db_optr */
- 197, /* (48) cmd ::= ALTER TOPIC ids alter_topic_optr */
- 197, /* (49) cmd ::= ALTER ACCOUNT ids acct_optr */
- 197, /* (50) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
- 197, /* (51) cmd ::= COMPACT VNODES IN LP exprlist RP */
- 199, /* (52) ids ::= ID */
- 199, /* (53) ids ::= STRING */
- 201, /* (54) ifexists ::= IF EXISTS */
- 201, /* (55) ifexists ::= */
- 206, /* (56) ifnotexists ::= IF NOT EXISTS */
- 206, /* (57) ifnotexists ::= */
- 197, /* (58) cmd ::= CREATE DNODE ids */
- 197, /* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
- 197, /* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
- 197, /* (61) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
- 197, /* (62) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
- 197, /* (63) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
- 197, /* (64) cmd ::= CREATE USER ids PASS ids */
- 210, /* (65) bufsize ::= */
- 210, /* (66) bufsize ::= BUFSIZE INTEGER */
- 211, /* (67) pps ::= */
- 211, /* (68) pps ::= PPS INTEGER */
- 212, /* (69) tseries ::= */
- 212, /* (70) tseries ::= TSERIES INTEGER */
- 213, /* (71) dbs ::= */
- 213, /* (72) dbs ::= DBS INTEGER */
- 214, /* (73) streams ::= */
- 214, /* (74) streams ::= STREAMS INTEGER */
- 215, /* (75) storage ::= */
- 215, /* (76) storage ::= STORAGE INTEGER */
- 216, /* (77) qtime ::= */
- 216, /* (78) qtime ::= QTIME INTEGER */
- 217, /* (79) users ::= */
- 217, /* (80) users ::= USERS INTEGER */
- 218, /* (81) conns ::= */
- 218, /* (82) conns ::= CONNS INTEGER */
- 219, /* (83) state ::= */
- 219, /* (84) state ::= STATE ids */
- 204, /* (85) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
- 220, /* (86) intitemlist ::= intitemlist COMMA intitem */
- 220, /* (87) intitemlist ::= intitem */
- 221, /* (88) intitem ::= INTEGER */
- 222, /* (89) keep ::= KEEP intitemlist */
- 223, /* (90) cache ::= CACHE INTEGER */
- 224, /* (91) replica ::= REPLICA INTEGER */
- 225, /* (92) quorum ::= QUORUM INTEGER */
- 226, /* (93) days ::= DAYS INTEGER */
- 227, /* (94) minrows ::= MINROWS INTEGER */
- 228, /* (95) maxrows ::= MAXROWS INTEGER */
- 229, /* (96) blocks ::= BLOCKS INTEGER */
- 230, /* (97) ctime ::= CTIME INTEGER */
- 231, /* (98) wal ::= WAL INTEGER */
- 232, /* (99) fsync ::= FSYNC INTEGER */
- 233, /* (100) comp ::= COMP INTEGER */
- 234, /* (101) prec ::= PRECISION STRING */
- 235, /* (102) update ::= UPDATE INTEGER */
- 236, /* (103) cachelast ::= CACHELAST INTEGER */
- 237, /* (104) partitions ::= PARTITIONS INTEGER */
- 207, /* (105) db_optr ::= */
- 207, /* (106) db_optr ::= db_optr cache */
- 207, /* (107) db_optr ::= db_optr replica */
- 207, /* (108) db_optr ::= db_optr quorum */
- 207, /* (109) db_optr ::= db_optr days */
- 207, /* (110) db_optr ::= db_optr minrows */
- 207, /* (111) db_optr ::= db_optr maxrows */
- 207, /* (112) db_optr ::= db_optr blocks */
- 207, /* (113) db_optr ::= db_optr ctime */
- 207, /* (114) db_optr ::= db_optr wal */
- 207, /* (115) db_optr ::= db_optr fsync */
- 207, /* (116) db_optr ::= db_optr comp */
- 207, /* (117) db_optr ::= db_optr prec */
- 207, /* (118) db_optr ::= db_optr keep */
- 207, /* (119) db_optr ::= db_optr update */
- 207, /* (120) db_optr ::= db_optr cachelast */
- 208, /* (121) topic_optr ::= db_optr */
- 208, /* (122) topic_optr ::= topic_optr partitions */
- 202, /* (123) alter_db_optr ::= */
- 202, /* (124) alter_db_optr ::= alter_db_optr replica */
- 202, /* (125) alter_db_optr ::= alter_db_optr quorum */
- 202, /* (126) alter_db_optr ::= alter_db_optr keep */
- 202, /* (127) alter_db_optr ::= alter_db_optr blocks */
- 202, /* (128) alter_db_optr ::= alter_db_optr comp */
- 202, /* (129) alter_db_optr ::= alter_db_optr update */
- 202, /* (130) alter_db_optr ::= alter_db_optr cachelast */
- 203, /* (131) alter_topic_optr ::= alter_db_optr */
- 203, /* (132) alter_topic_optr ::= alter_topic_optr partitions */
- 209, /* (133) typename ::= ids */
- 209, /* (134) typename ::= ids LP signed RP */
- 209, /* (135) typename ::= ids UNSIGNED */
- 238, /* (136) signed ::= INTEGER */
- 238, /* (137) signed ::= PLUS INTEGER */
- 238, /* (138) signed ::= MINUS INTEGER */
- 197, /* (139) cmd ::= CREATE TABLE create_table_args */
- 197, /* (140) cmd ::= CREATE TABLE create_stable_args */
- 197, /* (141) cmd ::= CREATE STABLE create_stable_args */
- 197, /* (142) cmd ::= CREATE TABLE create_table_list */
- 241, /* (143) create_table_list ::= create_from_stable */
- 241, /* (144) create_table_list ::= create_table_list create_from_stable */
- 239, /* (145) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
- 240, /* (146) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
- 242, /* (147) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
- 242, /* (148) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
- 245, /* (149) tagNamelist ::= tagNamelist COMMA ids */
- 245, /* (150) tagNamelist ::= ids */
- 239, /* (151) create_table_args ::= ifnotexists ids cpxName AS select */
- 243, /* (152) columnlist ::= columnlist COMMA column */
- 243, /* (153) columnlist ::= column */
- 247, /* (154) column ::= ids typename */
- 244, /* (155) tagitemlist ::= tagitemlist COMMA tagitem */
- 244, /* (156) tagitemlist ::= tagitem */
- 248, /* (157) tagitem ::= INTEGER */
- 248, /* (158) tagitem ::= FLOAT */
- 248, /* (159) tagitem ::= STRING */
- 248, /* (160) tagitem ::= BOOL */
- 248, /* (161) tagitem ::= NULL */
- 248, /* (162) tagitem ::= NOW */
- 248, /* (163) tagitem ::= MINUS INTEGER */
- 248, /* (164) tagitem ::= MINUS FLOAT */
- 248, /* (165) tagitem ::= PLUS INTEGER */
- 248, /* (166) tagitem ::= PLUS FLOAT */
- 246, /* (167) select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
- 246, /* (168) select ::= LP select RP */
- 262, /* (169) union ::= select */
- 262, /* (170) union ::= union UNION ALL select */
- 197, /* (171) cmd ::= union */
- 246, /* (172) select ::= SELECT selcollist */
- 263, /* (173) sclp ::= selcollist COMMA */
- 263, /* (174) sclp ::= */
- 249, /* (175) selcollist ::= sclp distinct expr as */
- 249, /* (176) selcollist ::= sclp STAR */
- 266, /* (177) as ::= AS ids */
- 266, /* (178) as ::= ids */
- 266, /* (179) as ::= */
- 264, /* (180) distinct ::= DISTINCT */
- 264, /* (181) distinct ::= */
- 250, /* (182) from ::= FROM tablelist */
- 250, /* (183) from ::= FROM sub */
- 268, /* (184) sub ::= LP union RP */
- 268, /* (185) sub ::= LP union RP ids */
- 268, /* (186) sub ::= sub COMMA LP union RP ids */
- 267, /* (187) tablelist ::= ids cpxName */
- 267, /* (188) tablelist ::= ids cpxName ids */
- 267, /* (189) tablelist ::= tablelist COMMA ids cpxName */
- 267, /* (190) tablelist ::= tablelist COMMA ids cpxName ids */
- 269, /* (191) tmvar ::= VARIABLE */
- 252, /* (192) interval_option ::= intervalKey LP tmvar RP */
- 252, /* (193) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
- 252, /* (194) interval_option ::= */
- 270, /* (195) intervalKey ::= INTERVAL */
- 270, /* (196) intervalKey ::= EVERY */
- 254, /* (197) session_option ::= */
- 254, /* (198) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
- 255, /* (199) windowstate_option ::= */
- 255, /* (200) windowstate_option ::= STATE_WINDOW LP ids RP */
- 256, /* (201) fill_opt ::= */
- 256, /* (202) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
- 256, /* (203) fill_opt ::= FILL LP ID RP */
- 253, /* (204) sliding_opt ::= SLIDING LP tmvar RP */
- 253, /* (205) sliding_opt ::= */
- 259, /* (206) orderby_opt ::= */
- 259, /* (207) orderby_opt ::= ORDER BY sortlist */
- 271, /* (208) sortlist ::= sortlist COMMA item sortorder */
- 271, /* (209) sortlist ::= item sortorder */
- 273, /* (210) item ::= ids cpxName */
- 274, /* (211) sortorder ::= ASC */
- 274, /* (212) sortorder ::= DESC */
- 274, /* (213) sortorder ::= */
- 257, /* (214) groupby_opt ::= */
- 257, /* (215) groupby_opt ::= GROUP BY grouplist */
- 275, /* (216) grouplist ::= grouplist COMMA item */
- 275, /* (217) grouplist ::= item */
- 258, /* (218) having_opt ::= */
- 258, /* (219) having_opt ::= HAVING expr */
- 261, /* (220) limit_opt ::= */
- 261, /* (221) limit_opt ::= LIMIT signed */
- 261, /* (222) limit_opt ::= LIMIT signed OFFSET signed */
- 261, /* (223) limit_opt ::= LIMIT signed COMMA signed */
- 260, /* (224) slimit_opt ::= */
- 260, /* (225) slimit_opt ::= SLIMIT signed */
- 260, /* (226) slimit_opt ::= SLIMIT signed SOFFSET signed */
- 260, /* (227) slimit_opt ::= SLIMIT signed COMMA signed */
- 251, /* (228) where_opt ::= */
- 251, /* (229) where_opt ::= WHERE expr */
- 265, /* (230) expr ::= LP expr RP */
- 265, /* (231) expr ::= ID */
- 265, /* (232) expr ::= ID DOT ID */
- 265, /* (233) expr ::= ID DOT STAR */
- 265, /* (234) expr ::= INTEGER */
- 265, /* (235) expr ::= MINUS INTEGER */
- 265, /* (236) expr ::= PLUS INTEGER */
- 265, /* (237) expr ::= FLOAT */
- 265, /* (238) expr ::= MINUS FLOAT */
- 265, /* (239) expr ::= PLUS FLOAT */
- 265, /* (240) expr ::= STRING */
- 265, /* (241) expr ::= NOW */
- 265, /* (242) expr ::= VARIABLE */
- 265, /* (243) expr ::= PLUS VARIABLE */
- 265, /* (244) expr ::= MINUS VARIABLE */
- 265, /* (245) expr ::= BOOL */
- 265, /* (246) expr ::= NULL */
- 265, /* (247) expr ::= ID LP exprlist RP */
- 265, /* (248) expr ::= ID LP STAR RP */
- 265, /* (249) expr ::= expr IS NULL */
- 265, /* (250) expr ::= expr IS NOT NULL */
- 265, /* (251) expr ::= expr LT expr */
- 265, /* (252) expr ::= expr GT expr */
- 265, /* (253) expr ::= expr LE expr */
- 265, /* (254) expr ::= expr GE expr */
- 265, /* (255) expr ::= expr NE expr */
- 265, /* (256) expr ::= expr EQ expr */
- 265, /* (257) expr ::= expr BETWEEN expr AND expr */
- 265, /* (258) expr ::= expr AND expr */
- 265, /* (259) expr ::= expr OR expr */
- 265, /* (260) expr ::= expr PLUS expr */
- 265, /* (261) expr ::= expr MINUS expr */
- 265, /* (262) expr ::= expr STAR expr */
- 265, /* (263) expr ::= expr SLASH expr */
- 265, /* (264) expr ::= expr REM expr */
- 265, /* (265) expr ::= expr LIKE expr */
- 265, /* (266) expr ::= expr IN LP exprlist RP */
- 205, /* (267) exprlist ::= exprlist COMMA expritem */
- 205, /* (268) exprlist ::= expritem */
- 276, /* (269) expritem ::= expr */
- 276, /* (270) expritem ::= */
- 197, /* (271) cmd ::= RESET QUERY CACHE */
- 197, /* (272) cmd ::= SYNCDB ids REPLICA */
- 197, /* (273) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
- 197, /* (274) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
- 197, /* (275) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
- 197, /* (276) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
- 197, /* (277) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
- 197, /* (278) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
- 197, /* (279) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
- 197, /* (280) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
- 197, /* (281) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
- 197, /* (282) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
- 197, /* (283) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
- 197, /* (284) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
- 197, /* (285) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
- 197, /* (286) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
- 197, /* (287) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
- 197, /* (288) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
- 197, /* (289) cmd ::= KILL CONNECTION INTEGER */
- 197, /* (290) cmd ::= KILL STREAM INTEGER COLON INTEGER */
- 197, /* (291) cmd ::= KILL QUERY INTEGER COLON INTEGER */
+ 197, /* (0) program ::= cmd */
+ 198, /* (1) cmd ::= SHOW DATABASES */
+ 198, /* (2) cmd ::= SHOW TOPICS */
+ 198, /* (3) cmd ::= SHOW FUNCTIONS */
+ 198, /* (4) cmd ::= SHOW MNODES */
+ 198, /* (5) cmd ::= SHOW DNODES */
+ 198, /* (6) cmd ::= SHOW ACCOUNTS */
+ 198, /* (7) cmd ::= SHOW USERS */
+ 198, /* (8) cmd ::= SHOW MODULES */
+ 198, /* (9) cmd ::= SHOW QUERIES */
+ 198, /* (10) cmd ::= SHOW CONNECTIONS */
+ 198, /* (11) cmd ::= SHOW STREAMS */
+ 198, /* (12) cmd ::= SHOW VARIABLES */
+ 198, /* (13) cmd ::= SHOW SCORES */
+ 198, /* (14) cmd ::= SHOW GRANTS */
+ 198, /* (15) cmd ::= SHOW VNODES */
+ 198, /* (16) cmd ::= SHOW VNODES IPTOKEN */
+ 199, /* (17) dbPrefix ::= */
+ 199, /* (18) dbPrefix ::= ids DOT */
+ 201, /* (19) cpxName ::= */
+ 201, /* (20) cpxName ::= DOT ids */
+ 198, /* (21) cmd ::= SHOW CREATE TABLE ids cpxName */
+ 198, /* (22) cmd ::= SHOW CREATE STABLE ids cpxName */
+ 198, /* (23) cmd ::= SHOW CREATE DATABASE ids */
+ 198, /* (24) cmd ::= SHOW dbPrefix TABLES */
+ 198, /* (25) cmd ::= SHOW dbPrefix TABLES LIKE ids */
+ 198, /* (26) cmd ::= SHOW dbPrefix STABLES */
+ 198, /* (27) cmd ::= SHOW dbPrefix STABLES LIKE ids */
+ 198, /* (28) cmd ::= SHOW dbPrefix VGROUPS */
+ 198, /* (29) cmd ::= DROP TABLE ifexists ids cpxName */
+ 198, /* (30) cmd ::= DROP STABLE ifexists ids cpxName */
+ 198, /* (31) cmd ::= DROP DATABASE ifexists ids */
+ 198, /* (32) cmd ::= DROP TOPIC ifexists ids */
+ 198, /* (33) cmd ::= DROP FUNCTION ids */
+ 198, /* (34) cmd ::= DROP DNODE ids */
+ 198, /* (35) cmd ::= DROP USER ids */
+ 198, /* (36) cmd ::= DROP ACCOUNT ids */
+ 198, /* (37) cmd ::= USE ids */
+ 198, /* (38) cmd ::= DESCRIBE ids cpxName */
+ 198, /* (39) cmd ::= DESC ids cpxName */
+ 198, /* (40) cmd ::= ALTER USER ids PASS ids */
+ 198, /* (41) cmd ::= ALTER USER ids PRIVILEGE ids */
+ 198, /* (42) cmd ::= ALTER DNODE ids ids */
+ 198, /* (43) cmd ::= ALTER DNODE ids ids ids */
+ 198, /* (44) cmd ::= ALTER LOCAL ids */
+ 198, /* (45) cmd ::= ALTER LOCAL ids ids */
+ 198, /* (46) cmd ::= ALTER DATABASE ids alter_db_optr */
+ 198, /* (47) cmd ::= ALTER TOPIC ids alter_topic_optr */
+ 198, /* (48) cmd ::= ALTER ACCOUNT ids acct_optr */
+ 198, /* (49) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
+ 198, /* (50) cmd ::= COMPACT VNODES IN LP exprlist RP */
+ 200, /* (51) ids ::= ID */
+ 200, /* (52) ids ::= STRING */
+ 202, /* (53) ifexists ::= IF EXISTS */
+ 202, /* (54) ifexists ::= */
+ 207, /* (55) ifnotexists ::= IF NOT EXISTS */
+ 207, /* (56) ifnotexists ::= */
+ 198, /* (57) cmd ::= CREATE DNODE ids */
+ 198, /* (58) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
+ 198, /* (59) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
+ 198, /* (60) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
+ 198, /* (61) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
+ 198, /* (62) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
+ 198, /* (63) cmd ::= CREATE USER ids PASS ids */
+ 211, /* (64) bufsize ::= */
+ 211, /* (65) bufsize ::= BUFSIZE INTEGER */
+ 212, /* (66) pps ::= */
+ 212, /* (67) pps ::= PPS INTEGER */
+ 213, /* (68) tseries ::= */
+ 213, /* (69) tseries ::= TSERIES INTEGER */
+ 214, /* (70) dbs ::= */
+ 214, /* (71) dbs ::= DBS INTEGER */
+ 215, /* (72) streams ::= */
+ 215, /* (73) streams ::= STREAMS INTEGER */
+ 216, /* (74) storage ::= */
+ 216, /* (75) storage ::= STORAGE INTEGER */
+ 217, /* (76) qtime ::= */
+ 217, /* (77) qtime ::= QTIME INTEGER */
+ 218, /* (78) users ::= */
+ 218, /* (79) users ::= USERS INTEGER */
+ 219, /* (80) conns ::= */
+ 219, /* (81) conns ::= CONNS INTEGER */
+ 220, /* (82) state ::= */
+ 220, /* (83) state ::= STATE ids */
+ 205, /* (84) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
+ 221, /* (85) intitemlist ::= intitemlist COMMA intitem */
+ 221, /* (86) intitemlist ::= intitem */
+ 222, /* (87) intitem ::= INTEGER */
+ 223, /* (88) keep ::= KEEP intitemlist */
+ 224, /* (89) cache ::= CACHE INTEGER */
+ 225, /* (90) replica ::= REPLICA INTEGER */
+ 226, /* (91) quorum ::= QUORUM INTEGER */
+ 227, /* (92) days ::= DAYS INTEGER */
+ 228, /* (93) minrows ::= MINROWS INTEGER */
+ 229, /* (94) maxrows ::= MAXROWS INTEGER */
+ 230, /* (95) blocks ::= BLOCKS INTEGER */
+ 231, /* (96) ctime ::= CTIME INTEGER */
+ 232, /* (97) wal ::= WAL INTEGER */
+ 233, /* (98) fsync ::= FSYNC INTEGER */
+ 234, /* (99) comp ::= COMP INTEGER */
+ 235, /* (100) prec ::= PRECISION STRING */
+ 236, /* (101) update ::= UPDATE INTEGER */
+ 237, /* (102) cachelast ::= CACHELAST INTEGER */
+ 238, /* (103) partitions ::= PARTITIONS INTEGER */
+ 208, /* (104) db_optr ::= */
+ 208, /* (105) db_optr ::= db_optr cache */
+ 208, /* (106) db_optr ::= db_optr replica */
+ 208, /* (107) db_optr ::= db_optr quorum */
+ 208, /* (108) db_optr ::= db_optr days */
+ 208, /* (109) db_optr ::= db_optr minrows */
+ 208, /* (110) db_optr ::= db_optr maxrows */
+ 208, /* (111) db_optr ::= db_optr blocks */
+ 208, /* (112) db_optr ::= db_optr ctime */
+ 208, /* (113) db_optr ::= db_optr wal */
+ 208, /* (114) db_optr ::= db_optr fsync */
+ 208, /* (115) db_optr ::= db_optr comp */
+ 208, /* (116) db_optr ::= db_optr prec */
+ 208, /* (117) db_optr ::= db_optr keep */
+ 208, /* (118) db_optr ::= db_optr update */
+ 208, /* (119) db_optr ::= db_optr cachelast */
+ 209, /* (120) topic_optr ::= db_optr */
+ 209, /* (121) topic_optr ::= topic_optr partitions */
+ 203, /* (122) alter_db_optr ::= */
+ 203, /* (123) alter_db_optr ::= alter_db_optr replica */
+ 203, /* (124) alter_db_optr ::= alter_db_optr quorum */
+ 203, /* (125) alter_db_optr ::= alter_db_optr keep */
+ 203, /* (126) alter_db_optr ::= alter_db_optr blocks */
+ 203, /* (127) alter_db_optr ::= alter_db_optr comp */
+ 203, /* (128) alter_db_optr ::= alter_db_optr update */
+ 203, /* (129) alter_db_optr ::= alter_db_optr cachelast */
+ 204, /* (130) alter_topic_optr ::= alter_db_optr */
+ 204, /* (131) alter_topic_optr ::= alter_topic_optr partitions */
+ 210, /* (132) typename ::= ids */
+ 210, /* (133) typename ::= ids LP signed RP */
+ 210, /* (134) typename ::= ids UNSIGNED */
+ 239, /* (135) signed ::= INTEGER */
+ 239, /* (136) signed ::= PLUS INTEGER */
+ 239, /* (137) signed ::= MINUS INTEGER */
+ 198, /* (138) cmd ::= CREATE TABLE create_table_args */
+ 198, /* (139) cmd ::= CREATE TABLE create_stable_args */
+ 198, /* (140) cmd ::= CREATE STABLE create_stable_args */
+ 198, /* (141) cmd ::= CREATE TABLE create_table_list */
+ 242, /* (142) create_table_list ::= create_from_stable */
+ 242, /* (143) create_table_list ::= create_table_list create_from_stable */
+ 240, /* (144) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
+ 241, /* (145) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
+ 243, /* (146) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
+ 243, /* (147) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
+ 246, /* (148) tagNamelist ::= tagNamelist COMMA ids */
+ 246, /* (149) tagNamelist ::= ids */
+ 240, /* (150) create_table_args ::= ifnotexists ids cpxName AS select */
+ 244, /* (151) columnlist ::= columnlist COMMA column */
+ 244, /* (152) columnlist ::= column */
+ 248, /* (153) column ::= ids typename */
+ 245, /* (154) tagitemlist ::= tagitemlist COMMA tagitem */
+ 245, /* (155) tagitemlist ::= tagitem */
+ 249, /* (156) tagitem ::= INTEGER */
+ 249, /* (157) tagitem ::= FLOAT */
+ 249, /* (158) tagitem ::= STRING */
+ 249, /* (159) tagitem ::= BOOL */
+ 249, /* (160) tagitem ::= NULL */
+ 249, /* (161) tagitem ::= NOW */
+ 249, /* (162) tagitem ::= MINUS INTEGER */
+ 249, /* (163) tagitem ::= MINUS FLOAT */
+ 249, /* (164) tagitem ::= PLUS INTEGER */
+ 249, /* (165) tagitem ::= PLUS FLOAT */
+ 247, /* (166) select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
+ 247, /* (167) select ::= LP select RP */
+ 263, /* (168) union ::= select */
+ 263, /* (169) union ::= union UNION ALL select */
+ 198, /* (170) cmd ::= union */
+ 247, /* (171) select ::= SELECT selcollist */
+ 264, /* (172) sclp ::= selcollist COMMA */
+ 264, /* (173) sclp ::= */
+ 250, /* (174) selcollist ::= sclp distinct expr as */
+ 250, /* (175) selcollist ::= sclp STAR */
+ 267, /* (176) as ::= AS ids */
+ 267, /* (177) as ::= ids */
+ 267, /* (178) as ::= */
+ 265, /* (179) distinct ::= DISTINCT */
+ 265, /* (180) distinct ::= */
+ 251, /* (181) from ::= FROM tablelist */
+ 251, /* (182) from ::= FROM sub */
+ 269, /* (183) sub ::= LP union RP */
+ 269, /* (184) sub ::= LP union RP ids */
+ 269, /* (185) sub ::= sub COMMA LP union RP ids */
+ 268, /* (186) tablelist ::= ids cpxName */
+ 268, /* (187) tablelist ::= ids cpxName ids */
+ 268, /* (188) tablelist ::= tablelist COMMA ids cpxName */
+ 268, /* (189) tablelist ::= tablelist COMMA ids cpxName ids */
+ 270, /* (190) tmvar ::= VARIABLE */
+ 253, /* (191) interval_option ::= intervalKey LP tmvar RP */
+ 253, /* (192) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
+ 253, /* (193) interval_option ::= */
+ 271, /* (194) intervalKey ::= INTERVAL */
+ 271, /* (195) intervalKey ::= EVERY */
+ 255, /* (196) session_option ::= */
+ 255, /* (197) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
+ 256, /* (198) windowstate_option ::= */
+ 256, /* (199) windowstate_option ::= STATE_WINDOW LP ids RP */
+ 257, /* (200) fill_opt ::= */
+ 257, /* (201) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
+ 257, /* (202) fill_opt ::= FILL LP ID RP */
+ 254, /* (203) sliding_opt ::= SLIDING LP tmvar RP */
+ 254, /* (204) sliding_opt ::= */
+ 260, /* (205) orderby_opt ::= */
+ 260, /* (206) orderby_opt ::= ORDER BY sortlist */
+ 272, /* (207) sortlist ::= sortlist COMMA item sortorder */
+ 272, /* (208) sortlist ::= item sortorder */
+ 274, /* (209) item ::= ids cpxName */
+ 275, /* (210) sortorder ::= ASC */
+ 275, /* (211) sortorder ::= DESC */
+ 275, /* (212) sortorder ::= */
+ 258, /* (213) groupby_opt ::= */
+ 258, /* (214) groupby_opt ::= GROUP BY grouplist */
+ 276, /* (215) grouplist ::= grouplist COMMA item */
+ 276, /* (216) grouplist ::= item */
+ 259, /* (217) having_opt ::= */
+ 259, /* (218) having_opt ::= HAVING expr */
+ 262, /* (219) limit_opt ::= */
+ 262, /* (220) limit_opt ::= LIMIT signed */
+ 262, /* (221) limit_opt ::= LIMIT signed OFFSET signed */
+ 262, /* (222) limit_opt ::= LIMIT signed COMMA signed */
+ 261, /* (223) slimit_opt ::= */
+ 261, /* (224) slimit_opt ::= SLIMIT signed */
+ 261, /* (225) slimit_opt ::= SLIMIT signed SOFFSET signed */
+ 261, /* (226) slimit_opt ::= SLIMIT signed COMMA signed */
+ 252, /* (227) where_opt ::= */
+ 252, /* (228) where_opt ::= WHERE expr */
+ 266, /* (229) expr ::= LP expr RP */
+ 266, /* (230) expr ::= ID */
+ 266, /* (231) expr ::= ID DOT ID */
+ 266, /* (232) expr ::= ID DOT STAR */
+ 266, /* (233) expr ::= INTEGER */
+ 266, /* (234) expr ::= MINUS INTEGER */
+ 266, /* (235) expr ::= PLUS INTEGER */
+ 266, /* (236) expr ::= FLOAT */
+ 266, /* (237) expr ::= MINUS FLOAT */
+ 266, /* (238) expr ::= PLUS FLOAT */
+ 266, /* (239) expr ::= STRING */
+ 266, /* (240) expr ::= NOW */
+ 266, /* (241) expr ::= VARIABLE */
+ 266, /* (242) expr ::= PLUS VARIABLE */
+ 266, /* (243) expr ::= MINUS VARIABLE */
+ 266, /* (244) expr ::= BOOL */
+ 266, /* (245) expr ::= NULL */
+ 266, /* (246) expr ::= ID LP exprlist RP */
+ 266, /* (247) expr ::= ID LP STAR RP */
+ 266, /* (248) expr ::= expr IS NULL */
+ 266, /* (249) expr ::= expr IS NOT NULL */
+ 266, /* (250) expr ::= expr LT expr */
+ 266, /* (251) expr ::= expr GT expr */
+ 266, /* (252) expr ::= expr LE expr */
+ 266, /* (253) expr ::= expr GE expr */
+ 266, /* (254) expr ::= expr NE expr */
+ 266, /* (255) expr ::= expr EQ expr */
+ 266, /* (256) expr ::= expr BETWEEN expr AND expr */
+ 266, /* (257) expr ::= expr AND expr */
+ 266, /* (258) expr ::= expr OR expr */
+ 266, /* (259) expr ::= expr PLUS expr */
+ 266, /* (260) expr ::= expr MINUS expr */
+ 266, /* (261) expr ::= expr STAR expr */
+ 266, /* (262) expr ::= expr SLASH expr */
+ 266, /* (263) expr ::= expr REM expr */
+ 266, /* (264) expr ::= expr LIKE expr */
+ 266, /* (265) expr ::= expr IN LP exprlist RP */
+ 206, /* (266) exprlist ::= exprlist COMMA expritem */
+ 206, /* (267) exprlist ::= expritem */
+ 277, /* (268) expritem ::= expr */
+ 277, /* (269) expritem ::= */
+ 198, /* (270) cmd ::= RESET QUERY CACHE */
+ 198, /* (271) cmd ::= SYNCDB ids REPLICA */
+ 198, /* (272) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
+ 198, /* (273) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
+ 198, /* (274) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
+ 198, /* (275) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
+ 198, /* (276) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
+ 198, /* (277) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
+ 198, /* (278) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
+ 198, /* (279) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
+ 198, /* (280) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
+ 198, /* (281) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
+ 198, /* (282) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
+ 198, /* (283) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
+ 198, /* (284) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
+ 198, /* (285) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
+ 198, /* (286) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
+ 198, /* (287) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
+ 198, /* (288) cmd ::= KILL CONNECTION INTEGER */
+ 198, /* (289) cmd ::= KILL STREAM INTEGER COLON INTEGER */
+ 198, /* (290) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static const signed char yyRuleInfoNRhs[] = {
- -1, /* (0) program ::= cmd */
- -2, /* (1) cmd ::= SHOW DATABASES */
- -2, /* (2) cmd ::= SHOW TOPICS */
- -2, /* (3) cmd ::= SHOW FUNCTIONS */
- -2, /* (4) cmd ::= SHOW MNODES */
- -2, /* (5) cmd ::= SHOW DNODES */
- -2, /* (6) cmd ::= SHOW ACCOUNTS */
- -2, /* (7) cmd ::= SHOW USERS */
- -2, /* (8) cmd ::= SHOW MODULES */
- -2, /* (9) cmd ::= SHOW QUERIES */
- -2, /* (10) cmd ::= SHOW CONNECTIONS */
- -2, /* (11) cmd ::= SHOW STREAMS */
- -2, /* (12) cmd ::= SHOW VARIABLES */
- -2, /* (13) cmd ::= SHOW SCORES */
- -2, /* (14) cmd ::= SHOW GRANTS */
- -2, /* (15) cmd ::= SHOW VNODES */
- -3, /* (16) cmd ::= SHOW VNODES IPTOKEN */
+ -1, /* (0) program ::= cmd */
+ -2, /* (1) cmd ::= SHOW DATABASES */
+ -2, /* (2) cmd ::= SHOW TOPICS */
+ -2, /* (3) cmd ::= SHOW FUNCTIONS */
+ -2, /* (4) cmd ::= SHOW MNODES */
+ -2, /* (5) cmd ::= SHOW DNODES */
+ -2, /* (6) cmd ::= SHOW ACCOUNTS */
+ -2, /* (7) cmd ::= SHOW USERS */
+ -2, /* (8) cmd ::= SHOW MODULES */
+ -2, /* (9) cmd ::= SHOW QUERIES */
+ -2, /* (10) cmd ::= SHOW CONNECTIONS */
+ -2, /* (11) cmd ::= SHOW STREAMS */
+ -2, /* (12) cmd ::= SHOW VARIABLES */
+ -2, /* (13) cmd ::= SHOW SCORES */
+ -2, /* (14) cmd ::= SHOW GRANTS */
+ -2, /* (15) cmd ::= SHOW VNODES */
+ -3, /* (16) cmd ::= SHOW VNODES IPTOKEN */
0, /* (17) dbPrefix ::= */
- -2, /* (18) dbPrefix ::= ids DOT */
+ -2, /* (18) dbPrefix ::= ids DOT */
0, /* (19) cpxName ::= */
- -2, /* (20) cpxName ::= DOT ids */
- -5, /* (21) cmd ::= SHOW CREATE TABLE ids cpxName */
- -5, /* (22) cmd ::= SHOW CREATE STABLE ids cpxName */
- -4, /* (23) cmd ::= SHOW CREATE DATABASE ids */
- -3, /* (24) cmd ::= SHOW dbPrefix TABLES */
- -5, /* (25) cmd ::= SHOW dbPrefix TABLES LIKE ids */
- -3, /* (26) cmd ::= SHOW dbPrefix STABLES */
- -5, /* (27) cmd ::= SHOW dbPrefix STABLES LIKE ids */
- -3, /* (28) cmd ::= SHOW dbPrefix VGROUPS */
- -4, /* (29) cmd ::= SHOW dbPrefix VGROUPS ids */
- -5, /* (30) cmd ::= DROP TABLE ifexists ids cpxName */
- -5, /* (31) cmd ::= DROP STABLE ifexists ids cpxName */
- -4, /* (32) cmd ::= DROP DATABASE ifexists ids */
- -4, /* (33) cmd ::= DROP TOPIC ifexists ids */
- -3, /* (34) cmd ::= DROP FUNCTION ids */
- -3, /* (35) cmd ::= DROP DNODE ids */
- -3, /* (36) cmd ::= DROP USER ids */
- -3, /* (37) cmd ::= DROP ACCOUNT ids */
- -2, /* (38) cmd ::= USE ids */
- -3, /* (39) cmd ::= DESCRIBE ids cpxName */
- -3, /* (40) cmd ::= DESC ids cpxName */
- -5, /* (41) cmd ::= ALTER USER ids PASS ids */
- -5, /* (42) cmd ::= ALTER USER ids PRIVILEGE ids */
- -4, /* (43) cmd ::= ALTER DNODE ids ids */
- -5, /* (44) cmd ::= ALTER DNODE ids ids ids */
- -3, /* (45) cmd ::= ALTER LOCAL ids */
- -4, /* (46) cmd ::= ALTER LOCAL ids ids */
- -4, /* (47) cmd ::= ALTER DATABASE ids alter_db_optr */
- -4, /* (48) cmd ::= ALTER TOPIC ids alter_topic_optr */
- -4, /* (49) cmd ::= ALTER ACCOUNT ids acct_optr */
- -6, /* (50) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
- -6, /* (51) cmd ::= COMPACT VNODES IN LP exprlist RP */
- -1, /* (52) ids ::= ID */
- -1, /* (53) ids ::= STRING */
- -2, /* (54) ifexists ::= IF EXISTS */
- 0, /* (55) ifexists ::= */
- -3, /* (56) ifnotexists ::= IF NOT EXISTS */
- 0, /* (57) ifnotexists ::= */
- -3, /* (58) cmd ::= CREATE DNODE ids */
- -6, /* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
- -5, /* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
- -5, /* (61) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
- -8, /* (62) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
- -9, /* (63) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
- -5, /* (64) cmd ::= CREATE USER ids PASS ids */
- 0, /* (65) bufsize ::= */
- -2, /* (66) bufsize ::= BUFSIZE INTEGER */
- 0, /* (67) pps ::= */
- -2, /* (68) pps ::= PPS INTEGER */
- 0, /* (69) tseries ::= */
- -2, /* (70) tseries ::= TSERIES INTEGER */
- 0, /* (71) dbs ::= */
- -2, /* (72) dbs ::= DBS INTEGER */
- 0, /* (73) streams ::= */
- -2, /* (74) streams ::= STREAMS INTEGER */
- 0, /* (75) storage ::= */
- -2, /* (76) storage ::= STORAGE INTEGER */
- 0, /* (77) qtime ::= */
- -2, /* (78) qtime ::= QTIME INTEGER */
- 0, /* (79) users ::= */
- -2, /* (80) users ::= USERS INTEGER */
- 0, /* (81) conns ::= */
- -2, /* (82) conns ::= CONNS INTEGER */
- 0, /* (83) state ::= */
- -2, /* (84) state ::= STATE ids */
- -9, /* (85) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
- -3, /* (86) intitemlist ::= intitemlist COMMA intitem */
- -1, /* (87) intitemlist ::= intitem */
- -1, /* (88) intitem ::= INTEGER */
- -2, /* (89) keep ::= KEEP intitemlist */
- -2, /* (90) cache ::= CACHE INTEGER */
- -2, /* (91) replica ::= REPLICA INTEGER */
- -2, /* (92) quorum ::= QUORUM INTEGER */
- -2, /* (93) days ::= DAYS INTEGER */
- -2, /* (94) minrows ::= MINROWS INTEGER */
- -2, /* (95) maxrows ::= MAXROWS INTEGER */
- -2, /* (96) blocks ::= BLOCKS INTEGER */
- -2, /* (97) ctime ::= CTIME INTEGER */
- -2, /* (98) wal ::= WAL INTEGER */
- -2, /* (99) fsync ::= FSYNC INTEGER */
- -2, /* (100) comp ::= COMP INTEGER */
- -2, /* (101) prec ::= PRECISION STRING */
- -2, /* (102) update ::= UPDATE INTEGER */
- -2, /* (103) cachelast ::= CACHELAST INTEGER */
- -2, /* (104) partitions ::= PARTITIONS INTEGER */
- 0, /* (105) db_optr ::= */
- -2, /* (106) db_optr ::= db_optr cache */
- -2, /* (107) db_optr ::= db_optr replica */
- -2, /* (108) db_optr ::= db_optr quorum */
- -2, /* (109) db_optr ::= db_optr days */
- -2, /* (110) db_optr ::= db_optr minrows */
- -2, /* (111) db_optr ::= db_optr maxrows */
- -2, /* (112) db_optr ::= db_optr blocks */
- -2, /* (113) db_optr ::= db_optr ctime */
- -2, /* (114) db_optr ::= db_optr wal */
- -2, /* (115) db_optr ::= db_optr fsync */
- -2, /* (116) db_optr ::= db_optr comp */
- -2, /* (117) db_optr ::= db_optr prec */
- -2, /* (118) db_optr ::= db_optr keep */
- -2, /* (119) db_optr ::= db_optr update */
- -2, /* (120) db_optr ::= db_optr cachelast */
- -1, /* (121) topic_optr ::= db_optr */
- -2, /* (122) topic_optr ::= topic_optr partitions */
- 0, /* (123) alter_db_optr ::= */
- -2, /* (124) alter_db_optr ::= alter_db_optr replica */
- -2, /* (125) alter_db_optr ::= alter_db_optr quorum */
- -2, /* (126) alter_db_optr ::= alter_db_optr keep */
- -2, /* (127) alter_db_optr ::= alter_db_optr blocks */
- -2, /* (128) alter_db_optr ::= alter_db_optr comp */
- -2, /* (129) alter_db_optr ::= alter_db_optr update */
- -2, /* (130) alter_db_optr ::= alter_db_optr cachelast */
- -1, /* (131) alter_topic_optr ::= alter_db_optr */
- -2, /* (132) alter_topic_optr ::= alter_topic_optr partitions */
- -1, /* (133) typename ::= ids */
- -4, /* (134) typename ::= ids LP signed RP */
- -2, /* (135) typename ::= ids UNSIGNED */
- -1, /* (136) signed ::= INTEGER */
- -2, /* (137) signed ::= PLUS INTEGER */
- -2, /* (138) signed ::= MINUS INTEGER */
- -3, /* (139) cmd ::= CREATE TABLE create_table_args */
- -3, /* (140) cmd ::= CREATE TABLE create_stable_args */
- -3, /* (141) cmd ::= CREATE STABLE create_stable_args */
- -3, /* (142) cmd ::= CREATE TABLE create_table_list */
- -1, /* (143) create_table_list ::= create_from_stable */
- -2, /* (144) create_table_list ::= create_table_list create_from_stable */
- -6, /* (145) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
- -10, /* (146) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
- -10, /* (147) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
- -13, /* (148) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
- -3, /* (149) tagNamelist ::= tagNamelist COMMA ids */
- -1, /* (150) tagNamelist ::= ids */
- -5, /* (151) create_table_args ::= ifnotexists ids cpxName AS select */
- -3, /* (152) columnlist ::= columnlist COMMA column */
- -1, /* (153) columnlist ::= column */
- -2, /* (154) column ::= ids typename */
- -3, /* (155) tagitemlist ::= tagitemlist COMMA tagitem */
- -1, /* (156) tagitemlist ::= tagitem */
- -1, /* (157) tagitem ::= INTEGER */
- -1, /* (158) tagitem ::= FLOAT */
- -1, /* (159) tagitem ::= STRING */
- -1, /* (160) tagitem ::= BOOL */
- -1, /* (161) tagitem ::= NULL */
- -1, /* (162) tagitem ::= NOW */
- -2, /* (163) tagitem ::= MINUS INTEGER */
- -2, /* (164) tagitem ::= MINUS FLOAT */
- -2, /* (165) tagitem ::= PLUS INTEGER */
- -2, /* (166) tagitem ::= PLUS FLOAT */
- -14, /* (167) select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
- -3, /* (168) select ::= LP select RP */
- -1, /* (169) union ::= select */
- -4, /* (170) union ::= union UNION ALL select */
- -1, /* (171) cmd ::= union */
- -2, /* (172) select ::= SELECT selcollist */
- -2, /* (173) sclp ::= selcollist COMMA */
- 0, /* (174) sclp ::= */
- -4, /* (175) selcollist ::= sclp distinct expr as */
- -2, /* (176) selcollist ::= sclp STAR */
- -2, /* (177) as ::= AS ids */
- -1, /* (178) as ::= ids */
- 0, /* (179) as ::= */
- -1, /* (180) distinct ::= DISTINCT */
- 0, /* (181) distinct ::= */
- -2, /* (182) from ::= FROM tablelist */
- -2, /* (183) from ::= FROM sub */
- -3, /* (184) sub ::= LP union RP */
- -4, /* (185) sub ::= LP union RP ids */
- -6, /* (186) sub ::= sub COMMA LP union RP ids */
- -2, /* (187) tablelist ::= ids cpxName */
- -3, /* (188) tablelist ::= ids cpxName ids */
- -4, /* (189) tablelist ::= tablelist COMMA ids cpxName */
- -5, /* (190) tablelist ::= tablelist COMMA ids cpxName ids */
- -1, /* (191) tmvar ::= VARIABLE */
- -4, /* (192) interval_option ::= intervalKey LP tmvar RP */
- -6, /* (193) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
- 0, /* (194) interval_option ::= */
- -1, /* (195) intervalKey ::= INTERVAL */
- -1, /* (196) intervalKey ::= EVERY */
- 0, /* (197) session_option ::= */
- -7, /* (198) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
- 0, /* (199) windowstate_option ::= */
- -4, /* (200) windowstate_option ::= STATE_WINDOW LP ids RP */
- 0, /* (201) fill_opt ::= */
- -6, /* (202) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
- -4, /* (203) fill_opt ::= FILL LP ID RP */
- -4, /* (204) sliding_opt ::= SLIDING LP tmvar RP */
- 0, /* (205) sliding_opt ::= */
- 0, /* (206) orderby_opt ::= */
- -3, /* (207) orderby_opt ::= ORDER BY sortlist */
- -4, /* (208) sortlist ::= sortlist COMMA item sortorder */
- -2, /* (209) sortlist ::= item sortorder */
- -2, /* (210) item ::= ids cpxName */
- -1, /* (211) sortorder ::= ASC */
- -1, /* (212) sortorder ::= DESC */
- 0, /* (213) sortorder ::= */
- 0, /* (214) groupby_opt ::= */
- -3, /* (215) groupby_opt ::= GROUP BY grouplist */
- -3, /* (216) grouplist ::= grouplist COMMA item */
- -1, /* (217) grouplist ::= item */
- 0, /* (218) having_opt ::= */
- -2, /* (219) having_opt ::= HAVING expr */
- 0, /* (220) limit_opt ::= */
- -2, /* (221) limit_opt ::= LIMIT signed */
- -4, /* (222) limit_opt ::= LIMIT signed OFFSET signed */
- -4, /* (223) limit_opt ::= LIMIT signed COMMA signed */
- 0, /* (224) slimit_opt ::= */
- -2, /* (225) slimit_opt ::= SLIMIT signed */
- -4, /* (226) slimit_opt ::= SLIMIT signed SOFFSET signed */
- -4, /* (227) slimit_opt ::= SLIMIT signed COMMA signed */
- 0, /* (228) where_opt ::= */
- -2, /* (229) where_opt ::= WHERE expr */
- -3, /* (230) expr ::= LP expr RP */
- -1, /* (231) expr ::= ID */
- -3, /* (232) expr ::= ID DOT ID */
- -3, /* (233) expr ::= ID DOT STAR */
- -1, /* (234) expr ::= INTEGER */
- -2, /* (235) expr ::= MINUS INTEGER */
- -2, /* (236) expr ::= PLUS INTEGER */
- -1, /* (237) expr ::= FLOAT */
- -2, /* (238) expr ::= MINUS FLOAT */
- -2, /* (239) expr ::= PLUS FLOAT */
- -1, /* (240) expr ::= STRING */
- -1, /* (241) expr ::= NOW */
- -1, /* (242) expr ::= VARIABLE */
- -2, /* (243) expr ::= PLUS VARIABLE */
- -2, /* (244) expr ::= MINUS VARIABLE */
- -1, /* (245) expr ::= BOOL */
- -1, /* (246) expr ::= NULL */
- -4, /* (247) expr ::= ID LP exprlist RP */
- -4, /* (248) expr ::= ID LP STAR RP */
- -3, /* (249) expr ::= expr IS NULL */
- -4, /* (250) expr ::= expr IS NOT NULL */
- -3, /* (251) expr ::= expr LT expr */
- -3, /* (252) expr ::= expr GT expr */
- -3, /* (253) expr ::= expr LE expr */
- -3, /* (254) expr ::= expr GE expr */
- -3, /* (255) expr ::= expr NE expr */
- -3, /* (256) expr ::= expr EQ expr */
- -5, /* (257) expr ::= expr BETWEEN expr AND expr */
- -3, /* (258) expr ::= expr AND expr */
- -3, /* (259) expr ::= expr OR expr */
- -3, /* (260) expr ::= expr PLUS expr */
- -3, /* (261) expr ::= expr MINUS expr */
- -3, /* (262) expr ::= expr STAR expr */
- -3, /* (263) expr ::= expr SLASH expr */
- -3, /* (264) expr ::= expr REM expr */
- -3, /* (265) expr ::= expr LIKE expr */
- -5, /* (266) expr ::= expr IN LP exprlist RP */
- -3, /* (267) exprlist ::= exprlist COMMA expritem */
- -1, /* (268) exprlist ::= expritem */
- -1, /* (269) expritem ::= expr */
- 0, /* (270) expritem ::= */
- -3, /* (271) cmd ::= RESET QUERY CACHE */
- -3, /* (272) cmd ::= SYNCDB ids REPLICA */
- -7, /* (273) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
- -7, /* (274) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
- -7, /* (275) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
- -7, /* (276) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
- -7, /* (277) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
- -8, /* (278) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
- -9, /* (279) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
- -7, /* (280) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
- -7, /* (281) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
- -7, /* (282) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
- -7, /* (283) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
- -7, /* (284) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
- -7, /* (285) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
- -8, /* (286) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
- -9, /* (287) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
- -7, /* (288) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
- -3, /* (289) cmd ::= KILL CONNECTION INTEGER */
- -5, /* (290) cmd ::= KILL STREAM INTEGER COLON INTEGER */
- -5, /* (291) cmd ::= KILL QUERY INTEGER COLON INTEGER */
+ -2, /* (20) cpxName ::= DOT ids */
+ -5, /* (21) cmd ::= SHOW CREATE TABLE ids cpxName */
+ -5, /* (22) cmd ::= SHOW CREATE STABLE ids cpxName */
+ -4, /* (23) cmd ::= SHOW CREATE DATABASE ids */
+ -3, /* (24) cmd ::= SHOW dbPrefix TABLES */
+ -5, /* (25) cmd ::= SHOW dbPrefix TABLES LIKE ids */
+ -3, /* (26) cmd ::= SHOW dbPrefix STABLES */
+ -5, /* (27) cmd ::= SHOW dbPrefix STABLES LIKE ids */
+ -3, /* (28) cmd ::= SHOW dbPrefix VGROUPS */
+ -5, /* (29) cmd ::= DROP TABLE ifexists ids cpxName */
+ -5, /* (30) cmd ::= DROP STABLE ifexists ids cpxName */
+ -4, /* (31) cmd ::= DROP DATABASE ifexists ids */
+ -4, /* (32) cmd ::= DROP TOPIC ifexists ids */
+ -3, /* (33) cmd ::= DROP FUNCTION ids */
+ -3, /* (34) cmd ::= DROP DNODE ids */
+ -3, /* (35) cmd ::= DROP USER ids */
+ -3, /* (36) cmd ::= DROP ACCOUNT ids */
+ -2, /* (37) cmd ::= USE ids */
+ -3, /* (38) cmd ::= DESCRIBE ids cpxName */
+ -3, /* (39) cmd ::= DESC ids cpxName */
+ -5, /* (40) cmd ::= ALTER USER ids PASS ids */
+ -5, /* (41) cmd ::= ALTER USER ids PRIVILEGE ids */
+ -4, /* (42) cmd ::= ALTER DNODE ids ids */
+ -5, /* (43) cmd ::= ALTER DNODE ids ids ids */
+ -3, /* (44) cmd ::= ALTER LOCAL ids */
+ -4, /* (45) cmd ::= ALTER LOCAL ids ids */
+ -4, /* (46) cmd ::= ALTER DATABASE ids alter_db_optr */
+ -4, /* (47) cmd ::= ALTER TOPIC ids alter_topic_optr */
+ -4, /* (48) cmd ::= ALTER ACCOUNT ids acct_optr */
+ -6, /* (49) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
+ -6, /* (50) cmd ::= COMPACT VNODES IN LP exprlist RP */
+ -1, /* (51) ids ::= ID */
+ -1, /* (52) ids ::= STRING */
+ -2, /* (53) ifexists ::= IF EXISTS */
+ 0, /* (54) ifexists ::= */
+ -3, /* (55) ifnotexists ::= IF NOT EXISTS */
+ 0, /* (56) ifnotexists ::= */
+ -3, /* (57) cmd ::= CREATE DNODE ids */
+ -6, /* (58) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
+ -5, /* (59) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
+ -5, /* (60) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
+ -8, /* (61) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
+ -9, /* (62) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
+ -5, /* (63) cmd ::= CREATE USER ids PASS ids */
+ 0, /* (64) bufsize ::= */
+ -2, /* (65) bufsize ::= BUFSIZE INTEGER */
+ 0, /* (66) pps ::= */
+ -2, /* (67) pps ::= PPS INTEGER */
+ 0, /* (68) tseries ::= */
+ -2, /* (69) tseries ::= TSERIES INTEGER */
+ 0, /* (70) dbs ::= */
+ -2, /* (71) dbs ::= DBS INTEGER */
+ 0, /* (72) streams ::= */
+ -2, /* (73) streams ::= STREAMS INTEGER */
+ 0, /* (74) storage ::= */
+ -2, /* (75) storage ::= STORAGE INTEGER */
+ 0, /* (76) qtime ::= */
+ -2, /* (77) qtime ::= QTIME INTEGER */
+ 0, /* (78) users ::= */
+ -2, /* (79) users ::= USERS INTEGER */
+ 0, /* (80) conns ::= */
+ -2, /* (81) conns ::= CONNS INTEGER */
+ 0, /* (82) state ::= */
+ -2, /* (83) state ::= STATE ids */
+ -9, /* (84) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
+ -3, /* (85) intitemlist ::= intitemlist COMMA intitem */
+ -1, /* (86) intitemlist ::= intitem */
+ -1, /* (87) intitem ::= INTEGER */
+ -2, /* (88) keep ::= KEEP intitemlist */
+ -2, /* (89) cache ::= CACHE INTEGER */
+ -2, /* (90) replica ::= REPLICA INTEGER */
+ -2, /* (91) quorum ::= QUORUM INTEGER */
+ -2, /* (92) days ::= DAYS INTEGER */
+ -2, /* (93) minrows ::= MINROWS INTEGER */
+ -2, /* (94) maxrows ::= MAXROWS INTEGER */
+ -2, /* (95) blocks ::= BLOCKS INTEGER */
+ -2, /* (96) ctime ::= CTIME INTEGER */
+ -2, /* (97) wal ::= WAL INTEGER */
+ -2, /* (98) fsync ::= FSYNC INTEGER */
+ -2, /* (99) comp ::= COMP INTEGER */
+ -2, /* (100) prec ::= PRECISION STRING */
+ -2, /* (101) update ::= UPDATE INTEGER */
+ -2, /* (102) cachelast ::= CACHELAST INTEGER */
+ -2, /* (103) partitions ::= PARTITIONS INTEGER */
+ 0, /* (104) db_optr ::= */
+ -2, /* (105) db_optr ::= db_optr cache */
+ -2, /* (106) db_optr ::= db_optr replica */
+ -2, /* (107) db_optr ::= db_optr quorum */
+ -2, /* (108) db_optr ::= db_optr days */
+ -2, /* (109) db_optr ::= db_optr minrows */
+ -2, /* (110) db_optr ::= db_optr maxrows */
+ -2, /* (111) db_optr ::= db_optr blocks */
+ -2, /* (112) db_optr ::= db_optr ctime */
+ -2, /* (113) db_optr ::= db_optr wal */
+ -2, /* (114) db_optr ::= db_optr fsync */
+ -2, /* (115) db_optr ::= db_optr comp */
+ -2, /* (116) db_optr ::= db_optr prec */
+ -2, /* (117) db_optr ::= db_optr keep */
+ -2, /* (118) db_optr ::= db_optr update */
+ -2, /* (119) db_optr ::= db_optr cachelast */
+ -1, /* (120) topic_optr ::= db_optr */
+ -2, /* (121) topic_optr ::= topic_optr partitions */
+ 0, /* (122) alter_db_optr ::= */
+ -2, /* (123) alter_db_optr ::= alter_db_optr replica */
+ -2, /* (124) alter_db_optr ::= alter_db_optr quorum */
+ -2, /* (125) alter_db_optr ::= alter_db_optr keep */
+ -2, /* (126) alter_db_optr ::= alter_db_optr blocks */
+ -2, /* (127) alter_db_optr ::= alter_db_optr comp */
+ -2, /* (128) alter_db_optr ::= alter_db_optr update */
+ -2, /* (129) alter_db_optr ::= alter_db_optr cachelast */
+ -1, /* (130) alter_topic_optr ::= alter_db_optr */
+ -2, /* (131) alter_topic_optr ::= alter_topic_optr partitions */
+ -1, /* (132) typename ::= ids */
+ -4, /* (133) typename ::= ids LP signed RP */
+ -2, /* (134) typename ::= ids UNSIGNED */
+ -1, /* (135) signed ::= INTEGER */
+ -2, /* (136) signed ::= PLUS INTEGER */
+ -2, /* (137) signed ::= MINUS INTEGER */
+ -3, /* (138) cmd ::= CREATE TABLE create_table_args */
+ -3, /* (139) cmd ::= CREATE TABLE create_stable_args */
+ -3, /* (140) cmd ::= CREATE STABLE create_stable_args */
+ -3, /* (141) cmd ::= CREATE TABLE create_table_list */
+ -1, /* (142) create_table_list ::= create_from_stable */
+ -2, /* (143) create_table_list ::= create_table_list create_from_stable */
+ -6, /* (144) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
+ -10, /* (145) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
+ -10, /* (146) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
+ -13, /* (147) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
+ -3, /* (148) tagNamelist ::= tagNamelist COMMA ids */
+ -1, /* (149) tagNamelist ::= ids */
+ -5, /* (150) create_table_args ::= ifnotexists ids cpxName AS select */
+ -3, /* (151) columnlist ::= columnlist COMMA column */
+ -1, /* (152) columnlist ::= column */
+ -2, /* (153) column ::= ids typename */
+ -3, /* (154) tagitemlist ::= tagitemlist COMMA tagitem */
+ -1, /* (155) tagitemlist ::= tagitem */
+ -1, /* (156) tagitem ::= INTEGER */
+ -1, /* (157) tagitem ::= FLOAT */
+ -1, /* (158) tagitem ::= STRING */
+ -1, /* (159) tagitem ::= BOOL */
+ -1, /* (160) tagitem ::= NULL */
+ -1, /* (161) tagitem ::= NOW */
+ -2, /* (162) tagitem ::= MINUS INTEGER */
+ -2, /* (163) tagitem ::= MINUS FLOAT */
+ -2, /* (164) tagitem ::= PLUS INTEGER */
+ -2, /* (165) tagitem ::= PLUS FLOAT */
+ -14, /* (166) select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
+ -3, /* (167) select ::= LP select RP */
+ -1, /* (168) union ::= select */
+ -4, /* (169) union ::= union UNION ALL select */
+ -1, /* (170) cmd ::= union */
+ -2, /* (171) select ::= SELECT selcollist */
+ -2, /* (172) sclp ::= selcollist COMMA */
+ 0, /* (173) sclp ::= */
+ -4, /* (174) selcollist ::= sclp distinct expr as */
+ -2, /* (175) selcollist ::= sclp STAR */
+ -2, /* (176) as ::= AS ids */
+ -1, /* (177) as ::= ids */
+ 0, /* (178) as ::= */
+ -1, /* (179) distinct ::= DISTINCT */
+ 0, /* (180) distinct ::= */
+ -2, /* (181) from ::= FROM tablelist */
+ -2, /* (182) from ::= FROM sub */
+ -3, /* (183) sub ::= LP union RP */
+ -4, /* (184) sub ::= LP union RP ids */
+ -6, /* (185) sub ::= sub COMMA LP union RP ids */
+ -2, /* (186) tablelist ::= ids cpxName */
+ -3, /* (187) tablelist ::= ids cpxName ids */
+ -4, /* (188) tablelist ::= tablelist COMMA ids cpxName */
+ -5, /* (189) tablelist ::= tablelist COMMA ids cpxName ids */
+ -1, /* (190) tmvar ::= VARIABLE */
+ -4, /* (191) interval_option ::= intervalKey LP tmvar RP */
+ -6, /* (192) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
+ 0, /* (193) interval_option ::= */
+ -1, /* (194) intervalKey ::= INTERVAL */
+ -1, /* (195) intervalKey ::= EVERY */
+ 0, /* (196) session_option ::= */
+ -7, /* (197) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
+ 0, /* (198) windowstate_option ::= */
+ -4, /* (199) windowstate_option ::= STATE_WINDOW LP ids RP */
+ 0, /* (200) fill_opt ::= */
+ -6, /* (201) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
+ -4, /* (202) fill_opt ::= FILL LP ID RP */
+ -4, /* (203) sliding_opt ::= SLIDING LP tmvar RP */
+ 0, /* (204) sliding_opt ::= */
+ 0, /* (205) orderby_opt ::= */
+ -3, /* (206) orderby_opt ::= ORDER BY sortlist */
+ -4, /* (207) sortlist ::= sortlist COMMA item sortorder */
+ -2, /* (208) sortlist ::= item sortorder */
+ -2, /* (209) item ::= ids cpxName */
+ -1, /* (210) sortorder ::= ASC */
+ -1, /* (211) sortorder ::= DESC */
+ 0, /* (212) sortorder ::= */
+ 0, /* (213) groupby_opt ::= */
+ -3, /* (214) groupby_opt ::= GROUP BY grouplist */
+ -3, /* (215) grouplist ::= grouplist COMMA item */
+ -1, /* (216) grouplist ::= item */
+ 0, /* (217) having_opt ::= */
+ -2, /* (218) having_opt ::= HAVING expr */
+ 0, /* (219) limit_opt ::= */
+ -2, /* (220) limit_opt ::= LIMIT signed */
+ -4, /* (221) limit_opt ::= LIMIT signed OFFSET signed */
+ -4, /* (222) limit_opt ::= LIMIT signed COMMA signed */
+ 0, /* (223) slimit_opt ::= */
+ -2, /* (224) slimit_opt ::= SLIMIT signed */
+ -4, /* (225) slimit_opt ::= SLIMIT signed SOFFSET signed */
+ -4, /* (226) slimit_opt ::= SLIMIT signed COMMA signed */
+ 0, /* (227) where_opt ::= */
+ -2, /* (228) where_opt ::= WHERE expr */
+ -3, /* (229) expr ::= LP expr RP */
+ -1, /* (230) expr ::= ID */
+ -3, /* (231) expr ::= ID DOT ID */
+ -3, /* (232) expr ::= ID DOT STAR */
+ -1, /* (233) expr ::= INTEGER */
+ -2, /* (234) expr ::= MINUS INTEGER */
+ -2, /* (235) expr ::= PLUS INTEGER */
+ -1, /* (236) expr ::= FLOAT */
+ -2, /* (237) expr ::= MINUS FLOAT */
+ -2, /* (238) expr ::= PLUS FLOAT */
+ -1, /* (239) expr ::= STRING */
+ -1, /* (240) expr ::= NOW */
+ -1, /* (241) expr ::= VARIABLE */
+ -2, /* (242) expr ::= PLUS VARIABLE */
+ -2, /* (243) expr ::= MINUS VARIABLE */
+ -1, /* (244) expr ::= BOOL */
+ -1, /* (245) expr ::= NULL */
+ -4, /* (246) expr ::= ID LP exprlist RP */
+ -4, /* (247) expr ::= ID LP STAR RP */
+ -3, /* (248) expr ::= expr IS NULL */
+ -4, /* (249) expr ::= expr IS NOT NULL */
+ -3, /* (250) expr ::= expr LT expr */
+ -3, /* (251) expr ::= expr GT expr */
+ -3, /* (252) expr ::= expr LE expr */
+ -3, /* (253) expr ::= expr GE expr */
+ -3, /* (254) expr ::= expr NE expr */
+ -3, /* (255) expr ::= expr EQ expr */
+ -5, /* (256) expr ::= expr BETWEEN expr AND expr */
+ -3, /* (257) expr ::= expr AND expr */
+ -3, /* (258) expr ::= expr OR expr */
+ -3, /* (259) expr ::= expr PLUS expr */
+ -3, /* (260) expr ::= expr MINUS expr */
+ -3, /* (261) expr ::= expr STAR expr */
+ -3, /* (262) expr ::= expr SLASH expr */
+ -3, /* (263) expr ::= expr REM expr */
+ -3, /* (264) expr ::= expr LIKE expr */
+ -5, /* (265) expr ::= expr IN LP exprlist RP */
+ -3, /* (266) exprlist ::= exprlist COMMA expritem */
+ -1, /* (267) exprlist ::= expritem */
+ -1, /* (268) expritem ::= expr */
+ 0, /* (269) expritem ::= */
+ -3, /* (270) cmd ::= RESET QUERY CACHE */
+ -3, /* (271) cmd ::= SYNCDB ids REPLICA */
+ -7, /* (272) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
+ -7, /* (273) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
+ -7, /* (274) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
+ -7, /* (275) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
+ -7, /* (276) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
+ -8, /* (277) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
+ -9, /* (278) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
+ -7, /* (279) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
+ -7, /* (280) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
+ -7, /* (281) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
+ -7, /* (282) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
+ -7, /* (283) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
+ -7, /* (284) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
+ -8, /* (285) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
+ -9, /* (286) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
+ -7, /* (287) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
+ -3, /* (288) cmd ::= KILL CONNECTION INTEGER */
+ -5, /* (289) cmd ::= KILL STREAM INTEGER COLON INTEGER */
+ -5, /* (290) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
static void yy_accept(yyParser*); /* Forward Declaration */
@@ -2662,1575 +2662,1566 @@ static void yy_accept(yyParser*); /* Forward Declaration */
** means that the extra parameters have no performance impact.
*/
static YYACTIONTYPE yy_reduce(
- yyParser *yypParser, /* The parser */
- unsigned int yyruleno, /* Number of the rule by which to reduce */
- int yyLookahead, /* Lookahead token, or YYNOCODE if none */
- ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */
- ParseCTX_PDECL /* %extra_context */
+ yyParser *yypParser, /* The parser */
+ unsigned int yyruleno, /* Number of the rule by which to reduce */
+ int yyLookahead, /* Lookahead token, or YYNOCODE if none */
+ ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */
+ ParseCTX_PDECL /* %extra_context */
){
int yygoto; /* The next state */
YYACTIONTYPE yyact; /* The next action */
yyStackEntry *yymsp; /* The top of the parser's stack */
int yysize; /* Amount to pop the stack */
ParseARG_FETCH
- (void)yyLookahead;
+ (void)yyLookahead;
(void)yyLookaheadToken;
yymsp = yypParser->yytos;
switch( yyruleno ){
- /* Beginning here are the reduction cases. A typical example
+ /* Beginning here are the reduction cases. A typical example
** follows:
** case 0:
** #line
** { ... } // User supplied code
** #line
** break;
- */
- /********** Begin reduce actions **********************************************/
- YYMINORTYPE yylhsminor;
- case 0: /* program ::= cmd */
- case 139: /* cmd ::= CREATE TABLE create_table_args */ yytestcase(yyruleno==139);
- case 140: /* cmd ::= CREATE TABLE create_stable_args */ yytestcase(yyruleno==140);
- case 141: /* cmd ::= CREATE STABLE create_stable_args */ yytestcase(yyruleno==141);
+ */
+/********** Begin reduce actions **********************************************/
+ YYMINORTYPE yylhsminor;
+ case 0: /* program ::= cmd */
+ case 138: /* cmd ::= CREATE TABLE create_table_args */ yytestcase(yyruleno==138);
+ case 139: /* cmd ::= CREATE TABLE create_stable_args */ yytestcase(yyruleno==139);
+ case 140: /* cmd ::= CREATE STABLE create_stable_args */ yytestcase(yyruleno==140);
#line 63 "sql.y"
- {}
+{}
#line 2697 "sql.c"
- break;
- case 1: /* cmd ::= SHOW DATABASES */
+ break;
+ case 1: /* cmd ::= SHOW DATABASES */
#line 66 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_DB, 0, 0);}
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_DB, 0, 0);}
#line 2702 "sql.c"
- break;
- case 2: /* cmd ::= SHOW TOPICS */
+ break;
+ case 2: /* cmd ::= SHOW TOPICS */
#line 67 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_TP, 0, 0);}
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_TP, 0, 0);}
#line 2707 "sql.c"
- break;
- case 3: /* cmd ::= SHOW FUNCTIONS */
+ break;
+ case 3: /* cmd ::= SHOW FUNCTIONS */
#line 68 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_FUNCTION, 0, 0);}
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_FUNCTION, 0, 0);}
#line 2712 "sql.c"
- break;
- case 4: /* cmd ::= SHOW MNODES */
+ break;
+ case 4: /* cmd ::= SHOW MNODES */
#line 69 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_MNODE, 0, 0);}
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_MNODE, 0, 0);}
#line 2717 "sql.c"
- break;
- case 5: /* cmd ::= SHOW DNODES */
+ break;
+ case 5: /* cmd ::= SHOW DNODES */
#line 70 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_DNODE, 0, 0);}
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_DNODE, 0, 0);}
#line 2722 "sql.c"
- break;
- case 6: /* cmd ::= SHOW ACCOUNTS */
+ break;
+ case 6: /* cmd ::= SHOW ACCOUNTS */
#line 71 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_ACCT, 0, 0);}
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_ACCT, 0, 0);}
#line 2727 "sql.c"
- break;
- case 7: /* cmd ::= SHOW USERS */
+ break;
+ case 7: /* cmd ::= SHOW USERS */
#line 72 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_USER, 0, 0);}
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_USER, 0, 0);}
#line 2732 "sql.c"
- break;
- case 8: /* cmd ::= SHOW MODULES */
+ break;
+ case 8: /* cmd ::= SHOW MODULES */
#line 74 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_MODULE, 0, 0); }
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_MODULE, 0, 0); }
#line 2737 "sql.c"
- break;
- case 9: /* cmd ::= SHOW QUERIES */
+ break;
+ case 9: /* cmd ::= SHOW QUERIES */
#line 75 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_QUERIES, 0, 0); }
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_QUERIES, 0, 0); }
#line 2742 "sql.c"
- break;
- case 10: /* cmd ::= SHOW CONNECTIONS */
+ break;
+ case 10: /* cmd ::= SHOW CONNECTIONS */
#line 76 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_CONNS, 0, 0);}
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_CONNS, 0, 0);}
#line 2747 "sql.c"
- break;
- case 11: /* cmd ::= SHOW STREAMS */
+ break;
+ case 11: /* cmd ::= SHOW STREAMS */
#line 77 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_STREAMS, 0, 0); }
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_STREAMS, 0, 0); }
#line 2752 "sql.c"
- break;
- case 12: /* cmd ::= SHOW VARIABLES */
+ break;
+ case 12: /* cmd ::= SHOW VARIABLES */
#line 78 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_VARIABLES, 0, 0); }
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_VARIABLES, 0, 0); }
#line 2757 "sql.c"
- break;
- case 13: /* cmd ::= SHOW SCORES */
+ break;
+ case 13: /* cmd ::= SHOW SCORES */
#line 79 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_SCORES, 0, 0); }
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_SCORES, 0, 0); }
#line 2762 "sql.c"
- break;
- case 14: /* cmd ::= SHOW GRANTS */
+ break;
+ case 14: /* cmd ::= SHOW GRANTS */
#line 80 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_GRANTS, 0, 0); }
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_GRANTS, 0, 0); }
#line 2767 "sql.c"
- break;
- case 15: /* cmd ::= SHOW VNODES */
+ break;
+ case 15: /* cmd ::= SHOW VNODES */
#line 82 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_VNODES, 0, 0); }
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_VNODES, 0, 0); }
#line 2772 "sql.c"
- break;
- case 16: /* cmd ::= SHOW VNODES IPTOKEN */
+ break;
+ case 16: /* cmd ::= SHOW VNODES IPTOKEN */
#line 83 "sql.y"
- { setShowOptions(pInfo, TSDB_MGMT_TABLE_VNODES, &yymsp[0].minor.yy0, 0); }
+{ setShowOptions(pInfo, TSDB_MGMT_TABLE_VNODES, &yymsp[0].minor.yy0, 0); }
#line 2777 "sql.c"
- break;
- case 17: /* dbPrefix ::= */
+ break;
+ case 17: /* dbPrefix ::= */
#line 87 "sql.y"
- {yymsp[1].minor.yy0.n = 0; yymsp[1].minor.yy0.type = 0;}
+{yymsp[1].minor.yy0.n = 0; yymsp[1].minor.yy0.type = 0;}
#line 2782 "sql.c"
- break;
- case 18: /* dbPrefix ::= ids DOT */
+ break;
+ case 18: /* dbPrefix ::= ids DOT */
#line 88 "sql.y"
- {yylhsminor.yy0 = yymsp[-1].minor.yy0; }
+{yylhsminor.yy0 = yymsp[-1].minor.yy0; }
#line 2787 "sql.c"
- yymsp[-1].minor.yy0 = yylhsminor.yy0;
- break;
- case 19: /* cpxName ::= */
+ yymsp[-1].minor.yy0 = yylhsminor.yy0;
+ break;
+ case 19: /* cpxName ::= */
#line 91 "sql.y"
- {yymsp[1].minor.yy0.n = 0; }
+{yymsp[1].minor.yy0.n = 0; }
#line 2793 "sql.c"
- break;
- case 20: /* cpxName ::= DOT ids */
+ break;
+ case 20: /* cpxName ::= DOT ids */
#line 92 "sql.y"
- {yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; yymsp[-1].minor.yy0.n += 1; }
+{yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; yymsp[-1].minor.yy0.n += 1; }
#line 2798 "sql.c"
- break;
- case 21: /* cmd ::= SHOW CREATE TABLE ids cpxName */
+ break;
+ case 21: /* cmd ::= SHOW CREATE TABLE ids cpxName */
#line 94 "sql.y"
- {
- yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
- setDCLSqlElems(pInfo, TSDB_SQL_SHOW_CREATE_TABLE, 1, &yymsp[-1].minor.yy0);
- }
+{
+ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
+ setDCLSqlElems(pInfo, TSDB_SQL_SHOW_CREATE_TABLE, 1, &yymsp[-1].minor.yy0);
+}
#line 2806 "sql.c"
- break;
- case 22: /* cmd ::= SHOW CREATE STABLE ids cpxName */
+ break;
+ case 22: /* cmd ::= SHOW CREATE STABLE ids cpxName */
#line 98 "sql.y"
- {
- yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
- setDCLSqlElems(pInfo, TSDB_SQL_SHOW_CREATE_STABLE, 1, &yymsp[-1].minor.yy0);
- }
+{
+ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
+ setDCLSqlElems(pInfo, TSDB_SQL_SHOW_CREATE_STABLE, 1, &yymsp[-1].minor.yy0);
+}
#line 2814 "sql.c"
- break;
- case 23: /* cmd ::= SHOW CREATE DATABASE ids */
+ break;
+ case 23: /* cmd ::= SHOW CREATE DATABASE ids */
#line 103 "sql.y"
- {
- setDCLSqlElems(pInfo, TSDB_SQL_SHOW_CREATE_DATABASE, 1, &yymsp[0].minor.yy0);
- }
+{
+ setDCLSqlElems(pInfo, TSDB_SQL_SHOW_CREATE_DATABASE, 1, &yymsp[0].minor.yy0);
+}
#line 2821 "sql.c"
- break;
- case 24: /* cmd ::= SHOW dbPrefix TABLES */
+ break;
+ case 24: /* cmd ::= SHOW dbPrefix TABLES */
#line 107 "sql.y"
- {
- setShowOptions(pInfo, TSDB_MGMT_TABLE_TABLE, &yymsp[-1].minor.yy0, 0);
- }
+{
+ setShowOptions(pInfo, TSDB_MGMT_TABLE_TABLE, &yymsp[-1].minor.yy0, 0);
+}
#line 2828 "sql.c"
- break;
- case 25: /* cmd ::= SHOW dbPrefix TABLES LIKE ids */
+ break;
+ case 25: /* cmd ::= SHOW dbPrefix TABLES LIKE ids */
#line 111 "sql.y"
- {
- setShowOptions(pInfo, TSDB_MGMT_TABLE_TABLE, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0);
- }
+{
+ setShowOptions(pInfo, TSDB_MGMT_TABLE_TABLE, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0);
+}
#line 2835 "sql.c"
- break;
- case 26: /* cmd ::= SHOW dbPrefix STABLES */
+ break;
+ case 26: /* cmd ::= SHOW dbPrefix STABLES */
#line 115 "sql.y"
- {
- setShowOptions(pInfo, TSDB_MGMT_TABLE_METRIC, &yymsp[-1].minor.yy0, 0);
- }
+{
+ setShowOptions(pInfo, TSDB_MGMT_TABLE_METRIC, &yymsp[-1].minor.yy0, 0);
+}
#line 2842 "sql.c"
- break;
- case 27: /* cmd ::= SHOW dbPrefix STABLES LIKE ids */
+ break;
+ case 27: /* cmd ::= SHOW dbPrefix STABLES LIKE ids */
#line 119 "sql.y"
- {
- SStrToken token;
- tSetDbName(&token, &yymsp[-3].minor.yy0);
- setShowOptions(pInfo, TSDB_MGMT_TABLE_METRIC, &token, &yymsp[0].minor.yy0);
- }
+{
+ SStrToken token;
+ tSetDbName(&token, &yymsp[-3].minor.yy0);
+ setShowOptions(pInfo, TSDB_MGMT_TABLE_METRIC, &token, &yymsp[0].minor.yy0);
+}
#line 2851 "sql.c"
- break;
- case 28: /* cmd ::= SHOW dbPrefix VGROUPS */
+ break;
+ case 28: /* cmd ::= SHOW dbPrefix VGROUPS */
#line 125 "sql.y"
- {
- SStrToken token;
- tSetDbName(&token, &yymsp[-1].minor.yy0);
- setShowOptions(pInfo, TSDB_MGMT_TABLE_VGROUP, &token, 0);
- }
+{
+ SStrToken token;
+ tSetDbName(&token, &yymsp[-1].minor.yy0);
+ setShowOptions(pInfo, TSDB_MGMT_TABLE_VGROUP, &token, 0);
+}
#line 2860 "sql.c"
- break;
- case 29: /* cmd ::= SHOW dbPrefix VGROUPS ids */
-#line 131 "sql.y"
- {
- SStrToken token;
- tSetDbName(&token, &yymsp[-2].minor.yy0);
- setShowOptions(pInfo, TSDB_MGMT_TABLE_VGROUP, &token, &yymsp[0].minor.yy0);
- }
-#line 2869 "sql.c"
- break;
- case 30: /* cmd ::= DROP TABLE ifexists ids cpxName */
+ break;
+ case 29: /* cmd ::= DROP TABLE ifexists ids cpxName */
+#line 132 "sql.y"
+{
+ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
+ setDropDbTableInfo(pInfo, TSDB_SQL_DROP_TABLE, &yymsp[-1].minor.yy0, &yymsp[-2].minor.yy0, -1, -1);
+}
+#line 2868 "sql.c"
+ break;
+ case 30: /* cmd ::= DROP STABLE ifexists ids cpxName */
#line 138 "sql.y"
- {
- yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
- setDropDbTableInfo(pInfo, TSDB_SQL_DROP_TABLE, &yymsp[-1].minor.yy0, &yymsp[-2].minor.yy0, -1, -1);
- }
-#line 2877 "sql.c"
- break;
- case 31: /* cmd ::= DROP STABLE ifexists ids cpxName */
+{
+ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
+ setDropDbTableInfo(pInfo, TSDB_SQL_DROP_TABLE, &yymsp[-1].minor.yy0, &yymsp[-2].minor.yy0, -1, TSDB_SUPER_TABLE);
+}
+#line 2876 "sql.c"
+ break;
+ case 31: /* cmd ::= DROP DATABASE ifexists ids */
+#line 143 "sql.y"
+{ setDropDbTableInfo(pInfo, TSDB_SQL_DROP_DB, &yymsp[0].minor.yy0, &yymsp[-1].minor.yy0, TSDB_DB_TYPE_DEFAULT, -1); }
+#line 2881 "sql.c"
+ break;
+ case 32: /* cmd ::= DROP TOPIC ifexists ids */
#line 144 "sql.y"
- {
- yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
- setDropDbTableInfo(pInfo, TSDB_SQL_DROP_TABLE, &yymsp[-1].minor.yy0, &yymsp[-2].minor.yy0, -1, TSDB_SUPER_TABLE);
- }
-#line 2885 "sql.c"
- break;
- case 32: /* cmd ::= DROP DATABASE ifexists ids */
+{ setDropDbTableInfo(pInfo, TSDB_SQL_DROP_DB, &yymsp[0].minor.yy0, &yymsp[-1].minor.yy0, TSDB_DB_TYPE_TOPIC, -1); }
+#line 2886 "sql.c"
+ break;
+ case 33: /* cmd ::= DROP FUNCTION ids */
+#line 145 "sql.y"
+{ setDropFuncInfo(pInfo, TSDB_SQL_DROP_FUNCTION, &yymsp[0].minor.yy0); }
+#line 2891 "sql.c"
+ break;
+ case 34: /* cmd ::= DROP DNODE ids */
+#line 147 "sql.y"
+{ setDCLSqlElems(pInfo, TSDB_SQL_DROP_DNODE, 1, &yymsp[0].minor.yy0); }
+#line 2896 "sql.c"
+ break;
+ case 35: /* cmd ::= DROP USER ids */
+#line 148 "sql.y"
+{ setDCLSqlElems(pInfo, TSDB_SQL_DROP_USER, 1, &yymsp[0].minor.yy0); }
+#line 2901 "sql.c"
+ break;
+ case 36: /* cmd ::= DROP ACCOUNT ids */
#line 149 "sql.y"
- { setDropDbTableInfo(pInfo, TSDB_SQL_DROP_DB, &yymsp[0].minor.yy0, &yymsp[-1].minor.yy0, TSDB_DB_TYPE_DEFAULT, -1); }
-#line 2890 "sql.c"
- break;
- case 33: /* cmd ::= DROP TOPIC ifexists ids */
-#line 150 "sql.y"
- { setDropDbTableInfo(pInfo, TSDB_SQL_DROP_DB, &yymsp[0].minor.yy0, &yymsp[-1].minor.yy0, TSDB_DB_TYPE_TOPIC, -1); }
-#line 2895 "sql.c"
- break;
- case 34: /* cmd ::= DROP FUNCTION ids */
-#line 151 "sql.y"
- { setDropFuncInfo(pInfo, TSDB_SQL_DROP_FUNCTION, &yymsp[0].minor.yy0); }
-#line 2900 "sql.c"
- break;
- case 35: /* cmd ::= DROP DNODE ids */
-#line 153 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_DROP_DNODE, 1, &yymsp[0].minor.yy0); }
-#line 2905 "sql.c"
- break;
- case 36: /* cmd ::= DROP USER ids */
-#line 154 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_DROP_USER, 1, &yymsp[0].minor.yy0); }
-#line 2910 "sql.c"
- break;
- case 37: /* cmd ::= DROP ACCOUNT ids */
+{ setDCLSqlElems(pInfo, TSDB_SQL_DROP_ACCT, 1, &yymsp[0].minor.yy0); }
+#line 2906 "sql.c"
+ break;
+ case 37: /* cmd ::= USE ids */
+#line 152 "sql.y"
+{ setDCLSqlElems(pInfo, TSDB_SQL_USE_DB, 1, &yymsp[0].minor.yy0);}
+#line 2911 "sql.c"
+ break;
+ case 38: /* cmd ::= DESCRIBE ids cpxName */
+ case 39: /* cmd ::= DESC ids cpxName */ yytestcase(yyruleno==39);
#line 155 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_DROP_ACCT, 1, &yymsp[0].minor.yy0); }
-#line 2915 "sql.c"
- break;
- case 38: /* cmd ::= USE ids */
-#line 158 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_USE_DB, 1, &yymsp[0].minor.yy0);}
+{
+ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
+ setDCLSqlElems(pInfo, TSDB_SQL_DESCRIBE_TABLE, 1, &yymsp[-1].minor.yy0);
+}
#line 2920 "sql.c"
- break;
- case 39: /* cmd ::= DESCRIBE ids cpxName */
- case 40: /* cmd ::= DESC ids cpxName */ yytestcase(yyruleno==40);
-#line 161 "sql.y"
- {
- yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
- setDCLSqlElems(pInfo, TSDB_SQL_DESCRIBE_TABLE, 1, &yymsp[-1].minor.yy0);
- }
-#line 2929 "sql.c"
- break;
- case 41: /* cmd ::= ALTER USER ids PASS ids */
+ break;
+ case 40: /* cmd ::= ALTER USER ids PASS ids */
+#line 166 "sql.y"
+{ setAlterUserSql(pInfo, TSDB_ALTER_USER_PASSWD, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, NULL); }
+#line 2925 "sql.c"
+ break;
+ case 41: /* cmd ::= ALTER USER ids PRIVILEGE ids */
+#line 167 "sql.y"
+{ setAlterUserSql(pInfo, TSDB_ALTER_USER_PRIVILEGES, &yymsp[-2].minor.yy0, NULL, &yymsp[0].minor.yy0);}
+#line 2930 "sql.c"
+ break;
+ case 42: /* cmd ::= ALTER DNODE ids ids */
+#line 168 "sql.y"
+{ setDCLSqlElems(pInfo, TSDB_SQL_CFG_DNODE, 2, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
+#line 2935 "sql.c"
+ break;
+ case 43: /* cmd ::= ALTER DNODE ids ids ids */
+#line 169 "sql.y"
+{ setDCLSqlElems(pInfo, TSDB_SQL_CFG_DNODE, 3, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
+#line 2940 "sql.c"
+ break;
+ case 44: /* cmd ::= ALTER LOCAL ids */
+#line 170 "sql.y"
+{ setDCLSqlElems(pInfo, TSDB_SQL_CFG_LOCAL, 1, &yymsp[0].minor.yy0); }
+#line 2945 "sql.c"
+ break;
+ case 45: /* cmd ::= ALTER LOCAL ids ids */
+#line 171 "sql.y"
+{ setDCLSqlElems(pInfo, TSDB_SQL_CFG_LOCAL, 2, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
+#line 2950 "sql.c"
+ break;
+ case 46: /* cmd ::= ALTER DATABASE ids alter_db_optr */
+ case 47: /* cmd ::= ALTER TOPIC ids alter_topic_optr */ yytestcase(yyruleno==47);
#line 172 "sql.y"
- { setAlterUserSql(pInfo, TSDB_ALTER_USER_PASSWD, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, NULL); }
-#line 2934 "sql.c"
- break;
- case 42: /* cmd ::= ALTER USER ids PRIVILEGE ids */
-#line 173 "sql.y"
- { setAlterUserSql(pInfo, TSDB_ALTER_USER_PRIVILEGES, &yymsp[-2].minor.yy0, NULL, &yymsp[0].minor.yy0);}
-#line 2939 "sql.c"
- break;
- case 43: /* cmd ::= ALTER DNODE ids ids */
-#line 174 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_CFG_DNODE, 2, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
-#line 2944 "sql.c"
- break;
- case 44: /* cmd ::= ALTER DNODE ids ids ids */
+{ SStrToken t = {0}; setCreateDbInfo(pInfo, TSDB_SQL_ALTER_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy90, &t);}
+#line 2956 "sql.c"
+ break;
+ case 48: /* cmd ::= ALTER ACCOUNT ids acct_optr */
#line 175 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_CFG_DNODE, 3, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
-#line 2949 "sql.c"
- break;
- case 45: /* cmd ::= ALTER LOCAL ids */
+{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-1].minor.yy0, NULL, &yymsp[0].minor.yy171);}
+#line 2961 "sql.c"
+ break;
+ case 49: /* cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
#line 176 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_CFG_LOCAL, 1, &yymsp[0].minor.yy0); }
-#line 2954 "sql.c"
- break;
- case 46: /* cmd ::= ALTER LOCAL ids ids */
-#line 177 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_CFG_LOCAL, 2, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
-#line 2959 "sql.c"
- break;
- case 47: /* cmd ::= ALTER DATABASE ids alter_db_optr */
- case 48: /* cmd ::= ALTER TOPIC ids alter_topic_optr */ yytestcase(yyruleno==48);
-#line 178 "sql.y"
- { SStrToken t = {0}; setCreateDbInfo(pInfo, TSDB_SQL_ALTER_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy246, &t);}
-#line 2965 "sql.c"
- break;
- case 49: /* cmd ::= ALTER ACCOUNT ids acct_optr */
-#line 181 "sql.y"
- { setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-1].minor.yy0, NULL, &yymsp[0].minor.yy377);}
-#line 2970 "sql.c"
- break;
- case 50: /* cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
-#line 182 "sql.y"
- { setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy377);}
-#line 2975 "sql.c"
- break;
- case 51: /* cmd ::= COMPACT VNODES IN LP exprlist RP */
+{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy171);}
+#line 2966 "sql.c"
+ break;
+ case 50: /* cmd ::= COMPACT VNODES IN LP exprlist RP */
+#line 180 "sql.y"
+{ setCompactVnodeSql(pInfo, TSDB_SQL_COMPACT_VNODE, yymsp[-1].minor.yy421);}
+#line 2971 "sql.c"
+ break;
+ case 51: /* ids ::= ID */
+ case 52: /* ids ::= STRING */ yytestcase(yyruleno==52);
#line 186 "sql.y"
- { setCompactVnodeSql(pInfo, TSDB_SQL_COMPACT_VNODE, yymsp[-1].minor.yy403);}
-#line 2980 "sql.c"
- break;
- case 52: /* ids ::= ID */
- case 53: /* ids ::= STRING */ yytestcase(yyruleno==53);
-#line 192 "sql.y"
- {yylhsminor.yy0 = yymsp[0].minor.yy0; }
-#line 2986 "sql.c"
- yymsp[0].minor.yy0 = yylhsminor.yy0;
- break;
- case 54: /* ifexists ::= IF EXISTS */
-#line 196 "sql.y"
- { yymsp[-1].minor.yy0.n = 1;}
-#line 2992 "sql.c"
- break;
- case 55: /* ifexists ::= */
- case 57: /* ifnotexists ::= */ yytestcase(yyruleno==57);
- case 181: /* distinct ::= */ yytestcase(yyruleno==181);
-#line 197 "sql.y"
- { yymsp[1].minor.yy0.n = 0;}
-#line 2999 "sql.c"
- break;
- case 56: /* ifnotexists ::= IF NOT EXISTS */
-#line 200 "sql.y"
- { yymsp[-2].minor.yy0.n = 1;}
-#line 3004 "sql.c"
- break;
- case 58: /* cmd ::= CREATE DNODE ids */
+{yylhsminor.yy0 = yymsp[0].minor.yy0; }
+#line 2977 "sql.c"
+ yymsp[0].minor.yy0 = yylhsminor.yy0;
+ break;
+ case 53: /* ifexists ::= IF EXISTS */
+#line 190 "sql.y"
+{ yymsp[-1].minor.yy0.n = 1;}
+#line 2983 "sql.c"
+ break;
+ case 54: /* ifexists ::= */
+ case 56: /* ifnotexists ::= */ yytestcase(yyruleno==56);
+ case 180: /* distinct ::= */ yytestcase(yyruleno==180);
+#line 191 "sql.y"
+{ yymsp[1].minor.yy0.n = 0;}
+#line 2990 "sql.c"
+ break;
+ case 55: /* ifnotexists ::= IF NOT EXISTS */
+#line 194 "sql.y"
+{ yymsp[-2].minor.yy0.n = 1;}
+#line 2995 "sql.c"
+ break;
+ case 57: /* cmd ::= CREATE DNODE ids */
+#line 199 "sql.y"
+{ setDCLSqlElems(pInfo, TSDB_SQL_CREATE_DNODE, 1, &yymsp[0].minor.yy0);}
+#line 3000 "sql.c"
+ break;
+ case 58: /* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
+#line 201 "sql.y"
+{ setCreateAcctSql(pInfo, TSDB_SQL_CREATE_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy171);}
+#line 3005 "sql.c"
+ break;
+ case 59: /* cmd ::= CREATE DATABASE ifnotexists ids db_optr */
+ case 60: /* cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ yytestcase(yyruleno==60);
+#line 202 "sql.y"
+{ setCreateDbInfo(pInfo, TSDB_SQL_CREATE_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy90, &yymsp[-2].minor.yy0);}
+#line 3011 "sql.c"
+ break;
+ case 61: /* cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
+#line 204 "sql.y"
+{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy183, &yymsp[0].minor.yy0, 1);}
+#line 3016 "sql.c"
+ break;
+ case 62: /* cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
#line 205 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_CREATE_DNODE, 1, &yymsp[0].minor.yy0);}
-#line 3009 "sql.c"
- break;
- case 59: /* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
-#line 207 "sql.y"
- { setCreateAcctSql(pInfo, TSDB_SQL_CREATE_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy377);}
-#line 3014 "sql.c"
- break;
- case 60: /* cmd ::= CREATE DATABASE ifnotexists ids db_optr */
- case 61: /* cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ yytestcase(yyruleno==61);
+{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy183, &yymsp[0].minor.yy0, 2);}
+#line 3021 "sql.c"
+ break;
+ case 63: /* cmd ::= CREATE USER ids PASS ids */
+#line 206 "sql.y"
+{ setCreateUserSql(pInfo, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);}
+#line 3026 "sql.c"
+ break;
+ case 64: /* bufsize ::= */
+ case 66: /* pps ::= */ yytestcase(yyruleno==66);
+ case 68: /* tseries ::= */ yytestcase(yyruleno==68);
+ case 70: /* dbs ::= */ yytestcase(yyruleno==70);
+ case 72: /* streams ::= */ yytestcase(yyruleno==72);
+ case 74: /* storage ::= */ yytestcase(yyruleno==74);
+ case 76: /* qtime ::= */ yytestcase(yyruleno==76);
+ case 78: /* users ::= */ yytestcase(yyruleno==78);
+ case 80: /* conns ::= */ yytestcase(yyruleno==80);
+ case 82: /* state ::= */ yytestcase(yyruleno==82);
#line 208 "sql.y"
- { setCreateDbInfo(pInfo, TSDB_SQL_CREATE_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy246, &yymsp[-2].minor.yy0);}
-#line 3020 "sql.c"
- break;
- case 62: /* cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
-#line 210 "sql.y"
- { setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy363, &yymsp[0].minor.yy0, 1);}
-#line 3025 "sql.c"
- break;
- case 63: /* cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */
-#line 211 "sql.y"
- { setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy363, &yymsp[0].minor.yy0, 2);}
-#line 3030 "sql.c"
- break;
- case 64: /* cmd ::= CREATE USER ids PASS ids */
-#line 212 "sql.y"
- { setCreateUserSql(pInfo, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);}
-#line 3035 "sql.c"
- break;
- case 65: /* bufsize ::= */
- case 67: /* pps ::= */ yytestcase(yyruleno==67);
- case 69: /* tseries ::= */ yytestcase(yyruleno==69);
- case 71: /* dbs ::= */ yytestcase(yyruleno==71);
- case 73: /* streams ::= */ yytestcase(yyruleno==73);
- case 75: /* storage ::= */ yytestcase(yyruleno==75);
- case 77: /* qtime ::= */ yytestcase(yyruleno==77);
- case 79: /* users ::= */ yytestcase(yyruleno==79);
- case 81: /* conns ::= */ yytestcase(yyruleno==81);
- case 83: /* state ::= */ yytestcase(yyruleno==83);
-#line 214 "sql.y"
- { yymsp[1].minor.yy0.n = 0; }
-#line 3049 "sql.c"
- break;
- case 66: /* bufsize ::= BUFSIZE INTEGER */
- case 68: /* pps ::= PPS INTEGER */ yytestcase(yyruleno==68);
- case 70: /* tseries ::= TSERIES INTEGER */ yytestcase(yyruleno==70);
- case 72: /* dbs ::= DBS INTEGER */ yytestcase(yyruleno==72);
- case 74: /* streams ::= STREAMS INTEGER */ yytestcase(yyruleno==74);
- case 76: /* storage ::= STORAGE INTEGER */ yytestcase(yyruleno==76);
- case 78: /* qtime ::= QTIME INTEGER */ yytestcase(yyruleno==78);
- case 80: /* users ::= USERS INTEGER */ yytestcase(yyruleno==80);
- case 82: /* conns ::= CONNS INTEGER */ yytestcase(yyruleno==82);
- case 84: /* state ::= STATE ids */ yytestcase(yyruleno==84);
-#line 215 "sql.y"
- { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; }
-#line 3063 "sql.c"
- break;
- case 85: /* acct_optr ::= pps tseries storage streams qtime dbs users conns state */
-#line 245 "sql.y"
- {
- yylhsminor.yy377.maxUsers = (yymsp[-2].minor.yy0.n>0)?atoi(yymsp[-2].minor.yy0.z):-1;
- yylhsminor.yy377.maxDbs = (yymsp[-3].minor.yy0.n>0)?atoi(yymsp[-3].minor.yy0.z):-1;
- yylhsminor.yy377.maxTimeSeries = (yymsp[-7].minor.yy0.n>0)?atoi(yymsp[-7].minor.yy0.z):-1;
- yylhsminor.yy377.maxStreams = (yymsp[-5].minor.yy0.n>0)?atoi(yymsp[-5].minor.yy0.z):-1;
- yylhsminor.yy377.maxPointsPerSecond = (yymsp[-8].minor.yy0.n>0)?atoi(yymsp[-8].minor.yy0.z):-1;
- yylhsminor.yy377.maxStorage = (yymsp[-6].minor.yy0.n>0)?strtoll(yymsp[-6].minor.yy0.z, NULL, 10):-1;
- yylhsminor.yy377.maxQueryTime = (yymsp[-4].minor.yy0.n>0)?strtoll(yymsp[-4].minor.yy0.z, NULL, 10):-1;
- yylhsminor.yy377.maxConnections = (yymsp[-1].minor.yy0.n>0)?atoi(yymsp[-1].minor.yy0.z):-1;
- yylhsminor.yy377.stat = yymsp[0].minor.yy0;
- }
-#line 3078 "sql.c"
- yymsp[-8].minor.yy377 = yylhsminor.yy377;
- break;
- case 86: /* intitemlist ::= intitemlist COMMA intitem */
- case 155: /* tagitemlist ::= tagitemlist COMMA tagitem */ yytestcase(yyruleno==155);
-#line 261 "sql.y"
- { yylhsminor.yy403 = tVariantListAppend(yymsp[-2].minor.yy403, &yymsp[0].minor.yy488, -1); }
-#line 3085 "sql.c"
- yymsp[-2].minor.yy403 = yylhsminor.yy403;
- break;
- case 87: /* intitemlist ::= intitem */
- case 156: /* tagitemlist ::= tagitem */ yytestcase(yyruleno==156);
+{ yymsp[1].minor.yy0.n = 0; }
+#line 3040 "sql.c"
+ break;
+ case 65: /* bufsize ::= BUFSIZE INTEGER */
+ case 67: /* pps ::= PPS INTEGER */ yytestcase(yyruleno==67);
+ case 69: /* tseries ::= TSERIES INTEGER */ yytestcase(yyruleno==69);
+ case 71: /* dbs ::= DBS INTEGER */ yytestcase(yyruleno==71);
+ case 73: /* streams ::= STREAMS INTEGER */ yytestcase(yyruleno==73);
+ case 75: /* storage ::= STORAGE INTEGER */ yytestcase(yyruleno==75);
+ case 77: /* qtime ::= QTIME INTEGER */ yytestcase(yyruleno==77);
+ case 79: /* users ::= USERS INTEGER */ yytestcase(yyruleno==79);
+ case 81: /* conns ::= CONNS INTEGER */ yytestcase(yyruleno==81);
+ case 83: /* state ::= STATE ids */ yytestcase(yyruleno==83);
+#line 209 "sql.y"
+{ yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; }
+#line 3054 "sql.c"
+ break;
+ case 84: /* acct_optr ::= pps tseries storage streams qtime dbs users conns state */
+#line 239 "sql.y"
+{
+ yylhsminor.yy171.maxUsers = (yymsp[-2].minor.yy0.n>0)?atoi(yymsp[-2].minor.yy0.z):-1;
+ yylhsminor.yy171.maxDbs = (yymsp[-3].minor.yy0.n>0)?atoi(yymsp[-3].minor.yy0.z):-1;
+ yylhsminor.yy171.maxTimeSeries = (yymsp[-7].minor.yy0.n>0)?atoi(yymsp[-7].minor.yy0.z):-1;
+ yylhsminor.yy171.maxStreams = (yymsp[-5].minor.yy0.n>0)?atoi(yymsp[-5].minor.yy0.z):-1;
+ yylhsminor.yy171.maxPointsPerSecond = (yymsp[-8].minor.yy0.n>0)?atoi(yymsp[-8].minor.yy0.z):-1;
+ yylhsminor.yy171.maxStorage = (yymsp[-6].minor.yy0.n>0)?strtoll(yymsp[-6].minor.yy0.z, NULL, 10):-1;
+ yylhsminor.yy171.maxQueryTime = (yymsp[-4].minor.yy0.n>0)?strtoll(yymsp[-4].minor.yy0.z, NULL, 10):-1;
+ yylhsminor.yy171.maxConnections = (yymsp[-1].minor.yy0.n>0)?atoi(yymsp[-1].minor.yy0.z):-1;
+ yylhsminor.yy171.stat = yymsp[0].minor.yy0;
+}
+#line 3069 "sql.c"
+ yymsp[-8].minor.yy171 = yylhsminor.yy171;
+ break;
+ case 85: /* intitemlist ::= intitemlist COMMA intitem */
+ case 154: /* tagitemlist ::= tagitemlist COMMA tagitem */ yytestcase(yyruleno==154);
+#line 255 "sql.y"
+{ yylhsminor.yy421 = tVariantListAppend(yymsp[-2].minor.yy421, &yymsp[0].minor.yy430, -1); }
+#line 3076 "sql.c"
+ yymsp[-2].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 86: /* intitemlist ::= intitem */
+ case 155: /* tagitemlist ::= tagitem */ yytestcase(yyruleno==155);
+#line 256 "sql.y"
+{ yylhsminor.yy421 = tVariantListAppend(NULL, &yymsp[0].minor.yy430, -1); }
+#line 3083 "sql.c"
+ yymsp[0].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 87: /* intitem ::= INTEGER */
+ case 156: /* tagitem ::= INTEGER */ yytestcase(yyruleno==156);
+ case 157: /* tagitem ::= FLOAT */ yytestcase(yyruleno==157);
+ case 158: /* tagitem ::= STRING */ yytestcase(yyruleno==158);
+ case 159: /* tagitem ::= BOOL */ yytestcase(yyruleno==159);
+#line 258 "sql.y"
+{ toTSDBType(yymsp[0].minor.yy0.type); tVariantCreate(&yylhsminor.yy430, &yymsp[0].minor.yy0); }
+#line 3093 "sql.c"
+ yymsp[0].minor.yy430 = yylhsminor.yy430;
+ break;
+ case 88: /* keep ::= KEEP intitemlist */
#line 262 "sql.y"
- { yylhsminor.yy403 = tVariantListAppend(NULL, &yymsp[0].minor.yy488, -1); }
-#line 3092 "sql.c"
- yymsp[0].minor.yy403 = yylhsminor.yy403;
- break;
- case 88: /* intitem ::= INTEGER */
- case 157: /* tagitem ::= INTEGER */ yytestcase(yyruleno==157);
- case 158: /* tagitem ::= FLOAT */ yytestcase(yyruleno==158);
- case 159: /* tagitem ::= STRING */ yytestcase(yyruleno==159);
- case 160: /* tagitem ::= BOOL */ yytestcase(yyruleno==160);
+{ yymsp[-1].minor.yy421 = yymsp[0].minor.yy421; }
+#line 3099 "sql.c"
+ break;
+ case 89: /* cache ::= CACHE INTEGER */
+ case 90: /* replica ::= REPLICA INTEGER */ yytestcase(yyruleno==90);
+ case 91: /* quorum ::= QUORUM INTEGER */ yytestcase(yyruleno==91);
+ case 92: /* days ::= DAYS INTEGER */ yytestcase(yyruleno==92);
+ case 93: /* minrows ::= MINROWS INTEGER */ yytestcase(yyruleno==93);
+ case 94: /* maxrows ::= MAXROWS INTEGER */ yytestcase(yyruleno==94);
+ case 95: /* blocks ::= BLOCKS INTEGER */ yytestcase(yyruleno==95);
+ case 96: /* ctime ::= CTIME INTEGER */ yytestcase(yyruleno==96);
+ case 97: /* wal ::= WAL INTEGER */ yytestcase(yyruleno==97);
+ case 98: /* fsync ::= FSYNC INTEGER */ yytestcase(yyruleno==98);
+ case 99: /* comp ::= COMP INTEGER */ yytestcase(yyruleno==99);
+ case 100: /* prec ::= PRECISION STRING */ yytestcase(yyruleno==100);
+ case 101: /* update ::= UPDATE INTEGER */ yytestcase(yyruleno==101);
+ case 102: /* cachelast ::= CACHELAST INTEGER */ yytestcase(yyruleno==102);
+ case 103: /* partitions ::= PARTITIONS INTEGER */ yytestcase(yyruleno==103);
#line 264 "sql.y"
- { toTSDBType(yymsp[0].minor.yy0.type); tVariantCreate(&yylhsminor.yy488, &yymsp[0].minor.yy0); }
-#line 3102 "sql.c"
- yymsp[0].minor.yy488 = yylhsminor.yy488;
- break;
- case 89: /* keep ::= KEEP intitemlist */
-#line 268 "sql.y"
- { yymsp[-1].minor.yy403 = yymsp[0].minor.yy403; }
-#line 3108 "sql.c"
- break;
- case 90: /* cache ::= CACHE INTEGER */
- case 91: /* replica ::= REPLICA INTEGER */ yytestcase(yyruleno==91);
- case 92: /* quorum ::= QUORUM INTEGER */ yytestcase(yyruleno==92);
- case 93: /* days ::= DAYS INTEGER */ yytestcase(yyruleno==93);
- case 94: /* minrows ::= MINROWS INTEGER */ yytestcase(yyruleno==94);
- case 95: /* maxrows ::= MAXROWS INTEGER */ yytestcase(yyruleno==95);
- case 96: /* blocks ::= BLOCKS INTEGER */ yytestcase(yyruleno==96);
- case 97: /* ctime ::= CTIME INTEGER */ yytestcase(yyruleno==97);
- case 98: /* wal ::= WAL INTEGER */ yytestcase(yyruleno==98);
- case 99: /* fsync ::= FSYNC INTEGER */ yytestcase(yyruleno==99);
- case 100: /* comp ::= COMP INTEGER */ yytestcase(yyruleno==100);
- case 101: /* prec ::= PRECISION STRING */ yytestcase(yyruleno==101);
- case 102: /* update ::= UPDATE INTEGER */ yytestcase(yyruleno==102);
- case 103: /* cachelast ::= CACHELAST INTEGER */ yytestcase(yyruleno==103);
- case 104: /* partitions ::= PARTITIONS INTEGER */ yytestcase(yyruleno==104);
-#line 270 "sql.y"
- { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; }
-#line 3127 "sql.c"
- break;
- case 105: /* db_optr ::= */
+{ yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; }
+#line 3118 "sql.c"
+ break;
+ case 104: /* db_optr ::= */
+#line 281 "sql.y"
+{setDefaultCreateDbOption(&yymsp[1].minor.yy90); yymsp[1].minor.yy90.dbType = TSDB_DB_TYPE_DEFAULT;}
+#line 3123 "sql.c"
+ break;
+ case 105: /* db_optr ::= db_optr cache */
+#line 283 "sql.y"
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.cacheBlockSize = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3128 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 106: /* db_optr ::= db_optr replica */
+ case 123: /* alter_db_optr ::= alter_db_optr replica */ yytestcase(yyruleno==123);
+#line 284 "sql.y"
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.replica = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3135 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 107: /* db_optr ::= db_optr quorum */
+ case 124: /* alter_db_optr ::= alter_db_optr quorum */ yytestcase(yyruleno==124);
+#line 285 "sql.y"
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.quorum = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3142 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 108: /* db_optr ::= db_optr days */
+#line 286 "sql.y"
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.daysPerFile = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3148 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 109: /* db_optr ::= db_optr minrows */
#line 287 "sql.y"
- {setDefaultCreateDbOption(&yymsp[1].minor.yy246); yymsp[1].minor.yy246.dbType = TSDB_DB_TYPE_DEFAULT;}
-#line 3132 "sql.c"
- break;
- case 106: /* db_optr ::= db_optr cache */
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.minRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); }
+#line 3154 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 110: /* db_optr ::= db_optr maxrows */
+#line 288 "sql.y"
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.maxRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); }
+#line 3160 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 111: /* db_optr ::= db_optr blocks */
+ case 126: /* alter_db_optr ::= alter_db_optr blocks */ yytestcase(yyruleno==126);
#line 289 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.cacheBlockSize = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3137 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 107: /* db_optr ::= db_optr replica */
- case 124: /* alter_db_optr ::= alter_db_optr replica */ yytestcase(yyruleno==124);
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.numOfBlocks = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3167 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 112: /* db_optr ::= db_optr ctime */
#line 290 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.replica = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3144 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 108: /* db_optr ::= db_optr quorum */
- case 125: /* alter_db_optr ::= alter_db_optr quorum */ yytestcase(yyruleno==125);
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.commitTime = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3173 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 113: /* db_optr ::= db_optr wal */
#line 291 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.quorum = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3151 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 109: /* db_optr ::= db_optr days */
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.walLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3179 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 114: /* db_optr ::= db_optr fsync */
#line 292 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.daysPerFile = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3157 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 110: /* db_optr ::= db_optr minrows */
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.fsyncPeriod = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3185 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 115: /* db_optr ::= db_optr comp */
+ case 127: /* alter_db_optr ::= alter_db_optr comp */ yytestcase(yyruleno==127);
#line 293 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.minRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); }
-#line 3163 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 111: /* db_optr ::= db_optr maxrows */
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.compressionLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3192 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 116: /* db_optr ::= db_optr prec */
#line 294 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.maxRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); }
-#line 3169 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 112: /* db_optr ::= db_optr blocks */
- case 127: /* alter_db_optr ::= alter_db_optr blocks */ yytestcase(yyruleno==127);
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.precision = yymsp[0].minor.yy0; }
+#line 3198 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 117: /* db_optr ::= db_optr keep */
+ case 125: /* alter_db_optr ::= alter_db_optr keep */ yytestcase(yyruleno==125);
#line 295 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.numOfBlocks = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3176 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 113: /* db_optr ::= db_optr ctime */
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.keep = yymsp[0].minor.yy421; }
+#line 3205 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 118: /* db_optr ::= db_optr update */
+ case 128: /* alter_db_optr ::= alter_db_optr update */ yytestcase(yyruleno==128);
#line 296 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.commitTime = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3182 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 114: /* db_optr ::= db_optr wal */
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.update = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3212 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 119: /* db_optr ::= db_optr cachelast */
+ case 129: /* alter_db_optr ::= alter_db_optr cachelast */ yytestcase(yyruleno==129);
#line 297 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.walLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3188 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 115: /* db_optr ::= db_optr fsync */
-#line 298 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.fsyncPeriod = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3194 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 116: /* db_optr ::= db_optr comp */
- case 128: /* alter_db_optr ::= alter_db_optr comp */ yytestcase(yyruleno==128);
-#line 299 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.compressionLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3201 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 117: /* db_optr ::= db_optr prec */
-#line 300 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.precision = yymsp[0].minor.yy0; }
-#line 3207 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 118: /* db_optr ::= db_optr keep */
- case 126: /* alter_db_optr ::= alter_db_optr keep */ yytestcase(yyruleno==126);
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.cachelast = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3219 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 120: /* topic_optr ::= db_optr */
+ case 130: /* alter_topic_optr ::= alter_db_optr */ yytestcase(yyruleno==130);
#line 301 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.keep = yymsp[0].minor.yy403; }
-#line 3214 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 119: /* db_optr ::= db_optr update */
- case 129: /* alter_db_optr ::= alter_db_optr update */ yytestcase(yyruleno==129);
+{ yylhsminor.yy90 = yymsp[0].minor.yy90; yylhsminor.yy90.dbType = TSDB_DB_TYPE_TOPIC; }
+#line 3226 "sql.c"
+ yymsp[0].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 121: /* topic_optr ::= topic_optr partitions */
+ case 131: /* alter_topic_optr ::= alter_topic_optr partitions */ yytestcase(yyruleno==131);
#line 302 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.update = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3221 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 120: /* db_optr ::= db_optr cachelast */
- case 130: /* alter_db_optr ::= alter_db_optr cachelast */ yytestcase(yyruleno==130);
-#line 303 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.cachelast = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3228 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 121: /* topic_optr ::= db_optr */
- case 131: /* alter_topic_optr ::= alter_db_optr */ yytestcase(yyruleno==131);
-#line 307 "sql.y"
- { yylhsminor.yy246 = yymsp[0].minor.yy246; yylhsminor.yy246.dbType = TSDB_DB_TYPE_TOPIC; }
-#line 3235 "sql.c"
- yymsp[0].minor.yy246 = yylhsminor.yy246;
- break;
- case 122: /* topic_optr ::= topic_optr partitions */
- case 132: /* alter_topic_optr ::= alter_topic_optr partitions */ yytestcase(yyruleno==132);
-#line 308 "sql.y"
- { yylhsminor.yy246 = yymsp[-1].minor.yy246; yylhsminor.yy246.partitions = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3242 "sql.c"
- yymsp[-1].minor.yy246 = yylhsminor.yy246;
- break;
- case 123: /* alter_db_optr ::= */
-#line 311 "sql.y"
- { setDefaultCreateDbOption(&yymsp[1].minor.yy246); yymsp[1].minor.yy246.dbType = TSDB_DB_TYPE_DEFAULT;}
-#line 3248 "sql.c"
- break;
- case 133: /* typename ::= ids */
+{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.partitions = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3233 "sql.c"
+ yymsp[-1].minor.yy90 = yylhsminor.yy90;
+ break;
+ case 122: /* alter_db_optr ::= */
+#line 305 "sql.y"
+{ setDefaultCreateDbOption(&yymsp[1].minor.yy90); yymsp[1].minor.yy90.dbType = TSDB_DB_TYPE_DEFAULT;}
+#line 3239 "sql.c"
+ break;
+ case 132: /* typename ::= ids */
+#line 325 "sql.y"
+{
+ yymsp[0].minor.yy0.type = 0;
+ tSetColumnType (&yylhsminor.yy183, &yymsp[0].minor.yy0);
+}
+#line 3247 "sql.c"
+ yymsp[0].minor.yy183 = yylhsminor.yy183;
+ break;
+ case 133: /* typename ::= ids LP signed RP */
#line 331 "sql.y"
- {
- yymsp[0].minor.yy0.type = 0;
- tSetColumnType (&yylhsminor.yy363, &yymsp[0].minor.yy0);
- }
-#line 3256 "sql.c"
- yymsp[0].minor.yy363 = yylhsminor.yy363;
- break;
- case 134: /* typename ::= ids LP signed RP */
-#line 337 "sql.y"
- {
- if (yymsp[-1].minor.yy387 <= 0) {
- yymsp[-3].minor.yy0.type = 0;
- tSetColumnType(&yylhsminor.yy363, &yymsp[-3].minor.yy0);
- } else {
- yymsp[-3].minor.yy0.type = -yymsp[-1].minor.yy387; // negative value of name length
- tSetColumnType(&yylhsminor.yy363, &yymsp[-3].minor.yy0);
- }
- }
-#line 3270 "sql.c"
- yymsp[-3].minor.yy363 = yylhsminor.yy363;
- break;
- case 135: /* typename ::= ids UNSIGNED */
-#line 348 "sql.y"
- {
- 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);
- tSetColumnType (&yylhsminor.yy363, &yymsp[-1].minor.yy0);
- }
-#line 3280 "sql.c"
- yymsp[-1].minor.yy363 = yylhsminor.yy363;
- break;
- case 136: /* signed ::= INTEGER */
-#line 355 "sql.y"
- { yylhsminor.yy387 = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3286 "sql.c"
- yymsp[0].minor.yy387 = yylhsminor.yy387;
- break;
- case 137: /* signed ::= PLUS INTEGER */
-#line 356 "sql.y"
- { yymsp[-1].minor.yy387 = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
-#line 3292 "sql.c"
- break;
- case 138: /* signed ::= MINUS INTEGER */
+{
+ if (yymsp[-1].minor.yy325 <= 0) {
+ yymsp[-3].minor.yy0.type = 0;
+ tSetColumnType(&yylhsminor.yy183, &yymsp[-3].minor.yy0);
+ } else {
+ yymsp[-3].minor.yy0.type = -yymsp[-1].minor.yy325; // negative value of name length
+ tSetColumnType(&yylhsminor.yy183, &yymsp[-3].minor.yy0);
+ }
+}
+#line 3261 "sql.c"
+ yymsp[-3].minor.yy183 = yylhsminor.yy183;
+ break;
+ case 134: /* typename ::= ids UNSIGNED */
+#line 342 "sql.y"
+{
+ 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);
+ tSetColumnType (&yylhsminor.yy183, &yymsp[-1].minor.yy0);
+}
+#line 3271 "sql.c"
+ yymsp[-1].minor.yy183 = yylhsminor.yy183;
+ break;
+ case 135: /* signed ::= INTEGER */
+#line 349 "sql.y"
+{ yylhsminor.yy325 = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3277 "sql.c"
+ yymsp[0].minor.yy325 = yylhsminor.yy325;
+ break;
+ case 136: /* signed ::= PLUS INTEGER */
+#line 350 "sql.y"
+{ yymsp[-1].minor.yy325 = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
+#line 3283 "sql.c"
+ break;
+ case 137: /* signed ::= MINUS INTEGER */
+#line 351 "sql.y"
+{ yymsp[-1].minor.yy325 = -strtol(yymsp[0].minor.yy0.z, NULL, 10);}
+#line 3288 "sql.c"
+ break;
+ case 141: /* cmd ::= CREATE TABLE create_table_list */
#line 357 "sql.y"
- { yymsp[-1].minor.yy387 = -strtol(yymsp[0].minor.yy0.z, NULL, 10);}
-#line 3297 "sql.c"
- break;
- case 142: /* cmd ::= CREATE TABLE create_table_list */
-#line 363 "sql.y"
- { pInfo->type = TSDB_SQL_CREATE_TABLE; pInfo->pCreateTableInfo = yymsp[0].minor.yy56;}
-#line 3302 "sql.c"
- break;
- case 143: /* create_table_list ::= create_from_stable */
-#line 367 "sql.y"
- {
- SCreateTableSql* pCreateTable = calloc(1, sizeof(SCreateTableSql));
- pCreateTable->childTableInfo = taosArrayInit(4, sizeof(SCreatedTableInfo));
+{ pInfo->type = TSDB_SQL_CREATE_TABLE; pInfo->pCreateTableInfo = yymsp[0].minor.yy438;}
+#line 3293 "sql.c"
+ break;
+ case 142: /* create_table_list ::= create_from_stable */
+#line 361 "sql.y"
+{
+ SCreateTableSql* pCreateTable = calloc(1, sizeof(SCreateTableSql));
+ pCreateTable->childTableInfo = taosArrayInit(4, sizeof(SCreatedTableInfo));
- taosArrayPush(pCreateTable->childTableInfo, &yymsp[0].minor.yy84);
- pCreateTable->type = TSQL_CREATE_TABLE_FROM_STABLE;
- yylhsminor.yy56 = pCreateTable;
- }
+ taosArrayPush(pCreateTable->childTableInfo, &yymsp[0].minor.yy152);
+ pCreateTable->type = TSQL_CREATE_TABLE_FROM_STABLE;
+ yylhsminor.yy438 = pCreateTable;
+}
+#line 3305 "sql.c"
+ yymsp[0].minor.yy438 = yylhsminor.yy438;
+ break;
+ case 143: /* create_table_list ::= create_table_list create_from_stable */
+#line 370 "sql.y"
+{
+ taosArrayPush(yymsp[-1].minor.yy438->childTableInfo, &yymsp[0].minor.yy152);
+ yylhsminor.yy438 = yymsp[-1].minor.yy438;
+}
#line 3314 "sql.c"
- yymsp[0].minor.yy56 = yylhsminor.yy56;
- break;
- case 144: /* create_table_list ::= create_table_list create_from_stable */
+ yymsp[-1].minor.yy438 = yylhsminor.yy438;
+ break;
+ case 144: /* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
#line 376 "sql.y"
- {
- taosArrayPush(yymsp[-1].minor.yy56->childTableInfo, &yymsp[0].minor.yy84);
- yylhsminor.yy56 = yymsp[-1].minor.yy56;
- }
-#line 3323 "sql.c"
- yymsp[-1].minor.yy56 = yylhsminor.yy56;
- break;
- case 145: /* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
-#line 382 "sql.y"
- {
- yylhsminor.yy56 = tSetCreateTableInfo(yymsp[-1].minor.yy403, NULL, NULL, TSQL_CREATE_TABLE);
- setSqlInfo(pInfo, yylhsminor.yy56, NULL, TSDB_SQL_CREATE_TABLE);
+{
+ yylhsminor.yy438 = tSetCreateTableInfo(yymsp[-1].minor.yy421, NULL, NULL, TSQL_CREATE_TABLE);
+ setSqlInfo(pInfo, yylhsminor.yy438, NULL, TSDB_SQL_CREATE_TABLE);
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- setCreatedTableName(pInfo, &yymsp[-4].minor.yy0, &yymsp[-5].minor.yy0);
- }
-#line 3335 "sql.c"
- yymsp[-5].minor.yy56 = yylhsminor.yy56;
- break;
- case 146: /* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
-#line 392 "sql.y"
- {
- yylhsminor.yy56 = tSetCreateTableInfo(yymsp[-5].minor.yy403, yymsp[-1].minor.yy403, NULL, TSQL_CREATE_STABLE);
- setSqlInfo(pInfo, yylhsminor.yy56, NULL, TSDB_SQL_CREATE_TABLE);
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ setCreatedTableName(pInfo, &yymsp[-4].minor.yy0, &yymsp[-5].minor.yy0);
+}
+#line 3326 "sql.c"
+ yymsp[-5].minor.yy438 = yylhsminor.yy438;
+ break;
+ case 145: /* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
+#line 386 "sql.y"
+{
+ yylhsminor.yy438 = tSetCreateTableInfo(yymsp[-5].minor.yy421, yymsp[-1].minor.yy421, NULL, TSQL_CREATE_STABLE);
+ setSqlInfo(pInfo, yylhsminor.yy438, NULL, TSDB_SQL_CREATE_TABLE);
- yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n;
- setCreatedTableName(pInfo, &yymsp[-8].minor.yy0, &yymsp[-9].minor.yy0);
- }
-#line 3347 "sql.c"
- yymsp[-9].minor.yy56 = yylhsminor.yy56;
- break;
- case 147: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
+ yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n;
+ setCreatedTableName(pInfo, &yymsp[-8].minor.yy0, &yymsp[-9].minor.yy0);
+}
+#line 3338 "sql.c"
+ yymsp[-9].minor.yy438 = yylhsminor.yy438;
+ break;
+ case 146: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
+#line 397 "sql.y"
+{
+ yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
+ yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n;
+ yylhsminor.yy152 = createNewChildTableInfo(&yymsp[-5].minor.yy0, NULL, yymsp[-1].minor.yy421, &yymsp[-8].minor.yy0, &yymsp[-9].minor.yy0);
+}
+#line 3348 "sql.c"
+ yymsp[-9].minor.yy152 = yylhsminor.yy152;
+ break;
+ case 147: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
#line 403 "sql.y"
- {
- yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
- yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n;
- yylhsminor.yy84 = createNewChildTableInfo(&yymsp[-5].minor.yy0, NULL, yymsp[-1].minor.yy403, &yymsp[-8].minor.yy0, &yymsp[-9].minor.yy0);
- }
-#line 3357 "sql.c"
- yymsp[-9].minor.yy84 = yylhsminor.yy84;
- break;
- case 148: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
-#line 409 "sql.y"
- {
- yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n;
- yymsp[-11].minor.yy0.n += yymsp[-10].minor.yy0.n;
- yylhsminor.yy84 = createNewChildTableInfo(&yymsp[-8].minor.yy0, yymsp[-5].minor.yy403, yymsp[-1].minor.yy403, &yymsp[-11].minor.yy0, &yymsp[-12].minor.yy0);
- }
-#line 3367 "sql.c"
- yymsp[-12].minor.yy84 = yylhsminor.yy84;
- break;
- case 149: /* tagNamelist ::= tagNamelist COMMA ids */
-#line 417 "sql.y"
- {taosArrayPush(yymsp[-2].minor.yy403, &yymsp[0].minor.yy0); yylhsminor.yy403 = yymsp[-2].minor.yy403; }
-#line 3373 "sql.c"
- yymsp[-2].minor.yy403 = yylhsminor.yy403;
- break;
- case 150: /* tagNamelist ::= ids */
-#line 418 "sql.y"
- {yylhsminor.yy403 = taosArrayInit(4, sizeof(SStrToken)); taosArrayPush(yylhsminor.yy403, &yymsp[0].minor.yy0);}
-#line 3379 "sql.c"
- yymsp[0].minor.yy403 = yylhsminor.yy403;
- break;
- case 151: /* create_table_args ::= ifnotexists ids cpxName AS select */
-#line 422 "sql.y"
- {
- yylhsminor.yy56 = tSetCreateTableInfo(NULL, NULL, yymsp[0].minor.yy224, TSQL_CREATE_STREAM);
- setSqlInfo(pInfo, yylhsminor.yy56, NULL, TSDB_SQL_CREATE_TABLE);
+{
+ yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n;
+ yymsp[-11].minor.yy0.n += yymsp[-10].minor.yy0.n;
+ yylhsminor.yy152 = createNewChildTableInfo(&yymsp[-8].minor.yy0, yymsp[-5].minor.yy421, yymsp[-1].minor.yy421, &yymsp[-11].minor.yy0, &yymsp[-12].minor.yy0);
+}
+#line 3358 "sql.c"
+ yymsp[-12].minor.yy152 = yylhsminor.yy152;
+ break;
+ case 148: /* tagNamelist ::= tagNamelist COMMA ids */
+#line 411 "sql.y"
+{taosArrayPush(yymsp[-2].minor.yy421, &yymsp[0].minor.yy0); yylhsminor.yy421 = yymsp[-2].minor.yy421; }
+#line 3364 "sql.c"
+ yymsp[-2].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 149: /* tagNamelist ::= ids */
+#line 412 "sql.y"
+{yylhsminor.yy421 = taosArrayInit(4, sizeof(SStrToken)); taosArrayPush(yylhsminor.yy421, &yymsp[0].minor.yy0);}
+#line 3370 "sql.c"
+ yymsp[0].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 150: /* create_table_args ::= ifnotexists ids cpxName AS select */
+#line 416 "sql.y"
+{
+ yylhsminor.yy438 = tSetCreateTableInfo(NULL, NULL, yymsp[0].minor.yy56, TSQL_CREATE_STREAM);
+ setSqlInfo(pInfo, yylhsminor.yy438, NULL, TSDB_SQL_CREATE_TABLE);
- yymsp[-3].minor.yy0.n += yymsp[-2].minor.yy0.n;
- setCreatedTableName(pInfo, &yymsp[-3].minor.yy0, &yymsp[-4].minor.yy0);
- }
-#line 3391 "sql.c"
- yymsp[-4].minor.yy56 = yylhsminor.yy56;
- break;
- case 152: /* columnlist ::= columnlist COMMA column */
-#line 433 "sql.y"
- {taosArrayPush(yymsp[-2].minor.yy403, &yymsp[0].minor.yy363); yylhsminor.yy403 = yymsp[-2].minor.yy403; }
-#line 3397 "sql.c"
- yymsp[-2].minor.yy403 = yylhsminor.yy403;
- break;
- case 153: /* columnlist ::= column */
-#line 434 "sql.y"
- {yylhsminor.yy403 = taosArrayInit(4, sizeof(TAOS_FIELD)); taosArrayPush(yylhsminor.yy403, &yymsp[0].minor.yy363);}
-#line 3403 "sql.c"
- yymsp[0].minor.yy403 = yylhsminor.yy403;
- break;
- case 154: /* column ::= ids typename */
-#line 438 "sql.y"
- {
- tSetColumnInfo(&yylhsminor.yy363, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy363);
- }
-#line 3411 "sql.c"
- yymsp[-1].minor.yy363 = yylhsminor.yy363;
- break;
- case 161: /* tagitem ::= NULL */
-#line 453 "sql.y"
- { yymsp[0].minor.yy0.type = 0; tVariantCreate(&yylhsminor.yy488, &yymsp[0].minor.yy0); }
-#line 3417 "sql.c"
- yymsp[0].minor.yy488 = yylhsminor.yy488;
- break;
- case 162: /* tagitem ::= NOW */
-#line 454 "sql.y"
- { yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; tVariantCreate(&yylhsminor.yy488, &yymsp[0].minor.yy0);}
-#line 3423 "sql.c"
- yymsp[0].minor.yy488 = yylhsminor.yy488;
- break;
- case 163: /* tagitem ::= MINUS INTEGER */
- case 164: /* tagitem ::= MINUS FLOAT */ yytestcase(yyruleno==164);
- case 165: /* tagitem ::= PLUS INTEGER */ yytestcase(yyruleno==165);
- case 166: /* tagitem ::= PLUS FLOAT */ yytestcase(yyruleno==166);
-#line 456 "sql.y"
- {
- yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
- yymsp[-1].minor.yy0.type = yymsp[0].minor.yy0.type;
- toTSDBType(yymsp[-1].minor.yy0.type);
- tVariantCreate(&yylhsminor.yy488, &yymsp[-1].minor.yy0);
- }
-#line 3437 "sql.c"
- yymsp[-1].minor.yy488 = yylhsminor.yy488;
- break;
- case 167: /* select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
-#line 487 "sql.y"
- {
- yylhsminor.yy224 = tSetQuerySqlNode(&yymsp[-13].minor.yy0, yymsp[-12].minor.yy403, yymsp[-11].minor.yy114, yymsp[-10].minor.yy260, yymsp[-4].minor.yy403, yymsp[-2].minor.yy403, &yymsp[-9].minor.yy222, &yymsp[-7].minor.yy365, &yymsp[-6].minor.yy544, &yymsp[-8].minor.yy0, yymsp[-5].minor.yy403, &yymsp[0].minor.yy404, &yymsp[-1].minor.yy404, yymsp[-3].minor.yy260);
- }
-#line 3445 "sql.c"
- yymsp[-13].minor.yy224 = yylhsminor.yy224;
- break;
- case 168: /* select ::= LP select RP */
-#line 491 "sql.y"
- {yymsp[-2].minor.yy224 = yymsp[-1].minor.yy224;}
-#line 3451 "sql.c"
- break;
- case 169: /* union ::= select */
-#line 495 "sql.y"
- { yylhsminor.yy403 = setSubclause(NULL, yymsp[0].minor.yy224); }
-#line 3456 "sql.c"
- yymsp[0].minor.yy403 = yylhsminor.yy403;
- break;
- case 170: /* union ::= union UNION ALL select */
-#line 496 "sql.y"
- { yylhsminor.yy403 = appendSelectClause(yymsp[-3].minor.yy403, yymsp[0].minor.yy224); }
-#line 3462 "sql.c"
- yymsp[-3].minor.yy403 = yylhsminor.yy403;
- break;
- case 171: /* cmd ::= union */
-#line 498 "sql.y"
- { setSqlInfo(pInfo, yymsp[0].minor.yy403, NULL, TSDB_SQL_SELECT); }
-#line 3468 "sql.c"
- break;
- case 172: /* select ::= SELECT selcollist */
-#line 505 "sql.y"
- {
- yylhsminor.yy224 = tSetQuerySqlNode(&yymsp[-1].minor.yy0, yymsp[0].minor.yy403, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
- }
-#line 3475 "sql.c"
- yymsp[-1].minor.yy224 = yylhsminor.yy224;
- break;
- case 173: /* sclp ::= selcollist COMMA */
+ yymsp[-3].minor.yy0.n += yymsp[-2].minor.yy0.n;
+ setCreatedTableName(pInfo, &yymsp[-3].minor.yy0, &yymsp[-4].minor.yy0);
+}
+#line 3382 "sql.c"
+ yymsp[-4].minor.yy438 = yylhsminor.yy438;
+ break;
+ case 151: /* columnlist ::= columnlist COMMA column */
+#line 427 "sql.y"
+{taosArrayPush(yymsp[-2].minor.yy421, &yymsp[0].minor.yy183); yylhsminor.yy421 = yymsp[-2].minor.yy421; }
+#line 3388 "sql.c"
+ yymsp[-2].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 152: /* columnlist ::= column */
+#line 428 "sql.y"
+{yylhsminor.yy421 = taosArrayInit(4, sizeof(TAOS_FIELD)); taosArrayPush(yylhsminor.yy421, &yymsp[0].minor.yy183);}
+#line 3394 "sql.c"
+ yymsp[0].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 153: /* column ::= ids typename */
+#line 432 "sql.y"
+{
+ tSetColumnInfo(&yylhsminor.yy183, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy183);
+}
+#line 3402 "sql.c"
+ yymsp[-1].minor.yy183 = yylhsminor.yy183;
+ break;
+ case 160: /* tagitem ::= NULL */
+#line 447 "sql.y"
+{ yymsp[0].minor.yy0.type = 0; tVariantCreate(&yylhsminor.yy430, &yymsp[0].minor.yy0); }
+#line 3408 "sql.c"
+ yymsp[0].minor.yy430 = yylhsminor.yy430;
+ break;
+ case 161: /* tagitem ::= NOW */
+#line 448 "sql.y"
+{ yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; tVariantCreate(&yylhsminor.yy430, &yymsp[0].minor.yy0);}
+#line 3414 "sql.c"
+ yymsp[0].minor.yy430 = yylhsminor.yy430;
+ break;
+ case 162: /* tagitem ::= MINUS INTEGER */
+ case 163: /* tagitem ::= MINUS FLOAT */ yytestcase(yyruleno==163);
+ case 164: /* tagitem ::= PLUS INTEGER */ yytestcase(yyruleno==164);
+ case 165: /* tagitem ::= PLUS FLOAT */ yytestcase(yyruleno==165);
+#line 450 "sql.y"
+{
+ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
+ yymsp[-1].minor.yy0.type = yymsp[0].minor.yy0.type;
+ toTSDBType(yymsp[-1].minor.yy0.type);
+ tVariantCreate(&yylhsminor.yy430, &yymsp[-1].minor.yy0);
+}
+#line 3428 "sql.c"
+ yymsp[-1].minor.yy430 = yylhsminor.yy430;
+ break;
+ case 166: /* select ::= SELECT selcollist from where_opt interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */
+#line 481 "sql.y"
+{
+ yylhsminor.yy56 = tSetQuerySqlNode(&yymsp[-13].minor.yy0, yymsp[-12].minor.yy421, yymsp[-11].minor.yy8, yymsp[-10].minor.yy439, yymsp[-4].minor.yy421, yymsp[-2].minor.yy421, &yymsp[-9].minor.yy400, &yymsp[-7].minor.yy147, &yymsp[-6].minor.yy40, &yymsp[-8].minor.yy0, yymsp[-5].minor.yy421, &yymsp[0].minor.yy166, &yymsp[-1].minor.yy166, yymsp[-3].minor.yy439);
+}
+#line 3436 "sql.c"
+ yymsp[-13].minor.yy56 = yylhsminor.yy56;
+ break;
+ case 167: /* select ::= LP select RP */
+#line 485 "sql.y"
+{yymsp[-2].minor.yy56 = yymsp[-1].minor.yy56;}
+#line 3442 "sql.c"
+ break;
+ case 168: /* union ::= select */
+#line 489 "sql.y"
+{ yylhsminor.yy421 = setSubclause(NULL, yymsp[0].minor.yy56); }
+#line 3447 "sql.c"
+ yymsp[0].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 169: /* union ::= union UNION ALL select */
+#line 490 "sql.y"
+{ yylhsminor.yy421 = appendSelectClause(yymsp[-3].minor.yy421, yymsp[0].minor.yy56); }
+#line 3453 "sql.c"
+ yymsp[-3].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 170: /* cmd ::= union */
+#line 492 "sql.y"
+{ setSqlInfo(pInfo, yymsp[0].minor.yy421, NULL, TSDB_SQL_SELECT); }
+#line 3459 "sql.c"
+ break;
+ case 171: /* select ::= SELECT selcollist */
+#line 499 "sql.y"
+{
+ yylhsminor.yy56 = tSetQuerySqlNode(&yymsp[-1].minor.yy0, yymsp[0].minor.yy421, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+}
+#line 3466 "sql.c"
+ yymsp[-1].minor.yy56 = yylhsminor.yy56;
+ break;
+ case 172: /* sclp ::= selcollist COMMA */
+#line 511 "sql.y"
+{yylhsminor.yy421 = yymsp[-1].minor.yy421;}
+#line 3472 "sql.c"
+ yymsp[-1].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 173: /* sclp ::= */
+ case 205: /* orderby_opt ::= */ yytestcase(yyruleno==205);
+#line 512 "sql.y"
+{yymsp[1].minor.yy421 = 0;}
+#line 3479 "sql.c"
+ break;
+ case 174: /* selcollist ::= sclp distinct expr as */
+#line 513 "sql.y"
+{
+ yylhsminor.yy421 = tSqlExprListAppend(yymsp[-3].minor.yy421, yymsp[-1].minor.yy439, yymsp[-2].minor.yy0.n? &yymsp[-2].minor.yy0:0, yymsp[0].minor.yy0.n?&yymsp[0].minor.yy0:0);
+}
+#line 3486 "sql.c"
+ yymsp[-3].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 175: /* selcollist ::= sclp STAR */
#line 517 "sql.y"
- {yylhsminor.yy403 = yymsp[-1].minor.yy403;}
-#line 3481 "sql.c"
- yymsp[-1].minor.yy403 = yylhsminor.yy403;
- break;
- case 174: /* sclp ::= */
- case 206: /* orderby_opt ::= */ yytestcase(yyruleno==206);
-#line 518 "sql.y"
- {yymsp[1].minor.yy403 = 0;}
-#line 3488 "sql.c"
- break;
- case 175: /* selcollist ::= sclp distinct expr as */
-#line 519 "sql.y"
- {
- yylhsminor.yy403 = tSqlExprListAppend(yymsp[-3].minor.yy403, yymsp[-1].minor.yy260, yymsp[-2].minor.yy0.n? &yymsp[-2].minor.yy0:0, yymsp[0].minor.yy0.n?&yymsp[0].minor.yy0:0);
- }
+{
+ tSqlExpr *pNode = tSqlExprCreateIdValue(pInfo, NULL, TK_ALL);
+ yylhsminor.yy421 = tSqlExprListAppend(yymsp[-1].minor.yy421, pNode, 0, 0);
+}
#line 3495 "sql.c"
- yymsp[-3].minor.yy403 = yylhsminor.yy403;
- break;
- case 176: /* selcollist ::= sclp STAR */
-#line 523 "sql.y"
- {
- tSqlExpr *pNode = tSqlExprCreateIdValue(pInfo, NULL, TK_ALL);
- yylhsminor.yy403 = tSqlExprListAppend(yymsp[-1].minor.yy403, pNode, 0, 0);
- }
-#line 3504 "sql.c"
- yymsp[-1].minor.yy403 = yylhsminor.yy403;
- break;
- case 177: /* as ::= AS ids */
-#line 531 "sql.y"
- { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; }
-#line 3510 "sql.c"
- break;
- case 178: /* as ::= ids */
-#line 532 "sql.y"
- { yylhsminor.yy0 = yymsp[0].minor.yy0; }
-#line 3515 "sql.c"
- yymsp[0].minor.yy0 = yylhsminor.yy0;
- break;
- case 179: /* as ::= */
-#line 533 "sql.y"
- { yymsp[1].minor.yy0.n = 0; }
-#line 3521 "sql.c"
- break;
- case 180: /* distinct ::= DISTINCT */
+ yymsp[-1].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 176: /* as ::= AS ids */
+#line 525 "sql.y"
+{ yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; }
+#line 3501 "sql.c"
+ break;
+ case 177: /* as ::= ids */
+#line 526 "sql.y"
+{ yylhsminor.yy0 = yymsp[0].minor.yy0; }
+#line 3506 "sql.c"
+ yymsp[0].minor.yy0 = yylhsminor.yy0;
+ break;
+ case 178: /* as ::= */
+#line 527 "sql.y"
+{ yymsp[1].minor.yy0.n = 0; }
+#line 3512 "sql.c"
+ break;
+ case 179: /* distinct ::= DISTINCT */
+#line 530 "sql.y"
+{ yylhsminor.yy0 = yymsp[0].minor.yy0; }
+#line 3517 "sql.c"
+ yymsp[0].minor.yy0 = yylhsminor.yy0;
+ break;
+ case 181: /* from ::= FROM tablelist */
+ case 182: /* from ::= FROM sub */ yytestcase(yyruleno==182);
#line 536 "sql.y"
- { yylhsminor.yy0 = yymsp[0].minor.yy0; }
-#line 3526 "sql.c"
- yymsp[0].minor.yy0 = yylhsminor.yy0;
- break;
- case 182: /* from ::= FROM tablelist */
- case 183: /* from ::= FROM sub */ yytestcase(yyruleno==183);
+{yymsp[-1].minor.yy8 = yymsp[0].minor.yy8;}
+#line 3524 "sql.c"
+ break;
+ case 183: /* sub ::= LP union RP */
+#line 541 "sql.y"
+{yymsp[-2].minor.yy8 = addSubqueryElem(NULL, yymsp[-1].minor.yy421, NULL);}
+#line 3529 "sql.c"
+ break;
+ case 184: /* sub ::= LP union RP ids */
#line 542 "sql.y"
- {yymsp[-1].minor.yy114 = yymsp[0].minor.yy114;}
-#line 3533 "sql.c"
- break;
- case 184: /* sub ::= LP union RP */
+{yymsp[-3].minor.yy8 = addSubqueryElem(NULL, yymsp[-2].minor.yy421, &yymsp[0].minor.yy0);}
+#line 3534 "sql.c"
+ break;
+ case 185: /* sub ::= sub COMMA LP union RP ids */
+#line 543 "sql.y"
+{yylhsminor.yy8 = addSubqueryElem(yymsp[-5].minor.yy8, yymsp[-2].minor.yy421, &yymsp[0].minor.yy0);}
+#line 3539 "sql.c"
+ yymsp[-5].minor.yy8 = yylhsminor.yy8;
+ break;
+ case 186: /* tablelist ::= ids cpxName */
#line 547 "sql.y"
- {yymsp[-2].minor.yy114 = addSubqueryElem(NULL, yymsp[-1].minor.yy403, NULL);}
-#line 3538 "sql.c"
- break;
- case 185: /* sub ::= LP union RP ids */
-#line 548 "sql.y"
- {yymsp[-3].minor.yy114 = addSubqueryElem(NULL, yymsp[-2].minor.yy403, &yymsp[0].minor.yy0);}
-#line 3543 "sql.c"
- break;
- case 186: /* sub ::= sub COMMA LP union RP ids */
-#line 549 "sql.y"
- {yylhsminor.yy114 = addSubqueryElem(yymsp[-5].minor.yy114, yymsp[-2].minor.yy403, &yymsp[0].minor.yy0);}
+{
+ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
+ yylhsminor.yy8 = setTableNameList(NULL, &yymsp[-1].minor.yy0, NULL);
+}
#line 3548 "sql.c"
- yymsp[-5].minor.yy114 = yylhsminor.yy114;
- break;
- case 187: /* tablelist ::= ids cpxName */
-#line 553 "sql.y"
- {
- yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
- yylhsminor.yy114 = setTableNameList(NULL, &yymsp[-1].minor.yy0, NULL);
- }
+ yymsp[-1].minor.yy8 = yylhsminor.yy8;
+ break;
+ case 187: /* tablelist ::= ids cpxName ids */
+#line 552 "sql.y"
+{
+ yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n;
+ yylhsminor.yy8 = setTableNameList(NULL, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);
+}
#line 3557 "sql.c"
- yymsp[-1].minor.yy114 = yylhsminor.yy114;
- break;
- case 188: /* tablelist ::= ids cpxName ids */
-#line 558 "sql.y"
- {
- yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n;
- yylhsminor.yy114 = setTableNameList(NULL, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);
- }
+ yymsp[-2].minor.yy8 = yylhsminor.yy8;
+ break;
+ case 188: /* tablelist ::= tablelist COMMA ids cpxName */
+#line 557 "sql.y"
+{
+ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
+ yylhsminor.yy8 = setTableNameList(yymsp[-3].minor.yy8, &yymsp[-1].minor.yy0, NULL);
+}
#line 3566 "sql.c"
- yymsp[-2].minor.yy114 = yylhsminor.yy114;
- break;
- case 189: /* tablelist ::= tablelist COMMA ids cpxName */
-#line 563 "sql.y"
- {
- yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
- yylhsminor.yy114 = setTableNameList(yymsp[-3].minor.yy114, &yymsp[-1].minor.yy0, NULL);
- }
+ yymsp[-3].minor.yy8 = yylhsminor.yy8;
+ break;
+ case 189: /* tablelist ::= tablelist COMMA ids cpxName ids */
+#line 562 "sql.y"
+{
+ yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n;
+ yylhsminor.yy8 = setTableNameList(yymsp[-4].minor.yy8, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);
+}
#line 3575 "sql.c"
- yymsp[-3].minor.yy114 = yylhsminor.yy114;
- break;
- case 190: /* tablelist ::= tablelist COMMA ids cpxName ids */
-#line 568 "sql.y"
- {
- yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n;
- yylhsminor.yy114 = setTableNameList(yymsp[-4].minor.yy114, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);
- }
-#line 3584 "sql.c"
- yymsp[-4].minor.yy114 = yylhsminor.yy114;
- break;
- case 191: /* tmvar ::= VARIABLE */
-#line 575 "sql.y"
- {yylhsminor.yy0 = yymsp[0].minor.yy0;}
-#line 3590 "sql.c"
- yymsp[0].minor.yy0 = yylhsminor.yy0;
- break;
- case 192: /* interval_option ::= intervalKey LP tmvar RP */
+ yymsp[-4].minor.yy8 = yylhsminor.yy8;
+ break;
+ case 190: /* tmvar ::= VARIABLE */
+#line 569 "sql.y"
+{yylhsminor.yy0 = yymsp[0].minor.yy0;}
+#line 3581 "sql.c"
+ yymsp[0].minor.yy0 = yylhsminor.yy0;
+ break;
+ case 191: /* interval_option ::= intervalKey LP tmvar RP */
+#line 572 "sql.y"
+{yylhsminor.yy400.interval = yymsp[-1].minor.yy0; yylhsminor.yy400.offset.n = 0; yylhsminor.yy400.token = yymsp[-3].minor.yy104;}
+#line 3587 "sql.c"
+ yymsp[-3].minor.yy400 = yylhsminor.yy400;
+ break;
+ case 192: /* interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
+#line 573 "sql.y"
+{yylhsminor.yy400.interval = yymsp[-3].minor.yy0; yylhsminor.yy400.offset = yymsp[-1].minor.yy0; yylhsminor.yy400.token = yymsp[-5].minor.yy104;}
+#line 3593 "sql.c"
+ yymsp[-5].minor.yy400 = yylhsminor.yy400;
+ break;
+ case 193: /* interval_option ::= */
+#line 574 "sql.y"
+{memset(&yymsp[1].minor.yy400, 0, sizeof(yymsp[1].minor.yy400));}
+#line 3599 "sql.c"
+ break;
+ case 194: /* intervalKey ::= INTERVAL */
+#line 577 "sql.y"
+{yymsp[0].minor.yy104 = TK_INTERVAL;}
+#line 3604 "sql.c"
+ break;
+ case 195: /* intervalKey ::= EVERY */
#line 578 "sql.y"
- {yylhsminor.yy222.interval = yymsp[-1].minor.yy0; yylhsminor.yy222.offset.n = 0; yylhsminor.yy222.token = yymsp[-3].minor.yy202;}
-#line 3596 "sql.c"
- yymsp[-3].minor.yy222 = yylhsminor.yy222;
- break;
- case 193: /* interval_option ::= intervalKey LP tmvar COMMA tmvar RP */
-#line 579 "sql.y"
- {yylhsminor.yy222.interval = yymsp[-3].minor.yy0; yylhsminor.yy222.offset = yymsp[-1].minor.yy0; yylhsminor.yy222.token = yymsp[-5].minor.yy202;}
-#line 3602 "sql.c"
- yymsp[-5].minor.yy222 = yylhsminor.yy222;
- break;
- case 194: /* interval_option ::= */
-#line 580 "sql.y"
- {memset(&yymsp[1].minor.yy222, 0, sizeof(yymsp[1].minor.yy222));}
-#line 3608 "sql.c"
- break;
- case 195: /* intervalKey ::= INTERVAL */
-#line 583 "sql.y"
- {yymsp[0].minor.yy202 = TK_INTERVAL;}
-#line 3613 "sql.c"
- break;
- case 196: /* intervalKey ::= EVERY */
-#line 584 "sql.y"
- {yymsp[0].minor.yy202 = TK_EVERY; }
-#line 3618 "sql.c"
- break;
- case 197: /* session_option ::= */
-#line 587 "sql.y"
- {yymsp[1].minor.yy365.col.n = 0; yymsp[1].minor.yy365.gap.n = 0;}
+{yymsp[0].minor.yy104 = TK_EVERY; }
+#line 3609 "sql.c"
+ break;
+ case 196: /* session_option ::= */
+#line 581 "sql.y"
+{yymsp[1].minor.yy147.col.n = 0; yymsp[1].minor.yy147.gap.n = 0;}
+#line 3614 "sql.c"
+ break;
+ case 197: /* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
+#line 582 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ yymsp[-6].minor.yy147.col = yymsp[-4].minor.yy0;
+ yymsp[-6].minor.yy147.gap = yymsp[-1].minor.yy0;
+}
#line 3623 "sql.c"
- break;
- case 198: /* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
-#line 588 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- yymsp[-6].minor.yy365.col = yymsp[-4].minor.yy0;
- yymsp[-6].minor.yy365.gap = yymsp[-1].minor.yy0;
- }
-#line 3632 "sql.c"
- break;
- case 199: /* windowstate_option ::= */
+ break;
+ case 198: /* windowstate_option ::= */
+#line 589 "sql.y"
+{ yymsp[1].minor.yy40.col.n = 0; yymsp[1].minor.yy40.col.z = NULL;}
+#line 3628 "sql.c"
+ break;
+ case 199: /* windowstate_option ::= STATE_WINDOW LP ids RP */
+#line 590 "sql.y"
+{ yymsp[-3].minor.yy40.col = yymsp[-1].minor.yy0; }
+#line 3633 "sql.c"
+ break;
+ case 200: /* fill_opt ::= */
+#line 594 "sql.y"
+{ yymsp[1].minor.yy421 = 0; }
+#line 3638 "sql.c"
+ break;
+ case 201: /* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
#line 595 "sql.y"
- { yymsp[1].minor.yy544.col.n = 0; yymsp[1].minor.yy544.col.z = NULL;}
-#line 3637 "sql.c"
- break;
- case 200: /* windowstate_option ::= STATE_WINDOW LP ids RP */
-#line 596 "sql.y"
- { yymsp[-3].minor.yy544.col = yymsp[-1].minor.yy0; }
-#line 3642 "sql.c"
- break;
- case 201: /* fill_opt ::= */
-#line 600 "sql.y"
- { yymsp[1].minor.yy403 = 0; }
-#line 3647 "sql.c"
- break;
- case 202: /* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
-#line 601 "sql.y"
- {
- tVariant A = {0};
- toTSDBType(yymsp[-3].minor.yy0.type);
- tVariantCreate(&A, &yymsp[-3].minor.yy0);
+{
+ tVariant A = {0};
+ toTSDBType(yymsp[-3].minor.yy0.type);
+ tVariantCreate(&A, &yymsp[-3].minor.yy0);
- tVariantListInsert(yymsp[-1].minor.yy403, &A, -1, 0);
- yymsp[-5].minor.yy403 = yymsp[-1].minor.yy403;
- }
-#line 3659 "sql.c"
- break;
- case 203: /* fill_opt ::= FILL LP ID RP */
+ tVariantListInsert(yymsp[-1].minor.yy421, &A, -1, 0);
+ yymsp[-5].minor.yy421 = yymsp[-1].minor.yy421;
+}
+#line 3650 "sql.c"
+ break;
+ case 202: /* fill_opt ::= FILL LP ID RP */
+#line 604 "sql.y"
+{
+ toTSDBType(yymsp[-1].minor.yy0.type);
+ yymsp[-3].minor.yy421 = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1);
+}
+#line 3658 "sql.c"
+ break;
+ case 203: /* sliding_opt ::= SLIDING LP tmvar RP */
#line 610 "sql.y"
- {
- toTSDBType(yymsp[-1].minor.yy0.type);
- yymsp[-3].minor.yy403 = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1);
- }
-#line 3667 "sql.c"
- break;
- case 204: /* sliding_opt ::= SLIDING LP tmvar RP */
-#line 616 "sql.y"
- {yymsp[-3].minor.yy0 = yymsp[-1].minor.yy0; }
-#line 3672 "sql.c"
- break;
- case 205: /* sliding_opt ::= */
-#line 617 "sql.y"
- {yymsp[1].minor.yy0.n = 0; yymsp[1].minor.yy0.z = NULL; yymsp[1].minor.yy0.type = 0; }
-#line 3677 "sql.c"
- break;
- case 207: /* orderby_opt ::= ORDER BY sortlist */
+{yymsp[-3].minor.yy0 = yymsp[-1].minor.yy0; }
+#line 3663 "sql.c"
+ break;
+ case 204: /* sliding_opt ::= */
+#line 611 "sql.y"
+{yymsp[1].minor.yy0.n = 0; yymsp[1].minor.yy0.z = NULL; yymsp[1].minor.yy0.type = 0; }
+#line 3668 "sql.c"
+ break;
+ case 206: /* orderby_opt ::= ORDER BY sortlist */
+#line 623 "sql.y"
+{yymsp[-2].minor.yy421 = yymsp[0].minor.yy421;}
+#line 3673 "sql.c"
+ break;
+ case 207: /* sortlist ::= sortlist COMMA item sortorder */
+#line 625 "sql.y"
+{
+ yylhsminor.yy421 = tVariantListAppend(yymsp[-3].minor.yy421, &yymsp[-1].minor.yy430, yymsp[0].minor.yy96);
+}
+#line 3680 "sql.c"
+ yymsp[-3].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 208: /* sortlist ::= item sortorder */
#line 629 "sql.y"
- {yymsp[-2].minor.yy403 = yymsp[0].minor.yy403;}
-#line 3682 "sql.c"
- break;
- case 208: /* sortlist ::= sortlist COMMA item sortorder */
-#line 631 "sql.y"
- {
- yylhsminor.yy403 = tVariantListAppend(yymsp[-3].minor.yy403, &yymsp[-1].minor.yy488, yymsp[0].minor.yy70);
- }
-#line 3689 "sql.c"
- yymsp[-3].minor.yy403 = yylhsminor.yy403;
- break;
- case 209: /* sortlist ::= item sortorder */
-#line 635 "sql.y"
- {
- yylhsminor.yy403 = tVariantListAppend(NULL, &yymsp[-1].minor.yy488, yymsp[0].minor.yy70);
- }
-#line 3697 "sql.c"
- yymsp[-1].minor.yy403 = yylhsminor.yy403;
- break;
- case 210: /* item ::= ids cpxName */
-#line 640 "sql.y"
- {
- toTSDBType(yymsp[-1].minor.yy0.type);
- yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
+{
+ yylhsminor.yy421 = tVariantListAppend(NULL, &yymsp[-1].minor.yy430, yymsp[0].minor.yy96);
+}
+#line 3688 "sql.c"
+ yymsp[-1].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 209: /* item ::= ids cpxName */
+#line 634 "sql.y"
+{
+ toTSDBType(yymsp[-1].minor.yy0.type);
+ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
- tVariantCreate(&yylhsminor.yy488, &yymsp[-1].minor.yy0);
- }
-#line 3708 "sql.c"
- yymsp[-1].minor.yy488 = yylhsminor.yy488;
- break;
- case 211: /* sortorder ::= ASC */
-#line 648 "sql.y"
- { yymsp[0].minor.yy70 = TSDB_ORDER_ASC; }
-#line 3714 "sql.c"
- break;
- case 212: /* sortorder ::= DESC */
-#line 649 "sql.y"
- { yymsp[0].minor.yy70 = TSDB_ORDER_DESC;}
-#line 3719 "sql.c"
- break;
- case 213: /* sortorder ::= */
-#line 650 "sql.y"
- { yymsp[1].minor.yy70 = TSDB_ORDER_ASC; }
-#line 3724 "sql.c"
- break;
- case 214: /* groupby_opt ::= */
-#line 658 "sql.y"
- { yymsp[1].minor.yy403 = 0;}
-#line 3729 "sql.c"
- break;
- case 215: /* groupby_opt ::= GROUP BY grouplist */
+ tVariantCreate(&yylhsminor.yy430, &yymsp[-1].minor.yy0);
+}
+#line 3699 "sql.c"
+ yymsp[-1].minor.yy430 = yylhsminor.yy430;
+ break;
+ case 210: /* sortorder ::= ASC */
+#line 642 "sql.y"
+{ yymsp[0].minor.yy96 = TSDB_ORDER_ASC; }
+#line 3705 "sql.c"
+ break;
+ case 211: /* sortorder ::= DESC */
+#line 643 "sql.y"
+{ yymsp[0].minor.yy96 = TSDB_ORDER_DESC;}
+#line 3710 "sql.c"
+ break;
+ case 212: /* sortorder ::= */
+#line 644 "sql.y"
+{ yymsp[1].minor.yy96 = TSDB_ORDER_ASC; }
+#line 3715 "sql.c"
+ break;
+ case 213: /* groupby_opt ::= */
+#line 652 "sql.y"
+{ yymsp[1].minor.yy421 = 0;}
+#line 3720 "sql.c"
+ break;
+ case 214: /* groupby_opt ::= GROUP BY grouplist */
+#line 653 "sql.y"
+{ yymsp[-2].minor.yy421 = yymsp[0].minor.yy421;}
+#line 3725 "sql.c"
+ break;
+ case 215: /* grouplist ::= grouplist COMMA item */
+#line 655 "sql.y"
+{
+ yylhsminor.yy421 = tVariantListAppend(yymsp[-2].minor.yy421, &yymsp[0].minor.yy430, -1);
+}
+#line 3732 "sql.c"
+ yymsp[-2].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 216: /* grouplist ::= item */
#line 659 "sql.y"
- { yymsp[-2].minor.yy403 = yymsp[0].minor.yy403;}
-#line 3734 "sql.c"
- break;
- case 216: /* grouplist ::= grouplist COMMA item */
-#line 661 "sql.y"
- {
- yylhsminor.yy403 = tVariantListAppend(yymsp[-2].minor.yy403, &yymsp[0].minor.yy488, -1);
- }
-#line 3741 "sql.c"
- yymsp[-2].minor.yy403 = yylhsminor.yy403;
- break;
- case 217: /* grouplist ::= item */
-#line 665 "sql.y"
- {
- yylhsminor.yy403 = tVariantListAppend(NULL, &yymsp[0].minor.yy488, -1);
- }
-#line 3749 "sql.c"
- yymsp[0].minor.yy403 = yylhsminor.yy403;
- break;
- case 218: /* having_opt ::= */
- case 228: /* where_opt ::= */ yytestcase(yyruleno==228);
- case 270: /* expritem ::= */ yytestcase(yyruleno==270);
+{
+ yylhsminor.yy421 = tVariantListAppend(NULL, &yymsp[0].minor.yy430, -1);
+}
+#line 3740 "sql.c"
+ yymsp[0].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 217: /* having_opt ::= */
+ case 227: /* where_opt ::= */ yytestcase(yyruleno==227);
+ case 269: /* expritem ::= */ yytestcase(yyruleno==269);
+#line 666 "sql.y"
+{yymsp[1].minor.yy439 = 0;}
+#line 3748 "sql.c"
+ break;
+ case 218: /* having_opt ::= HAVING expr */
+ case 228: /* where_opt ::= WHERE expr */ yytestcase(yyruleno==228);
+#line 667 "sql.y"
+{yymsp[-1].minor.yy439 = yymsp[0].minor.yy439;}
+#line 3754 "sql.c"
+ break;
+ case 219: /* limit_opt ::= */
+ case 223: /* slimit_opt ::= */ yytestcase(yyruleno==223);
+#line 671 "sql.y"
+{yymsp[1].minor.yy166.limit = -1; yymsp[1].minor.yy166.offset = 0;}
+#line 3760 "sql.c"
+ break;
+ case 220: /* limit_opt ::= LIMIT signed */
+ case 224: /* slimit_opt ::= SLIMIT signed */ yytestcase(yyruleno==224);
#line 672 "sql.y"
- {yymsp[1].minor.yy260 = 0;}
-#line 3757 "sql.c"
- break;
- case 219: /* having_opt ::= HAVING expr */
- case 229: /* where_opt ::= WHERE expr */ yytestcase(yyruleno==229);
-#line 673 "sql.y"
- {yymsp[-1].minor.yy260 = yymsp[0].minor.yy260;}
-#line 3763 "sql.c"
- break;
- case 220: /* limit_opt ::= */
- case 224: /* slimit_opt ::= */ yytestcase(yyruleno==224);
-#line 677 "sql.y"
- {yymsp[1].minor.yy404.limit = -1; yymsp[1].minor.yy404.offset = 0;}
-#line 3769 "sql.c"
- break;
- case 221: /* limit_opt ::= LIMIT signed */
- case 225: /* slimit_opt ::= SLIMIT signed */ yytestcase(yyruleno==225);
-#line 678 "sql.y"
- {yymsp[-1].minor.yy404.limit = yymsp[0].minor.yy387; yymsp[-1].minor.yy404.offset = 0;}
-#line 3775 "sql.c"
- break;
- case 222: /* limit_opt ::= LIMIT signed OFFSET signed */
-#line 680 "sql.y"
- { yymsp[-3].minor.yy404.limit = yymsp[-2].minor.yy387; yymsp[-3].minor.yy404.offset = yymsp[0].minor.yy387;}
-#line 3780 "sql.c"
- break;
- case 223: /* limit_opt ::= LIMIT signed COMMA signed */
+{yymsp[-1].minor.yy166.limit = yymsp[0].minor.yy325; yymsp[-1].minor.yy166.offset = 0;}
+#line 3766 "sql.c"
+ break;
+ case 221: /* limit_opt ::= LIMIT signed OFFSET signed */
+#line 674 "sql.y"
+{ yymsp[-3].minor.yy166.limit = yymsp[-2].minor.yy325; yymsp[-3].minor.yy166.offset = yymsp[0].minor.yy325;}
+#line 3771 "sql.c"
+ break;
+ case 222: /* limit_opt ::= LIMIT signed COMMA signed */
+#line 676 "sql.y"
+{ yymsp[-3].minor.yy166.limit = yymsp[0].minor.yy325; yymsp[-3].minor.yy166.offset = yymsp[-2].minor.yy325;}
+#line 3776 "sql.c"
+ break;
+ case 225: /* slimit_opt ::= SLIMIT signed SOFFSET signed */
#line 682 "sql.y"
- { yymsp[-3].minor.yy404.limit = yymsp[0].minor.yy387; yymsp[-3].minor.yy404.offset = yymsp[-2].minor.yy387;}
-#line 3785 "sql.c"
- break;
- case 226: /* slimit_opt ::= SLIMIT signed SOFFSET signed */
-#line 688 "sql.y"
- {yymsp[-3].minor.yy404.limit = yymsp[-2].minor.yy387; yymsp[-3].minor.yy404.offset = yymsp[0].minor.yy387;}
-#line 3790 "sql.c"
- break;
- case 227: /* slimit_opt ::= SLIMIT signed COMMA signed */
-#line 690 "sql.y"
- {yymsp[-3].minor.yy404.limit = yymsp[0].minor.yy387; yymsp[-3].minor.yy404.offset = yymsp[-2].minor.yy387;}
-#line 3795 "sql.c"
- break;
- case 230: /* expr ::= LP expr RP */
+{yymsp[-3].minor.yy166.limit = yymsp[-2].minor.yy325; yymsp[-3].minor.yy166.offset = yymsp[0].minor.yy325;}
+#line 3781 "sql.c"
+ break;
+ case 226: /* slimit_opt ::= SLIMIT signed COMMA signed */
+#line 684 "sql.y"
+{yymsp[-3].minor.yy166.limit = yymsp[0].minor.yy325; yymsp[-3].minor.yy166.offset = yymsp[-2].minor.yy325;}
+#line 3786 "sql.c"
+ break;
+ case 229: /* expr ::= LP expr RP */
+#line 697 "sql.y"
+{yylhsminor.yy439 = yymsp[-1].minor.yy439; yylhsminor.yy439->exprToken.z = yymsp[-2].minor.yy0.z; yylhsminor.yy439->exprToken.n = (yymsp[0].minor.yy0.z - yymsp[-2].minor.yy0.z + 1);}
+#line 3791 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 230: /* expr ::= ID */
+#line 699 "sql.y"
+{ yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_ID);}
+#line 3797 "sql.c"
+ yymsp[0].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 231: /* expr ::= ID DOT ID */
+#line 700 "sql.y"
+{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ID);}
+#line 3803 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 232: /* expr ::= ID DOT STAR */
+#line 701 "sql.y"
+{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ALL);}
+#line 3809 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 233: /* expr ::= INTEGER */
#line 703 "sql.y"
- {yylhsminor.yy260 = yymsp[-1].minor.yy260; yylhsminor.yy260->exprToken.z = yymsp[-2].minor.yy0.z; yylhsminor.yy260->exprToken.n = (yymsp[0].minor.yy0.z - yymsp[-2].minor.yy0.z + 1);}
-#line 3800 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 231: /* expr ::= ID */
-#line 705 "sql.y"
- { yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_ID);}
-#line 3806 "sql.c"
- yymsp[0].minor.yy260 = yylhsminor.yy260;
- break;
- case 232: /* expr ::= ID DOT ID */
+{ yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_INTEGER);}
+#line 3815 "sql.c"
+ yymsp[0].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 234: /* expr ::= MINUS INTEGER */
+ case 235: /* expr ::= PLUS INTEGER */ yytestcase(yyruleno==235);
+#line 704 "sql.y"
+{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_INTEGER);}
+#line 3822 "sql.c"
+ yymsp[-1].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 236: /* expr ::= FLOAT */
#line 706 "sql.y"
- { yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ID);}
-#line 3812 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 233: /* expr ::= ID DOT STAR */
+{ yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_FLOAT);}
+#line 3828 "sql.c"
+ yymsp[0].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 237: /* expr ::= MINUS FLOAT */
+ case 238: /* expr ::= PLUS FLOAT */ yytestcase(yyruleno==238);
#line 707 "sql.y"
- { yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ALL);}
-#line 3818 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 234: /* expr ::= INTEGER */
+{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_FLOAT; yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_FLOAT);}
+#line 3835 "sql.c"
+ yymsp[-1].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 239: /* expr ::= STRING */
#line 709 "sql.y"
- { yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_INTEGER);}
-#line 3824 "sql.c"
- yymsp[0].minor.yy260 = yylhsminor.yy260;
- break;
- case 235: /* expr ::= MINUS INTEGER */
- case 236: /* expr ::= PLUS INTEGER */ yytestcase(yyruleno==236);
+{ yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING);}
+#line 3841 "sql.c"
+ yymsp[0].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 240: /* expr ::= NOW */
#line 710 "sql.y"
- { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_INTEGER);}
-#line 3831 "sql.c"
- yymsp[-1].minor.yy260 = yylhsminor.yy260;
- break;
- case 237: /* expr ::= FLOAT */
+{ yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_NOW); }
+#line 3847 "sql.c"
+ yymsp[0].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 241: /* expr ::= VARIABLE */
+#line 711 "sql.y"
+{ yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_VARIABLE);}
+#line 3853 "sql.c"
+ yymsp[0].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 242: /* expr ::= PLUS VARIABLE */
+ case 243: /* expr ::= MINUS VARIABLE */ yytestcase(yyruleno==243);
#line 712 "sql.y"
- { yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_FLOAT);}
-#line 3837 "sql.c"
- yymsp[0].minor.yy260 = yylhsminor.yy260;
- break;
- case 238: /* expr ::= MINUS FLOAT */
- case 239: /* expr ::= PLUS FLOAT */ yytestcase(yyruleno==239);
-#line 713 "sql.y"
- { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_FLOAT; yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_FLOAT);}
-#line 3844 "sql.c"
- yymsp[-1].minor.yy260 = yylhsminor.yy260;
- break;
- case 240: /* expr ::= STRING */
+{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_VARIABLE; yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_VARIABLE);}
+#line 3860 "sql.c"
+ yymsp[-1].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 244: /* expr ::= BOOL */
+#line 714 "sql.y"
+{ yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_BOOL);}
+#line 3866 "sql.c"
+ yymsp[0].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 245: /* expr ::= NULL */
#line 715 "sql.y"
- { yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING);}
-#line 3850 "sql.c"
- yymsp[0].minor.yy260 = yylhsminor.yy260;
- break;
- case 241: /* expr ::= NOW */
-#line 716 "sql.y"
- { yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_NOW); }
-#line 3856 "sql.c"
- yymsp[0].minor.yy260 = yylhsminor.yy260;
- break;
- case 242: /* expr ::= VARIABLE */
-#line 717 "sql.y"
- { yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_VARIABLE);}
-#line 3862 "sql.c"
- yymsp[0].minor.yy260 = yylhsminor.yy260;
- break;
- case 243: /* expr ::= PLUS VARIABLE */
- case 244: /* expr ::= MINUS VARIABLE */ yytestcase(yyruleno==244);
+{ yylhsminor.yy439 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_NULL);}
+#line 3872 "sql.c"
+ yymsp[0].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 246: /* expr ::= ID LP exprlist RP */
#line 718 "sql.y"
- { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_VARIABLE; yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_VARIABLE);}
-#line 3869 "sql.c"
- yymsp[-1].minor.yy260 = yylhsminor.yy260;
- break;
- case 245: /* expr ::= BOOL */
-#line 720 "sql.y"
- { yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_BOOL);}
-#line 3875 "sql.c"
- yymsp[0].minor.yy260 = yylhsminor.yy260;
- break;
- case 246: /* expr ::= NULL */
+{ tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy439 = tSqlExprCreateFunction(yymsp[-1].minor.yy421, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); }
+#line 3878 "sql.c"
+ yymsp[-3].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 247: /* expr ::= ID LP STAR RP */
#line 721 "sql.y"
- { yylhsminor.yy260 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_NULL);}
-#line 3881 "sql.c"
- yymsp[0].minor.yy260 = yylhsminor.yy260;
- break;
- case 247: /* expr ::= ID LP exprlist RP */
+{ tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy439 = tSqlExprCreateFunction(NULL, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); }
+#line 3884 "sql.c"
+ yymsp[-3].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 248: /* expr ::= expr IS NULL */
#line 724 "sql.y"
- { tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy260 = tSqlExprCreateFunction(yymsp[-1].minor.yy403, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); }
-#line 3887 "sql.c"
- yymsp[-3].minor.yy260 = yylhsminor.yy260;
- break;
- case 248: /* expr ::= ID LP STAR RP */
-#line 727 "sql.y"
- { tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy260 = tSqlExprCreateFunction(NULL, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); }
-#line 3893 "sql.c"
- yymsp[-3].minor.yy260 = yylhsminor.yy260;
- break;
- case 249: /* expr ::= expr IS NULL */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, NULL, TK_ISNULL);}
+#line 3890 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 249: /* expr ::= expr IS NOT NULL */
+#line 725 "sql.y"
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-3].minor.yy439, NULL, TK_NOTNULL);}
+#line 3896 "sql.c"
+ yymsp[-3].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 250: /* expr ::= expr LT expr */
+#line 728 "sql.y"
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_LT);}
+#line 3902 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 251: /* expr ::= expr GT expr */
+#line 729 "sql.y"
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_GT);}
+#line 3908 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 252: /* expr ::= expr LE expr */
#line 730 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, NULL, TK_ISNULL);}
-#line 3899 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 250: /* expr ::= expr IS NOT NULL */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_LE);}
+#line 3914 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 253: /* expr ::= expr GE expr */
#line 731 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-3].minor.yy260, NULL, TK_NOTNULL);}
-#line 3905 "sql.c"
- yymsp[-3].minor.yy260 = yylhsminor.yy260;
- break;
- case 251: /* expr ::= expr LT expr */
-#line 734 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_LT);}
-#line 3911 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 252: /* expr ::= expr GT expr */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_GE);}
+#line 3920 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 254: /* expr ::= expr NE expr */
+#line 732 "sql.y"
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_NE);}
+#line 3926 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 255: /* expr ::= expr EQ expr */
+#line 733 "sql.y"
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_EQ);}
+#line 3932 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 256: /* expr ::= expr BETWEEN expr AND expr */
#line 735 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_GT);}
-#line 3917 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 253: /* expr ::= expr LE expr */
-#line 736 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_LE);}
-#line 3923 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 254: /* expr ::= expr GE expr */
+{ tSqlExpr* X2 = tSqlExprClone(yymsp[-4].minor.yy439); yylhsminor.yy439 = tSqlExprCreate(tSqlExprCreate(yymsp[-4].minor.yy439, yymsp[-2].minor.yy439, TK_GE), tSqlExprCreate(X2, yymsp[0].minor.yy439, TK_LE), TK_AND);}
+#line 3938 "sql.c"
+ yymsp[-4].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 257: /* expr ::= expr AND expr */
#line 737 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_GE);}
-#line 3929 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 255: /* expr ::= expr NE expr */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_AND);}
+#line 3944 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 258: /* expr ::= expr OR expr */
#line 738 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_NE);}
-#line 3935 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 256: /* expr ::= expr EQ expr */
-#line 739 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_EQ);}
-#line 3941 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 257: /* expr ::= expr BETWEEN expr AND expr */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_OR); }
+#line 3950 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 259: /* expr ::= expr PLUS expr */
#line 741 "sql.y"
- { tSqlExpr* X2 = tSqlExprClone(yymsp[-4].minor.yy260); yylhsminor.yy260 = tSqlExprCreate(tSqlExprCreate(yymsp[-4].minor.yy260, yymsp[-2].minor.yy260, TK_GE), tSqlExprCreate(X2, yymsp[0].minor.yy260, TK_LE), TK_AND);}
-#line 3947 "sql.c"
- yymsp[-4].minor.yy260 = yylhsminor.yy260;
- break;
- case 258: /* expr ::= expr AND expr */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_PLUS); }
+#line 3956 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 260: /* expr ::= expr MINUS expr */
+#line 742 "sql.y"
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_MINUS); }
+#line 3962 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 261: /* expr ::= expr STAR expr */
#line 743 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_AND);}
-#line 3953 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 259: /* expr ::= expr OR expr */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_STAR); }
+#line 3968 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 262: /* expr ::= expr SLASH expr */
#line 744 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_OR); }
-#line 3959 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 260: /* expr ::= expr PLUS expr */
-#line 747 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_PLUS); }
-#line 3965 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 261: /* expr ::= expr MINUS expr */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_DIVIDE);}
+#line 3974 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 263: /* expr ::= expr REM expr */
+#line 745 "sql.y"
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_REM); }
+#line 3980 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 264: /* expr ::= expr LIKE expr */
#line 748 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_MINUS); }
-#line 3971 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 262: /* expr ::= expr STAR expr */
-#line 749 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_STAR); }
-#line 3977 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 263: /* expr ::= expr SLASH expr */
-#line 750 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_DIVIDE);}
-#line 3983 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 264: /* expr ::= expr REM expr */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_LIKE); }
+#line 3986 "sql.c"
+ yymsp[-2].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 265: /* expr ::= expr IN LP exprlist RP */
#line 751 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_REM); }
-#line 3989 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 265: /* expr ::= expr LIKE expr */
-#line 754 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-2].minor.yy260, yymsp[0].minor.yy260, TK_LIKE); }
-#line 3995 "sql.c"
- yymsp[-2].minor.yy260 = yylhsminor.yy260;
- break;
- case 266: /* expr ::= expr IN LP exprlist RP */
-#line 757 "sql.y"
- {yylhsminor.yy260 = tSqlExprCreate(yymsp[-4].minor.yy260, (tSqlExpr*)yymsp[-1].minor.yy403, TK_IN); }
-#line 4001 "sql.c"
- yymsp[-4].minor.yy260 = yylhsminor.yy260;
- break;
- case 267: /* exprlist ::= exprlist COMMA expritem */
+{yylhsminor.yy439 = tSqlExprCreate(yymsp[-4].minor.yy439, (tSqlExpr*)yymsp[-1].minor.yy421, TK_IN); }
+#line 3992 "sql.c"
+ yymsp[-4].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 266: /* exprlist ::= exprlist COMMA expritem */
+#line 759 "sql.y"
+{yylhsminor.yy421 = tSqlExprListAppend(yymsp[-2].minor.yy421,yymsp[0].minor.yy439,0, 0);}
+#line 3998 "sql.c"
+ yymsp[-2].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 267: /* exprlist ::= expritem */
+#line 760 "sql.y"
+{yylhsminor.yy421 = tSqlExprListAppend(0,yymsp[0].minor.yy439,0, 0);}
+#line 4004 "sql.c"
+ yymsp[0].minor.yy421 = yylhsminor.yy421;
+ break;
+ case 268: /* expritem ::= expr */
+#line 761 "sql.y"
+{yylhsminor.yy439 = yymsp[0].minor.yy439;}
+#line 4010 "sql.c"
+ yymsp[0].minor.yy439 = yylhsminor.yy439;
+ break;
+ case 270: /* cmd ::= RESET QUERY CACHE */
#line 765 "sql.y"
- {yylhsminor.yy403 = tSqlExprListAppend(yymsp[-2].minor.yy403,yymsp[0].minor.yy260,0, 0);}
-#line 4007 "sql.c"
- yymsp[-2].minor.yy403 = yylhsminor.yy403;
- break;
- case 268: /* exprlist ::= expritem */
-#line 766 "sql.y"
- {yylhsminor.yy403 = tSqlExprListAppend(0,yymsp[0].minor.yy260,0, 0);}
-#line 4013 "sql.c"
- yymsp[0].minor.yy403 = yylhsminor.yy403;
- break;
- case 269: /* expritem ::= expr */
-#line 767 "sql.y"
- {yylhsminor.yy260 = yymsp[0].minor.yy260;}
-#line 4019 "sql.c"
- yymsp[0].minor.yy260 = yylhsminor.yy260;
- break;
- case 271: /* cmd ::= RESET QUERY CACHE */
+{ setDCLSqlElems(pInfo, TSDB_SQL_RESET_CACHE, 0);}
+#line 4016 "sql.c"
+ break;
+ case 271: /* cmd ::= SYNCDB ids REPLICA */
+#line 768 "sql.y"
+{ setDCLSqlElems(pInfo, TSDB_SQL_SYNC_DB_REPLICA, 1, &yymsp[-1].minor.yy0);}
+#line 4021 "sql.c"
+ break;
+ case 272: /* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
#line 771 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_RESET_CACHE, 0);}
-#line 4025 "sql.c"
- break;
- case 272: /* cmd ::= SYNCDB ids REPLICA */
-#line 774 "sql.y"
- { setDCLSqlElems(pInfo, TSDB_SQL_SYNC_DB_REPLICA, 1, &yymsp[-1].minor.yy0);}
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, -1);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
#line 4030 "sql.c"
- break;
- case 273: /* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
+ break;
+ case 273: /* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
#line 777 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy403, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, -1);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
-#line 4039 "sql.c"
- break;
- case 274: /* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
-#line 783 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- toTSDBType(yymsp[0].minor.yy0.type);
- SArray* K = tVariantListAppendToken(NULL, &yymsp[0].minor.yy0, -1);
+ toTSDBType(yymsp[0].minor.yy0.type);
+ SArray* K = tVariantListAppendToken(NULL, &yymsp[0].minor.yy0, -1);
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, NULL, K, TSDB_ALTER_TABLE_DROP_COLUMN, -1);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, NULL, K, TSDB_ALTER_TABLE_DROP_COLUMN, -1);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
+#line 4043 "sql.c"
+ break;
+ case 274: /* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
+#line 787 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, -1);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
#line 4052 "sql.c"
- break;
- case 275: /* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
-#line 793 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy403, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, -1);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
+ break;
+ case 275: /* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
+#line 794 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, -1);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
#line 4061 "sql.c"
- break;
- case 276: /* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
-#line 800 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy403, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, -1);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
-#line 4070 "sql.c"
- break;
- case 277: /* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
-#line 805 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ break;
+ case 276: /* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
+#line 799 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- toTSDBType(yymsp[0].minor.yy0.type);
- SArray* A = tVariantListAppendToken(NULL, &yymsp[0].minor.yy0, -1);
+ toTSDBType(yymsp[0].minor.yy0.type);
+ SArray* A = tVariantListAppendToken(NULL, &yymsp[0].minor.yy0, -1);
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, NULL, A, TSDB_ALTER_TABLE_DROP_TAG_COLUMN, -1);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
-#line 4083 "sql.c"
- break;
- case 278: /* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
-#line 815 "sql.y"
- {
- yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, NULL, A, TSDB_ALTER_TABLE_DROP_TAG_COLUMN, -1);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
+#line 4074 "sql.c"
+ break;
+ case 277: /* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
+#line 809 "sql.y"
+{
+ yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
- toTSDBType(yymsp[-1].minor.yy0.type);
- SArray* A = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1);
+ toTSDBType(yymsp[-1].minor.yy0.type);
+ SArray* A = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1);
- toTSDBType(yymsp[0].minor.yy0.type);
- A = tVariantListAppendToken(A, &yymsp[0].minor.yy0, -1);
+ toTSDBType(yymsp[0].minor.yy0.type);
+ A = tVariantListAppendToken(A, &yymsp[0].minor.yy0, -1);
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-5].minor.yy0, NULL, A, TSDB_ALTER_TABLE_CHANGE_TAG_COLUMN, -1);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
-#line 4099 "sql.c"
- break;
- case 279: /* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
-#line 828 "sql.y"
- {
- yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-5].minor.yy0, NULL, A, TSDB_ALTER_TABLE_CHANGE_TAG_COLUMN, -1);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
+#line 4090 "sql.c"
+ break;
+ case 278: /* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
+#line 822 "sql.y"
+{
+ yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n;
- toTSDBType(yymsp[-2].minor.yy0.type);
- SArray* A = tVariantListAppendToken(NULL, &yymsp[-2].minor.yy0, -1);
- A = tVariantListAppend(A, &yymsp[0].minor.yy488, -1);
+ toTSDBType(yymsp[-2].minor.yy0.type);
+ SArray* A = tVariantListAppendToken(NULL, &yymsp[-2].minor.yy0, -1);
+ A = tVariantListAppend(A, &yymsp[0].minor.yy430, -1);
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-6].minor.yy0, NULL, A, TSDB_ALTER_TABLE_UPDATE_TAG_VAL, -1);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-6].minor.yy0, NULL, A, TSDB_ALTER_TABLE_UPDATE_TAG_VAL, -1);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
+#line 4104 "sql.c"
+ break;
+ case 279: /* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
+#line 833 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, -1);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
#line 4113 "sql.c"
- break;
- case 280: /* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
-#line 839 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy403, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, -1);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
+ break;
+ case 280: /* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
+#line 840 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, TSDB_SUPER_TABLE);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
#line 4122 "sql.c"
- break;
- case 281: /* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
+ break;
+ case 281: /* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
#line 846 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy403, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, TSDB_SUPER_TABLE);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
-#line 4131 "sql.c"
- break;
- case 282: /* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
-#line 852 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- toTSDBType(yymsp[0].minor.yy0.type);
- SArray* K = tVariantListAppendToken(NULL, &yymsp[0].minor.yy0, -1);
+ toTSDBType(yymsp[0].minor.yy0.type);
+ SArray* K = tVariantListAppendToken(NULL, &yymsp[0].minor.yy0, -1);
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, NULL, K, TSDB_ALTER_TABLE_DROP_COLUMN, TSDB_SUPER_TABLE);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, NULL, K, TSDB_ALTER_TABLE_DROP_COLUMN, TSDB_SUPER_TABLE);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
+#line 4135 "sql.c"
+ break;
+ case 282: /* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
+#line 856 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, TSDB_SUPER_TABLE);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
#line 4144 "sql.c"
- break;
- case 283: /* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
-#line 862 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy403, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, TSDB_SUPER_TABLE);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
+ break;
+ case 283: /* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
+#line 863 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, TSDB_SUPER_TABLE);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
#line 4153 "sql.c"
- break;
- case 284: /* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
-#line 869 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy403, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, TSDB_SUPER_TABLE);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
-#line 4162 "sql.c"
- break;
- case 285: /* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
-#line 874 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ break;
+ case 284: /* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
+#line 868 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- toTSDBType(yymsp[0].minor.yy0.type);
- SArray* A = tVariantListAppendToken(NULL, &yymsp[0].minor.yy0, -1);
+ toTSDBType(yymsp[0].minor.yy0.type);
+ SArray* A = tVariantListAppendToken(NULL, &yymsp[0].minor.yy0, -1);
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, NULL, A, TSDB_ALTER_TABLE_DROP_TAG_COLUMN, TSDB_SUPER_TABLE);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
-#line 4175 "sql.c"
- break;
- case 286: /* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
-#line 884 "sql.y"
- {
- yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, NULL, A, TSDB_ALTER_TABLE_DROP_TAG_COLUMN, TSDB_SUPER_TABLE);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
+#line 4166 "sql.c"
+ break;
+ case 285: /* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
+#line 878 "sql.y"
+{
+ yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
- toTSDBType(yymsp[-1].minor.yy0.type);
- SArray* A = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1);
+ toTSDBType(yymsp[-1].minor.yy0.type);
+ SArray* A = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1);
- toTSDBType(yymsp[0].minor.yy0.type);
- A = tVariantListAppendToken(A, &yymsp[0].minor.yy0, -1);
+ toTSDBType(yymsp[0].minor.yy0.type);
+ A = tVariantListAppendToken(A, &yymsp[0].minor.yy0, -1);
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-5].minor.yy0, NULL, A, TSDB_ALTER_TABLE_CHANGE_TAG_COLUMN, TSDB_SUPER_TABLE);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
-#line 4191 "sql.c"
- break;
- case 287: /* cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
-#line 897 "sql.y"
- {
- yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-5].minor.yy0, NULL, A, TSDB_ALTER_TABLE_CHANGE_TAG_COLUMN, TSDB_SUPER_TABLE);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
+#line 4182 "sql.c"
+ break;
+ case 286: /* cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
+#line 891 "sql.y"
+{
+ yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n;
- toTSDBType(yymsp[-2].minor.yy0.type);
- SArray* A = tVariantListAppendToken(NULL, &yymsp[-2].minor.yy0, -1);
- A = tVariantListAppend(A, &yymsp[0].minor.yy488, -1);
+ toTSDBType(yymsp[-2].minor.yy0.type);
+ SArray* A = tVariantListAppendToken(NULL, &yymsp[-2].minor.yy0, -1);
+ A = tVariantListAppend(A, &yymsp[0].minor.yy430, -1);
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-6].minor.yy0, NULL, A, TSDB_ALTER_TABLE_UPDATE_TAG_VAL, TSDB_SUPER_TABLE);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-6].minor.yy0, NULL, A, TSDB_ALTER_TABLE_UPDATE_TAG_VAL, TSDB_SUPER_TABLE);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
+#line 4196 "sql.c"
+ break;
+ case 287: /* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
+#line 902 "sql.y"
+{
+ yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
+ SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, TSDB_SUPER_TABLE);
+ setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
+}
#line 4205 "sql.c"
- break;
- case 288: /* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
-#line 908 "sql.y"
- {
- yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
- SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy403, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, TSDB_SUPER_TABLE);
- setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
- }
-#line 4214 "sql.c"
- break;
- case 289: /* cmd ::= KILL CONNECTION INTEGER */
-#line 915 "sql.y"
- {setKillSql(pInfo, TSDB_SQL_KILL_CONNECTION, &yymsp[0].minor.yy0);}
-#line 4219 "sql.c"
- break;
- case 290: /* cmd ::= KILL STREAM INTEGER COLON INTEGER */
-#line 916 "sql.y"
- {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);}
-#line 4224 "sql.c"
- break;
- case 291: /* cmd ::= KILL QUERY INTEGER COLON INTEGER */
-#line 917 "sql.y"
- {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);}
-#line 4229 "sql.c"
- break;
- default:
- break;
- /********** End reduce actions ************************************************/
+ break;
+ case 288: /* cmd ::= KILL CONNECTION INTEGER */
+#line 909 "sql.y"
+{setKillSql(pInfo, TSDB_SQL_KILL_CONNECTION, &yymsp[0].minor.yy0);}
+#line 4210 "sql.c"
+ break;
+ case 289: /* cmd ::= KILL STREAM INTEGER COLON INTEGER */
+#line 910 "sql.y"
+{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);}
+#line 4215 "sql.c"
+ break;
+ case 290: /* cmd ::= KILL QUERY INTEGER COLON INTEGER */
+#line 911 "sql.y"
+{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);}
+#line 4220 "sql.c"
+ break;
+ default:
+ break;
+/********** End reduce actions ************************************************/
};
assert( yyrulenoyytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
/* Here code is inserted which will be executed whenever the
** parser fails */
- /************ Begin %parse_failure code ***************************************/
- /************ End %parse_failure code *****************************************/
+/************ Begin %parse_failure code ***************************************/
+/************ End %parse_failure code *****************************************/
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
- ParseCTX_STORE
+ ParseCTX_STORE
}
#endif /* YYNOERRORRECOVERY */
@@ -4280,17 +4271,17 @@ static void yy_parse_failed(
** The following code executes when a syntax error first occurs.
*/
static void yy_syntax_error(
- yyParser *yypParser, /* The parser */
- int yymajor, /* The major type of the error token */
- ParseTOKENTYPE yyminor /* The minor type of the error token */
+ yyParser *yypParser, /* The parser */
+ int yymajor, /* The major type of the error token */
+ ParseTOKENTYPE yyminor /* The minor type of the error token */
){
ParseARG_FETCH
- ParseCTX_FETCH
+ ParseCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
#line 37 "sql.y"
- pInfo->valid = false;
+ pInfo->valid = false;
int32_t outputBufLen = tListLen(pInfo->msg);
int32_t len = 0;
@@ -4299,11 +4290,11 @@ static void yy_syntax_error(
int32_t sqlLen = strlen(&TOKEN.z[0]);
if (sqlLen + sizeof(msg)/sizeof(msg[0]) + 1 > outputBufLen) {
- char tmpstr[128] = {0};
- memcpy(tmpstr, &TOKEN.z[0], sizeof(tmpstr)/sizeof(tmpstr[0]) - 1);
- len = sprintf(pInfo->msg, msg, tmpstr);
+ char tmpstr[128] = {0};
+ memcpy(tmpstr, &TOKEN.z[0], sizeof(tmpstr)/sizeof(tmpstr[0]) - 1);
+ len = sprintf(pInfo->msg, msg, tmpstr);
} else {
- len = sprintf(pInfo->msg, msg, &TOKEN.z[0]);
+ len = sprintf(pInfo->msg, msg, &TOKEN.z[0]);
}
} else {
@@ -4311,22 +4302,22 @@ static void yy_syntax_error(
}
assert(len <= outputBufLen);
-#line 4314 "sql.c"
- /************ End %syntax_error code ******************************************/
+#line 4305 "sql.c"
+/************ End %syntax_error code ******************************************/
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
- ParseCTX_STORE
+ ParseCTX_STORE
}
/*
** The following is executed when the parser accepts
*/
static void yy_accept(
- yyParser *yypParser /* The parser */
+ yyParser *yypParser /* The parser */
){
ParseARG_FETCH
- ParseCTX_FETCH
+ ParseCTX_FETCH
#ifndef NDEBUG
- if( yyTraceFILE ){
+ if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt);
}
#endif
@@ -4338,10 +4329,10 @@ static void yy_accept(
** parser accepts */
/*********** Begin %parse_accept code *****************************************/
#line 61 "sql.y"
-#line 4341 "sql.c"
- /*********** End %parse_accept code *******************************************/
+#line 4332 "sql.c"
+/*********** End %parse_accept code *******************************************/
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
- ParseCTX_STORE
+ ParseCTX_STORE
}
/* The main parser program.
@@ -4364,10 +4355,10 @@ static void yy_accept(
** None.
*/
void Parse(
- void *yyp, /* The parser */
- int yymajor, /* The major token code number */
- ParseTOKENTYPE yyminor /* The value for the token */
- ParseARG_PDECL /* Optional %extra_argument parameter */
+ void *yyp, /* The parser */
+ int yymajor, /* The major token code number */
+ ParseTOKENTYPE yyminor /* The value for the token */
+ ParseARG_PDECL /* Optional %extra_argument parameter */
){
YYMINORTYPE yyminorunion;
YYACTIONTYPE yyact; /* The parser action. */
@@ -4379,9 +4370,9 @@ void Parse(
#endif
yyParser *yypParser = (yyParser*)yyp; /* The parser */
ParseCTX_FETCH
- ParseARG_STORE
+ ParseARG_STORE
- assert( yypParser->yytos!=0 );
+ assert( yypParser->yytos!=0 );
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
yyendofinput = (yymajor==0);
#endif
@@ -4411,14 +4402,14 @@ void Parse(
int yysize = yyRuleInfoNRhs[yyruleno];
if( yysize ){
fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
- yyTracePrompt,
- yyruleno, yyRuleName[yyruleno],
- yyrulenoyytos[yysize].stateno);
+ yyTracePrompt,
+ yyruleno, yyRuleName[yyruleno],
+ yyrulenoyytos[yysize].stateno);
}else{
fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
- yyTracePrompt, yyruleno, yyRuleName[yyruleno],
- yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){
yypParser->yyhwm++;
assert( yypParser->yyhwm ==
- (int)(yypParser->yytos - yypParser->yystack));
+ (int)(yypParser->yytos - yypParser->yystack));
}
#endif
-#if YYSTACKDEPTH>0
+#if YYSTACKDEPTH>0
if( yypParser->yytos>=yypParser->yystackEnd ){
yyStackOverflow(yypParser);
break;
@@ -4473,7 +4464,7 @@ void Parse(
#ifdef YYERRORSYMBOL
/* A syntax error has occurred.
** The response to an error depends upon whether or not the
- ** grammar defines an error token "ERROR".
+ ** grammar defines an error token "ERROR".
**
** This is what we do if the grammar does define ERROR:
**
@@ -4498,7 +4489,7 @@ void Parse(
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sDiscard input token %s\n",
- yyTracePrompt,yyTokenName[yymajor]);
+ yyTracePrompt,yyTokenName[yymajor]);
}
#endif
yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion);
@@ -4588,4 +4579,4 @@ int ParseFallback(int iToken){
(void)iToken;
return 0;
#endif
-}
\ No newline at end of file
+}