From 57e4b32df4f0a30357258cdf43491870b25b2c42 Mon Sep 17 00:00:00 2001 From: xywang Date: Fri, 29 Oct 2021 06:01:31 +0200 Subject: [PATCH] [TD-10691]: fixed coredump when 'file' contained in non-insertion SQL --- src/inc/ttokendef.h | 2 +- src/query/inc/sql.y | 2 +- src/query/src/sql.c | 1748 ++++++++++++++++++++++--------------------- 3 files changed, 877 insertions(+), 875 deletions(-) diff --git a/src/inc/ttokendef.h b/src/inc/ttokendef.h index 0a84d7f13b..5f6ecdd466 100644 --- a/src/inc/ttokendef.h +++ b/src/inc/ttokendef.h @@ -211,6 +211,7 @@ #define TK_INSERT 193 #define TK_INTO 194 #define TK_VALUES 195 +#define TK_FILE 196 #define TK_SPACE 300 @@ -219,7 +220,6 @@ #define TK_HEX 303 // hex number 0x123 #define TK_OCT 304 // oct number #define TK_BIN 305 // bin format data 0b111 -#define TK_FILE 306 #define TK_QUESTION 307 // denoting the placeholder of "?",when invoking statement bind query #endif diff --git a/src/query/inc/sql.y b/src/query/inc/sql.y index 920443232e..78b4c336df 100644 --- a/src/query/inc/sql.y +++ b/src/query/inc/sql.y @@ -919,4 +919,4 @@ cmd ::= KILL QUERY INTEGER(X) COLON(Z) INTEGER(Y). {X.n += (Z.n + Y.n); s %fallback ID ABORT AFTER ASC ATTACH BEFORE BEGIN CASCADE CLUSTER CONFLICT COPY DATABASE DEFERRED DELIMITERS DESC DETACH EACH END EXPLAIN FAIL FOR GLOB IGNORE IMMEDIATE INITIALLY INSTEAD LIKE MATCH KEY OF OFFSET RAISE REPLACE RESTRICT ROW STATEMENT TRIGGER VIEW ALL - NOW IPTOKEN SEMI NONE PREV LINEAR IMPORT TBNAME JOIN STABLE NULL INSERT INTO VALUES. + NOW IPTOKEN SEMI NONE PREV LINEAR IMPORT TBNAME JOIN STABLE NULL INSERT INTO VALUES FILE. diff --git a/src/query/src/sql.c b/src/query/src/sql.c index 15b94f6d4a..eb42a29c8e 100644 --- a/src/query/src/sql.c +++ b/src/query/src/sql.c @@ -97,29 +97,29 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 279 +#define YYNOCODE 280 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SStrToken typedef union { int yyinit; ParseTOKENTYPE yy0; - 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; + SCreatedTableInfo yy78; + SCreateTableSql* yy110; + SLimitVal yy126; + int yy130; + SArray* yy135; + SIntervalVal yy160; + TAOS_FIELD yy181; + SCreateDbInfo yy256; + SWindowStateVal yy258; + int32_t yy262; + SCreateAcctInfo yy277; + tVariant yy308; + SRelationInfo* yy460; + SSqlNode* yy488; + SSessionWindowVal yy511; + tSqlExpr* yy526; + int64_t yy531; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -131,7 +131,7 @@ typedef union { #define YYFALLBACK 1 #define YYNSTATE 364 #define YYNRULE 292 -#define YYNTOKEN 196 +#define YYNTOKEN 197 #define YY_MAX_SHIFT 363 #define YY_MIN_SHIFTREDUCE 572 #define YY_MAX_SHIFTREDUCE 863 @@ -220,167 +220,167 @@ static const YYACTIONTYPE yy_action[] = { /* 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, 349, 1036, 56, - /* 140 */ 55, 161, 1022, 54, 53, 52, 58, 243, 61, 62, + /* 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, 23, 250, 51, 264, 60, - /* 210 */ 319, 65, 63, 66, 64, 92, 79, 268, 267, 56, - /* 220 */ 55, 123, 211, 54, 53, 52, 249, 817, 208, 217, - /* 230 */ 806, 93, 809, 349, 812, 137, 136, 135, 216, 1135, - /* 240 */ 249, 817, 324, 86, 806, 81, 809, 259, 812, 251, - /* 250 */ 1008, 205, 65, 63, 66, 64, 161, 175, 228, 229, + /* 200 */ 986, 987, 61, 62, 24, 205, 250, 51, 264, 60, + /* 210 */ 319, 65, 63, 66, 64, 92, 206, 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, 259, 812, 808, + /* 250 */ 251, 811, 65, 63, 66, 64, 161, 176, 228, 229, /* 260 */ 56, 55, 320, 916, 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, 16, 125, 15, 131, 134, - /* 300 */ 124, 206, 271, 38, 78, 258, 784, 128, 67, 208, - /* 310 */ 748, 224, 255, 256, 3, 190, 199, 197, 195, 808, - /* 320 */ 1135, 811, 67, 194, 141, 140, 139, 138, 293, 240, - /* 330 */ 91, 241, 926, 1020, 44, 1020, 356, 355, 328, 189, - /* 340 */ 38, 354, 1020, 818, 813, 353, 38, 352, 351, 708, - /* 350 */ 814, 1019, 807, 29, 810, 212, 38, 818, 813, 38, - /* 360 */ 1094, 56, 55, 783, 814, 54, 53, 52, 254, 38, - /* 370 */ 252, 38, 327, 326, 38, 14, 1131, 339, 338, 94, - /* 380 */ 917, 260, 745, 257, 329, 334, 333, 189, 1020, 259, - /* 390 */ 330, 54, 53, 52, 1020, 259, 752, 733, 734, 176, - /* 400 */ 331, 1, 177, 335, 1020, 1021, 273, 1020, 9, 97, - /* 410 */ 83, 84, 34, 336, 71, 337, 764, 1020, 341, 1020, - /* 420 */ 39, 774, 1020, 360, 359, 146, 152, 150, 149, 775, - /* 430 */ 156, 74, 718, 804, 321, 68, 296, 720, 77, 815, - /* 440 */ 248, 133, 132, 26, 298, 299, 39, 275, 275, 719, - /* 450 */ 39, 68, 838, 819, 623, 114, 72, 113, 96, 18, - /* 460 */ 1130, 17, 6, 68, 1129, 226, 25, 25, 25, 805, - /* 470 */ 707, 75, 816, 737, 735, 738, 736, 20, 227, 19, - /* 480 */ 120, 22, 119, 21, 209, 210, 213, 207, 214, 1154, - /* 490 */ 215, 1146, 1037, 1093, 219, 238, 220, 221, 218, 204, - /* 500 */ 1090, 1089, 239, 340, 269, 153, 1044, 1055, 48, 1076, - /* 510 */ 1052, 1053, 276, 1075, 1018, 1057, 151, 155, 160, 287, - /* 520 */ 171, 172, 280, 1016, 173, 174, 163, 235, 282, 284, - /* 530 */ 931, 164, 165, 1034, 166, 763, 301, 821, 302, 303, - /* 540 */ 306, 307, 46, 202, 162, 294, 42, 290, 168, 318, - /* 550 */ 925, 325, 76, 73, 50, 292, 1153, 288, 111, 1152, - /* 560 */ 283, 1149, 286, 49, 180, 305, 332, 1145, 167, 122, - /* 570 */ 350, 117, 1144, 1141, 181, 951, 43, 40, 47, 342, - /* 580 */ 203, 913, 127, 911, 129, 130, 909, 908, 261, 192, - /* 590 */ 193, 905, 904, 903, 902, 901, 900, 899, 196, 198, - /* 600 */ 896, 894, 892, 890, 200, 887, 201, 343, 274, 82, - /* 610 */ 87, 344, 285, 1077, 345, 346, 347, 348, 358, 863, - /* 620 */ 263, 262, 862, 266, 225, 245, 300, 265, 861, 844, - /* 630 */ 843, 270, 222, 275, 10, 85, 295, 930, 929, 223, - /* 640 */ 105, 740, 106, 277, 30, 88, 765, 907, 906, 157, - /* 650 */ 158, 142, 143, 898, 184, 183, 952, 187, 182, 185, - /* 660 */ 186, 188, 144, 897, 776, 145, 953, 889, 989, 2, - /* 670 */ 169, 888, 770, 33, 4, 159, 89, 237, 772, 90, - /* 680 */ 289, 999, 31, 11, 32, 12, 13, 27, 297, 28, + /* 300 */ 124, 737, 271, 738, 78, 258, 79, 128, 67, 259, + /* 310 */ 208, 224, 255, 256, 212, 38, 199, 197, 195, 1021, + /* 320 */ 1131, 1135, 67, 194, 141, 140, 139, 138, 293, 240, + /* 330 */ 91, 241, 38, 1020, 44, 1020, 356, 355, 328, 1130, + /* 340 */ 1008, 354, 1020, 818, 813, 353, 38, 352, 351, 708, + /* 350 */ 814, 38, 38, 29, 54, 53, 52, 818, 813, 329, + /* 360 */ 38, 56, 55, 1020, 814, 54, 53, 52, 254, 815, + /* 370 */ 252, 38, 327, 326, 38, 14, 330, 339, 338, 94, + /* 380 */ 1020, 260, 807, 257, 810, 334, 333, 152, 150, 149, + /* 390 */ 331, 360, 359, 146, 1020, 335, 926, 733, 734, 1020, + /* 400 */ 1019, 1, 177, 189, 336, 917, 93, 748, 1020, 97, + /* 410 */ 784, 745, 189, 3, 190, 337, 273, 71, 341, 1020, + /* 420 */ 81, 83, 1020, 84, 74, 764, 774, 775, 248, 718, + /* 430 */ 39, 296, 720, 298, 719, 34, 804, 9, 838, 156, + /* 440 */ 68, 26, 819, 39, 321, 39, 68, 96, 68, 623, + /* 450 */ 6, 114, 25, 113, 77, 18, 25, 17, 275, 72, + /* 460 */ 275, 133, 132, 25, 75, 1129, 269, 783, 299, 735, + /* 470 */ 226, 736, 805, 20, 227, 19, 120, 22, 119, 21, + /* 480 */ 209, 210, 213, 207, 214, 215, 707, 219, 220, 221, + /* 490 */ 1022, 218, 1154, 752, 1094, 204, 1146, 1093, 238, 1090, + /* 500 */ 1089, 239, 816, 340, 153, 1044, 1076, 48, 1055, 1052, + /* 510 */ 1037, 1053, 276, 1057, 1075, 155, 160, 287, 171, 1018, + /* 520 */ 151, 172, 1016, 173, 174, 343, 280, 235, 305, 162, + /* 530 */ 931, 1034, 167, 165, 163, 301, 302, 303, 763, 306, + /* 540 */ 282, 307, 164, 284, 166, 286, 290, 821, 274, 76, + /* 550 */ 294, 50, 46, 73, 202, 292, 42, 318, 925, 288, + /* 560 */ 325, 1153, 111, 1152, 1149, 180, 169, 332, 283, 1145, + /* 570 */ 117, 33, 49, 1144, 1141, 181, 951, 43, 122, 40, + /* 580 */ 47, 203, 913, 350, 127, 911, 129, 130, 909, 908, + /* 590 */ 261, 192, 193, 905, 904, 903, 902, 901, 900, 899, + /* 600 */ 196, 198, 896, 894, 892, 890, 200, 887, 201, 342, + /* 610 */ 82, 87, 285, 1077, 344, 345, 346, 347, 348, 358, + /* 620 */ 863, 263, 862, 225, 245, 300, 262, 265, 266, 861, + /* 630 */ 222, 844, 843, 270, 10, 105, 930, 929, 223, 275, + /* 640 */ 106, 295, 740, 30, 85, 277, 88, 765, 907, 906, + /* 650 */ 157, 158, 142, 183, 952, 184, 143, 186, 898, 182, + /* 660 */ 185, 187, 188, 144, 897, 989, 145, 889, 953, 888, + /* 670 */ 2, 776, 4, 770, 159, 168, 89, 237, 772, 90, + /* 680 */ 289, 31, 999, 11, 32, 12, 13, 27, 297, 28, /* 690 */ 97, 99, 102, 36, 101, 638, 37, 103, 673, 671, /* 700 */ 670, 669, 667, 666, 665, 662, 628, 316, 107, 7, - /* 710 */ 822, 820, 322, 8, 323, 710, 110, 69, 112, 70, - /* 720 */ 39, 709, 116, 118, 706, 654, 652, 644, 650, 646, + /* 710 */ 822, 820, 322, 8, 323, 710, 39, 69, 110, 112, + /* 720 */ 70, 709, 116, 118, 706, 654, 652, 644, 650, 646, /* 730 */ 648, 642, 640, 676, 675, 674, 672, 668, 664, 663, /* 740 */ 191, 590, 626, 588, 867, 866, 866, 866, 866, 866, /* 750 */ 866, 866, 866, 866, 866, 866, 147, 148, }; static const YYCODETYPE yy_lookahead[] = { - /* 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, + /* 0 */ 254, 1, 246, 1, 200, 201, 250, 201, 246, 9, + /* 10 */ 207, 9, 250, 13, 14, 201, 16, 17, 272, 201, + /* 20 */ 20, 21, 1, 23, 24, 25, 26, 27, 28, 224, + /* 30 */ 9, 226, 227, 33, 34, 201, 231, 37, 38, 39, + /* 40 */ 235, 201, 237, 238, 198, 199, 248, 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, + /* 60 */ 58, 59, 264, 245, 62, 13, 14, 249, 16, 17, + /* 70 */ 267, 5, 20, 21, 268, 23, 24, 25, 26, 27, + /* 80 */ 28, 278, 0, 269, 270, 33, 34, 87, 208, 37, + /* 90 */ 38, 39, 13, 14, 248, 16, 17, 267, 83, 20, + /* 100 */ 21, 201, 23, 24, 25, 26, 27, 28, 278, 275, + /* 110 */ 264, 277, 33, 34, 85, 275, 37, 38, 39, 13, + /* 120 */ 14, 246, 16, 17, 244, 250, 20, 21, 208, 23, + /* 130 */ 24, 25, 26, 27, 28, 120, 84, 267, 248, 33, + /* 140 */ 34, 201, 91, 37, 38, 39, 14, 247, 16, 17, + /* 150 */ 126, 127, 20, 21, 264, 23, 24, 25, 26, 27, + /* 160 */ 28, 241, 242, 243, 244, 33, 34, 85, 207, 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, 258, 262, 257, 125, 200, 118, 200, 200, - /* 540 */ 200, 200, 200, 200, 261, 132, 200, 130, 255, 200, - /* 550 */ 200, 200, 137, 139, 136, 135, 200, 129, 200, 200, - /* 560 */ 131, 200, 128, 141, 200, 90, 200, 200, 256, 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, 200, 51, 201, 201, - /* 610 */ 201, 93, 201, 201, 95, 55, 94, 92, 85, 5, - /* 620 */ 5, 154, 5, 5, 201, 201, 201, 154, 5, 101, - /* 630 */ 100, 143, 201, 121, 83, 122, 116, 211, 211, 201, - /* 640 */ 207, 84, 207, 98, 83, 98, 84, 201, 201, 83, - /* 650 */ 83, 202, 202, 201, 214, 218, 220, 216, 219, 217, - /* 660 */ 215, 213, 202, 201, 84, 202, 222, 201, 238, 208, - /* 670 */ 254, 201, 84, 252, 203, 98, 83, 1, 84, 83, - /* 680 */ 83, 238, 98, 133, 98, 133, 83, 83, 116, 83, + /* 180 */ 107, 108, 109, 110, 111, 112, 113, 224, 225, 226, + /* 190 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, + /* 200 */ 237, 238, 16, 17, 44, 267, 20, 21, 143, 23, + /* 210 */ 24, 25, 26, 27, 28, 275, 267, 152, 153, 33, + /* 220 */ 34, 201, 62, 37, 38, 39, 1, 2, 267, 69, + /* 230 */ 5, 211, 7, 79, 9, 75, 76, 77, 78, 278, + /* 240 */ 1, 2, 82, 83, 5, 91, 7, 201, 9, 5, + /* 250 */ 207, 7, 25, 26, 27, 28, 201, 211, 33, 34, + /* 260 */ 33, 34, 37, 206, 37, 38, 39, 63, 64, 65, + /* 270 */ 213, 1, 33, 34, 70, 71, 72, 73, 74, 9, + /* 280 */ 120, 2, 222, 223, 5, 201, 7, 201, 9, 63, + /* 290 */ 64, 65, 69, 89, 201, 146, 70, 148, 72, 73, + /* 300 */ 74, 5, 142, 7, 144, 69, 208, 81, 83, 201, + /* 310 */ 267, 151, 33, 34, 267, 201, 63, 64, 65, 211, + /* 320 */ 267, 278, 83, 70, 71, 72, 73, 74, 273, 245, + /* 330 */ 275, 245, 201, 249, 99, 249, 101, 102, 245, 267, + /* 340 */ 242, 106, 249, 118, 119, 110, 201, 112, 113, 5, + /* 350 */ 125, 201, 201, 83, 37, 38, 39, 118, 119, 245, + /* 360 */ 201, 33, 34, 249, 125, 37, 38, 39, 145, 125, + /* 370 */ 147, 201, 149, 150, 201, 83, 245, 33, 34, 87, + /* 380 */ 249, 145, 5, 147, 7, 149, 150, 63, 64, 65, + /* 390 */ 245, 66, 67, 68, 249, 245, 206, 118, 119, 249, + /* 400 */ 249, 209, 210, 213, 245, 206, 251, 37, 249, 117, + /* 410 */ 77, 98, 213, 204, 205, 245, 84, 98, 245, 249, + /* 420 */ 265, 84, 249, 84, 98, 84, 84, 84, 61, 84, + /* 430 */ 98, 84, 84, 84, 84, 83, 1, 124, 84, 98, + /* 440 */ 98, 98, 84, 98, 15, 98, 98, 98, 98, 84, + /* 450 */ 83, 146, 98, 148, 83, 146, 98, 148, 121, 140, + /* 460 */ 121, 79, 80, 98, 138, 267, 201, 134, 116, 5, + /* 470 */ 267, 7, 37, 146, 267, 148, 146, 146, 148, 148, + /* 480 */ 267, 267, 267, 267, 267, 267, 115, 267, 267, 267, + /* 490 */ 250, 267, 250, 123, 240, 267, 250, 240, 240, 240, + /* 500 */ 240, 240, 125, 240, 201, 201, 276, 266, 201, 201, + /* 510 */ 248, 201, 248, 201, 276, 201, 201, 201, 252, 248, + /* 520 */ 61, 201, 201, 201, 201, 51, 271, 271, 90, 262, + /* 530 */ 201, 263, 257, 259, 261, 201, 201, 201, 125, 201, + /* 540 */ 271, 201, 260, 271, 258, 128, 130, 118, 202, 137, + /* 550 */ 132, 136, 201, 139, 201, 135, 201, 201, 201, 129, + /* 560 */ 201, 201, 201, 201, 201, 201, 255, 201, 131, 201, + /* 570 */ 201, 253, 141, 201, 201, 201, 201, 201, 97, 201, + /* 580 */ 201, 201, 201, 114, 201, 201, 201, 201, 201, 201, + /* 590 */ 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, + /* 600 */ 201, 201, 201, 201, 201, 201, 201, 201, 201, 96, + /* 610 */ 202, 202, 202, 202, 93, 95, 55, 94, 92, 85, + /* 620 */ 5, 5, 5, 202, 202, 202, 154, 154, 5, 5, + /* 630 */ 202, 101, 100, 143, 83, 208, 212, 212, 202, 121, + /* 640 */ 208, 116, 84, 83, 122, 98, 98, 84, 202, 202, + /* 650 */ 83, 83, 203, 219, 221, 215, 203, 216, 202, 220, + /* 660 */ 218, 217, 214, 203, 202, 239, 203, 202, 223, 202, + /* 670 */ 209, 84, 204, 84, 98, 256, 83, 1, 84, 83, + /* 680 */ 83, 98, 239, 133, 98, 133, 83, 83, 116, 83, /* 690 */ 117, 79, 71, 88, 87, 5, 88, 87, 9, 5, /* 700 */ 5, 5, 5, 5, 5, 5, 86, 15, 79, 83, - /* 710 */ 118, 84, 24, 83, 59, 5, 148, 16, 148, 16, - /* 720 */ 98, 5, 148, 148, 84, 5, 5, 5, 5, 5, + /* 710 */ 118, 84, 24, 83, 59, 5, 98, 16, 148, 148, + /* 720 */ 16, 5, 148, 148, 84, 5, 5, 5, 5, 5, /* 730 */ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, - /* 740 */ 98, 61, 86, 60, 0, 278, 278, 278, 278, 278, - /* 750 */ 278, 278, 278, 278, 278, 278, 21, 21, 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, + /* 740 */ 98, 61, 86, 60, 0, 279, 279, 279, 279, 279, + /* 750 */ 279, 279, 279, 279, 279, 279, 21, 21, 279, 279, + /* 760 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 770 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 780 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 790 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 800 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 810 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 820 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 830 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 840 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 850 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 860 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 870 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 880 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 890 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 900 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 910 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 920 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 930 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 940 */ 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, + /* 950 */ 279, 279, 279, 279, 279, }; #define YY_SHIFT_COUNT (363) #define YY_SHIFT_MIN (0) @@ -390,65 +390,65 @@ static const unsigned short int yy_shift_ofst[] = { /* 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, 758, 758, 758, 239, 239, + /* 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, 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, + /* 80 */ 21, 370, 21, 21, 21, 15, 15, 21, 21, 21, + /* 90 */ 21, 333, 333, 313, 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, 455, 455, 455, 410, 410, 410, 410, - /* 160 */ 455, 455, 415, 414, 413, 418, 420, 417, 428, 434, - /* 170 */ 429, 422, 455, 455, 455, 475, 475, 456, 29, 29, - /* 180 */ 455, 455, 472, 483, 556, 518, 519, 560, 522, 525, - /* 190 */ 456, 66, 455, 455, 533, 533, 455, 533, 455, 533, - /* 200 */ 455, 455, 758, 758, 52, 79, 79, 106, 79, 132, + /* 150 */ 21, 21, 21, 459, 459, 459, 413, 413, 413, 413, + /* 160 */ 459, 459, 412, 414, 418, 415, 420, 416, 430, 417, + /* 170 */ 437, 431, 459, 459, 459, 438, 438, 469, 29, 29, + /* 180 */ 459, 459, 481, 513, 474, 521, 520, 561, 523, 526, + /* 190 */ 469, 66, 459, 459, 534, 534, 459, 534, 459, 534, + /* 200 */ 459, 459, 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, 292, 354, 354, 314, 347, - /* 230 */ 357, 363, 322, 326, 327, 332, 337, 345, 316, 333, - /* 240 */ 348, 352, 353, 360, 365, 329, 368, 369, 432, 379, - /* 250 */ 419, 370, 149, 309, 313, 468, 469, 331, 334, 355, - /* 260 */ 335, 362, 614, 467, 615, 617, 473, 618, 623, 528, - /* 270 */ 530, 488, 512, 520, 551, 513, 557, 561, 545, 547, - /* 280 */ 562, 566, 580, 567, 588, 577, 593, 594, 596, 676, - /* 290 */ 597, 584, 550, 586, 552, 603, 520, 604, 572, 606, + /* 220 */ 328, 328, 223, 236, 65, 292, 317, 317, 244, 377, + /* 230 */ 325, 324, 332, 337, 339, 341, 342, 343, 319, 326, + /* 240 */ 345, 347, 348, 349, 350, 352, 354, 358, 435, 367, + /* 250 */ 429, 365, 149, 305, 309, 296, 464, 327, 330, 371, + /* 260 */ 331, 382, 615, 472, 616, 617, 473, 623, 624, 530, + /* 270 */ 532, 490, 518, 525, 551, 522, 558, 560, 547, 548, + /* 280 */ 563, 567, 587, 568, 589, 576, 593, 594, 596, 676, + /* 290 */ 597, 583, 550, 586, 552, 603, 525, 604, 572, 606, /* 300 */ 573, 612, 605, 607, 621, 690, 608, 610, 689, 694, /* 310 */ 695, 696, 697, 698, 699, 700, 620, 692, 629, 626, - /* 320 */ 627, 592, 630, 688, 655, 701, 568, 570, 622, 622, - /* 330 */ 622, 622, 703, 574, 575, 622, 622, 622, 710, 716, - /* 340 */ 640, 622, 720, 721, 722, 723, 724, 725, 726, 727, + /* 320 */ 627, 592, 630, 688, 655, 701, 570, 571, 618, 618, + /* 330 */ 618, 618, 704, 574, 575, 618, 618, 618, 710, 716, + /* 340 */ 640, 618, 720, 721, 722, 723, 724, 725, 726, 727, /* 350 */ 728, 729, 730, 731, 732, 733, 734, 642, 656, 735, /* 360 */ 736, 680, 683, 744, }; #define YY_REDUCE_COUNT (203) -#define YY_REDUCE_MIN (-253) -#define YY_REDUCE_MAX (471) +#define YY_REDUCE_MIN (-254) +#define YY_REDUCE_MAX (468) static const short yy_reduce_ofst[] = { - /* 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, 409, 252, 257, 258, 259, - /* 160 */ 411, 412, 271, 283, 266, 272, 274, 277, 312, 293, - /* 170 */ 416, 421, 423, 424, 425, 426, 427, 430, 433, 435, - /* 180 */ 431, 438, 436, 439, 437, 440, 442, 445, 441, 448, - /* 190 */ 443, 444, 446, 447, 449, 450, 452, 460, 462, 463, - /* 200 */ 466, 470, 461, 471, + /* 0 */ -154, -37, -37, -195, -195, -80, -197, -39, 43, -186, + /* 10 */ -182, -166, 55, 84, 86, 93, 114, 131, 145, 150, + /* 20 */ 159, 170, 173, -194, -196, -170, -244, -238, -125, -202, + /* 30 */ -110, -160, -60, -254, -100, -120, 20, 46, 108, 151, + /* 40 */ 57, 98, 190, 199, 60, 155, 192, 209, -130, -62, + /* 50 */ -51, 47, 53, 72, 198, 203, 207, 213, 214, 215, + /* 60 */ 216, 217, 218, 220, 221, 222, 224, 228, 240, 242, + /* 70 */ 246, 254, 257, 258, 259, 260, 261, 263, 265, 303, + /* 80 */ 304, 241, 307, 308, 310, 262, 264, 312, 314, 315, + /* 90 */ 316, 230, 238, 266, 271, 320, 321, 322, 323, 329, + /* 100 */ 334, 335, 336, 338, 340, 351, 353, 355, 356, 357, + /* 110 */ 359, 360, 361, 362, 363, 364, 366, 368, 369, 372, + /* 120 */ 373, 374, 375, 376, 378, 379, 380, 381, 383, 384, + /* 130 */ 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, + /* 140 */ 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, + /* 150 */ 405, 406, 407, 346, 408, 409, 255, 256, 269, 272, + /* 160 */ 410, 411, 268, 267, 273, 282, 274, 286, 275, 419, + /* 170 */ 311, 318, 421, 422, 423, 424, 425, 426, 427, 432, + /* 180 */ 428, 436, 433, 439, 434, 440, 442, 441, 444, 448, + /* 190 */ 443, 445, 446, 447, 449, 453, 456, 460, 462, 463, + /* 200 */ 465, 467, 461, 468, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 864, 988, 927, 998, 914, 924, 1137, 1137, 1137, 864, @@ -703,6 +703,7 @@ static const YYCODETYPE yyFallback[] = { 1, /* INSERT => ID */ 1, /* INTO => ID */ 1, /* VALUES => ID */ + 1, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -985,88 +986,89 @@ static const char *const yyTokenName[] = { /* 193 */ "INSERT", /* 194 */ "INTO", /* 195 */ "VALUES", - /* 196 */ "error", - /* 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", + /* 196 */ "FILE", + /* 197 */ "error", + /* 198 */ "program", + /* 199 */ "cmd", + /* 200 */ "dbPrefix", + /* 201 */ "ids", + /* 202 */ "cpxName", + /* 203 */ "ifexists", + /* 204 */ "alter_db_optr", + /* 205 */ "alter_topic_optr", + /* 206 */ "acct_optr", + /* 207 */ "exprlist", + /* 208 */ "ifnotexists", + /* 209 */ "db_optr", + /* 210 */ "topic_optr", + /* 211 */ "typename", + /* 212 */ "bufsize", + /* 213 */ "pps", + /* 214 */ "tseries", + /* 215 */ "dbs", + /* 216 */ "streams", + /* 217 */ "storage", + /* 218 */ "qtime", + /* 219 */ "users", + /* 220 */ "conns", + /* 221 */ "state", + /* 222 */ "intitemlist", + /* 223 */ "intitem", + /* 224 */ "keep", + /* 225 */ "cache", + /* 226 */ "replica", + /* 227 */ "quorum", + /* 228 */ "days", + /* 229 */ "minrows", + /* 230 */ "maxrows", + /* 231 */ "blocks", + /* 232 */ "ctime", + /* 233 */ "wal", + /* 234 */ "fsync", + /* 235 */ "comp", + /* 236 */ "prec", + /* 237 */ "update", + /* 238 */ "cachelast", + /* 239 */ "partitions", + /* 240 */ "signed", + /* 241 */ "create_table_args", + /* 242 */ "create_stable_args", + /* 243 */ "create_table_list", + /* 244 */ "create_from_stable", + /* 245 */ "columnlist", + /* 246 */ "tagitemlist", + /* 247 */ "tagNamelist", + /* 248 */ "select", + /* 249 */ "column", + /* 250 */ "tagitem", + /* 251 */ "selcollist", + /* 252 */ "from", + /* 253 */ "where_opt", + /* 254 */ "interval_option", + /* 255 */ "sliding_opt", + /* 256 */ "session_option", + /* 257 */ "windowstate_option", + /* 258 */ "fill_opt", + /* 259 */ "groupby_opt", + /* 260 */ "having_opt", + /* 261 */ "orderby_opt", + /* 262 */ "slimit_opt", + /* 263 */ "limit_opt", + /* 264 */ "union", + /* 265 */ "sclp", + /* 266 */ "distinct", + /* 267 */ "expr", + /* 268 */ "as", + /* 269 */ "tablelist", + /* 270 */ "sub", + /* 271 */ "tmvar", + /* 272 */ "intervalKey", + /* 273 */ "sortlist", + /* 274 */ "sortitem", + /* 275 */ "item", + /* 276 */ "sortorder", + /* 277 */ "grouplist", + /* 278 */ "expritem", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1486,60 +1488,60 @@ static void yy_destructor( ** inside the C code. */ /********* Begin destructor definitions ***************************************/ - case 206: /* exprlist */ - case 250: /* selcollist */ - case 264: /* sclp */ + case 207: /* exprlist */ + case 251: /* selcollist */ + case 265: /* sclp */ { -tSqlExprListDestroy((yypminor->yy421)); +tSqlExprListDestroy((yypminor->yy135)); } 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 */ -{ -taosArrayDestroy((yypminor->yy421)); + case 222: /* intitemlist */ + case 224: /* keep */ + case 245: /* columnlist */ + case 246: /* tagitemlist */ + case 247: /* tagNamelist */ + case 258: /* fill_opt */ + case 259: /* groupby_opt */ + case 261: /* orderby_opt */ + case 273: /* sortlist */ + case 277: /* grouplist */ +{ +taosArrayDestroy((yypminor->yy135)); } break; - case 242: /* create_table_list */ + case 243: /* create_table_list */ { -destroyCreateTableSql((yypminor->yy438)); +destroyCreateTableSql((yypminor->yy110)); } break; - case 247: /* select */ + case 248: /* select */ { -destroySqlNode((yypminor->yy56)); +destroySqlNode((yypminor->yy488)); } break; - case 251: /* from */ - case 268: /* tablelist */ - case 269: /* sub */ + case 252: /* from */ + case 269: /* tablelist */ + case 270: /* sub */ { -destroyRelationInfo((yypminor->yy8)); +destroyRelationInfo((yypminor->yy460)); } break; - case 252: /* where_opt */ - case 259: /* having_opt */ - case 266: /* expr */ - case 277: /* expritem */ + case 253: /* where_opt */ + case 260: /* having_opt */ + case 267: /* expr */ + case 278: /* expritem */ { -tSqlExprDestroy((yypminor->yy439)); +tSqlExprDestroy((yypminor->yy526)); } break; - case 263: /* union */ + case 264: /* union */ { -destroyAllSqlNode((yypminor->yy421)); +destroyAllSqlNode((yypminor->yy135)); } break; - case 273: /* sortitem */ + case 274: /* sortitem */ { -tVariantDestroy(&(yypminor->yy430)); +tVariantDestroy(&(yypminor->yy308)); } break; /********* End destructor definitions *****************************************/ @@ -1833,298 +1835,298 @@ static const struct { YYCODETYPE lhs; /* Symbol on the left-hand side of the rule */ signed char nrhs; /* Negative of the number of RHS symbols in the rule */ } yyRuleInfo[] = { - { 197, -1 }, /* (0) program ::= cmd */ - { 198, -2 }, /* (1) cmd ::= SHOW DATABASES */ - { 198, -2 }, /* (2) cmd ::= SHOW TOPICS */ - { 198, -2 }, /* (3) cmd ::= SHOW FUNCTIONS */ - { 198, -2 }, /* (4) cmd ::= SHOW MNODES */ - { 198, -2 }, /* (5) cmd ::= SHOW DNODES */ - { 198, -2 }, /* (6) cmd ::= SHOW ACCOUNTS */ - { 198, -2 }, /* (7) cmd ::= SHOW USERS */ - { 198, -2 }, /* (8) cmd ::= SHOW MODULES */ - { 198, -2 }, /* (9) cmd ::= SHOW QUERIES */ - { 198, -2 }, /* (10) cmd ::= SHOW CONNECTIONS */ - { 198, -2 }, /* (11) cmd ::= SHOW STREAMS */ - { 198, -2 }, /* (12) cmd ::= SHOW VARIABLES */ - { 198, -2 }, /* (13) cmd ::= SHOW SCORES */ - { 198, -2 }, /* (14) cmd ::= SHOW GRANTS */ - { 198, -2 }, /* (15) cmd ::= SHOW VNODES */ - { 198, -3 }, /* (16) cmd ::= SHOW VNODES IPTOKEN */ - { 199, 0 }, /* (17) dbPrefix ::= */ - { 199, -2 }, /* (18) dbPrefix ::= ids DOT */ - { 201, 0 }, /* (19) cpxName ::= */ - { 201, -2 }, /* (20) cpxName ::= DOT ids */ - { 198, -5 }, /* (21) cmd ::= SHOW CREATE TABLE ids cpxName */ - { 198, -5 }, /* (22) cmd ::= SHOW CREATE STABLE ids cpxName */ - { 198, -4 }, /* (23) cmd ::= SHOW CREATE DATABASE ids */ - { 198, -3 }, /* (24) cmd ::= SHOW dbPrefix TABLES */ - { 198, -5 }, /* (25) cmd ::= SHOW dbPrefix TABLES LIKE ids */ - { 198, -3 }, /* (26) cmd ::= SHOW dbPrefix STABLES */ - { 198, -5 }, /* (27) cmd ::= SHOW dbPrefix STABLES LIKE ids */ - { 198, -3 }, /* (28) cmd ::= SHOW dbPrefix VGROUPS */ - { 198, -4 }, /* (29) cmd ::= SHOW dbPrefix VGROUPS ids */ - { 198, -5 }, /* (30) cmd ::= DROP TABLE ifexists ids cpxName */ - { 198, -5 }, /* (31) cmd ::= DROP STABLE ifexists ids cpxName */ - { 198, -4 }, /* (32) cmd ::= DROP DATABASE ifexists ids */ - { 198, -4 }, /* (33) cmd ::= DROP TOPIC ifexists ids */ - { 198, -3 }, /* (34) cmd ::= DROP FUNCTION ids */ - { 198, -3 }, /* (35) cmd ::= DROP DNODE ids */ - { 198, -3 }, /* (36) cmd ::= DROP USER ids */ - { 198, -3 }, /* (37) cmd ::= DROP ACCOUNT ids */ - { 198, -2 }, /* (38) cmd ::= USE ids */ - { 198, -3 }, /* (39) cmd ::= DESCRIBE ids cpxName */ - { 198, -3 }, /* (40) cmd ::= DESC ids cpxName */ - { 198, -5 }, /* (41) cmd ::= ALTER USER ids PASS ids */ - { 198, -5 }, /* (42) cmd ::= ALTER USER ids PRIVILEGE ids */ - { 198, -4 }, /* (43) cmd ::= ALTER DNODE ids ids */ - { 198, -5 }, /* (44) cmd ::= ALTER DNODE ids ids ids */ - { 198, -3 }, /* (45) cmd ::= ALTER LOCAL ids */ - { 198, -4 }, /* (46) cmd ::= ALTER LOCAL ids ids */ - { 198, -4 }, /* (47) cmd ::= ALTER DATABASE ids alter_db_optr */ - { 198, -4 }, /* (48) cmd ::= ALTER TOPIC ids alter_topic_optr */ - { 198, -4 }, /* (49) cmd ::= ALTER ACCOUNT ids acct_optr */ - { 198, -6 }, /* (50) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */ - { 198, -6 }, /* (51) cmd ::= COMPACT VNODES IN LP exprlist RP */ - { 200, -1 }, /* (52) ids ::= ID */ - { 200, -1 }, /* (53) ids ::= STRING */ - { 202, -2 }, /* (54) ifexists ::= IF EXISTS */ - { 202, 0 }, /* (55) ifexists ::= */ - { 207, -3 }, /* (56) ifnotexists ::= IF NOT EXISTS */ - { 207, 0 }, /* (57) ifnotexists ::= */ - { 198, -3 }, /* (58) cmd ::= CREATE DNODE ids */ - { 198, -6 }, /* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */ - { 198, -5 }, /* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */ - { 198, -5 }, /* (61) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ - { 198, -8 }, /* (62) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ - { 198, -9 }, /* (63) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ - { 198, -5 }, /* (64) cmd ::= CREATE USER ids PASS ids */ - { 211, 0 }, /* (65) bufsize ::= */ - { 211, -2 }, /* (66) bufsize ::= BUFSIZE INTEGER */ - { 212, 0 }, /* (67) pps ::= */ - { 212, -2 }, /* (68) pps ::= PPS INTEGER */ - { 213, 0 }, /* (69) tseries ::= */ - { 213, -2 }, /* (70) tseries ::= TSERIES INTEGER */ - { 214, 0 }, /* (71) dbs ::= */ - { 214, -2 }, /* (72) dbs ::= DBS INTEGER */ - { 215, 0 }, /* (73) streams ::= */ - { 215, -2 }, /* (74) streams ::= STREAMS INTEGER */ - { 216, 0 }, /* (75) storage ::= */ - { 216, -2 }, /* (76) storage ::= STORAGE INTEGER */ - { 217, 0 }, /* (77) qtime ::= */ - { 217, -2 }, /* (78) qtime ::= QTIME INTEGER */ - { 218, 0 }, /* (79) users ::= */ - { 218, -2 }, /* (80) users ::= USERS INTEGER */ - { 219, 0 }, /* (81) conns ::= */ - { 219, -2 }, /* (82) conns ::= CONNS INTEGER */ - { 220, 0 }, /* (83) state ::= */ - { 220, -2 }, /* (84) state ::= STATE ids */ - { 205, -9 }, /* (85) acct_optr ::= pps tseries storage streams qtime dbs users conns state */ - { 221, -3 }, /* (86) intitemlist ::= intitemlist COMMA intitem */ - { 221, -1 }, /* (87) intitemlist ::= intitem */ - { 222, -1 }, /* (88) intitem ::= INTEGER */ - { 223, -2 }, /* (89) keep ::= KEEP intitemlist */ - { 224, -2 }, /* (90) cache ::= CACHE INTEGER */ - { 225, -2 }, /* (91) replica ::= REPLICA INTEGER */ - { 226, -2 }, /* (92) quorum ::= QUORUM INTEGER */ - { 227, -2 }, /* (93) days ::= DAYS INTEGER */ - { 228, -2 }, /* (94) minrows ::= MINROWS INTEGER */ - { 229, -2 }, /* (95) maxrows ::= MAXROWS INTEGER */ - { 230, -2 }, /* (96) blocks ::= BLOCKS INTEGER */ - { 231, -2 }, /* (97) ctime ::= CTIME INTEGER */ - { 232, -2 }, /* (98) wal ::= WAL INTEGER */ - { 233, -2 }, /* (99) fsync ::= FSYNC INTEGER */ - { 234, -2 }, /* (100) comp ::= COMP INTEGER */ - { 235, -2 }, /* (101) prec ::= PRECISION STRING */ - { 236, -2 }, /* (102) update ::= UPDATE INTEGER */ - { 237, -2 }, /* (103) cachelast ::= CACHELAST INTEGER */ - { 238, -2 }, /* (104) partitions ::= PARTITIONS INTEGER */ - { 208, 0 }, /* (105) db_optr ::= */ - { 208, -2 }, /* (106) db_optr ::= db_optr cache */ - { 208, -2 }, /* (107) db_optr ::= db_optr replica */ - { 208, -2 }, /* (108) db_optr ::= db_optr quorum */ - { 208, -2 }, /* (109) db_optr ::= db_optr days */ - { 208, -2 }, /* (110) db_optr ::= db_optr minrows */ - { 208, -2 }, /* (111) db_optr ::= db_optr maxrows */ - { 208, -2 }, /* (112) db_optr ::= db_optr blocks */ - { 208, -2 }, /* (113) db_optr ::= db_optr ctime */ - { 208, -2 }, /* (114) db_optr ::= db_optr wal */ - { 208, -2 }, /* (115) db_optr ::= db_optr fsync */ - { 208, -2 }, /* (116) db_optr ::= db_optr comp */ - { 208, -2 }, /* (117) db_optr ::= db_optr prec */ - { 208, -2 }, /* (118) db_optr ::= db_optr keep */ - { 208, -2 }, /* (119) db_optr ::= db_optr update */ - { 208, -2 }, /* (120) db_optr ::= db_optr cachelast */ - { 209, -1 }, /* (121) topic_optr ::= db_optr */ - { 209, -2 }, /* (122) topic_optr ::= topic_optr partitions */ - { 203, 0 }, /* (123) alter_db_optr ::= */ - { 203, -2 }, /* (124) alter_db_optr ::= alter_db_optr replica */ - { 203, -2 }, /* (125) alter_db_optr ::= alter_db_optr quorum */ - { 203, -2 }, /* (126) alter_db_optr ::= alter_db_optr keep */ - { 203, -2 }, /* (127) alter_db_optr ::= alter_db_optr blocks */ - { 203, -2 }, /* (128) alter_db_optr ::= alter_db_optr comp */ - { 203, -2 }, /* (129) alter_db_optr ::= alter_db_optr update */ - { 203, -2 }, /* (130) alter_db_optr ::= alter_db_optr cachelast */ - { 204, -1 }, /* (131) alter_topic_optr ::= alter_db_optr */ - { 204, -2 }, /* (132) alter_topic_optr ::= alter_topic_optr partitions */ - { 210, -1 }, /* (133) typename ::= ids */ - { 210, -4 }, /* (134) typename ::= ids LP signed RP */ - { 210, -2 }, /* (135) typename ::= ids UNSIGNED */ - { 239, -1 }, /* (136) signed ::= INTEGER */ - { 239, -2 }, /* (137) signed ::= PLUS INTEGER */ - { 239, -2 }, /* (138) signed ::= MINUS INTEGER */ - { 198, -3 }, /* (139) cmd ::= CREATE TABLE create_table_args */ - { 198, -3 }, /* (140) cmd ::= CREATE TABLE create_stable_args */ - { 198, -3 }, /* (141) cmd ::= CREATE STABLE create_stable_args */ - { 198, -3 }, /* (142) cmd ::= CREATE TABLE create_table_list */ - { 242, -1 }, /* (143) create_table_list ::= create_from_stable */ - { 242, -2 }, /* (144) create_table_list ::= create_table_list create_from_stable */ - { 240, -6 }, /* (145) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ - { 241, -10 }, /* (146) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ - { 243, -10 }, /* (147) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ - { 243, -13 }, /* (148) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ - { 246, -3 }, /* (149) tagNamelist ::= tagNamelist COMMA ids */ - { 246, -1 }, /* (150) tagNamelist ::= ids */ - { 240, -5 }, /* (151) create_table_args ::= ifnotexists ids cpxName AS select */ - { 244, -3 }, /* (152) columnlist ::= columnlist COMMA column */ - { 244, -1 }, /* (153) columnlist ::= column */ - { 248, -2 }, /* (154) column ::= ids typename */ - { 245, -3 }, /* (155) tagitemlist ::= tagitemlist COMMA tagitem */ - { 245, -1 }, /* (156) tagitemlist ::= tagitem */ - { 249, -1 }, /* (157) tagitem ::= INTEGER */ - { 249, -1 }, /* (158) tagitem ::= FLOAT */ - { 249, -1 }, /* (159) tagitem ::= STRING */ - { 249, -1 }, /* (160) tagitem ::= BOOL */ - { 249, -1 }, /* (161) tagitem ::= NULL */ - { 249, -1 }, /* (162) tagitem ::= NOW */ - { 249, -2 }, /* (163) tagitem ::= MINUS INTEGER */ - { 249, -2 }, /* (164) tagitem ::= MINUS FLOAT */ - { 249, -2 }, /* (165) tagitem ::= PLUS INTEGER */ - { 249, -2 }, /* (166) tagitem ::= PLUS FLOAT */ - { 247, -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 */ - { 247, -3 }, /* (168) select ::= LP select RP */ - { 263, -1 }, /* (169) union ::= select */ - { 263, -4 }, /* (170) union ::= union UNION ALL select */ - { 198, -1 }, /* (171) cmd ::= union */ - { 247, -2 }, /* (172) select ::= SELECT selcollist */ - { 264, -2 }, /* (173) sclp ::= selcollist COMMA */ - { 264, 0 }, /* (174) sclp ::= */ - { 250, -4 }, /* (175) selcollist ::= sclp distinct expr as */ - { 250, -2 }, /* (176) selcollist ::= sclp STAR */ - { 267, -2 }, /* (177) as ::= AS ids */ - { 267, -1 }, /* (178) as ::= ids */ - { 267, 0 }, /* (179) as ::= */ - { 265, -1 }, /* (180) distinct ::= DISTINCT */ - { 265, 0 }, /* (181) distinct ::= */ - { 251, -2 }, /* (182) from ::= FROM tablelist */ - { 251, -2 }, /* (183) from ::= FROM sub */ - { 269, -3 }, /* (184) sub ::= LP union RP */ - { 269, -4 }, /* (185) sub ::= LP union RP ids */ - { 269, -6 }, /* (186) sub ::= sub COMMA LP union RP ids */ - { 268, -2 }, /* (187) tablelist ::= ids cpxName */ - { 268, -3 }, /* (188) tablelist ::= ids cpxName ids */ - { 268, -4 }, /* (189) tablelist ::= tablelist COMMA ids cpxName */ - { 268, -5 }, /* (190) tablelist ::= tablelist COMMA ids cpxName ids */ - { 270, -1 }, /* (191) tmvar ::= VARIABLE */ - { 253, -4 }, /* (192) interval_option ::= intervalKey LP tmvar RP */ - { 253, -6 }, /* (193) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */ - { 253, 0 }, /* (194) interval_option ::= */ - { 271, -1 }, /* (195) intervalKey ::= INTERVAL */ - { 271, -1 }, /* (196) intervalKey ::= EVERY */ - { 255, 0 }, /* (197) session_option ::= */ - { 255, -7 }, /* (198) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ - { 256, 0 }, /* (199) windowstate_option ::= */ - { 256, -4 }, /* (200) windowstate_option ::= STATE_WINDOW LP ids RP */ - { 257, 0 }, /* (201) fill_opt ::= */ - { 257, -6 }, /* (202) fill_opt ::= FILL LP ID COMMA tagitemlist RP */ - { 257, -4 }, /* (203) fill_opt ::= FILL LP ID RP */ - { 254, -4 }, /* (204) sliding_opt ::= SLIDING LP tmvar RP */ - { 254, 0 }, /* (205) sliding_opt ::= */ - { 260, 0 }, /* (206) orderby_opt ::= */ - { 260, -3 }, /* (207) orderby_opt ::= ORDER BY sortlist */ - { 272, -4 }, /* (208) sortlist ::= sortlist COMMA item sortorder */ - { 272, -2 }, /* (209) sortlist ::= item sortorder */ - { 274, -2 }, /* (210) item ::= ids cpxName */ - { 275, -1 }, /* (211) sortorder ::= ASC */ - { 275, -1 }, /* (212) sortorder ::= DESC */ - { 275, 0 }, /* (213) sortorder ::= */ - { 258, 0 }, /* (214) groupby_opt ::= */ - { 258, -3 }, /* (215) groupby_opt ::= GROUP BY grouplist */ - { 276, -3 }, /* (216) grouplist ::= grouplist COMMA item */ - { 276, -1 }, /* (217) grouplist ::= item */ - { 259, 0 }, /* (218) having_opt ::= */ - { 259, -2 }, /* (219) having_opt ::= HAVING expr */ - { 262, 0 }, /* (220) limit_opt ::= */ - { 262, -2 }, /* (221) limit_opt ::= LIMIT signed */ - { 262, -4 }, /* (222) limit_opt ::= LIMIT signed OFFSET signed */ - { 262, -4 }, /* (223) limit_opt ::= LIMIT signed COMMA signed */ - { 261, 0 }, /* (224) slimit_opt ::= */ - { 261, -2 }, /* (225) slimit_opt ::= SLIMIT signed */ - { 261, -4 }, /* (226) slimit_opt ::= SLIMIT signed SOFFSET signed */ - { 261, -4 }, /* (227) slimit_opt ::= SLIMIT signed COMMA signed */ - { 252, 0 }, /* (228) where_opt ::= */ - { 252, -2 }, /* (229) where_opt ::= WHERE expr */ - { 266, -3 }, /* (230) expr ::= LP expr RP */ - { 266, -1 }, /* (231) expr ::= ID */ - { 266, -3 }, /* (232) expr ::= ID DOT ID */ - { 266, -3 }, /* (233) expr ::= ID DOT STAR */ - { 266, -1 }, /* (234) expr ::= INTEGER */ - { 266, -2 }, /* (235) expr ::= MINUS INTEGER */ - { 266, -2 }, /* (236) expr ::= PLUS INTEGER */ - { 266, -1 }, /* (237) expr ::= FLOAT */ - { 266, -2 }, /* (238) expr ::= MINUS FLOAT */ - { 266, -2 }, /* (239) expr ::= PLUS FLOAT */ - { 266, -1 }, /* (240) expr ::= STRING */ - { 266, -1 }, /* (241) expr ::= NOW */ - { 266, -1 }, /* (242) expr ::= VARIABLE */ - { 266, -2 }, /* (243) expr ::= PLUS VARIABLE */ - { 266, -2 }, /* (244) expr ::= MINUS VARIABLE */ - { 266, -1 }, /* (245) expr ::= BOOL */ - { 266, -1 }, /* (246) expr ::= NULL */ - { 266, -4 }, /* (247) expr ::= ID LP exprlist RP */ - { 266, -4 }, /* (248) expr ::= ID LP STAR RP */ - { 266, -3 }, /* (249) expr ::= expr IS NULL */ - { 266, -4 }, /* (250) expr ::= expr IS NOT NULL */ - { 266, -3 }, /* (251) expr ::= expr LT expr */ - { 266, -3 }, /* (252) expr ::= expr GT expr */ - { 266, -3 }, /* (253) expr ::= expr LE expr */ - { 266, -3 }, /* (254) expr ::= expr GE expr */ - { 266, -3 }, /* (255) expr ::= expr NE expr */ - { 266, -3 }, /* (256) expr ::= expr EQ expr */ - { 266, -5 }, /* (257) expr ::= expr BETWEEN expr AND expr */ - { 266, -3 }, /* (258) expr ::= expr AND expr */ - { 266, -3 }, /* (259) expr ::= expr OR expr */ - { 266, -3 }, /* (260) expr ::= expr PLUS expr */ - { 266, -3 }, /* (261) expr ::= expr MINUS expr */ - { 266, -3 }, /* (262) expr ::= expr STAR expr */ - { 266, -3 }, /* (263) expr ::= expr SLASH expr */ - { 266, -3 }, /* (264) expr ::= expr REM expr */ - { 266, -3 }, /* (265) expr ::= expr LIKE expr */ - { 266, -5 }, /* (266) expr ::= expr IN LP exprlist RP */ - { 206, -3 }, /* (267) exprlist ::= exprlist COMMA expritem */ - { 206, -1 }, /* (268) exprlist ::= expritem */ - { 277, -1 }, /* (269) expritem ::= expr */ - { 277, 0 }, /* (270) expritem ::= */ - { 198, -3 }, /* (271) cmd ::= RESET QUERY CACHE */ - { 198, -3 }, /* (272) cmd ::= SYNCDB ids REPLICA */ - { 198, -7 }, /* (273) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ - { 198, -7 }, /* (274) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */ - { 198, -7 }, /* (275) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ - { 198, -7 }, /* (276) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ - { 198, -7 }, /* (277) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */ - { 198, -8 }, /* (278) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */ - { 198, -9 }, /* (279) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */ - { 198, -7 }, /* (280) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ - { 198, -7 }, /* (281) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ - { 198, -7 }, /* (282) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */ - { 198, -7 }, /* (283) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ - { 198, -7 }, /* (284) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ - { 198, -7 }, /* (285) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */ - { 198, -8 }, /* (286) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */ - { 198, -9 }, /* (287) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */ - { 198, -7 }, /* (288) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ - { 198, -3 }, /* (289) cmd ::= KILL CONNECTION INTEGER */ - { 198, -5 }, /* (290) cmd ::= KILL STREAM INTEGER COLON INTEGER */ - { 198, -5 }, /* (291) cmd ::= KILL QUERY INTEGER COLON INTEGER */ + { 198, -1 }, /* (0) program ::= cmd */ + { 199, -2 }, /* (1) cmd ::= SHOW DATABASES */ + { 199, -2 }, /* (2) cmd ::= SHOW TOPICS */ + { 199, -2 }, /* (3) cmd ::= SHOW FUNCTIONS */ + { 199, -2 }, /* (4) cmd ::= SHOW MNODES */ + { 199, -2 }, /* (5) cmd ::= SHOW DNODES */ + { 199, -2 }, /* (6) cmd ::= SHOW ACCOUNTS */ + { 199, -2 }, /* (7) cmd ::= SHOW USERS */ + { 199, -2 }, /* (8) cmd ::= SHOW MODULES */ + { 199, -2 }, /* (9) cmd ::= SHOW QUERIES */ + { 199, -2 }, /* (10) cmd ::= SHOW CONNECTIONS */ + { 199, -2 }, /* (11) cmd ::= SHOW STREAMS */ + { 199, -2 }, /* (12) cmd ::= SHOW VARIABLES */ + { 199, -2 }, /* (13) cmd ::= SHOW SCORES */ + { 199, -2 }, /* (14) cmd ::= SHOW GRANTS */ + { 199, -2 }, /* (15) cmd ::= SHOW VNODES */ + { 199, -3 }, /* (16) cmd ::= SHOW VNODES IPTOKEN */ + { 200, 0 }, /* (17) dbPrefix ::= */ + { 200, -2 }, /* (18) dbPrefix ::= ids DOT */ + { 202, 0 }, /* (19) cpxName ::= */ + { 202, -2 }, /* (20) cpxName ::= DOT ids */ + { 199, -5 }, /* (21) cmd ::= SHOW CREATE TABLE ids cpxName */ + { 199, -5 }, /* (22) cmd ::= SHOW CREATE STABLE ids cpxName */ + { 199, -4 }, /* (23) cmd ::= SHOW CREATE DATABASE ids */ + { 199, -3 }, /* (24) cmd ::= SHOW dbPrefix TABLES */ + { 199, -5 }, /* (25) cmd ::= SHOW dbPrefix TABLES LIKE ids */ + { 199, -3 }, /* (26) cmd ::= SHOW dbPrefix STABLES */ + { 199, -5 }, /* (27) cmd ::= SHOW dbPrefix STABLES LIKE ids */ + { 199, -3 }, /* (28) cmd ::= SHOW dbPrefix VGROUPS */ + { 199, -4 }, /* (29) cmd ::= SHOW dbPrefix VGROUPS ids */ + { 199, -5 }, /* (30) cmd ::= DROP TABLE ifexists ids cpxName */ + { 199, -5 }, /* (31) cmd ::= DROP STABLE ifexists ids cpxName */ + { 199, -4 }, /* (32) cmd ::= DROP DATABASE ifexists ids */ + { 199, -4 }, /* (33) cmd ::= DROP TOPIC ifexists ids */ + { 199, -3 }, /* (34) cmd ::= DROP FUNCTION ids */ + { 199, -3 }, /* (35) cmd ::= DROP DNODE ids */ + { 199, -3 }, /* (36) cmd ::= DROP USER ids */ + { 199, -3 }, /* (37) cmd ::= DROP ACCOUNT ids */ + { 199, -2 }, /* (38) cmd ::= USE ids */ + { 199, -3 }, /* (39) cmd ::= DESCRIBE ids cpxName */ + { 199, -3 }, /* (40) cmd ::= DESC ids cpxName */ + { 199, -5 }, /* (41) cmd ::= ALTER USER ids PASS ids */ + { 199, -5 }, /* (42) cmd ::= ALTER USER ids PRIVILEGE ids */ + { 199, -4 }, /* (43) cmd ::= ALTER DNODE ids ids */ + { 199, -5 }, /* (44) cmd ::= ALTER DNODE ids ids ids */ + { 199, -3 }, /* (45) cmd ::= ALTER LOCAL ids */ + { 199, -4 }, /* (46) cmd ::= ALTER LOCAL ids ids */ + { 199, -4 }, /* (47) cmd ::= ALTER DATABASE ids alter_db_optr */ + { 199, -4 }, /* (48) cmd ::= ALTER TOPIC ids alter_topic_optr */ + { 199, -4 }, /* (49) cmd ::= ALTER ACCOUNT ids acct_optr */ + { 199, -6 }, /* (50) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */ + { 199, -6 }, /* (51) cmd ::= COMPACT VNODES IN LP exprlist RP */ + { 201, -1 }, /* (52) ids ::= ID */ + { 201, -1 }, /* (53) ids ::= STRING */ + { 203, -2 }, /* (54) ifexists ::= IF EXISTS */ + { 203, 0 }, /* (55) ifexists ::= */ + { 208, -3 }, /* (56) ifnotexists ::= IF NOT EXISTS */ + { 208, 0 }, /* (57) ifnotexists ::= */ + { 199, -3 }, /* (58) cmd ::= CREATE DNODE ids */ + { 199, -6 }, /* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */ + { 199, -5 }, /* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */ + { 199, -5 }, /* (61) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ + { 199, -8 }, /* (62) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ + { 199, -9 }, /* (63) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ + { 199, -5 }, /* (64) cmd ::= CREATE USER ids PASS ids */ + { 212, 0 }, /* (65) bufsize ::= */ + { 212, -2 }, /* (66) bufsize ::= BUFSIZE INTEGER */ + { 213, 0 }, /* (67) pps ::= */ + { 213, -2 }, /* (68) pps ::= PPS INTEGER */ + { 214, 0 }, /* (69) tseries ::= */ + { 214, -2 }, /* (70) tseries ::= TSERIES INTEGER */ + { 215, 0 }, /* (71) dbs ::= */ + { 215, -2 }, /* (72) dbs ::= DBS INTEGER */ + { 216, 0 }, /* (73) streams ::= */ + { 216, -2 }, /* (74) streams ::= STREAMS INTEGER */ + { 217, 0 }, /* (75) storage ::= */ + { 217, -2 }, /* (76) storage ::= STORAGE INTEGER */ + { 218, 0 }, /* (77) qtime ::= */ + { 218, -2 }, /* (78) qtime ::= QTIME INTEGER */ + { 219, 0 }, /* (79) users ::= */ + { 219, -2 }, /* (80) users ::= USERS INTEGER */ + { 220, 0 }, /* (81) conns ::= */ + { 220, -2 }, /* (82) conns ::= CONNS INTEGER */ + { 221, 0 }, /* (83) state ::= */ + { 221, -2 }, /* (84) state ::= STATE ids */ + { 206, -9 }, /* (85) acct_optr ::= pps tseries storage streams qtime dbs users conns state */ + { 222, -3 }, /* (86) intitemlist ::= intitemlist COMMA intitem */ + { 222, -1 }, /* (87) intitemlist ::= intitem */ + { 223, -1 }, /* (88) intitem ::= INTEGER */ + { 224, -2 }, /* (89) keep ::= KEEP intitemlist */ + { 225, -2 }, /* (90) cache ::= CACHE INTEGER */ + { 226, -2 }, /* (91) replica ::= REPLICA INTEGER */ + { 227, -2 }, /* (92) quorum ::= QUORUM INTEGER */ + { 228, -2 }, /* (93) days ::= DAYS INTEGER */ + { 229, -2 }, /* (94) minrows ::= MINROWS INTEGER */ + { 230, -2 }, /* (95) maxrows ::= MAXROWS INTEGER */ + { 231, -2 }, /* (96) blocks ::= BLOCKS INTEGER */ + { 232, -2 }, /* (97) ctime ::= CTIME INTEGER */ + { 233, -2 }, /* (98) wal ::= WAL INTEGER */ + { 234, -2 }, /* (99) fsync ::= FSYNC INTEGER */ + { 235, -2 }, /* (100) comp ::= COMP INTEGER */ + { 236, -2 }, /* (101) prec ::= PRECISION STRING */ + { 237, -2 }, /* (102) update ::= UPDATE INTEGER */ + { 238, -2 }, /* (103) cachelast ::= CACHELAST INTEGER */ + { 239, -2 }, /* (104) partitions ::= PARTITIONS INTEGER */ + { 209, 0 }, /* (105) db_optr ::= */ + { 209, -2 }, /* (106) db_optr ::= db_optr cache */ + { 209, -2 }, /* (107) db_optr ::= db_optr replica */ + { 209, -2 }, /* (108) db_optr ::= db_optr quorum */ + { 209, -2 }, /* (109) db_optr ::= db_optr days */ + { 209, -2 }, /* (110) db_optr ::= db_optr minrows */ + { 209, -2 }, /* (111) db_optr ::= db_optr maxrows */ + { 209, -2 }, /* (112) db_optr ::= db_optr blocks */ + { 209, -2 }, /* (113) db_optr ::= db_optr ctime */ + { 209, -2 }, /* (114) db_optr ::= db_optr wal */ + { 209, -2 }, /* (115) db_optr ::= db_optr fsync */ + { 209, -2 }, /* (116) db_optr ::= db_optr comp */ + { 209, -2 }, /* (117) db_optr ::= db_optr prec */ + { 209, -2 }, /* (118) db_optr ::= db_optr keep */ + { 209, -2 }, /* (119) db_optr ::= db_optr update */ + { 209, -2 }, /* (120) db_optr ::= db_optr cachelast */ + { 210, -1 }, /* (121) topic_optr ::= db_optr */ + { 210, -2 }, /* (122) topic_optr ::= topic_optr partitions */ + { 204, 0 }, /* (123) alter_db_optr ::= */ + { 204, -2 }, /* (124) alter_db_optr ::= alter_db_optr replica */ + { 204, -2 }, /* (125) alter_db_optr ::= alter_db_optr quorum */ + { 204, -2 }, /* (126) alter_db_optr ::= alter_db_optr keep */ + { 204, -2 }, /* (127) alter_db_optr ::= alter_db_optr blocks */ + { 204, -2 }, /* (128) alter_db_optr ::= alter_db_optr comp */ + { 204, -2 }, /* (129) alter_db_optr ::= alter_db_optr update */ + { 204, -2 }, /* (130) alter_db_optr ::= alter_db_optr cachelast */ + { 205, -1 }, /* (131) alter_topic_optr ::= alter_db_optr */ + { 205, -2 }, /* (132) alter_topic_optr ::= alter_topic_optr partitions */ + { 211, -1 }, /* (133) typename ::= ids */ + { 211, -4 }, /* (134) typename ::= ids LP signed RP */ + { 211, -2 }, /* (135) typename ::= ids UNSIGNED */ + { 240, -1 }, /* (136) signed ::= INTEGER */ + { 240, -2 }, /* (137) signed ::= PLUS INTEGER */ + { 240, -2 }, /* (138) signed ::= MINUS INTEGER */ + { 199, -3 }, /* (139) cmd ::= CREATE TABLE create_table_args */ + { 199, -3 }, /* (140) cmd ::= CREATE TABLE create_stable_args */ + { 199, -3 }, /* (141) cmd ::= CREATE STABLE create_stable_args */ + { 199, -3 }, /* (142) cmd ::= CREATE TABLE create_table_list */ + { 243, -1 }, /* (143) create_table_list ::= create_from_stable */ + { 243, -2 }, /* (144) create_table_list ::= create_table_list create_from_stable */ + { 241, -6 }, /* (145) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ + { 242, -10 }, /* (146) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ + { 244, -10 }, /* (147) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ + { 244, -13 }, /* (148) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ + { 247, -3 }, /* (149) tagNamelist ::= tagNamelist COMMA ids */ + { 247, -1 }, /* (150) tagNamelist ::= ids */ + { 241, -5 }, /* (151) create_table_args ::= ifnotexists ids cpxName AS select */ + { 245, -3 }, /* (152) columnlist ::= columnlist COMMA column */ + { 245, -1 }, /* (153) columnlist ::= column */ + { 249, -2 }, /* (154) column ::= ids typename */ + { 246, -3 }, /* (155) tagitemlist ::= tagitemlist COMMA tagitem */ + { 246, -1 }, /* (156) tagitemlist ::= tagitem */ + { 250, -1 }, /* (157) tagitem ::= INTEGER */ + { 250, -1 }, /* (158) tagitem ::= FLOAT */ + { 250, -1 }, /* (159) tagitem ::= STRING */ + { 250, -1 }, /* (160) tagitem ::= BOOL */ + { 250, -1 }, /* (161) tagitem ::= NULL */ + { 250, -1 }, /* (162) tagitem ::= NOW */ + { 250, -2 }, /* (163) tagitem ::= MINUS INTEGER */ + { 250, -2 }, /* (164) tagitem ::= MINUS FLOAT */ + { 250, -2 }, /* (165) tagitem ::= PLUS INTEGER */ + { 250, -2 }, /* (166) tagitem ::= PLUS FLOAT */ + { 248, -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 */ + { 248, -3 }, /* (168) select ::= LP select RP */ + { 264, -1 }, /* (169) union ::= select */ + { 264, -4 }, /* (170) union ::= union UNION ALL select */ + { 199, -1 }, /* (171) cmd ::= union */ + { 248, -2 }, /* (172) select ::= SELECT selcollist */ + { 265, -2 }, /* (173) sclp ::= selcollist COMMA */ + { 265, 0 }, /* (174) sclp ::= */ + { 251, -4 }, /* (175) selcollist ::= sclp distinct expr as */ + { 251, -2 }, /* (176) selcollist ::= sclp STAR */ + { 268, -2 }, /* (177) as ::= AS ids */ + { 268, -1 }, /* (178) as ::= ids */ + { 268, 0 }, /* (179) as ::= */ + { 266, -1 }, /* (180) distinct ::= DISTINCT */ + { 266, 0 }, /* (181) distinct ::= */ + { 252, -2 }, /* (182) from ::= FROM tablelist */ + { 252, -2 }, /* (183) from ::= FROM sub */ + { 270, -3 }, /* (184) sub ::= LP union RP */ + { 270, -4 }, /* (185) sub ::= LP union RP ids */ + { 270, -6 }, /* (186) sub ::= sub COMMA LP union RP ids */ + { 269, -2 }, /* (187) tablelist ::= ids cpxName */ + { 269, -3 }, /* (188) tablelist ::= ids cpxName ids */ + { 269, -4 }, /* (189) tablelist ::= tablelist COMMA ids cpxName */ + { 269, -5 }, /* (190) tablelist ::= tablelist COMMA ids cpxName ids */ + { 271, -1 }, /* (191) tmvar ::= VARIABLE */ + { 254, -4 }, /* (192) interval_option ::= intervalKey LP tmvar RP */ + { 254, -6 }, /* (193) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */ + { 254, 0 }, /* (194) interval_option ::= */ + { 272, -1 }, /* (195) intervalKey ::= INTERVAL */ + { 272, -1 }, /* (196) intervalKey ::= EVERY */ + { 256, 0 }, /* (197) session_option ::= */ + { 256, -7 }, /* (198) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ + { 257, 0 }, /* (199) windowstate_option ::= */ + { 257, -4 }, /* (200) windowstate_option ::= STATE_WINDOW LP ids RP */ + { 258, 0 }, /* (201) fill_opt ::= */ + { 258, -6 }, /* (202) fill_opt ::= FILL LP ID COMMA tagitemlist RP */ + { 258, -4 }, /* (203) fill_opt ::= FILL LP ID RP */ + { 255, -4 }, /* (204) sliding_opt ::= SLIDING LP tmvar RP */ + { 255, 0 }, /* (205) sliding_opt ::= */ + { 261, 0 }, /* (206) orderby_opt ::= */ + { 261, -3 }, /* (207) orderby_opt ::= ORDER BY sortlist */ + { 273, -4 }, /* (208) sortlist ::= sortlist COMMA item sortorder */ + { 273, -2 }, /* (209) sortlist ::= item sortorder */ + { 275, -2 }, /* (210) item ::= ids cpxName */ + { 276, -1 }, /* (211) sortorder ::= ASC */ + { 276, -1 }, /* (212) sortorder ::= DESC */ + { 276, 0 }, /* (213) sortorder ::= */ + { 259, 0 }, /* (214) groupby_opt ::= */ + { 259, -3 }, /* (215) groupby_opt ::= GROUP BY grouplist */ + { 277, -3 }, /* (216) grouplist ::= grouplist COMMA item */ + { 277, -1 }, /* (217) grouplist ::= item */ + { 260, 0 }, /* (218) having_opt ::= */ + { 260, -2 }, /* (219) having_opt ::= HAVING expr */ + { 263, 0 }, /* (220) limit_opt ::= */ + { 263, -2 }, /* (221) limit_opt ::= LIMIT signed */ + { 263, -4 }, /* (222) limit_opt ::= LIMIT signed OFFSET signed */ + { 263, -4 }, /* (223) limit_opt ::= LIMIT signed COMMA signed */ + { 262, 0 }, /* (224) slimit_opt ::= */ + { 262, -2 }, /* (225) slimit_opt ::= SLIMIT signed */ + { 262, -4 }, /* (226) slimit_opt ::= SLIMIT signed SOFFSET signed */ + { 262, -4 }, /* (227) slimit_opt ::= SLIMIT signed COMMA signed */ + { 253, 0 }, /* (228) where_opt ::= */ + { 253, -2 }, /* (229) where_opt ::= WHERE expr */ + { 267, -3 }, /* (230) expr ::= LP expr RP */ + { 267, -1 }, /* (231) expr ::= ID */ + { 267, -3 }, /* (232) expr ::= ID DOT ID */ + { 267, -3 }, /* (233) expr ::= ID DOT STAR */ + { 267, -1 }, /* (234) expr ::= INTEGER */ + { 267, -2 }, /* (235) expr ::= MINUS INTEGER */ + { 267, -2 }, /* (236) expr ::= PLUS INTEGER */ + { 267, -1 }, /* (237) expr ::= FLOAT */ + { 267, -2 }, /* (238) expr ::= MINUS FLOAT */ + { 267, -2 }, /* (239) expr ::= PLUS FLOAT */ + { 267, -1 }, /* (240) expr ::= STRING */ + { 267, -1 }, /* (241) expr ::= NOW */ + { 267, -1 }, /* (242) expr ::= VARIABLE */ + { 267, -2 }, /* (243) expr ::= PLUS VARIABLE */ + { 267, -2 }, /* (244) expr ::= MINUS VARIABLE */ + { 267, -1 }, /* (245) expr ::= BOOL */ + { 267, -1 }, /* (246) expr ::= NULL */ + { 267, -4 }, /* (247) expr ::= ID LP exprlist RP */ + { 267, -4 }, /* (248) expr ::= ID LP STAR RP */ + { 267, -3 }, /* (249) expr ::= expr IS NULL */ + { 267, -4 }, /* (250) expr ::= expr IS NOT NULL */ + { 267, -3 }, /* (251) expr ::= expr LT expr */ + { 267, -3 }, /* (252) expr ::= expr GT expr */ + { 267, -3 }, /* (253) expr ::= expr LE expr */ + { 267, -3 }, /* (254) expr ::= expr GE expr */ + { 267, -3 }, /* (255) expr ::= expr NE expr */ + { 267, -3 }, /* (256) expr ::= expr EQ expr */ + { 267, -5 }, /* (257) expr ::= expr BETWEEN expr AND expr */ + { 267, -3 }, /* (258) expr ::= expr AND expr */ + { 267, -3 }, /* (259) expr ::= expr OR expr */ + { 267, -3 }, /* (260) expr ::= expr PLUS expr */ + { 267, -3 }, /* (261) expr ::= expr MINUS expr */ + { 267, -3 }, /* (262) expr ::= expr STAR expr */ + { 267, -3 }, /* (263) expr ::= expr SLASH expr */ + { 267, -3 }, /* (264) expr ::= expr REM expr */ + { 267, -3 }, /* (265) expr ::= expr LIKE expr */ + { 267, -5 }, /* (266) expr ::= expr IN LP exprlist RP */ + { 207, -3 }, /* (267) exprlist ::= exprlist COMMA expritem */ + { 207, -1 }, /* (268) exprlist ::= expritem */ + { 278, -1 }, /* (269) expritem ::= expr */ + { 278, 0 }, /* (270) expritem ::= */ + { 199, -3 }, /* (271) cmd ::= RESET QUERY CACHE */ + { 199, -3 }, /* (272) cmd ::= SYNCDB ids REPLICA */ + { 199, -7 }, /* (273) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ + { 199, -7 }, /* (274) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */ + { 199, -7 }, /* (275) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ + { 199, -7 }, /* (276) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ + { 199, -7 }, /* (277) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */ + { 199, -8 }, /* (278) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */ + { 199, -9 }, /* (279) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */ + { 199, -7 }, /* (280) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ + { 199, -7 }, /* (281) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ + { 199, -7 }, /* (282) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */ + { 199, -7 }, /* (283) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ + { 199, -7 }, /* (284) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ + { 199, -7 }, /* (285) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */ + { 199, -8 }, /* (286) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */ + { 199, -9 }, /* (287) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */ + { 199, -7 }, /* (288) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ + { 199, -3 }, /* (289) cmd ::= KILL CONNECTION INTEGER */ + { 199, -5 }, /* (290) cmd ::= KILL STREAM INTEGER COLON INTEGER */ + { 199, -5 }, /* (291) cmd ::= KILL QUERY INTEGER COLON INTEGER */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -2384,16 +2386,16 @@ static void yy_reduce( break; case 47: /* cmd ::= ALTER DATABASE ids alter_db_optr */ case 48: /* cmd ::= ALTER TOPIC ids alter_topic_optr */ yytestcase(yyruleno==48); -{ SStrToken t = {0}; setCreateDbInfo(pInfo, TSDB_SQL_ALTER_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy90, &t);} +{ SStrToken t = {0}; setCreateDbInfo(pInfo, TSDB_SQL_ALTER_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy256, &t);} break; case 49: /* cmd ::= ALTER ACCOUNT ids acct_optr */ -{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-1].minor.yy0, NULL, &yymsp[0].minor.yy171);} +{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-1].minor.yy0, NULL, &yymsp[0].minor.yy277);} break; case 50: /* cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */ -{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy171);} +{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy277);} break; case 51: /* cmd ::= COMPACT VNODES IN LP exprlist RP */ -{ setCompactVnodeSql(pInfo, TSDB_SQL_COMPACT_VNODE, yymsp[-1].minor.yy421);} +{ setCompactVnodeSql(pInfo, TSDB_SQL_COMPACT_VNODE, yymsp[-1].minor.yy135);} break; case 52: /* ids ::= ID */ case 53: /* ids ::= STRING */ yytestcase(yyruleno==53); @@ -2415,17 +2417,17 @@ static void yy_reduce( { setDCLSqlElems(pInfo, TSDB_SQL_CREATE_DNODE, 1, &yymsp[0].minor.yy0);} break; case 59: /* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */ -{ setCreateAcctSql(pInfo, TSDB_SQL_CREATE_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy171);} +{ setCreateAcctSql(pInfo, TSDB_SQL_CREATE_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy277);} break; case 60: /* cmd ::= CREATE DATABASE ifnotexists ids db_optr */ case 61: /* cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ yytestcase(yyruleno==61); -{ setCreateDbInfo(pInfo, TSDB_SQL_CREATE_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy90, &yymsp[-2].minor.yy0);} +{ setCreateDbInfo(pInfo, TSDB_SQL_CREATE_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy256, &yymsp[-2].minor.yy0);} break; case 62: /* cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ -{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy183, &yymsp[0].minor.yy0, 1);} +{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy181, &yymsp[0].minor.yy0, 1);} break; case 63: /* cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ -{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy183, &yymsp[0].minor.yy0, 2);} +{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy181, &yymsp[0].minor.yy0, 2);} break; case 64: /* cmd ::= CREATE USER ids PASS ids */ { setCreateUserSql(pInfo, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);} @@ -2456,38 +2458,38 @@ static void yy_reduce( break; case 85: /* acct_optr ::= pps tseries storage streams qtime dbs users conns state */ { - yylhsminor.yy171.maxUsers = (yymsp[-2].minor.yy0.n>0)?atoi(yymsp[-2].minor.yy0.z):-1; - yylhsminor.yy171.maxDbs = (yymsp[-3].minor.yy0.n>0)?atoi(yymsp[-3].minor.yy0.z):-1; - 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; + yylhsminor.yy277.maxUsers = (yymsp[-2].minor.yy0.n>0)?atoi(yymsp[-2].minor.yy0.z):-1; + yylhsminor.yy277.maxDbs = (yymsp[-3].minor.yy0.n>0)?atoi(yymsp[-3].minor.yy0.z):-1; + yylhsminor.yy277.maxTimeSeries = (yymsp[-7].minor.yy0.n>0)?atoi(yymsp[-7].minor.yy0.z):-1; + yylhsminor.yy277.maxStreams = (yymsp[-5].minor.yy0.n>0)?atoi(yymsp[-5].minor.yy0.z):-1; + yylhsminor.yy277.maxPointsPerSecond = (yymsp[-8].minor.yy0.n>0)?atoi(yymsp[-8].minor.yy0.z):-1; + yylhsminor.yy277.maxStorage = (yymsp[-6].minor.yy0.n>0)?strtoll(yymsp[-6].minor.yy0.z, NULL, 10):-1; + yylhsminor.yy277.maxQueryTime = (yymsp[-4].minor.yy0.n>0)?strtoll(yymsp[-4].minor.yy0.z, NULL, 10):-1; + yylhsminor.yy277.maxConnections = (yymsp[-1].minor.yy0.n>0)?atoi(yymsp[-1].minor.yy0.z):-1; + yylhsminor.yy277.stat = yymsp[0].minor.yy0; } - yymsp[-8].minor.yy171 = yylhsminor.yy171; + yymsp[-8].minor.yy277 = yylhsminor.yy277; break; case 86: /* intitemlist ::= intitemlist COMMA intitem */ case 155: /* tagitemlist ::= tagitemlist COMMA tagitem */ yytestcase(yyruleno==155); -{ yylhsminor.yy421 = tVariantListAppend(yymsp[-2].minor.yy421, &yymsp[0].minor.yy430, -1); } - yymsp[-2].minor.yy421 = yylhsminor.yy421; +{ yylhsminor.yy135 = tVariantListAppend(yymsp[-2].minor.yy135, &yymsp[0].minor.yy308, -1); } + yymsp[-2].minor.yy135 = yylhsminor.yy135; break; case 87: /* intitemlist ::= intitem */ case 156: /* tagitemlist ::= tagitem */ yytestcase(yyruleno==156); -{ yylhsminor.yy421 = tVariantListAppend(NULL, &yymsp[0].minor.yy430, -1); } - yymsp[0].minor.yy421 = yylhsminor.yy421; +{ yylhsminor.yy135 = tVariantListAppend(NULL, &yymsp[0].minor.yy308, -1); } + yymsp[0].minor.yy135 = yylhsminor.yy135; 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); -{ toTSDBType(yymsp[0].minor.yy0.type); tVariantCreate(&yylhsminor.yy430, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy430 = yylhsminor.yy430; +{ toTSDBType(yymsp[0].minor.yy0.type); tVariantCreate(&yylhsminor.yy308, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy308 = yylhsminor.yy308; break; case 89: /* keep ::= KEEP intitemlist */ -{ yymsp[-1].minor.yy421 = yymsp[0].minor.yy421; } +{ yymsp[-1].minor.yy135 = yymsp[0].minor.yy135; } break; case 90: /* cache ::= CACHE INTEGER */ case 91: /* replica ::= REPLICA INTEGER */ yytestcase(yyruleno==91); @@ -2507,221 +2509,221 @@ static void yy_reduce( { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; } break; case 105: /* db_optr ::= */ -{setDefaultCreateDbOption(&yymsp[1].minor.yy90); yymsp[1].minor.yy90.dbType = TSDB_DB_TYPE_DEFAULT;} +{setDefaultCreateDbOption(&yymsp[1].minor.yy256); yymsp[1].minor.yy256.dbType = TSDB_DB_TYPE_DEFAULT;} break; case 106: /* db_optr ::= db_optr cache */ -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.cacheBlockSize = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.cacheBlockSize = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; 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.replica = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.replica = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; 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.quorum = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.quorum = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 109: /* db_optr ::= db_optr days */ -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.daysPerFile = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.daysPerFile = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 110: /* db_optr ::= db_optr minrows */ -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.minRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.minRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 111: /* db_optr ::= db_optr maxrows */ -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.maxRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.maxRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; 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.numOfBlocks = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.numOfBlocks = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 113: /* db_optr ::= db_optr ctime */ -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.commitTime = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.commitTime = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 114: /* db_optr ::= db_optr wal */ -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.walLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.walLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 115: /* db_optr ::= db_optr fsync */ -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.fsyncPeriod = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.fsyncPeriod = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 116: /* db_optr ::= db_optr comp */ case 128: /* alter_db_optr ::= alter_db_optr comp */ yytestcase(yyruleno==128); -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.compressionLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.compressionLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 117: /* db_optr ::= db_optr prec */ -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.precision = yymsp[0].minor.yy0; } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.precision = yymsp[0].minor.yy0; } + yymsp[-1].minor.yy256 = yylhsminor.yy256; 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.keep = yymsp[0].minor.yy421; } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.keep = yymsp[0].minor.yy135; } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 119: /* db_optr ::= db_optr update */ case 129: /* alter_db_optr ::= alter_db_optr update */ yytestcase(yyruleno==129); -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.update = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.update = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 120: /* db_optr ::= db_optr cachelast */ case 130: /* alter_db_optr ::= alter_db_optr cachelast */ yytestcase(yyruleno==130); -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.cachelast = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.cachelast = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 121: /* topic_optr ::= db_optr */ case 131: /* alter_topic_optr ::= alter_db_optr */ yytestcase(yyruleno==131); -{ yylhsminor.yy90 = yymsp[0].minor.yy90; yylhsminor.yy90.dbType = TSDB_DB_TYPE_TOPIC; } - yymsp[0].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[0].minor.yy256; yylhsminor.yy256.dbType = TSDB_DB_TYPE_TOPIC; } + yymsp[0].minor.yy256 = yylhsminor.yy256; break; case 122: /* topic_optr ::= topic_optr partitions */ case 132: /* alter_topic_optr ::= alter_topic_optr partitions */ yytestcase(yyruleno==132); -{ yylhsminor.yy90 = yymsp[-1].minor.yy90; yylhsminor.yy90.partitions = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy90 = yylhsminor.yy90; +{ yylhsminor.yy256 = yymsp[-1].minor.yy256; yylhsminor.yy256.partitions = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy256 = yylhsminor.yy256; break; case 123: /* alter_db_optr ::= */ -{ setDefaultCreateDbOption(&yymsp[1].minor.yy90); yymsp[1].minor.yy90.dbType = TSDB_DB_TYPE_DEFAULT;} +{ setDefaultCreateDbOption(&yymsp[1].minor.yy256); yymsp[1].minor.yy256.dbType = TSDB_DB_TYPE_DEFAULT;} break; case 133: /* typename ::= ids */ { yymsp[0].minor.yy0.type = 0; - tSetColumnType (&yylhsminor.yy183, &yymsp[0].minor.yy0); + tSetColumnType (&yylhsminor.yy181, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy183 = yylhsminor.yy183; + yymsp[0].minor.yy181 = yylhsminor.yy181; break; case 134: /* typename ::= ids LP signed RP */ { - if (yymsp[-1].minor.yy325 <= 0) { + if (yymsp[-1].minor.yy531 <= 0) { yymsp[-3].minor.yy0.type = 0; - tSetColumnType(&yylhsminor.yy183, &yymsp[-3].minor.yy0); + tSetColumnType(&yylhsminor.yy181, &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); + yymsp[-3].minor.yy0.type = -yymsp[-1].minor.yy531; // negative value of name length + tSetColumnType(&yylhsminor.yy181, &yymsp[-3].minor.yy0); } } - yymsp[-3].minor.yy183 = yylhsminor.yy183; + yymsp[-3].minor.yy181 = yylhsminor.yy181; break; case 135: /* typename ::= ids UNSIGNED */ { yymsp[-1].minor.yy0.type = 0; yymsp[-1].minor.yy0.n = ((yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z); - tSetColumnType (&yylhsminor.yy183, &yymsp[-1].minor.yy0); + tSetColumnType (&yylhsminor.yy181, &yymsp[-1].minor.yy0); } - yymsp[-1].minor.yy183 = yylhsminor.yy183; + yymsp[-1].minor.yy181 = yylhsminor.yy181; break; case 136: /* signed ::= INTEGER */ -{ yylhsminor.yy325 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[0].minor.yy325 = yylhsminor.yy325; +{ yylhsminor.yy531 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[0].minor.yy531 = yylhsminor.yy531; break; case 137: /* signed ::= PLUS INTEGER */ -{ yymsp[-1].minor.yy325 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy531 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } break; case 138: /* signed ::= MINUS INTEGER */ -{ yymsp[-1].minor.yy325 = -strtol(yymsp[0].minor.yy0.z, NULL, 10);} +{ yymsp[-1].minor.yy531 = -strtol(yymsp[0].minor.yy0.z, NULL, 10);} break; case 142: /* cmd ::= CREATE TABLE create_table_list */ -{ pInfo->type = TSDB_SQL_CREATE_TABLE; pInfo->pCreateTableInfo = yymsp[0].minor.yy438;} +{ pInfo->type = TSDB_SQL_CREATE_TABLE; pInfo->pCreateTableInfo = yymsp[0].minor.yy110;} break; case 143: /* create_table_list ::= create_from_stable */ { SCreateTableSql* pCreateTable = calloc(1, sizeof(SCreateTableSql)); pCreateTable->childTableInfo = taosArrayInit(4, sizeof(SCreatedTableInfo)); - taosArrayPush(pCreateTable->childTableInfo, &yymsp[0].minor.yy152); + taosArrayPush(pCreateTable->childTableInfo, &yymsp[0].minor.yy78); pCreateTable->type = TSQL_CREATE_TABLE_FROM_STABLE; - yylhsminor.yy438 = pCreateTable; + yylhsminor.yy110 = pCreateTable; } - yymsp[0].minor.yy438 = yylhsminor.yy438; + yymsp[0].minor.yy110 = yylhsminor.yy110; break; case 144: /* create_table_list ::= create_table_list create_from_stable */ { - taosArrayPush(yymsp[-1].minor.yy438->childTableInfo, &yymsp[0].minor.yy152); - yylhsminor.yy438 = yymsp[-1].minor.yy438; + taosArrayPush(yymsp[-1].minor.yy110->childTableInfo, &yymsp[0].minor.yy78); + yylhsminor.yy110 = yymsp[-1].minor.yy110; } - yymsp[-1].minor.yy438 = yylhsminor.yy438; + yymsp[-1].minor.yy110 = yylhsminor.yy110; break; case 145: /* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ { - yylhsminor.yy438 = tSetCreateTableInfo(yymsp[-1].minor.yy421, NULL, NULL, TSQL_CREATE_TABLE); - setSqlInfo(pInfo, yylhsminor.yy438, NULL, TSDB_SQL_CREATE_TABLE); + yylhsminor.yy110 = tSetCreateTableInfo(yymsp[-1].minor.yy135, NULL, NULL, TSQL_CREATE_TABLE); + setSqlInfo(pInfo, yylhsminor.yy110, 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); } - yymsp[-5].minor.yy438 = yylhsminor.yy438; + yymsp[-5].minor.yy110 = yylhsminor.yy110; break; case 146: /* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ { - yylhsminor.yy438 = tSetCreateTableInfo(yymsp[-5].minor.yy421, yymsp[-1].minor.yy421, NULL, TSQL_CREATE_STABLE); - setSqlInfo(pInfo, yylhsminor.yy438, NULL, TSDB_SQL_CREATE_TABLE); + yylhsminor.yy110 = tSetCreateTableInfo(yymsp[-5].minor.yy135, yymsp[-1].minor.yy135, NULL, TSQL_CREATE_STABLE); + setSqlInfo(pInfo, yylhsminor.yy110, 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); } - yymsp[-9].minor.yy438 = yylhsminor.yy438; + yymsp[-9].minor.yy110 = yylhsminor.yy110; break; case 147: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ { 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); + yylhsminor.yy78 = createNewChildTableInfo(&yymsp[-5].minor.yy0, NULL, yymsp[-1].minor.yy135, &yymsp[-8].minor.yy0, &yymsp[-9].minor.yy0); } - yymsp[-9].minor.yy152 = yylhsminor.yy152; + yymsp[-9].minor.yy78 = yylhsminor.yy78; break; case 148: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ { yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n; yymsp[-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); + yylhsminor.yy78 = createNewChildTableInfo(&yymsp[-8].minor.yy0, yymsp[-5].minor.yy135, yymsp[-1].minor.yy135, &yymsp[-11].minor.yy0, &yymsp[-12].minor.yy0); } - yymsp[-12].minor.yy152 = yylhsminor.yy152; + yymsp[-12].minor.yy78 = yylhsminor.yy78; break; case 149: /* tagNamelist ::= tagNamelist COMMA ids */ -{taosArrayPush(yymsp[-2].minor.yy421, &yymsp[0].minor.yy0); yylhsminor.yy421 = yymsp[-2].minor.yy421; } - yymsp[-2].minor.yy421 = yylhsminor.yy421; +{taosArrayPush(yymsp[-2].minor.yy135, &yymsp[0].minor.yy0); yylhsminor.yy135 = yymsp[-2].minor.yy135; } + yymsp[-2].minor.yy135 = yylhsminor.yy135; break; case 150: /* tagNamelist ::= ids */ -{yylhsminor.yy421 = taosArrayInit(4, sizeof(SStrToken)); taosArrayPush(yylhsminor.yy421, &yymsp[0].minor.yy0);} - yymsp[0].minor.yy421 = yylhsminor.yy421; +{yylhsminor.yy135 = taosArrayInit(4, sizeof(SStrToken)); taosArrayPush(yylhsminor.yy135, &yymsp[0].minor.yy0);} + yymsp[0].minor.yy135 = yylhsminor.yy135; break; case 151: /* create_table_args ::= ifnotexists ids cpxName AS select */ { - yylhsminor.yy438 = tSetCreateTableInfo(NULL, NULL, yymsp[0].minor.yy56, TSQL_CREATE_STREAM); - setSqlInfo(pInfo, yylhsminor.yy438, NULL, TSDB_SQL_CREATE_TABLE); + yylhsminor.yy110 = tSetCreateTableInfo(NULL, NULL, yymsp[0].minor.yy488, TSQL_CREATE_STREAM); + setSqlInfo(pInfo, yylhsminor.yy110, 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); } - yymsp[-4].minor.yy438 = yylhsminor.yy438; + yymsp[-4].minor.yy110 = yylhsminor.yy110; break; case 152: /* columnlist ::= columnlist COMMA column */ -{taosArrayPush(yymsp[-2].minor.yy421, &yymsp[0].minor.yy183); yylhsminor.yy421 = yymsp[-2].minor.yy421; } - yymsp[-2].minor.yy421 = yylhsminor.yy421; +{taosArrayPush(yymsp[-2].minor.yy135, &yymsp[0].minor.yy181); yylhsminor.yy135 = yymsp[-2].minor.yy135; } + yymsp[-2].minor.yy135 = yylhsminor.yy135; break; case 153: /* columnlist ::= column */ -{yylhsminor.yy421 = taosArrayInit(4, sizeof(TAOS_FIELD)); taosArrayPush(yylhsminor.yy421, &yymsp[0].minor.yy183);} - yymsp[0].minor.yy421 = yylhsminor.yy421; +{yylhsminor.yy135 = taosArrayInit(4, sizeof(TAOS_FIELD)); taosArrayPush(yylhsminor.yy135, &yymsp[0].minor.yy181);} + yymsp[0].minor.yy135 = yylhsminor.yy135; break; case 154: /* column ::= ids typename */ { - tSetColumnInfo(&yylhsminor.yy183, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy183); + tSetColumnInfo(&yylhsminor.yy181, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy181); } - yymsp[-1].minor.yy183 = yylhsminor.yy183; + yymsp[-1].minor.yy181 = yylhsminor.yy181; break; case 161: /* tagitem ::= NULL */ -{ yymsp[0].minor.yy0.type = 0; tVariantCreate(&yylhsminor.yy430, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy430 = yylhsminor.yy430; +{ yymsp[0].minor.yy0.type = 0; tVariantCreate(&yylhsminor.yy308, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy308 = yylhsminor.yy308; break; case 162: /* tagitem ::= NOW */ -{ yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; tVariantCreate(&yylhsminor.yy430, &yymsp[0].minor.yy0);} - yymsp[0].minor.yy430 = yylhsminor.yy430; +{ yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; tVariantCreate(&yylhsminor.yy308, &yymsp[0].minor.yy0);} + yymsp[0].minor.yy308 = yylhsminor.yy308; break; case 163: /* tagitem ::= MINUS INTEGER */ case 164: /* tagitem ::= MINUS FLOAT */ yytestcase(yyruleno==164); @@ -2731,56 +2733,56 @@ static void yy_reduce( yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = yymsp[0].minor.yy0.type; toTSDBType(yymsp[-1].minor.yy0.type); - tVariantCreate(&yylhsminor.yy430, &yymsp[-1].minor.yy0); + tVariantCreate(&yylhsminor.yy308, &yymsp[-1].minor.yy0); } - yymsp[-1].minor.yy430 = yylhsminor.yy430; + yymsp[-1].minor.yy308 = yylhsminor.yy308; 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 */ { - 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); + yylhsminor.yy488 = tSetQuerySqlNode(&yymsp[-13].minor.yy0, yymsp[-12].minor.yy135, yymsp[-11].minor.yy460, yymsp[-10].minor.yy526, yymsp[-4].minor.yy135, yymsp[-2].minor.yy135, &yymsp[-9].minor.yy160, &yymsp[-7].minor.yy511, &yymsp[-6].minor.yy258, &yymsp[-8].minor.yy0, yymsp[-5].minor.yy135, &yymsp[0].minor.yy126, &yymsp[-1].minor.yy126, yymsp[-3].minor.yy526); } - yymsp[-13].minor.yy56 = yylhsminor.yy56; + yymsp[-13].minor.yy488 = yylhsminor.yy488; break; case 168: /* select ::= LP select RP */ -{yymsp[-2].minor.yy56 = yymsp[-1].minor.yy56;} +{yymsp[-2].minor.yy488 = yymsp[-1].minor.yy488;} break; case 169: /* union ::= select */ -{ yylhsminor.yy421 = setSubclause(NULL, yymsp[0].minor.yy56); } - yymsp[0].minor.yy421 = yylhsminor.yy421; +{ yylhsminor.yy135 = setSubclause(NULL, yymsp[0].minor.yy488); } + yymsp[0].minor.yy135 = yylhsminor.yy135; break; case 170: /* union ::= union UNION ALL select */ -{ yylhsminor.yy421 = appendSelectClause(yymsp[-3].minor.yy421, yymsp[0].minor.yy56); } - yymsp[-3].minor.yy421 = yylhsminor.yy421; +{ yylhsminor.yy135 = appendSelectClause(yymsp[-3].minor.yy135, yymsp[0].minor.yy488); } + yymsp[-3].minor.yy135 = yylhsminor.yy135; break; case 171: /* cmd ::= union */ -{ setSqlInfo(pInfo, yymsp[0].minor.yy421, NULL, TSDB_SQL_SELECT); } +{ setSqlInfo(pInfo, yymsp[0].minor.yy135, NULL, TSDB_SQL_SELECT); } break; case 172: /* select ::= SELECT selcollist */ { - yylhsminor.yy56 = tSetQuerySqlNode(&yymsp[-1].minor.yy0, yymsp[0].minor.yy421, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + yylhsminor.yy488 = tSetQuerySqlNode(&yymsp[-1].minor.yy0, yymsp[0].minor.yy135, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); } - yymsp[-1].minor.yy56 = yylhsminor.yy56; + yymsp[-1].minor.yy488 = yylhsminor.yy488; break; case 173: /* sclp ::= selcollist COMMA */ -{yylhsminor.yy421 = yymsp[-1].minor.yy421;} - yymsp[-1].minor.yy421 = yylhsminor.yy421; +{yylhsminor.yy135 = yymsp[-1].minor.yy135;} + yymsp[-1].minor.yy135 = yylhsminor.yy135; break; case 174: /* sclp ::= */ case 206: /* orderby_opt ::= */ yytestcase(yyruleno==206); -{yymsp[1].minor.yy421 = 0;} +{yymsp[1].minor.yy135 = 0;} break; case 175: /* selcollist ::= sclp distinct expr as */ { - yylhsminor.yy421 = tSqlExprListAppend(yymsp[-3].minor.yy421, yymsp[-1].minor.yy439, yymsp[-2].minor.yy0.n? &yymsp[-2].minor.yy0:0, yymsp[0].minor.yy0.n?&yymsp[0].minor.yy0:0); + yylhsminor.yy135 = tSqlExprListAppend(yymsp[-3].minor.yy135, yymsp[-1].minor.yy526, yymsp[-2].minor.yy0.n? &yymsp[-2].minor.yy0:0, yymsp[0].minor.yy0.n?&yymsp[0].minor.yy0:0); } - yymsp[-3].minor.yy421 = yylhsminor.yy421; + yymsp[-3].minor.yy135 = yylhsminor.yy135; break; case 176: /* selcollist ::= sclp STAR */ { tSqlExpr *pNode = tSqlExprCreateIdValue(NULL, TK_ALL); - yylhsminor.yy421 = tSqlExprListAppend(yymsp[-1].minor.yy421, pNode, 0, 0); + yylhsminor.yy135 = tSqlExprListAppend(yymsp[-1].minor.yy135, pNode, 0, 0); } - yymsp[-1].minor.yy421 = yylhsminor.yy421; + yymsp[-1].minor.yy135 = yylhsminor.yy135; break; case 177: /* as ::= AS ids */ { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; } @@ -2798,85 +2800,85 @@ static void yy_reduce( break; case 182: /* from ::= FROM tablelist */ case 183: /* from ::= FROM sub */ yytestcase(yyruleno==183); -{yymsp[-1].minor.yy8 = yymsp[0].minor.yy8;} +{yymsp[-1].minor.yy460 = yymsp[0].minor.yy460;} break; case 184: /* sub ::= LP union RP */ -{yymsp[-2].minor.yy8 = addSubqueryElem(NULL, yymsp[-1].minor.yy421, NULL);} +{yymsp[-2].minor.yy460 = addSubqueryElem(NULL, yymsp[-1].minor.yy135, NULL);} break; case 185: /* sub ::= LP union RP ids */ -{yymsp[-3].minor.yy8 = addSubqueryElem(NULL, yymsp[-2].minor.yy421, &yymsp[0].minor.yy0);} +{yymsp[-3].minor.yy460 = addSubqueryElem(NULL, yymsp[-2].minor.yy135, &yymsp[0].minor.yy0);} break; case 186: /* sub ::= sub COMMA LP union RP ids */ -{yylhsminor.yy8 = addSubqueryElem(yymsp[-5].minor.yy8, yymsp[-2].minor.yy421, &yymsp[0].minor.yy0);} - yymsp[-5].minor.yy8 = yylhsminor.yy8; +{yylhsminor.yy460 = addSubqueryElem(yymsp[-5].minor.yy460, yymsp[-2].minor.yy135, &yymsp[0].minor.yy0);} + yymsp[-5].minor.yy460 = yylhsminor.yy460; break; case 187: /* tablelist ::= ids cpxName */ { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; - yylhsminor.yy8 = setTableNameList(NULL, &yymsp[-1].minor.yy0, NULL); + yylhsminor.yy460 = setTableNameList(NULL, &yymsp[-1].minor.yy0, NULL); } - yymsp[-1].minor.yy8 = yylhsminor.yy8; + yymsp[-1].minor.yy460 = yylhsminor.yy460; break; case 188: /* tablelist ::= ids cpxName ids */ { yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n; - yylhsminor.yy8 = setTableNameList(NULL, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); + yylhsminor.yy460 = setTableNameList(NULL, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy8 = yylhsminor.yy8; + yymsp[-2].minor.yy460 = yylhsminor.yy460; break; case 189: /* tablelist ::= tablelist COMMA ids cpxName */ { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; - yylhsminor.yy8 = setTableNameList(yymsp[-3].minor.yy8, &yymsp[-1].minor.yy0, NULL); + yylhsminor.yy460 = setTableNameList(yymsp[-3].minor.yy460, &yymsp[-1].minor.yy0, NULL); } - yymsp[-3].minor.yy8 = yylhsminor.yy8; + yymsp[-3].minor.yy460 = yylhsminor.yy460; break; case 190: /* tablelist ::= tablelist COMMA ids cpxName ids */ { yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n; - yylhsminor.yy8 = setTableNameList(yymsp[-4].minor.yy8, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); + yylhsminor.yy460 = setTableNameList(yymsp[-4].minor.yy460, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } - yymsp[-4].minor.yy8 = yylhsminor.yy8; + yymsp[-4].minor.yy460 = yylhsminor.yy460; break; case 191: /* tmvar ::= VARIABLE */ {yylhsminor.yy0 = yymsp[0].minor.yy0;} yymsp[0].minor.yy0 = yylhsminor.yy0; break; case 192: /* interval_option ::= intervalKey LP tmvar RP */ -{yylhsminor.yy400.interval = yymsp[-1].minor.yy0; yylhsminor.yy400.offset.n = 0; yylhsminor.yy400.token = yymsp[-3].minor.yy104;} - yymsp[-3].minor.yy400 = yylhsminor.yy400; +{yylhsminor.yy160.interval = yymsp[-1].minor.yy0; yylhsminor.yy160.offset.n = 0; yylhsminor.yy160.token = yymsp[-3].minor.yy262;} + yymsp[-3].minor.yy160 = yylhsminor.yy160; break; case 193: /* interval_option ::= intervalKey LP tmvar COMMA tmvar RP */ -{yylhsminor.yy400.interval = yymsp[-3].minor.yy0; yylhsminor.yy400.offset = yymsp[-1].minor.yy0; yylhsminor.yy400.token = yymsp[-5].minor.yy104;} - yymsp[-5].minor.yy400 = yylhsminor.yy400; +{yylhsminor.yy160.interval = yymsp[-3].minor.yy0; yylhsminor.yy160.offset = yymsp[-1].minor.yy0; yylhsminor.yy160.token = yymsp[-5].minor.yy262;} + yymsp[-5].minor.yy160 = yylhsminor.yy160; break; case 194: /* interval_option ::= */ -{memset(&yymsp[1].minor.yy400, 0, sizeof(yymsp[1].minor.yy400));} +{memset(&yymsp[1].minor.yy160, 0, sizeof(yymsp[1].minor.yy160));} break; case 195: /* intervalKey ::= INTERVAL */ -{yymsp[0].minor.yy104 = TK_INTERVAL;} +{yymsp[0].minor.yy262 = TK_INTERVAL;} break; case 196: /* intervalKey ::= EVERY */ -{yymsp[0].minor.yy104 = TK_EVERY; } +{yymsp[0].minor.yy262 = TK_EVERY; } break; case 197: /* session_option ::= */ -{yymsp[1].minor.yy147.col.n = 0; yymsp[1].minor.yy147.gap.n = 0;} +{yymsp[1].minor.yy511.col.n = 0; yymsp[1].minor.yy511.gap.n = 0;} break; case 198: /* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - yymsp[-6].minor.yy147.col = yymsp[-4].minor.yy0; - yymsp[-6].minor.yy147.gap = yymsp[-1].minor.yy0; + yymsp[-6].minor.yy511.col = yymsp[-4].minor.yy0; + yymsp[-6].minor.yy511.gap = yymsp[-1].minor.yy0; } break; case 199: /* windowstate_option ::= */ -{ yymsp[1].minor.yy40.col.n = 0; yymsp[1].minor.yy40.col.z = NULL;} +{ yymsp[1].minor.yy258.col.n = 0; yymsp[1].minor.yy258.col.z = NULL;} break; case 200: /* windowstate_option ::= STATE_WINDOW LP ids RP */ -{ yymsp[-3].minor.yy40.col = yymsp[-1].minor.yy0; } +{ yymsp[-3].minor.yy258.col = yymsp[-1].minor.yy0; } break; case 201: /* fill_opt ::= */ -{ yymsp[1].minor.yy421 = 0; } +{ yymsp[1].minor.yy135 = 0; } break; case 202: /* fill_opt ::= FILL LP ID COMMA tagitemlist RP */ { @@ -2884,14 +2886,14 @@ static void yy_reduce( toTSDBType(yymsp[-3].minor.yy0.type); tVariantCreate(&A, &yymsp[-3].minor.yy0); - tVariantListInsert(yymsp[-1].minor.yy421, &A, -1, 0); - yymsp[-5].minor.yy421 = yymsp[-1].minor.yy421; + tVariantListInsert(yymsp[-1].minor.yy135, &A, -1, 0); + yymsp[-5].minor.yy135 = yymsp[-1].minor.yy135; } break; case 203: /* fill_opt ::= FILL LP ID RP */ { toTSDBType(yymsp[-1].minor.yy0.type); - yymsp[-3].minor.yy421 = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1); + yymsp[-3].minor.yy135 = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1); } break; case 204: /* sliding_opt ::= SLIDING LP tmvar RP */ @@ -2901,235 +2903,235 @@ static void yy_reduce( {yymsp[1].minor.yy0.n = 0; yymsp[1].minor.yy0.z = NULL; yymsp[1].minor.yy0.type = 0; } break; case 207: /* orderby_opt ::= ORDER BY sortlist */ -{yymsp[-2].minor.yy421 = yymsp[0].minor.yy421;} +{yymsp[-2].minor.yy135 = yymsp[0].minor.yy135;} break; case 208: /* sortlist ::= sortlist COMMA item sortorder */ { - yylhsminor.yy421 = tVariantListAppend(yymsp[-3].minor.yy421, &yymsp[-1].minor.yy430, yymsp[0].minor.yy96); + yylhsminor.yy135 = tVariantListAppend(yymsp[-3].minor.yy135, &yymsp[-1].minor.yy308, yymsp[0].minor.yy130); } - yymsp[-3].minor.yy421 = yylhsminor.yy421; + yymsp[-3].minor.yy135 = yylhsminor.yy135; break; case 209: /* sortlist ::= item sortorder */ { - yylhsminor.yy421 = tVariantListAppend(NULL, &yymsp[-1].minor.yy430, yymsp[0].minor.yy96); + yylhsminor.yy135 = tVariantListAppend(NULL, &yymsp[-1].minor.yy308, yymsp[0].minor.yy130); } - yymsp[-1].minor.yy421 = yylhsminor.yy421; + yymsp[-1].minor.yy135 = yylhsminor.yy135; break; case 210: /* item ::= ids cpxName */ { toTSDBType(yymsp[-1].minor.yy0.type); yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; - tVariantCreate(&yylhsminor.yy430, &yymsp[-1].minor.yy0); + tVariantCreate(&yylhsminor.yy308, &yymsp[-1].minor.yy0); } - yymsp[-1].minor.yy430 = yylhsminor.yy430; + yymsp[-1].minor.yy308 = yylhsminor.yy308; break; case 211: /* sortorder ::= ASC */ -{ yymsp[0].minor.yy96 = TSDB_ORDER_ASC; } +{ yymsp[0].minor.yy130 = TSDB_ORDER_ASC; } break; case 212: /* sortorder ::= DESC */ -{ yymsp[0].minor.yy96 = TSDB_ORDER_DESC;} +{ yymsp[0].minor.yy130 = TSDB_ORDER_DESC;} break; case 213: /* sortorder ::= */ -{ yymsp[1].minor.yy96 = TSDB_ORDER_ASC; } +{ yymsp[1].minor.yy130 = TSDB_ORDER_ASC; } break; case 214: /* groupby_opt ::= */ -{ yymsp[1].minor.yy421 = 0;} +{ yymsp[1].minor.yy135 = 0;} break; case 215: /* groupby_opt ::= GROUP BY grouplist */ -{ yymsp[-2].minor.yy421 = yymsp[0].minor.yy421;} +{ yymsp[-2].minor.yy135 = yymsp[0].minor.yy135;} break; case 216: /* grouplist ::= grouplist COMMA item */ { - yylhsminor.yy421 = tVariantListAppend(yymsp[-2].minor.yy421, &yymsp[0].minor.yy430, -1); + yylhsminor.yy135 = tVariantListAppend(yymsp[-2].minor.yy135, &yymsp[0].minor.yy308, -1); } - yymsp[-2].minor.yy421 = yylhsminor.yy421; + yymsp[-2].minor.yy135 = yylhsminor.yy135; break; case 217: /* grouplist ::= item */ { - yylhsminor.yy421 = tVariantListAppend(NULL, &yymsp[0].minor.yy430, -1); + yylhsminor.yy135 = tVariantListAppend(NULL, &yymsp[0].minor.yy308, -1); } - yymsp[0].minor.yy421 = yylhsminor.yy421; + yymsp[0].minor.yy135 = yylhsminor.yy135; break; case 218: /* having_opt ::= */ case 228: /* where_opt ::= */ yytestcase(yyruleno==228); case 270: /* expritem ::= */ yytestcase(yyruleno==270); -{yymsp[1].minor.yy439 = 0;} +{yymsp[1].minor.yy526 = 0;} break; case 219: /* having_opt ::= HAVING expr */ case 229: /* where_opt ::= WHERE expr */ yytestcase(yyruleno==229); -{yymsp[-1].minor.yy439 = yymsp[0].minor.yy439;} +{yymsp[-1].minor.yy526 = yymsp[0].minor.yy526;} break; case 220: /* limit_opt ::= */ case 224: /* slimit_opt ::= */ yytestcase(yyruleno==224); -{yymsp[1].minor.yy166.limit = -1; yymsp[1].minor.yy166.offset = 0;} +{yymsp[1].minor.yy126.limit = -1; yymsp[1].minor.yy126.offset = 0;} break; case 221: /* limit_opt ::= LIMIT signed */ case 225: /* slimit_opt ::= SLIMIT signed */ yytestcase(yyruleno==225); -{yymsp[-1].minor.yy166.limit = yymsp[0].minor.yy325; yymsp[-1].minor.yy166.offset = 0;} +{yymsp[-1].minor.yy126.limit = yymsp[0].minor.yy531; yymsp[-1].minor.yy126.offset = 0;} break; case 222: /* limit_opt ::= LIMIT signed OFFSET signed */ -{ yymsp[-3].minor.yy166.limit = yymsp[-2].minor.yy325; yymsp[-3].minor.yy166.offset = yymsp[0].minor.yy325;} +{ yymsp[-3].minor.yy126.limit = yymsp[-2].minor.yy531; yymsp[-3].minor.yy126.offset = yymsp[0].minor.yy531;} break; case 223: /* limit_opt ::= LIMIT signed COMMA signed */ -{ yymsp[-3].minor.yy166.limit = yymsp[0].minor.yy325; yymsp[-3].minor.yy166.offset = yymsp[-2].minor.yy325;} +{ yymsp[-3].minor.yy126.limit = yymsp[0].minor.yy531; yymsp[-3].minor.yy126.offset = yymsp[-2].minor.yy531;} break; case 226: /* slimit_opt ::= SLIMIT signed SOFFSET signed */ -{yymsp[-3].minor.yy166.limit = yymsp[-2].minor.yy325; yymsp[-3].minor.yy166.offset = yymsp[0].minor.yy325;} +{yymsp[-3].minor.yy126.limit = yymsp[-2].minor.yy531; yymsp[-3].minor.yy126.offset = yymsp[0].minor.yy531;} break; case 227: /* slimit_opt ::= SLIMIT signed COMMA signed */ -{yymsp[-3].minor.yy166.limit = yymsp[0].minor.yy325; yymsp[-3].minor.yy166.offset = yymsp[-2].minor.yy325;} +{yymsp[-3].minor.yy126.limit = yymsp[0].minor.yy531; yymsp[-3].minor.yy126.offset = yymsp[-2].minor.yy531;} break; case 230: /* expr ::= LP expr RP */ -{yylhsminor.yy439 = yymsp[-1].minor.yy439; yylhsminor.yy439->exprToken.z = yymsp[-2].minor.yy0.z; yylhsminor.yy439->exprToken.n = (yymsp[0].minor.yy0.z - yymsp[-2].minor.yy0.z + 1);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = yymsp[-1].minor.yy526; yylhsminor.yy526->exprToken.z = yymsp[-2].minor.yy0.z; yylhsminor.yy526->exprToken.n = (yymsp[0].minor.yy0.z - yymsp[-2].minor.yy0.z + 1);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 231: /* expr ::= ID */ -{ yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_ID);} - yymsp[0].minor.yy439 = yylhsminor.yy439; +{ yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_ID);} + yymsp[0].minor.yy526 = yylhsminor.yy526; break; case 232: /* expr ::= ID DOT ID */ -{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ID);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ID);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 233: /* expr ::= ID DOT STAR */ -{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ALL);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ALL);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 234: /* expr ::= INTEGER */ -{ yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_INTEGER);} - yymsp[0].minor.yy439 = yylhsminor.yy439; +{ yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_INTEGER);} + yymsp[0].minor.yy526 = yylhsminor.yy526; break; case 235: /* expr ::= MINUS INTEGER */ case 236: /* expr ::= PLUS INTEGER */ yytestcase(yyruleno==236); -{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_INTEGER);} - yymsp[-1].minor.yy439 = yylhsminor.yy439; +{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_INTEGER);} + yymsp[-1].minor.yy526 = yylhsminor.yy526; break; case 237: /* expr ::= FLOAT */ -{ yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_FLOAT);} - yymsp[0].minor.yy439 = yylhsminor.yy439; +{ yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_FLOAT);} + yymsp[0].minor.yy526 = yylhsminor.yy526; break; case 238: /* expr ::= MINUS FLOAT */ case 239: /* expr ::= PLUS FLOAT */ yytestcase(yyruleno==239); -{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_FLOAT; yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_FLOAT);} - yymsp[-1].minor.yy439 = yylhsminor.yy439; +{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_FLOAT; yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_FLOAT);} + yymsp[-1].minor.yy526 = yylhsminor.yy526; break; case 240: /* expr ::= STRING */ -{ yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_STRING);} - yymsp[0].minor.yy439 = yylhsminor.yy439; +{ yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_STRING);} + yymsp[0].minor.yy526 = yylhsminor.yy526; break; case 241: /* expr ::= NOW */ -{ yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NOW); } - yymsp[0].minor.yy439 = yylhsminor.yy439; +{ yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NOW); } + yymsp[0].minor.yy526 = yylhsminor.yy526; break; case 242: /* expr ::= VARIABLE */ -{ yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_VARIABLE);} - yymsp[0].minor.yy439 = yylhsminor.yy439; +{ yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_VARIABLE);} + yymsp[0].minor.yy526 = yylhsminor.yy526; break; case 243: /* expr ::= PLUS VARIABLE */ case 244: /* expr ::= MINUS VARIABLE */ yytestcase(yyruleno==244); -{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_VARIABLE; yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_VARIABLE);} - yymsp[-1].minor.yy439 = yylhsminor.yy439; +{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_VARIABLE; yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_VARIABLE);} + yymsp[-1].minor.yy526 = yylhsminor.yy526; break; case 245: /* expr ::= BOOL */ -{ yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_BOOL);} - yymsp[0].minor.yy439 = yylhsminor.yy439; +{ yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_BOOL);} + yymsp[0].minor.yy526 = yylhsminor.yy526; break; case 246: /* expr ::= NULL */ -{ yylhsminor.yy439 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NULL);} - yymsp[0].minor.yy439 = yylhsminor.yy439; +{ yylhsminor.yy526 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NULL);} + yymsp[0].minor.yy526 = yylhsminor.yy526; break; case 247: /* expr ::= ID LP exprlist RP */ -{ 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); } - yymsp[-3].minor.yy439 = yylhsminor.yy439; +{ tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy526 = tSqlExprCreateFunction(yymsp[-1].minor.yy135, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); } + yymsp[-3].minor.yy526 = yylhsminor.yy526; break; case 248: /* expr ::= ID LP STAR 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); } - yymsp[-3].minor.yy439 = yylhsminor.yy439; +{ tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy526 = tSqlExprCreateFunction(NULL, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); } + yymsp[-3].minor.yy526 = yylhsminor.yy526; break; case 249: /* expr ::= expr IS NULL */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, NULL, TK_ISNULL);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, NULL, TK_ISNULL);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 250: /* expr ::= expr IS NOT NULL */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-3].minor.yy439, NULL, TK_NOTNULL);} - yymsp[-3].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-3].minor.yy526, NULL, TK_NOTNULL);} + yymsp[-3].minor.yy526 = yylhsminor.yy526; break; case 251: /* expr ::= expr LT expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_LT);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_LT);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 252: /* expr ::= expr GT expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_GT);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_GT);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 253: /* expr ::= expr LE expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_LE);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_LE);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 254: /* expr ::= expr GE expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_GE);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_GE);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 255: /* expr ::= expr NE expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_NE);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_NE);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 256: /* expr ::= expr EQ expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_EQ);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_EQ);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 257: /* expr ::= expr BETWEEN expr AND expr */ -{ tSqlExpr* X2 = tSqlExprClone(yymsp[-4].minor.yy439); yylhsminor.yy439 = tSqlExprCreate(tSqlExprCreate(yymsp[-4].minor.yy439, yymsp[-2].minor.yy439, TK_GE), tSqlExprCreate(X2, yymsp[0].minor.yy439, TK_LE), TK_AND);} - yymsp[-4].minor.yy439 = yylhsminor.yy439; +{ tSqlExpr* X2 = tSqlExprClone(yymsp[-4].minor.yy526); yylhsminor.yy526 = tSqlExprCreate(tSqlExprCreate(yymsp[-4].minor.yy526, yymsp[-2].minor.yy526, TK_GE), tSqlExprCreate(X2, yymsp[0].minor.yy526, TK_LE), TK_AND);} + yymsp[-4].minor.yy526 = yylhsminor.yy526; break; case 258: /* expr ::= expr AND expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_AND);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_AND);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 259: /* expr ::= expr OR expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_OR); } - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_OR); } + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 260: /* expr ::= expr PLUS expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_PLUS); } - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_PLUS); } + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 261: /* expr ::= expr MINUS expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_MINUS); } - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_MINUS); } + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 262: /* expr ::= expr STAR expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_STAR); } - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_STAR); } + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 263: /* expr ::= expr SLASH expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_DIVIDE);} - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_DIVIDE);} + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 264: /* expr ::= expr REM expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_REM); } - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_REM); } + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 265: /* expr ::= expr LIKE expr */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-2].minor.yy439, yymsp[0].minor.yy439, TK_LIKE); } - yymsp[-2].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-2].minor.yy526, yymsp[0].minor.yy526, TK_LIKE); } + yymsp[-2].minor.yy526 = yylhsminor.yy526; break; case 266: /* expr ::= expr IN LP exprlist RP */ -{yylhsminor.yy439 = tSqlExprCreate(yymsp[-4].minor.yy439, (tSqlExpr*)yymsp[-1].minor.yy421, TK_IN); } - yymsp[-4].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = tSqlExprCreate(yymsp[-4].minor.yy526, (tSqlExpr*)yymsp[-1].minor.yy135, TK_IN); } + yymsp[-4].minor.yy526 = yylhsminor.yy526; break; case 267: /* exprlist ::= exprlist COMMA expritem */ -{yylhsminor.yy421 = tSqlExprListAppend(yymsp[-2].minor.yy421,yymsp[0].minor.yy439,0, 0);} - yymsp[-2].minor.yy421 = yylhsminor.yy421; +{yylhsminor.yy135 = tSqlExprListAppend(yymsp[-2].minor.yy135,yymsp[0].minor.yy526,0, 0);} + yymsp[-2].minor.yy135 = yylhsminor.yy135; break; case 268: /* exprlist ::= expritem */ -{yylhsminor.yy421 = tSqlExprListAppend(0,yymsp[0].minor.yy439,0, 0);} - yymsp[0].minor.yy421 = yylhsminor.yy421; +{yylhsminor.yy135 = tSqlExprListAppend(0,yymsp[0].minor.yy526,0, 0);} + yymsp[0].minor.yy135 = yylhsminor.yy135; break; case 269: /* expritem ::= expr */ -{yylhsminor.yy439 = yymsp[0].minor.yy439;} - yymsp[0].minor.yy439 = yylhsminor.yy439; +{yylhsminor.yy526 = yymsp[0].minor.yy526;} + yymsp[0].minor.yy526 = yylhsminor.yy526; break; case 271: /* cmd ::= RESET QUERY CACHE */ { setDCLSqlElems(pInfo, TSDB_SQL_RESET_CACHE, 0);} @@ -3140,7 +3142,7 @@ static void yy_reduce( case 273: /* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, -1); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy135, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, -1); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; @@ -3158,14 +3160,14 @@ static void yy_reduce( case 275: /* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, -1); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy135, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, -1); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; case 276: /* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, -1); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy135, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, -1); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; @@ -3200,7 +3202,7 @@ static void yy_reduce( toTSDBType(yymsp[-2].minor.yy0.type); SArray* A = tVariantListAppendToken(NULL, &yymsp[-2].minor.yy0, -1); - A = tVariantListAppend(A, &yymsp[0].minor.yy430, -1); + A = tVariantListAppend(A, &yymsp[0].minor.yy308, -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); @@ -3209,14 +3211,14 @@ static void yy_reduce( case 280: /* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, -1); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy135, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, -1); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; case 281: /* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, TSDB_SUPER_TABLE); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy135, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, TSDB_SUPER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; @@ -3234,14 +3236,14 @@ static void yy_reduce( case 283: /* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, TSDB_SUPER_TABLE); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy135, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, TSDB_SUPER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; case 284: /* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, TSDB_SUPER_TABLE); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy135, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, TSDB_SUPER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; @@ -3276,7 +3278,7 @@ static void yy_reduce( toTSDBType(yymsp[-2].minor.yy0.type); SArray* A = tVariantListAppendToken(NULL, &yymsp[-2].minor.yy0, -1); - A = tVariantListAppend(A, &yymsp[0].minor.yy430, -1); + A = tVariantListAppend(A, &yymsp[0].minor.yy308, -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); @@ -3285,7 +3287,7 @@ static void yy_reduce( case 288: /* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy421, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, TSDB_SUPER_TABLE); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy135, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, TSDB_SUPER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; -- GitLab