diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 46775b79277b715f94927f8bbe4ff85f94fede02..aa8ced8d7e1d8c425f75f38a85100d17019163b6 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -44,25 +44,39 @@ //%right NK_BITNOT. /************************************************ create/alter account *****************************************/ -cmd ::= ALTER ACCOUNT NK_ID account_options. { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } +cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options. { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } +cmd ::= ALTER ACCOUNT NK_ID alter_account_options. { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } %type account_options { int32_t } %destructor account_options { } -account_options ::= account_option. { } -account_options ::= account_options account_option. { } - -%type account_option { int32_t } -%destructor account_option { } -account_option ::= PASS literal. { } -account_option ::= PPS literal. { } -account_option ::= TSERIES literal. { } -account_option ::= STORAGE literal. { } -account_option ::= STREAMS literal. { } -account_option ::= QTIME literal. { } -account_option ::= DBS literal. { } -account_option ::= USERS literal. { } -account_option ::= CONNS literal. { } -account_option ::= STATE literal. { } +account_options ::= . { } +account_options ::= account_options PPS literal. { } +account_options ::= account_options TSERIES literal. { } +account_options ::= account_options STORAGE literal. { } +account_options ::= account_options STREAMS literal. { } +account_options ::= account_options QTIME literal. { } +account_options ::= account_options DBS literal. { } +account_options ::= account_options USERS literal. { } +account_options ::= account_options CONNS literal. { } +account_options ::= account_options STATE literal. { } + +%type alter_account_options { int32_t } +%destructor alter_account_options { } +alter_account_options ::= alter_account_option. { } +alter_account_options ::= alter_account_options alter_account_option. { } + +%type alter_account_option { int32_t } +%destructor alter_account_option { } +alter_account_option ::= PASS literal. { } +alter_account_option ::= PPS literal. { } +alter_account_option ::= TSERIES literal. { } +alter_account_option ::= STORAGE literal. { } +alter_account_option ::= STREAMS literal. { } +alter_account_option ::= QTIME literal. { } +alter_account_option ::= DBS literal. { } +alter_account_option ::= USERS literal. { } +alter_account_option ::= CONNS literal. { } +alter_account_option ::= STATE literal. { } /************************************************ create/alter/drop/show user *****************************************/ cmd ::= CREATE USER user_name(A) PASS NK_STRING(B). { pCxt->pRootNode = createCreateUserStmt(pCxt, &A, &B); } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 4f2149ac887e7512c82a470c94b1045a8424ecce..fa7eb6bc897e16149cf82c7d21ae7373785c1184 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -99,24 +99,24 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned char -#define YYNOCODE 248 +#define YYNOCODE 249 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - SNode* yy168; - SDataType yy208; - EJoinType yy228; - SToken yy241; - EOrder yy258; - EFillMode yy262; - int32_t yy324; - SAlterOption yy349; - ENullOrder yy425; - SNodeList* yy440; - bool yy457; - EOperatorType yy476; + SNode* yy26; + EOrder yy32; + SNodeList* yy64; + EOperatorType yy80; + bool yy107; + EFillMode yy192; + SToken yy353; + SDataType yy370; + EJoinType yy372; + ENullOrder yy391; + SAlterOption yy443; + int32_t yy448; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -131,17 +131,17 @@ typedef union { #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE -#define YYNSTATE 400 -#define YYNRULE 305 +#define YYNSTATE 414 +#define YYNRULE 316 #define YYNTOKEN 160 -#define YY_MAX_SHIFT 399 -#define YY_MIN_SHIFTREDUCE 608 -#define YY_MAX_SHIFTREDUCE 912 -#define YY_ERROR_ACTION 913 -#define YY_ACCEPT_ACTION 914 -#define YY_NO_ACTION 915 -#define YY_MIN_REDUCE 916 -#define YY_MAX_REDUCE 1220 +#define YY_MAX_SHIFT 413 +#define YY_MIN_SHIFTREDUCE 631 +#define YY_MAX_SHIFTREDUCE 946 +#define YY_ERROR_ACTION 947 +#define YY_ACCEPT_ACTION 948 +#define YY_NO_ACTION 949 +#define YY_MIN_REDUCE 950 +#define YY_MAX_REDUCE 1265 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -208,366 +208,379 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (1150) +#define YY_ACTTAB_COUNT (1182) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 951, 1087, 1087, 42, 297, 914, 1199, 208, 24, 140, - /* 10 */ 1070, 312, 79, 31, 29, 27, 26, 25, 916, 1198, - /* 20 */ 1010, 94, 917, 1197, 196, 211, 89, 31, 29, 27, - /* 30 */ 26, 25, 213, 352, 1018, 1061, 1063, 1085, 1085, 77, - /* 40 */ 76, 75, 74, 73, 72, 71, 70, 69, 68, 226, - /* 50 */ 991, 190, 339, 338, 337, 336, 335, 334, 333, 332, - /* 60 */ 331, 330, 329, 328, 327, 326, 325, 324, 323, 322, - /* 70 */ 321, 1199, 100, 30, 28, 795, 31, 29, 27, 26, - /* 80 */ 25, 205, 352, 1053, 107, 818, 10, 1060, 1197, 297, - /* 90 */ 781, 353, 278, 195, 774, 1071, 242, 989, 1058, 243, - /* 100 */ 772, 77, 76, 75, 74, 73, 72, 71, 70, 69, - /* 110 */ 68, 12, 1015, 82, 190, 31, 29, 27, 26, 25, - /* 120 */ 23, 203, 243, 813, 814, 815, 816, 817, 819, 821, - /* 130 */ 822, 823, 773, 80, 1, 774, 31, 29, 27, 26, - /* 140 */ 25, 772, 280, 103, 1145, 1146, 320, 1150, 818, 713, - /* 150 */ 375, 374, 373, 717, 372, 719, 720, 371, 722, 368, - /* 160 */ 398, 728, 365, 730, 731, 362, 359, 97, 980, 1060, - /* 170 */ 908, 909, 854, 773, 352, 210, 783, 1098, 775, 778, - /* 180 */ 1058, 9, 8, 23, 203, 272, 813, 814, 815, 816, - /* 190 */ 817, 819, 821, 822, 823, 108, 1113, 385, 795, 380, - /* 200 */ 209, 398, 384, 294, 108, 383, 1060, 381, 89, 296, - /* 210 */ 382, 785, 214, 1085, 252, 1098, 1017, 1058, 282, 775, - /* 220 */ 778, 60, 1099, 1102, 1138, 353, 6, 10, 189, 1134, - /* 230 */ 64, 30, 28, 855, 1113, 1088, 635, 351, 1060, 205, - /* 240 */ 1199, 281, 250, 353, 347, 346, 1015, 296, 64, 1062, - /* 250 */ 253, 1085, 774, 107, 831, 379, 42, 1197, 772, 61, - /* 260 */ 1099, 1102, 1138, 286, 1015, 155, 198, 1134, 102, 12, - /* 270 */ 78, 1085, 1199, 1011, 1113, 1098, 343, 353, 1098, 154, - /* 280 */ 136, 294, 1012, 1157, 850, 107, 259, 1165, 108, 1197, - /* 290 */ 773, 21, 1, 171, 1113, 786, 1045, 1113, 1015, 820, - /* 300 */ 267, 294, 824, 853, 281, 59, 135, 296, 151, 990, - /* 310 */ 296, 1085, 353, 1098, 1085, 850, 282, 307, 398, 179, - /* 320 */ 1099, 1102, 61, 1099, 1102, 1138, 212, 287, 1113, 198, - /* 330 */ 1134, 102, 1113, 1015, 89, 294, 775, 778, 1199, 294, - /* 340 */ 636, 306, 1017, 219, 258, 296, 58, 119, 1098, 1085, - /* 350 */ 1166, 107, 988, 635, 271, 1197, 83, 61, 1099, 1102, - /* 360 */ 1138, 637, 215, 1007, 198, 1134, 1211, 1113, 377, 317, - /* 370 */ 89, 1060, 376, 316, 294, 1172, 108, 1098, 1017, 377, - /* 380 */ 296, 862, 1059, 376, 1085, 285, 221, 783, 218, 217, - /* 390 */ 122, 355, 61, 1099, 1102, 1138, 1113, 378, 318, 198, - /* 400 */ 1134, 1211, 1152, 294, 1006, 946, 30, 28, 378, 296, - /* 410 */ 1195, 784, 317, 1085, 205, 289, 316, 315, 314, 1149, - /* 420 */ 1152, 61, 1099, 1102, 1138, 1152, 353, 774, 198, 1134, - /* 430 */ 1211, 308, 1098, 772, 928, 30, 28, 1148, 386, 1156, - /* 440 */ 1085, 318, 1147, 205, 12, 255, 927, 1015, 353, 926, - /* 450 */ 353, 1113, 925, 152, 1098, 216, 774, 320, 294, 87, - /* 460 */ 315, 314, 772, 57, 296, 773, 278, 1, 1085, 1015, - /* 470 */ 1085, 1015, 51, 1113, 278, 53, 62, 1099, 1102, 1138, - /* 480 */ 294, 290, 1085, 1137, 1134, 1085, 296, 82, 1085, 1008, - /* 490 */ 1085, 918, 278, 398, 773, 82, 7, 313, 62, 1099, - /* 500 */ 1102, 1138, 27, 26, 25, 292, 1134, 80, 1004, 117, - /* 510 */ 293, 775, 778, 82, 101, 80, 876, 104, 1145, 1146, - /* 520 */ 248, 1150, 398, 116, 20, 105, 1145, 1146, 282, 1150, - /* 530 */ 65, 1000, 284, 80, 31, 29, 27, 26, 25, 1002, - /* 540 */ 775, 778, 924, 133, 1145, 277, 266, 276, 923, 43, - /* 550 */ 1199, 998, 114, 30, 28, 295, 1098, 108, 30, 28, - /* 560 */ 231, 205, 922, 107, 9, 8, 205, 1197, 30, 28, - /* 570 */ 981, 264, 273, 268, 774, 1113, 205, 1098, 1085, 774, - /* 580 */ 772, 810, 294, 161, 1085, 772, 159, 113, 296, 774, - /* 590 */ 921, 111, 1085, 137, 22, 772, 1113, 920, 1085, 919, - /* 600 */ 96, 1099, 1102, 294, 31, 29, 27, 26, 25, 296, - /* 610 */ 1054, 127, 773, 1085, 7, 163, 204, 773, 162, 7, - /* 620 */ 1092, 185, 1099, 1102, 781, 125, 1085, 773, 825, 1, - /* 630 */ 911, 912, 238, 1085, 1090, 1085, 792, 283, 1212, 764, - /* 640 */ 398, 130, 32, 1098, 237, 398, 249, 145, 279, 236, - /* 650 */ 32, 235, 302, 32, 150, 398, 1168, 706, 775, 778, - /* 660 */ 941, 143, 1113, 775, 778, 1098, 84, 1114, 85, 294, - /* 670 */ 232, 87, 397, 775, 778, 296, 2, 139, 781, 1085, - /* 680 */ 234, 233, 701, 227, 1113, 395, 1098, 62, 1099, 1102, - /* 690 */ 1138, 294, 939, 388, 738, 1135, 65, 296, 789, 744, - /* 700 */ 743, 1085, 88, 165, 260, 1113, 164, 1098, 85, 185, - /* 710 */ 1099, 1102, 294, 86, 87, 734, 85, 239, 296, 110, - /* 720 */ 228, 782, 1085, 1098, 167, 391, 1113, 166, 176, 357, - /* 730 */ 184, 1099, 1102, 294, 240, 788, 241, 41, 1098, 296, - /* 740 */ 244, 174, 1113, 1085, 115, 175, 95, 787, 251, 294, - /* 750 */ 256, 96, 1099, 1102, 254, 296, 118, 1113, 109, 1085, - /* 760 */ 1098, 274, 202, 786, 294, 257, 1179, 185, 1099, 1102, - /* 770 */ 296, 265, 1169, 300, 1085, 778, 1098, 206, 262, 1113, - /* 780 */ 197, 1098, 185, 1099, 1102, 123, 294, 126, 1178, 1213, - /* 790 */ 1159, 5, 296, 261, 99, 1113, 1085, 275, 4, 131, - /* 800 */ 1113, 850, 294, 129, 183, 1099, 1102, 294, 296, 1098, - /* 810 */ 81, 785, 1085, 296, 1153, 33, 132, 1085, 199, 291, - /* 820 */ 186, 1099, 1102, 1214, 1196, 177, 1099, 1102, 1113, 138, - /* 830 */ 288, 17, 1120, 1098, 1069, 294, 298, 299, 1098, 1068, - /* 840 */ 303, 296, 207, 147, 108, 1085, 52, 304, 305, 170, - /* 850 */ 50, 350, 1113, 187, 1099, 1102, 172, 1113, 390, 294, - /* 860 */ 153, 1098, 310, 1016, 294, 296, 225, 354, 1005, 1085, - /* 870 */ 296, 955, 158, 399, 1085, 1079, 1098, 178, 1099, 1102, - /* 880 */ 1113, 1001, 188, 1099, 1102, 160, 169, 294, 90, 91, - /* 890 */ 1003, 393, 67, 296, 999, 1113, 387, 1085, 92, 93, - /* 900 */ 168, 180, 294, 173, 954, 1110, 1099, 1102, 296, 181, - /* 910 */ 1078, 1077, 1085, 1098, 229, 230, 1098, 1076, 994, 993, - /* 920 */ 1109, 1099, 1102, 385, 953, 380, 38, 950, 384, 37, - /* 930 */ 938, 383, 1113, 381, 933, 1113, 382, 1075, 1066, 294, - /* 940 */ 992, 112, 294, 650, 952, 296, 1098, 949, 296, 1085, - /* 950 */ 246, 245, 1085, 247, 937, 936, 932, 1108, 1099, 1102, - /* 960 */ 193, 1099, 1102, 1074, 1073, 1113, 36, 1065, 1098, 120, - /* 970 */ 121, 44, 294, 3, 32, 14, 124, 39, 296, 875, - /* 980 */ 98, 128, 1085, 270, 1098, 269, 1090, 1113, 869, 1098, - /* 990 */ 192, 1099, 1102, 45, 294, 868, 46, 15, 34, 11, - /* 1000 */ 296, 47, 847, 1113, 1085, 897, 846, 902, 1113, 134, - /* 1010 */ 294, 896, 194, 1099, 1102, 294, 296, 879, 200, 19, - /* 1020 */ 1085, 296, 901, 35, 16, 1085, 106, 900, 191, 1099, - /* 1030 */ 1102, 201, 8, 182, 1099, 1102, 811, 141, 13, 263, - /* 1040 */ 877, 878, 880, 881, 793, 142, 18, 1064, 873, 144, - /* 1050 */ 146, 48, 148, 149, 301, 49, 712, 40, 311, 54, - /* 1060 */ 53, 742, 55, 56, 741, 740, 309, 648, 319, 671, - /* 1070 */ 670, 948, 669, 668, 667, 666, 662, 665, 664, 663, - /* 1080 */ 661, 660, 935, 659, 658, 657, 934, 656, 655, 654, - /* 1090 */ 653, 340, 341, 344, 345, 929, 348, 342, 349, 996, - /* 1100 */ 1089, 156, 157, 66, 356, 735, 220, 360, 363, 366, - /* 1110 */ 727, 726, 369, 725, 749, 748, 724, 747, 995, 679, - /* 1120 */ 678, 947, 677, 222, 676, 942, 675, 674, 940, 223, - /* 1130 */ 358, 389, 732, 361, 224, 729, 723, 364, 931, 367, - /* 1140 */ 394, 392, 930, 396, 776, 915, 721, 370, 915, 63, + /* 0 */ 996, 347, 347, 24, 162, 334, 253, 1057, 227, 1049, + /* 10 */ 108, 1115, 1158, 31, 29, 27, 26, 25, 951, 331, + /* 20 */ 347, 1098, 1060, 1060, 103, 64, 962, 31, 29, 27, + /* 30 */ 26, 25, 263, 233, 1051, 973, 1106, 1108, 304, 76, + /* 40 */ 346, 1060, 75, 74, 73, 72, 71, 70, 69, 68, + /* 50 */ 67, 201, 398, 397, 396, 395, 394, 393, 392, 391, + /* 60 */ 390, 389, 388, 387, 386, 385, 384, 383, 382, 381, + /* 70 */ 380, 1130, 1130, 30, 28, 829, 31, 29, 27, 26, + /* 80 */ 25, 224, 346, 808, 76, 852, 42, 75, 74, 73, + /* 90 */ 72, 71, 70, 69, 68, 67, 275, 102, 270, 42, + /* 100 */ 806, 274, 1244, 1056, 273, 1063, 271, 1105, 88, 272, + /* 110 */ 289, 12, 950, 214, 201, 1243, 1055, 815, 1103, 1242, + /* 120 */ 23, 222, 346, 847, 848, 849, 850, 851, 853, 855, + /* 130 */ 856, 857, 807, 254, 1, 10, 86, 85, 84, 83, + /* 140 */ 82, 81, 80, 79, 78, 1132, 290, 303, 852, 747, + /* 150 */ 369, 368, 367, 751, 366, 753, 754, 365, 756, 362, + /* 160 */ 410, 762, 359, 764, 765, 356, 353, 287, 1244, 215, + /* 170 */ 942, 943, 817, 310, 305, 10, 913, 1143, 809, 812, + /* 180 */ 285, 116, 1130, 23, 222, 1242, 847, 848, 849, 850, + /* 190 */ 851, 853, 855, 856, 857, 117, 117, 1158, 300, 911, + /* 200 */ 912, 914, 915, 1132, 331, 31, 29, 27, 26, 25, + /* 210 */ 333, 347, 347, 888, 1130, 1143, 344, 345, 815, 319, + /* 220 */ 105, 1025, 60, 1144, 1147, 1183, 948, 230, 249, 200, + /* 230 */ 1179, 117, 1060, 1060, 347, 1158, 972, 292, 248, 64, + /* 240 */ 1130, 1244, 318, 247, 315, 246, 269, 309, 333, 379, + /* 250 */ 1158, 96, 1130, 1197, 116, 1060, 180, 331, 1242, 1090, + /* 260 */ 61, 1144, 1147, 1183, 243, 91, 1105, 217, 1179, 111, + /* 270 */ 1194, 237, 229, 1130, 245, 244, 308, 1103, 1143, 406, + /* 280 */ 405, 158, 30, 28, 889, 89, 347, 296, 1210, 819, + /* 290 */ 224, 175, 808, 1244, 317, 112, 1190, 1191, 1158, 1195, + /* 300 */ 228, 315, 27, 26, 25, 318, 116, 1060, 102, 806, + /* 310 */ 1242, 333, 51, 1143, 239, 1130, 1062, 58, 1202, 884, + /* 320 */ 12, 818, 91, 61, 1144, 1147, 1183, 92, 1036, 1053, + /* 330 */ 217, 1179, 111, 1158, 1052, 31, 29, 27, 26, 25, + /* 340 */ 331, 807, 89, 1, 887, 267, 333, 232, 1143, 266, + /* 350 */ 1130, 1211, 113, 1190, 1191, 102, 1195, 910, 61, 1144, + /* 360 */ 1147, 1183, 235, 1062, 117, 217, 1179, 1256, 1158, 410, + /* 370 */ 102, 77, 372, 971, 268, 331, 1217, 254, 1062, 1143, + /* 380 */ 1105, 333, 30, 28, 157, 1130, 234, 809, 812, 1035, + /* 390 */ 224, 1103, 808, 61, 1144, 1147, 1183, 829, 347, 1158, + /* 400 */ 217, 1179, 1256, 236, 9, 8, 331, 30, 28, 806, + /* 410 */ 1130, 1240, 333, 30, 28, 224, 1130, 808, 1143, 1060, + /* 420 */ 12, 224, 334, 808, 61, 1144, 1147, 1183, 1116, 1197, + /* 430 */ 808, 217, 1179, 1256, 806, 669, 970, 670, 1158, 669, + /* 440 */ 806, 807, 1201, 1, 1045, 331, 1193, 806, 1047, 376, + /* 450 */ 1105, 333, 261, 375, 969, 1130, 1143, 1034, 671, 21, + /* 460 */ 319, 1107, 322, 190, 1144, 1147, 807, 854, 7, 410, + /* 470 */ 858, 149, 807, 1130, 7, 1105, 1158, 865, 377, 807, + /* 480 */ 57, 6, 1244, 331, 968, 147, 1104, 809, 812, 333, + /* 490 */ 1143, 1130, 53, 1130, 410, 116, 967, 374, 373, 1242, + /* 500 */ 410, 62, 1144, 1147, 1183, 820, 379, 410, 1182, 1179, + /* 510 */ 1158, 315, 809, 812, 30, 28, 332, 331, 809, 812, + /* 520 */ 966, 1130, 224, 333, 808, 809, 812, 1130, 896, 117, + /* 530 */ 965, 964, 91, 1130, 817, 62, 1144, 1147, 1183, 1133, + /* 540 */ 961, 806, 329, 1179, 960, 30, 28, 319, 945, 946, + /* 550 */ 959, 1143, 89, 224, 958, 808, 957, 1130, 131, 9, + /* 560 */ 8, 129, 155, 1190, 314, 413, 313, 1130, 1130, 1244, + /* 570 */ 884, 1158, 806, 807, 956, 7, 1130, 1130, 331, 178, + /* 580 */ 1043, 1130, 116, 87, 333, 955, 1242, 1130, 1130, 402, + /* 590 */ 1143, 1130, 177, 1130, 954, 323, 106, 1144, 1147, 330, + /* 600 */ 144, 410, 953, 126, 807, 326, 1, 110, 1197, 321, + /* 610 */ 1158, 1130, 371, 259, 963, 242, 125, 331, 59, 809, + /* 620 */ 812, 173, 1130, 333, 1026, 1192, 133, 1130, 1143, 132, + /* 630 */ 159, 1130, 410, 320, 1257, 62, 1144, 1147, 1183, 1130, + /* 640 */ 991, 135, 43, 1180, 134, 123, 137, 301, 1158, 136, + /* 650 */ 809, 812, 1143, 859, 343, 331, 986, 295, 152, 324, + /* 660 */ 141, 333, 276, 1143, 185, 1130, 984, 32, 223, 187, + /* 670 */ 844, 327, 1158, 196, 1144, 1147, 1099, 826, 278, 331, + /* 680 */ 122, 186, 104, 1158, 120, 333, 1143, 260, 281, 1130, + /* 690 */ 331, 32, 297, 1137, 118, 1213, 333, 196, 1144, 1147, + /* 700 */ 1130, 1143, 316, 798, 167, 1159, 1158, 1135, 195, 1144, + /* 710 */ 1147, 1033, 339, 331, 161, 172, 1143, 32, 165, 333, + /* 720 */ 2, 1158, 250, 1130, 238, 815, 93, 823, 331, 94, + /* 730 */ 119, 106, 1144, 1147, 333, 816, 1158, 1143, 1130, 311, + /* 740 */ 251, 221, 252, 331, 740, 735, 196, 1144, 1147, 333, + /* 750 */ 822, 41, 1143, 1130, 255, 124, 225, 1158, 96, 77, + /* 760 */ 821, 196, 1144, 1147, 331, 262, 264, 768, 1143, 1258, + /* 770 */ 333, 376, 1158, 772, 1130, 375, 778, 1050, 777, 331, + /* 780 */ 117, 351, 194, 1144, 1147, 333, 66, 94, 1158, 1130, + /* 790 */ 95, 1143, 96, 128, 97, 331, 1143, 197, 1144, 1147, + /* 800 */ 377, 333, 1046, 291, 130, 1130, 98, 1143, 94, 99, + /* 810 */ 1048, 1158, 1143, 188, 1144, 1147, 1158, 1044, 331, 374, + /* 820 */ 373, 140, 100, 331, 333, 101, 213, 1158, 1130, 333, + /* 830 */ 820, 1214, 1158, 1130, 331, 293, 198, 1144, 1147, 331, + /* 840 */ 333, 189, 1144, 1147, 1130, 333, 1224, 1143, 294, 1130, + /* 850 */ 1143, 302, 199, 1144, 1147, 337, 145, 1155, 1144, 1147, + /* 860 */ 812, 148, 299, 216, 298, 5, 1204, 1158, 1223, 312, + /* 870 */ 1158, 4, 884, 90, 331, 819, 151, 331, 109, 1198, + /* 880 */ 333, 33, 153, 333, 1130, 1143, 154, 1130, 218, 328, + /* 890 */ 17, 1241, 1154, 1144, 1147, 1153, 1144, 1147, 1259, 325, + /* 900 */ 1143, 160, 1165, 340, 1114, 1158, 335, 169, 336, 50, + /* 910 */ 341, 1113, 331, 226, 1061, 342, 1143, 179, 333, 52, + /* 920 */ 1158, 1143, 1130, 315, 181, 176, 409, 331, 191, 349, + /* 930 */ 204, 1144, 1147, 333, 183, 184, 1158, 1130, 1124, 192, + /* 940 */ 999, 1158, 1123, 331, 91, 203, 1144, 1147, 331, 333, + /* 950 */ 1122, 240, 1143, 1130, 333, 241, 1121, 208, 1130, 1039, + /* 960 */ 1038, 205, 1144, 1147, 89, 998, 202, 1144, 1147, 1000, + /* 970 */ 995, 983, 1158, 121, 114, 1190, 1191, 280, 1195, 331, + /* 980 */ 978, 1120, 267, 1111, 1037, 333, 266, 684, 997, 1130, + /* 990 */ 994, 256, 288, 258, 257, 982, 981, 193, 1144, 1147, + /* 1000 */ 209, 977, 207, 206, 1041, 265, 139, 65, 127, 781, + /* 1010 */ 283, 268, 1040, 783, 782, 277, 713, 712, 711, 138, + /* 1020 */ 992, 275, 210, 270, 710, 709, 274, 987, 708, 273, + /* 1030 */ 211, 271, 279, 985, 272, 212, 282, 976, 284, 975, + /* 1040 */ 286, 63, 1119, 1118, 1110, 38, 36, 142, 37, 44, + /* 1050 */ 3, 20, 32, 143, 14, 39, 146, 15, 306, 34, + /* 1060 */ 307, 31, 29, 27, 26, 25, 22, 909, 903, 47, + /* 1070 */ 11, 107, 150, 931, 930, 45, 31, 29, 27, 26, + /* 1080 */ 25, 902, 46, 8, 881, 880, 219, 935, 1109, 934, + /* 1090 */ 220, 993, 1135, 980, 19, 949, 936, 170, 827, 164, + /* 1100 */ 350, 156, 13, 35, 115, 18, 231, 354, 357, 360, + /* 1110 */ 907, 16, 845, 163, 166, 363, 53, 746, 168, 48, + /* 1120 */ 774, 704, 776, 775, 348, 49, 400, 1134, 769, 40, + /* 1130 */ 352, 399, 766, 355, 401, 378, 763, 757, 682, 358, + /* 1140 */ 171, 338, 174, 703, 361, 702, 755, 364, 701, 700, + /* 1150 */ 699, 698, 54, 55, 697, 56, 696, 705, 695, 694, + /* 1160 */ 761, 693, 692, 691, 690, 689, 403, 370, 688, 687, + /* 1170 */ 404, 979, 974, 407, 760, 408, 759, 810, 758, 182, + /* 1180 */ 411, 412, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 0, 163, 163, 170, 195, 160, 226, 198, 211, 212, - /* 10 */ 201, 183, 179, 12, 13, 14, 15, 16, 0, 239, - /* 20 */ 187, 161, 162, 243, 186, 186, 182, 12, 13, 14, - /* 30 */ 15, 16, 191, 20, 190, 194, 195, 199, 199, 21, - /* 40 */ 22, 23, 24, 25, 26, 27, 28, 29, 30, 204, - /* 50 */ 0, 50, 52, 53, 54, 55, 56, 57, 58, 59, + /* 0 */ 0, 169, 169, 212, 213, 196, 174, 174, 199, 184, + /* 10 */ 182, 202, 183, 12, 13, 14, 15, 16, 0, 190, + /* 20 */ 169, 193, 190, 190, 162, 174, 164, 12, 13, 14, + /* 30 */ 15, 16, 181, 192, 163, 163, 195, 196, 209, 21, + /* 40 */ 20, 190, 24, 25, 26, 27, 28, 29, 30, 31, + /* 50 */ 32, 50, 52, 53, 54, 55, 56, 57, 58, 59, /* 60 */ 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, - /* 70 */ 70, 226, 181, 12, 13, 74, 12, 13, 14, 15, - /* 80 */ 16, 20, 20, 192, 239, 84, 73, 182, 243, 195, - /* 90 */ 20, 168, 168, 188, 33, 201, 173, 0, 193, 49, - /* 100 */ 39, 21, 22, 23, 24, 25, 26, 27, 28, 29, - /* 110 */ 30, 50, 189, 189, 50, 12, 13, 14, 15, 16, - /* 120 */ 119, 120, 49, 122, 123, 124, 125, 126, 127, 128, - /* 130 */ 129, 130, 71, 209, 73, 33, 12, 13, 14, 15, - /* 140 */ 16, 39, 218, 219, 220, 221, 49, 223, 84, 90, + /* 70 */ 70, 200, 200, 12, 13, 74, 12, 13, 14, 15, + /* 80 */ 16, 20, 20, 22, 21, 84, 171, 24, 25, 26, + /* 90 */ 27, 28, 29, 30, 31, 32, 52, 183, 54, 171, + /* 100 */ 39, 57, 227, 188, 60, 191, 62, 183, 180, 65, + /* 110 */ 169, 50, 0, 189, 50, 240, 188, 20, 194, 244, + /* 120 */ 119, 120, 20, 122, 123, 124, 125, 126, 127, 128, + /* 130 */ 129, 130, 71, 49, 73, 73, 24, 25, 26, 27, + /* 140 */ 28, 29, 30, 31, 32, 163, 205, 113, 84, 90, /* 150 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, - /* 160 */ 99, 102, 103, 104, 105, 106, 107, 171, 172, 182, - /* 170 */ 155, 156, 4, 71, 20, 188, 20, 163, 117, 118, - /* 180 */ 193, 1, 2, 119, 120, 20, 122, 123, 124, 125, - /* 190 */ 126, 127, 128, 129, 130, 134, 182, 52, 74, 54, - /* 200 */ 174, 99, 57, 189, 134, 60, 182, 62, 182, 195, - /* 210 */ 65, 20, 188, 199, 168, 163, 190, 193, 204, 117, - /* 220 */ 118, 207, 208, 209, 210, 168, 44, 73, 214, 215, - /* 230 */ 173, 12, 13, 14, 182, 163, 33, 180, 182, 20, - /* 240 */ 226, 189, 39, 168, 165, 166, 189, 195, 173, 193, - /* 250 */ 204, 199, 33, 239, 74, 180, 170, 243, 39, 207, - /* 260 */ 208, 209, 210, 88, 189, 32, 214, 215, 216, 50, - /* 270 */ 37, 199, 226, 187, 182, 163, 43, 168, 163, 46, - /* 280 */ 228, 189, 173, 132, 133, 239, 234, 235, 134, 243, - /* 290 */ 71, 119, 73, 175, 182, 20, 178, 182, 189, 127, - /* 300 */ 208, 189, 130, 135, 189, 72, 115, 195, 75, 0, - /* 310 */ 195, 199, 168, 163, 199, 133, 204, 173, 99, 207, - /* 320 */ 208, 209, 207, 208, 209, 210, 174, 152, 182, 214, - /* 330 */ 215, 216, 182, 189, 182, 189, 117, 118, 226, 189, - /* 340 */ 20, 108, 190, 35, 111, 195, 167, 114, 163, 199, - /* 350 */ 235, 239, 0, 33, 208, 243, 177, 207, 208, 209, - /* 360 */ 210, 41, 174, 184, 214, 215, 216, 182, 60, 60, - /* 370 */ 182, 182, 64, 64, 189, 225, 134, 163, 190, 60, - /* 380 */ 195, 14, 193, 64, 199, 3, 78, 20, 80, 81, - /* 390 */ 115, 83, 207, 208, 209, 210, 182, 89, 89, 214, - /* 400 */ 215, 216, 205, 189, 163, 0, 12, 13, 89, 195, - /* 410 */ 225, 20, 60, 199, 20, 88, 64, 108, 109, 222, - /* 420 */ 205, 207, 208, 209, 210, 205, 168, 33, 214, 215, - /* 430 */ 216, 173, 163, 39, 163, 12, 13, 222, 33, 225, - /* 440 */ 199, 89, 222, 20, 50, 74, 163, 189, 168, 163, - /* 450 */ 168, 182, 163, 173, 163, 173, 33, 49, 189, 88, - /* 460 */ 108, 109, 39, 73, 195, 71, 168, 73, 199, 189, - /* 470 */ 199, 189, 167, 182, 168, 85, 207, 208, 209, 210, - /* 480 */ 189, 154, 199, 214, 215, 199, 195, 189, 199, 184, - /* 490 */ 199, 162, 168, 99, 71, 189, 73, 86, 207, 208, - /* 500 */ 209, 210, 14, 15, 16, 214, 215, 209, 183, 32, - /* 510 */ 50, 117, 118, 189, 37, 209, 74, 219, 220, 221, - /* 520 */ 43, 223, 99, 46, 2, 219, 220, 221, 204, 223, - /* 530 */ 88, 183, 150, 209, 12, 13, 14, 15, 16, 183, - /* 540 */ 117, 118, 163, 219, 220, 221, 113, 223, 163, 72, - /* 550 */ 226, 183, 75, 12, 13, 14, 163, 134, 12, 13, - /* 560 */ 168, 20, 163, 239, 1, 2, 20, 243, 12, 13, - /* 570 */ 172, 237, 139, 140, 33, 182, 20, 163, 199, 33, - /* 580 */ 39, 121, 189, 79, 199, 39, 82, 110, 195, 33, - /* 590 */ 163, 114, 199, 246, 2, 39, 182, 163, 199, 163, - /* 600 */ 207, 208, 209, 189, 12, 13, 14, 15, 16, 195, - /* 610 */ 192, 74, 71, 199, 73, 79, 202, 71, 82, 73, - /* 620 */ 73, 207, 208, 209, 20, 88, 199, 71, 74, 73, - /* 630 */ 158, 159, 28, 199, 87, 199, 74, 244, 245, 74, - /* 640 */ 99, 231, 88, 163, 40, 99, 165, 74, 224, 45, - /* 650 */ 88, 47, 74, 88, 74, 99, 206, 74, 117, 118, - /* 660 */ 0, 88, 182, 117, 118, 163, 88, 182, 88, 189, - /* 670 */ 66, 88, 21, 117, 118, 195, 227, 240, 20, 199, - /* 680 */ 76, 77, 74, 168, 182, 34, 163, 207, 208, 209, - /* 690 */ 210, 189, 0, 33, 74, 215, 88, 195, 20, 74, - /* 700 */ 74, 199, 74, 79, 202, 182, 82, 163, 88, 207, - /* 710 */ 208, 209, 189, 88, 88, 74, 88, 203, 195, 170, - /* 720 */ 116, 20, 199, 163, 79, 33, 182, 82, 18, 88, - /* 730 */ 207, 208, 209, 189, 189, 20, 196, 170, 163, 195, - /* 740 */ 168, 31, 182, 199, 170, 35, 36, 20, 164, 189, - /* 750 */ 189, 207, 208, 209, 203, 195, 167, 182, 48, 199, - /* 760 */ 163, 238, 202, 20, 189, 196, 236, 207, 208, 209, - /* 770 */ 195, 142, 206, 141, 199, 118, 163, 202, 199, 182, - /* 780 */ 199, 163, 207, 208, 209, 200, 189, 200, 236, 245, - /* 790 */ 233, 149, 195, 137, 230, 182, 199, 148, 136, 229, - /* 800 */ 182, 133, 189, 232, 207, 208, 209, 189, 195, 163, - /* 810 */ 189, 20, 199, 195, 205, 131, 217, 199, 157, 153, - /* 820 */ 207, 208, 209, 247, 242, 207, 208, 209, 182, 241, - /* 830 */ 151, 73, 213, 163, 200, 189, 199, 199, 163, 200, - /* 840 */ 112, 195, 199, 189, 134, 199, 73, 197, 196, 178, - /* 850 */ 167, 164, 182, 207, 208, 209, 168, 182, 4, 189, - /* 860 */ 167, 163, 185, 189, 189, 195, 164, 182, 182, 199, - /* 870 */ 195, 0, 182, 19, 199, 0, 163, 207, 208, 209, - /* 880 */ 182, 182, 207, 208, 209, 182, 32, 189, 182, 182, - /* 890 */ 182, 37, 168, 195, 182, 182, 42, 199, 182, 182, - /* 900 */ 46, 176, 189, 169, 0, 207, 208, 209, 195, 176, - /* 910 */ 0, 0, 199, 163, 66, 87, 163, 0, 0, 0, - /* 920 */ 207, 208, 209, 52, 0, 54, 72, 0, 57, 75, - /* 930 */ 0, 60, 182, 62, 0, 182, 65, 0, 0, 189, - /* 940 */ 0, 44, 189, 51, 0, 195, 163, 0, 195, 199, - /* 950 */ 37, 39, 199, 44, 0, 0, 0, 207, 208, 209, - /* 960 */ 207, 208, 209, 0, 0, 182, 115, 0, 163, 44, - /* 970 */ 110, 73, 189, 88, 88, 138, 74, 88, 195, 74, - /* 980 */ 73, 73, 199, 88, 163, 39, 87, 182, 74, 163, - /* 990 */ 207, 208, 209, 73, 189, 74, 73, 138, 132, 138, - /* 1000 */ 195, 4, 74, 182, 199, 39, 74, 74, 182, 87, - /* 1010 */ 189, 39, 207, 208, 209, 189, 195, 121, 39, 88, - /* 1020 */ 199, 195, 39, 88, 88, 199, 87, 39, 207, 208, - /* 1030 */ 209, 39, 2, 207, 208, 209, 121, 87, 73, 143, - /* 1040 */ 144, 145, 146, 147, 74, 74, 73, 0, 74, 73, - /* 1050 */ 73, 73, 44, 110, 113, 73, 33, 73, 89, 73, - /* 1060 */ 85, 39, 73, 73, 39, 33, 86, 51, 50, 71, - /* 1070 */ 33, 0, 39, 39, 39, 39, 33, 39, 39, 39, - /* 1080 */ 39, 39, 0, 39, 39, 39, 0, 39, 39, 39, - /* 1090 */ 39, 39, 37, 39, 38, 0, 33, 44, 21, 0, - /* 1100 */ 87, 87, 82, 84, 39, 74, 39, 39, 39, 39, - /* 1110 */ 101, 101, 39, 101, 39, 39, 101, 33, 0, 39, - /* 1120 */ 39, 0, 39, 33, 39, 0, 39, 39, 0, 33, - /* 1130 */ 73, 40, 74, 73, 33, 74, 74, 73, 0, 73, - /* 1140 */ 33, 39, 0, 33, 33, 248, 74, 73, 248, 20, - /* 1150 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1160 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1170 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1180 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1190 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1200 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1210 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1220 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1230 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1240 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1250 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1260 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1270 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1280 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1290 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - /* 1300 */ 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, + /* 160 */ 99, 102, 103, 104, 105, 106, 107, 21, 227, 187, + /* 170 */ 155, 156, 20, 139, 140, 73, 121, 163, 117, 118, + /* 180 */ 34, 240, 200, 119, 120, 244, 122, 123, 124, 125, + /* 190 */ 126, 127, 128, 129, 130, 134, 134, 183, 143, 144, + /* 200 */ 145, 146, 147, 163, 190, 12, 13, 14, 15, 16, + /* 210 */ 196, 169, 169, 4, 200, 163, 174, 174, 20, 205, + /* 220 */ 172, 173, 208, 209, 210, 211, 160, 187, 30, 215, + /* 230 */ 216, 134, 190, 190, 169, 183, 163, 74, 40, 174, + /* 240 */ 200, 227, 190, 45, 169, 47, 181, 20, 196, 49, + /* 250 */ 183, 88, 200, 206, 240, 190, 176, 190, 244, 179, + /* 260 */ 208, 209, 210, 211, 66, 190, 183, 215, 216, 217, + /* 270 */ 223, 205, 189, 200, 76, 77, 209, 194, 163, 166, + /* 280 */ 167, 229, 12, 13, 14, 210, 169, 235, 236, 20, + /* 290 */ 20, 174, 22, 227, 219, 220, 221, 222, 183, 224, + /* 300 */ 175, 169, 14, 15, 16, 190, 240, 190, 183, 39, + /* 310 */ 244, 196, 168, 163, 116, 200, 191, 168, 132, 133, + /* 320 */ 50, 20, 190, 208, 209, 210, 211, 178, 0, 185, + /* 330 */ 215, 216, 217, 183, 185, 12, 13, 14, 15, 16, + /* 340 */ 190, 71, 210, 73, 135, 60, 196, 175, 163, 64, + /* 350 */ 200, 236, 220, 221, 222, 183, 224, 74, 208, 209, + /* 360 */ 210, 211, 175, 191, 134, 215, 216, 217, 183, 99, + /* 370 */ 183, 88, 86, 163, 89, 190, 226, 49, 191, 163, + /* 380 */ 183, 196, 12, 13, 115, 200, 189, 117, 118, 0, + /* 390 */ 20, 194, 22, 208, 209, 210, 211, 74, 169, 183, + /* 400 */ 215, 216, 217, 174, 1, 2, 190, 12, 13, 39, + /* 410 */ 200, 226, 196, 12, 13, 20, 200, 22, 163, 190, + /* 420 */ 50, 20, 196, 22, 208, 209, 210, 211, 202, 206, + /* 430 */ 22, 215, 216, 217, 39, 22, 163, 20, 183, 22, + /* 440 */ 39, 71, 226, 73, 184, 190, 223, 39, 184, 60, + /* 450 */ 183, 196, 39, 64, 163, 200, 163, 0, 41, 119, + /* 460 */ 205, 194, 3, 208, 209, 210, 71, 127, 73, 99, + /* 470 */ 130, 74, 71, 200, 73, 183, 183, 74, 89, 71, + /* 480 */ 73, 44, 227, 190, 163, 88, 194, 117, 118, 196, + /* 490 */ 163, 200, 85, 200, 99, 240, 163, 108, 109, 244, + /* 500 */ 99, 208, 209, 210, 211, 20, 49, 99, 215, 216, + /* 510 */ 183, 169, 117, 118, 12, 13, 14, 190, 117, 118, + /* 520 */ 163, 200, 20, 196, 22, 117, 118, 200, 14, 134, + /* 530 */ 163, 163, 190, 200, 20, 208, 209, 210, 211, 163, + /* 540 */ 163, 39, 215, 216, 163, 12, 13, 205, 158, 159, + /* 550 */ 163, 163, 210, 20, 163, 22, 163, 200, 79, 1, + /* 560 */ 2, 82, 220, 221, 222, 19, 224, 200, 200, 227, + /* 570 */ 133, 183, 39, 71, 163, 73, 200, 200, 190, 33, + /* 580 */ 184, 200, 240, 37, 196, 163, 244, 200, 200, 43, + /* 590 */ 163, 200, 46, 200, 163, 88, 208, 209, 210, 50, + /* 600 */ 115, 99, 163, 33, 71, 88, 73, 37, 206, 150, + /* 610 */ 183, 200, 184, 43, 164, 169, 46, 190, 72, 117, + /* 620 */ 118, 75, 200, 196, 173, 223, 79, 200, 163, 82, + /* 630 */ 247, 200, 99, 245, 246, 208, 209, 210, 211, 200, + /* 640 */ 0, 79, 72, 216, 82, 75, 79, 238, 183, 82, + /* 650 */ 117, 118, 163, 74, 108, 190, 0, 111, 232, 152, + /* 660 */ 114, 196, 22, 163, 18, 200, 0, 88, 203, 23, + /* 670 */ 121, 154, 183, 208, 209, 210, 193, 74, 22, 190, + /* 680 */ 110, 35, 36, 183, 114, 196, 163, 166, 22, 200, + /* 690 */ 190, 88, 203, 73, 48, 207, 196, 208, 209, 210, + /* 700 */ 200, 163, 225, 74, 74, 183, 183, 87, 208, 209, + /* 710 */ 210, 0, 74, 190, 241, 74, 163, 88, 88, 196, + /* 720 */ 228, 183, 204, 200, 169, 20, 88, 20, 190, 88, + /* 730 */ 171, 208, 209, 210, 196, 20, 183, 163, 200, 239, + /* 740 */ 190, 203, 197, 190, 74, 74, 208, 209, 210, 196, + /* 750 */ 20, 171, 163, 200, 169, 171, 203, 183, 88, 88, + /* 760 */ 20, 208, 209, 210, 190, 165, 183, 74, 163, 246, + /* 770 */ 196, 60, 183, 74, 200, 64, 74, 183, 74, 190, + /* 780 */ 134, 88, 208, 209, 210, 196, 169, 88, 183, 200, + /* 790 */ 88, 163, 88, 183, 74, 190, 163, 208, 209, 210, + /* 800 */ 89, 196, 183, 204, 183, 200, 183, 163, 88, 183, + /* 810 */ 183, 183, 163, 208, 209, 210, 183, 183, 190, 108, + /* 820 */ 109, 168, 183, 190, 196, 183, 165, 183, 200, 196, + /* 830 */ 20, 207, 183, 200, 190, 190, 208, 209, 210, 190, + /* 840 */ 196, 208, 209, 210, 200, 196, 237, 163, 197, 200, + /* 850 */ 163, 142, 208, 209, 210, 141, 201, 208, 209, 210, + /* 860 */ 118, 201, 200, 200, 137, 149, 234, 183, 237, 148, + /* 870 */ 183, 136, 133, 190, 190, 20, 233, 190, 231, 206, + /* 880 */ 196, 131, 230, 196, 200, 163, 218, 200, 157, 153, + /* 890 */ 73, 243, 208, 209, 210, 208, 209, 210, 248, 151, + /* 900 */ 163, 242, 214, 112, 201, 183, 200, 190, 200, 168, + /* 910 */ 198, 201, 190, 200, 190, 197, 163, 179, 196, 73, + /* 920 */ 183, 163, 200, 169, 169, 168, 165, 190, 177, 186, + /* 930 */ 208, 209, 210, 196, 170, 161, 183, 200, 0, 177, + /* 940 */ 0, 183, 0, 190, 190, 208, 209, 210, 190, 196, + /* 950 */ 0, 66, 163, 200, 196, 87, 0, 35, 200, 0, + /* 960 */ 0, 208, 209, 210, 210, 0, 208, 209, 210, 0, + /* 970 */ 0, 0, 183, 44, 220, 221, 222, 4, 224, 190, + /* 980 */ 0, 0, 60, 0, 0, 196, 64, 51, 0, 200, + /* 990 */ 0, 39, 19, 44, 37, 0, 0, 208, 209, 210, + /* 1000 */ 78, 0, 80, 81, 0, 83, 33, 84, 82, 22, + /* 1010 */ 37, 89, 0, 39, 39, 42, 39, 39, 39, 46, + /* 1020 */ 0, 52, 22, 54, 39, 39, 57, 0, 39, 60, + /* 1030 */ 22, 62, 40, 0, 65, 22, 39, 0, 22, 0, + /* 1040 */ 22, 20, 0, 0, 0, 72, 115, 44, 75, 73, + /* 1050 */ 88, 2, 88, 110, 138, 88, 74, 138, 39, 132, + /* 1060 */ 88, 12, 13, 14, 15, 16, 2, 74, 74, 4, + /* 1070 */ 138, 73, 73, 39, 39, 73, 12, 13, 14, 15, + /* 1080 */ 16, 74, 73, 2, 74, 74, 39, 39, 0, 39, + /* 1090 */ 39, 0, 87, 0, 88, 249, 74, 44, 74, 74, + /* 1100 */ 39, 87, 73, 88, 87, 73, 39, 39, 39, 39, + /* 1110 */ 74, 88, 121, 87, 73, 39, 85, 22, 73, 73, + /* 1120 */ 22, 22, 39, 39, 86, 73, 37, 87, 74, 73, + /* 1130 */ 73, 39, 74, 73, 44, 50, 74, 74, 51, 73, + /* 1140 */ 110, 113, 87, 39, 73, 39, 74, 73, 39, 39, + /* 1150 */ 39, 39, 73, 73, 39, 73, 22, 71, 39, 39, + /* 1160 */ 101, 39, 39, 39, 39, 39, 39, 89, 39, 39, + /* 1170 */ 38, 0, 0, 22, 101, 21, 101, 22, 101, 22, + /* 1180 */ 21, 20, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1190 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1200 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1210 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1220 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1230 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1240 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1250 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1260 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1270 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1280 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1290 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1300 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1310 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1320 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1330 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, + /* 1340 */ 249, 249, }; -#define YY_SHIFT_COUNT (399) +#define YY_SHIFT_COUNT (413) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1142) +#define YY_SHIFT_MAX (1172) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 710, 61, 219, 394, 394, 394, 394, 423, 394, 394, - /* 10 */ 154, 546, 556, 541, 546, 546, 546, 546, 546, 546, - /* 20 */ 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, - /* 30 */ 546, 546, 546, 13, 13, 13, 70, 62, 62, 102, - /* 40 */ 102, 62, 62, 73, 156, 165, 165, 242, 391, 156, - /* 50 */ 62, 62, 156, 62, 156, 391, 156, 156, 62, 408, - /* 60 */ 1, 64, 64, 80, 308, 102, 102, 145, 102, 102, - /* 70 */ 102, 102, 102, 102, 102, 102, 102, 102, 320, 50, - /* 80 */ 191, 191, 191, 97, 391, 156, 156, 156, 411, 59, - /* 90 */ 59, 59, 59, 59, 18, 604, 15, 871, 896, 433, - /* 100 */ 319, 203, 275, 151, 182, 151, 367, 382, 168, 658, - /* 110 */ 678, 73, 701, 715, 73, 658, 73, 727, 678, 408, - /* 120 */ 701, 715, 743, 629, 632, 657, 629, 632, 657, 642, - /* 130 */ 649, 656, 662, 668, 701, 791, 684, 661, 666, 679, - /* 140 */ 758, 156, 632, 657, 657, 632, 657, 728, 701, 715, - /* 150 */ 411, 408, 773, 658, 408, 727, 701, 156, 156, 156, - /* 160 */ 156, 156, 156, 156, 156, 156, 156, 156, 658, 727, - /* 170 */ 1150, 1150, 1150, 0, 233, 477, 854, 522, 592, 124, - /* 180 */ 309, 352, 103, 103, 103, 103, 103, 103, 103, 180, - /* 190 */ 172, 488, 488, 488, 488, 371, 442, 537, 563, 472, - /* 200 */ 175, 327, 554, 460, 562, 547, 565, 573, 578, 580, - /* 210 */ 583, 608, 620, 625, 626, 628, 390, 504, 536, 624, - /* 220 */ 641, 645, 405, 660, 692, 651, 875, 904, 910, 911, - /* 230 */ 848, 828, 917, 918, 919, 924, 927, 930, 934, 937, - /* 240 */ 938, 897, 940, 892, 944, 947, 912, 913, 909, 954, - /* 250 */ 955, 956, 963, 964, 851, 967, 898, 925, 860, 885, - /* 260 */ 886, 837, 902, 889, 905, 907, 908, 914, 920, 921, - /* 270 */ 946, 895, 899, 923, 931, 859, 928, 932, 922, 866, - /* 280 */ 935, 939, 933, 936, 861, 997, 966, 972, 979, 983, - /* 290 */ 988, 992, 1030, 915, 950, 970, 965, 973, 971, 974, - /* 300 */ 976, 977, 941, 978, 1047, 1008, 943, 982, 975, 984, - /* 310 */ 980, 1023, 969, 986, 989, 990, 1022, 1025, 1032, 1016, - /* 320 */ 1018, 998, 1037, 1033, 1034, 1035, 1036, 1038, 1039, 1040, - /* 330 */ 1043, 1041, 1042, 1044, 1045, 1046, 1048, 1049, 1050, 1051, - /* 340 */ 1071, 1052, 1055, 1053, 1082, 1054, 1056, 1086, 1095, 1063, - /* 350 */ 1077, 1099, 1013, 1014, 1019, 1020, 1031, 1065, 1067, 1057, - /* 360 */ 1058, 1068, 1060, 1061, 1069, 1064, 1062, 1070, 1066, 1072, - /* 370 */ 1073, 1074, 1009, 1010, 1012, 1015, 1075, 1076, 1084, 1118, - /* 380 */ 1080, 1081, 1083, 1085, 1087, 1088, 1121, 1090, 1125, 1096, - /* 390 */ 1091, 1128, 1101, 1102, 1138, 1107, 1142, 1110, 1111, 1129, + /* 0 */ 646, 61, 270, 370, 370, 370, 370, 395, 370, 370, + /* 10 */ 62, 401, 533, 502, 401, 401, 401, 401, 401, 401, + /* 20 */ 401, 401, 401, 401, 401, 401, 401, 401, 401, 401, + /* 30 */ 401, 401, 401, 102, 102, 102, 97, 20, 20, 408, + /* 40 */ 408, 20, 20, 84, 152, 227, 227, 230, 301, 152, + /* 50 */ 20, 20, 152, 20, 152, 301, 152, 152, 20, 200, + /* 60 */ 1, 64, 64, 63, 922, 408, 44, 408, 408, 408, + /* 70 */ 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, + /* 80 */ 408, 408, 408, 408, 408, 408, 408, 417, 328, 269, + /* 90 */ 269, 269, 457, 301, 152, 152, 152, 286, 59, 59, + /* 100 */ 59, 59, 59, 18, 198, 969, 15, 55, 285, 34, + /* 110 */ 413, 485, 186, 437, 186, 514, 459, 209, 705, 707, + /* 120 */ 84, 715, 730, 84, 705, 84, 740, 152, 152, 152, + /* 130 */ 152, 152, 152, 152, 152, 152, 152, 152, 705, 740, + /* 140 */ 707, 200, 715, 730, 810, 709, 714, 742, 709, 714, + /* 150 */ 742, 716, 721, 727, 735, 739, 715, 855, 750, 731, + /* 160 */ 736, 748, 817, 152, 714, 742, 742, 714, 742, 791, + /* 170 */ 715, 730, 286, 200, 715, 846, 705, 200, 740, 1182, + /* 180 */ 1182, 1182, 1182, 0, 112, 546, 570, 973, 1049, 1064, + /* 190 */ 323, 389, 711, 193, 193, 193, 193, 193, 193, 193, + /* 200 */ 403, 340, 288, 288, 288, 288, 479, 547, 562, 567, + /* 210 */ 640, 656, 666, 146, 163, 283, 397, 558, 390, 507, + /* 220 */ 517, 579, 549, 603, 620, 629, 630, 638, 641, 670, + /* 230 */ 671, 693, 699, 702, 704, 720, 407, 938, 940, 942, + /* 240 */ 950, 885, 868, 956, 959, 960, 965, 970, 971, 980, + /* 250 */ 981, 983, 929, 984, 936, 988, 990, 952, 957, 949, + /* 260 */ 995, 996, 1001, 1004, 923, 926, 974, 975, 987, 1012, + /* 270 */ 977, 978, 979, 985, 986, 989, 1020, 1000, 1027, 1008, + /* 280 */ 992, 1033, 1013, 997, 1037, 1016, 1039, 1018, 1021, 1042, + /* 290 */ 1043, 931, 1044, 976, 1003, 943, 962, 964, 916, 982, + /* 300 */ 967, 993, 998, 999, 994, 1002, 1007, 1019, 972, 1005, + /* 310 */ 1009, 1006, 919, 1010, 1011, 1014, 927, 1015, 1017, 1022, + /* 320 */ 1023, 932, 1065, 1034, 1035, 1047, 1048, 1050, 1051, 1081, + /* 330 */ 991, 1026, 1024, 1029, 1032, 1025, 1036, 1041, 1045, 1028, + /* 340 */ 1046, 1088, 1053, 1030, 1052, 1031, 1040, 1055, 1056, 1038, + /* 350 */ 1054, 1061, 1067, 1057, 1058, 1068, 1060, 1062, 1069, 1066, + /* 360 */ 1063, 1070, 1071, 1072, 1076, 1074, 1059, 1073, 1075, 1077, + /* 370 */ 1095, 1078, 1079, 1080, 1082, 1083, 1084, 1098, 1087, 1085, + /* 380 */ 1086, 1099, 1104, 1106, 1109, 1110, 1111, 1112, 1115, 1134, + /* 390 */ 1119, 1120, 1122, 1123, 1124, 1125, 1126, 1129, 1130, 1091, + /* 400 */ 1092, 1089, 1090, 1093, 1127, 1132, 1171, 1172, 1151, 1154, + /* 410 */ 1155, 1157, 1159, 1161, }; -#define YY_REDUCE_COUNT (172) -#define YY_REDUCE_MIN (-220) -#define YY_REDUCE_MAX (826) +#define YY_REDUCE_COUNT (182) +#define YY_REDUCE_MIN (-209) +#define YY_REDUCE_MAX (789) static const short yy_reduce_ofst[] = { - /* 0 */ -155, 14, 52, 115, 150, 185, 214, 112, 269, 291, - /* 10 */ 324, 393, 480, 414, 502, 523, 544, 560, 575, 597, - /* 20 */ 613, 618, 646, 670, 675, 698, 713, 750, 753, 783, - /* 30 */ 805, 821, 826, -76, 298, 306, 46, 57, 75, -162, - /* 40 */ -161, -77, 109, -167, -95, 92, 146, -220, -191, 26, - /* 50 */ 144, 258, -13, 280, 152, -159, 24, 188, 282, 179, - /* 60 */ -203, -203, -203, -140, -109, 72, 241, -4, 271, 283, - /* 70 */ 286, 289, 379, 385, 399, 427, 434, 436, 79, 86, - /* 80 */ 197, 215, 220, 305, -106, -156, 56, 189, 118, -172, - /* 90 */ 325, 348, 356, 368, 329, 392, 347, 398, 334, 410, - /* 100 */ 418, 481, 450, 424, 424, 424, 485, 437, 449, 515, - /* 110 */ 514, 549, 545, 540, 567, 572, 574, 584, 551, 589, - /* 120 */ 561, 569, 566, 530, 585, 579, 552, 587, 581, 557, - /* 130 */ 571, 564, 570, 424, 621, 609, 599, 576, 582, 588, - /* 140 */ 619, 485, 634, 637, 638, 639, 643, 650, 654, 652, - /* 150 */ 671, 683, 677, 688, 693, 687, 674, 685, 686, 690, - /* 160 */ 699, 703, 706, 707, 708, 712, 716, 717, 724, 702, - /* 170 */ 725, 733, 734, + /* 0 */ 66, 14, 52, 115, 150, 185, 216, 255, 293, 327, + /* 10 */ 342, 388, 427, 465, 489, 500, 523, 538, 553, 574, + /* 20 */ 589, 605, 628, 633, 644, 649, 684, 687, 722, 737, + /* 30 */ 753, 758, 789, 75, 132, 754, -59, -149, 65, -18, + /* 40 */ 40, -168, -167, -72, -76, -171, 67, -125, -191, 125, + /* 50 */ 42, 43, 83, 117, 172, -159, 197, 187, 229, 149, + /* 60 */ -209, -209, -209, -138, -172, -129, 48, -128, 73, 210, + /* 70 */ 273, 291, 321, 333, 357, 367, 368, 376, 377, 381, + /* 80 */ 387, 391, 393, 411, 422, 431, 439, 113, -85, 47, + /* 90 */ 223, 402, 144, 226, -86, 267, 292, 80, -175, 260, + /* 100 */ 264, 396, 428, 450, 446, 451, 383, 409, 483, 426, + /* 110 */ 521, 488, 477, 477, 477, 522, 473, 492, 555, 518, + /* 120 */ 559, 550, 545, 580, 585, 584, 600, 583, 594, 610, + /* 130 */ 619, 621, 623, 626, 627, 634, 639, 642, 617, 661, + /* 140 */ 599, 653, 645, 651, 624, 609, 655, 662, 631, 660, + /* 150 */ 663, 632, 643, 647, 652, 477, 683, 673, 668, 650, + /* 160 */ 648, 659, 688, 522, 703, 706, 708, 710, 713, 712, + /* 170 */ 717, 718, 738, 741, 724, 743, 755, 757, 761, 751, + /* 180 */ 762, 764, 774, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 10 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 20 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 30 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 40 */ 913, 913, 913, 959, 913, 913, 913, 913, 913, 913, - /* 50 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 957, - /* 60 */ 913, 1140, 913, 913, 913, 913, 913, 913, 913, 913, - /* 70 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 959, - /* 80 */ 1151, 1151, 1151, 957, 913, 913, 913, 913, 1044, 913, - /* 90 */ 913, 913, 913, 913, 913, 913, 1215, 913, 913, 1175, - /* 100 */ 997, 913, 1167, 1143, 1157, 1144, 913, 1200, 1160, 913, - /* 110 */ 913, 959, 913, 913, 959, 913, 959, 913, 913, 957, - /* 120 */ 913, 913, 913, 1182, 1180, 913, 1182, 1180, 913, 1194, - /* 130 */ 1190, 1173, 1171, 1157, 913, 913, 913, 1218, 1206, 1202, - /* 140 */ 913, 913, 1180, 913, 913, 1180, 913, 1067, 913, 913, - /* 150 */ 913, 957, 1013, 913, 957, 913, 913, 913, 913, 913, - /* 160 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 170 */ 1047, 1047, 960, 913, 913, 913, 913, 913, 913, 913, - /* 180 */ 913, 913, 1112, 1193, 1192, 1111, 1117, 1116, 1115, 913, - /* 190 */ 913, 1106, 1107, 1105, 1104, 913, 913, 913, 1141, 913, - /* 200 */ 1203, 1207, 913, 913, 913, 1091, 913, 913, 913, 913, - /* 210 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 220 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 230 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 240 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 250 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 1164, - /* 260 */ 1174, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 270 */ 913, 913, 1091, 913, 1191, 913, 1150, 1146, 913, 913, - /* 280 */ 1142, 913, 913, 1201, 913, 913, 913, 913, 913, 913, - /* 290 */ 913, 913, 1136, 913, 913, 913, 913, 913, 913, 913, - /* 300 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 310 */ 913, 913, 1019, 913, 913, 913, 913, 913, 913, 913, - /* 320 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 330 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 340 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 350 */ 913, 913, 1090, 913, 913, 913, 913, 913, 913, 1041, - /* 360 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 370 */ 913, 913, 1026, 1024, 1023, 1022, 913, 913, 913, 913, - /* 380 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, - /* 390 */ 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, + /* 0 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 10 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 20 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 30 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 40 */ 947, 947, 947, 1004, 947, 947, 947, 947, 947, 947, + /* 50 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 1002, + /* 60 */ 947, 1185, 947, 947, 947, 947, 947, 947, 947, 947, + /* 70 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 80 */ 947, 947, 947, 947, 947, 947, 947, 947, 1004, 1196, + /* 90 */ 1196, 1196, 1002, 947, 947, 947, 947, 1089, 947, 947, + /* 100 */ 947, 947, 947, 947, 947, 947, 1260, 947, 1042, 1220, + /* 110 */ 947, 1212, 1188, 1202, 1189, 947, 1245, 1205, 947, 947, + /* 120 */ 1004, 947, 947, 1004, 947, 1004, 947, 947, 947, 947, + /* 130 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 140 */ 947, 1002, 947, 947, 947, 1227, 1225, 947, 1227, 1225, + /* 150 */ 947, 1239, 1235, 1218, 1216, 1202, 947, 947, 947, 1263, + /* 160 */ 1251, 1247, 947, 947, 1225, 947, 947, 1225, 947, 1112, + /* 170 */ 947, 947, 947, 1002, 947, 1058, 947, 1002, 947, 1092, + /* 180 */ 1092, 1005, 952, 947, 947, 947, 947, 947, 947, 947, + /* 190 */ 947, 947, 947, 1157, 1238, 1237, 1156, 1162, 1161, 1160, + /* 200 */ 947, 947, 1151, 1152, 1150, 1149, 947, 947, 947, 947, + /* 210 */ 947, 947, 947, 947, 947, 947, 947, 1186, 947, 1248, + /* 220 */ 1252, 947, 947, 947, 1136, 947, 947, 947, 947, 947, + /* 230 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 240 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 250 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 260 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 270 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 280 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 290 */ 947, 947, 947, 947, 947, 947, 1209, 1219, 947, 947, + /* 300 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 1136, + /* 310 */ 947, 1236, 947, 1195, 1191, 947, 947, 1187, 947, 947, + /* 320 */ 1246, 947, 947, 947, 947, 947, 947, 947, 947, 1181, + /* 330 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 340 */ 947, 947, 947, 947, 947, 947, 1135, 947, 947, 947, + /* 350 */ 947, 947, 947, 1086, 947, 947, 947, 947, 947, 947, + /* 360 */ 947, 947, 947, 947, 947, 947, 1071, 1069, 1068, 1067, + /* 370 */ 947, 1064, 947, 947, 947, 947, 947, 947, 947, 947, + /* 380 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 390 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 400 */ 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, + /* 410 */ 947, 947, 947, 947, }; /********** End of lemon-generated parsing tables *****************************/ @@ -692,22 +705,22 @@ static const char *const yyTokenName[] = { /* 15 */ "NK_SLASH", /* 16 */ "NK_REM", /* 17 */ "NK_CONCAT", - /* 18 */ "ALTER", + /* 18 */ "CREATE", /* 19 */ "ACCOUNT", /* 20 */ "NK_ID", /* 21 */ "PASS", - /* 22 */ "PPS", - /* 23 */ "TSERIES", - /* 24 */ "STORAGE", - /* 25 */ "STREAMS", - /* 26 */ "QTIME", - /* 27 */ "DBS", - /* 28 */ "USERS", - /* 29 */ "CONNS", - /* 30 */ "STATE", - /* 31 */ "CREATE", - /* 32 */ "USER", - /* 33 */ "NK_STRING", + /* 22 */ "NK_STRING", + /* 23 */ "ALTER", + /* 24 */ "PPS", + /* 25 */ "TSERIES", + /* 26 */ "STORAGE", + /* 27 */ "STREAMS", + /* 28 */ "QTIME", + /* 29 */ "DBS", + /* 30 */ "USERS", + /* 31 */ "CONNS", + /* 32 */ "STATE", + /* 33 */ "USER", /* 34 */ "PRIVILEGE", /* 35 */ "DROP", /* 36 */ "SHOW", @@ -836,92 +849,93 @@ static const char *const yyTokenName[] = { /* 159 */ "LAST", /* 160 */ "cmd", /* 161 */ "account_options", - /* 162 */ "account_option", + /* 162 */ "alter_account_options", /* 163 */ "literal", - /* 164 */ "user_name", - /* 165 */ "dnode_endpoint", - /* 166 */ "dnode_host_name", - /* 167 */ "not_exists_opt", - /* 168 */ "db_name", - /* 169 */ "db_options", - /* 170 */ "exists_opt", - /* 171 */ "alter_db_options", - /* 172 */ "alter_db_option", - /* 173 */ "full_table_name", - /* 174 */ "column_def_list", - /* 175 */ "tags_def_opt", - /* 176 */ "table_options", - /* 177 */ "multi_create_clause", - /* 178 */ "tags_def", - /* 179 */ "multi_drop_clause", - /* 180 */ "alter_table_clause", - /* 181 */ "alter_table_options", - /* 182 */ "column_name", - /* 183 */ "type_name", - /* 184 */ "create_subtable_clause", - /* 185 */ "specific_tags_opt", - /* 186 */ "literal_list", - /* 187 */ "drop_table_clause", - /* 188 */ "col_name_list", - /* 189 */ "table_name", - /* 190 */ "column_def", - /* 191 */ "func_name_list", - /* 192 */ "alter_table_option", - /* 193 */ "col_name", - /* 194 */ "func_name", - /* 195 */ "function_name", - /* 196 */ "index_name", - /* 197 */ "index_options", - /* 198 */ "func_list", - /* 199 */ "duration_literal", - /* 200 */ "sliding_opt", - /* 201 */ "func", - /* 202 */ "expression_list", - /* 203 */ "topic_name", - /* 204 */ "query_expression", - /* 205 */ "table_alias", - /* 206 */ "column_alias", - /* 207 */ "expression", - /* 208 */ "column_reference", - /* 209 */ "subquery", - /* 210 */ "predicate", - /* 211 */ "compare_op", - /* 212 */ "in_op", - /* 213 */ "in_predicate_value", - /* 214 */ "boolean_value_expression", - /* 215 */ "boolean_primary", - /* 216 */ "common_expression", - /* 217 */ "from_clause", - /* 218 */ "table_reference_list", - /* 219 */ "table_reference", - /* 220 */ "table_primary", - /* 221 */ "joined_table", - /* 222 */ "alias_opt", - /* 223 */ "parenthesized_joined_table", - /* 224 */ "join_type", - /* 225 */ "search_condition", - /* 226 */ "query_specification", - /* 227 */ "set_quantifier_opt", - /* 228 */ "select_list", - /* 229 */ "where_clause_opt", - /* 230 */ "partition_by_clause_opt", - /* 231 */ "twindow_clause_opt", - /* 232 */ "group_by_clause_opt", - /* 233 */ "having_clause_opt", - /* 234 */ "select_sublist", - /* 235 */ "select_item", - /* 236 */ "fill_opt", - /* 237 */ "fill_mode", - /* 238 */ "group_by_list", - /* 239 */ "query_expression_body", - /* 240 */ "order_by_clause_opt", - /* 241 */ "slimit_clause_opt", - /* 242 */ "limit_clause_opt", - /* 243 */ "query_primary", - /* 244 */ "sort_specification_list", - /* 245 */ "sort_specification", - /* 246 */ "ordering_specification_opt", - /* 247 */ "null_ordering_opt", + /* 164 */ "alter_account_option", + /* 165 */ "user_name", + /* 166 */ "dnode_endpoint", + /* 167 */ "dnode_host_name", + /* 168 */ "not_exists_opt", + /* 169 */ "db_name", + /* 170 */ "db_options", + /* 171 */ "exists_opt", + /* 172 */ "alter_db_options", + /* 173 */ "alter_db_option", + /* 174 */ "full_table_name", + /* 175 */ "column_def_list", + /* 176 */ "tags_def_opt", + /* 177 */ "table_options", + /* 178 */ "multi_create_clause", + /* 179 */ "tags_def", + /* 180 */ "multi_drop_clause", + /* 181 */ "alter_table_clause", + /* 182 */ "alter_table_options", + /* 183 */ "column_name", + /* 184 */ "type_name", + /* 185 */ "create_subtable_clause", + /* 186 */ "specific_tags_opt", + /* 187 */ "literal_list", + /* 188 */ "drop_table_clause", + /* 189 */ "col_name_list", + /* 190 */ "table_name", + /* 191 */ "column_def", + /* 192 */ "func_name_list", + /* 193 */ "alter_table_option", + /* 194 */ "col_name", + /* 195 */ "func_name", + /* 196 */ "function_name", + /* 197 */ "index_name", + /* 198 */ "index_options", + /* 199 */ "func_list", + /* 200 */ "duration_literal", + /* 201 */ "sliding_opt", + /* 202 */ "func", + /* 203 */ "expression_list", + /* 204 */ "topic_name", + /* 205 */ "query_expression", + /* 206 */ "table_alias", + /* 207 */ "column_alias", + /* 208 */ "expression", + /* 209 */ "column_reference", + /* 210 */ "subquery", + /* 211 */ "predicate", + /* 212 */ "compare_op", + /* 213 */ "in_op", + /* 214 */ "in_predicate_value", + /* 215 */ "boolean_value_expression", + /* 216 */ "boolean_primary", + /* 217 */ "common_expression", + /* 218 */ "from_clause", + /* 219 */ "table_reference_list", + /* 220 */ "table_reference", + /* 221 */ "table_primary", + /* 222 */ "joined_table", + /* 223 */ "alias_opt", + /* 224 */ "parenthesized_joined_table", + /* 225 */ "join_type", + /* 226 */ "search_condition", + /* 227 */ "query_specification", + /* 228 */ "set_quantifier_opt", + /* 229 */ "select_list", + /* 230 */ "where_clause_opt", + /* 231 */ "partition_by_clause_opt", + /* 232 */ "twindow_clause_opt", + /* 233 */ "group_by_clause_opt", + /* 234 */ "having_clause_opt", + /* 235 */ "select_sublist", + /* 236 */ "select_item", + /* 237 */ "fill_opt", + /* 238 */ "fill_mode", + /* 239 */ "group_by_list", + /* 240 */ "query_expression_body", + /* 241 */ "order_by_clause_opt", + /* 242 */ "slimit_clause_opt", + /* 243 */ "limit_clause_opt", + /* 244 */ "query_primary", + /* 245 */ "sort_specification_list", + /* 246 */ "sort_specification", + /* 247 */ "ordering_specification_opt", + /* 248 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -929,311 +943,322 @@ static const char *const yyTokenName[] = { /* For tracing reduce actions, the names of all rules are required. */ static const char *const yyRuleName[] = { - /* 0 */ "cmd ::= ALTER ACCOUNT NK_ID account_options", - /* 1 */ "account_options ::= account_option", - /* 2 */ "account_options ::= account_options account_option", - /* 3 */ "account_option ::= PASS literal", - /* 4 */ "account_option ::= PPS literal", - /* 5 */ "account_option ::= TSERIES literal", - /* 6 */ "account_option ::= STORAGE literal", - /* 7 */ "account_option ::= STREAMS literal", - /* 8 */ "account_option ::= QTIME literal", - /* 9 */ "account_option ::= DBS literal", - /* 10 */ "account_option ::= USERS literal", - /* 11 */ "account_option ::= CONNS literal", - /* 12 */ "account_option ::= STATE literal", - /* 13 */ "cmd ::= CREATE USER user_name PASS NK_STRING", - /* 14 */ "cmd ::= ALTER USER user_name PASS NK_STRING", - /* 15 */ "cmd ::= ALTER USER user_name PRIVILEGE NK_STRING", - /* 16 */ "cmd ::= DROP USER user_name", - /* 17 */ "cmd ::= SHOW USERS", - /* 18 */ "cmd ::= CREATE DNODE dnode_endpoint", - /* 19 */ "cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER", - /* 20 */ "cmd ::= DROP DNODE NK_INTEGER", - /* 21 */ "cmd ::= DROP DNODE dnode_endpoint", - /* 22 */ "cmd ::= SHOW DNODES", - /* 23 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", - /* 24 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", - /* 25 */ "cmd ::= ALTER ALL DNODES NK_STRING", - /* 26 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", - /* 27 */ "dnode_endpoint ::= NK_STRING", - /* 28 */ "dnode_host_name ::= NK_ID", - /* 29 */ "dnode_host_name ::= NK_IPTOKEN", - /* 30 */ "cmd ::= ALTER LOCAL NK_STRING", - /* 31 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", - /* 32 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", - /* 33 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", - /* 34 */ "cmd ::= SHOW QNODES", - /* 35 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", - /* 36 */ "cmd ::= DROP DATABASE exists_opt db_name", - /* 37 */ "cmd ::= SHOW DATABASES", - /* 38 */ "cmd ::= USE db_name", - /* 39 */ "cmd ::= ALTER DATABASE db_name alter_db_options", - /* 40 */ "not_exists_opt ::= IF NOT EXISTS", - /* 41 */ "not_exists_opt ::=", - /* 42 */ "exists_opt ::= IF EXISTS", - /* 43 */ "exists_opt ::=", - /* 44 */ "db_options ::=", - /* 45 */ "db_options ::= db_options BLOCKS NK_INTEGER", - /* 46 */ "db_options ::= db_options CACHE NK_INTEGER", - /* 47 */ "db_options ::= db_options CACHELAST NK_INTEGER", - /* 48 */ "db_options ::= db_options COMP NK_INTEGER", - /* 49 */ "db_options ::= db_options DAYS NK_INTEGER", - /* 50 */ "db_options ::= db_options FSYNC NK_INTEGER", - /* 51 */ "db_options ::= db_options MAXROWS NK_INTEGER", - /* 52 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 53 */ "db_options ::= db_options KEEP NK_INTEGER", - /* 54 */ "db_options ::= db_options PRECISION NK_STRING", - /* 55 */ "db_options ::= db_options QUORUM NK_INTEGER", - /* 56 */ "db_options ::= db_options REPLICA NK_INTEGER", - /* 57 */ "db_options ::= db_options TTL NK_INTEGER", - /* 58 */ "db_options ::= db_options WAL NK_INTEGER", - /* 59 */ "db_options ::= db_options VGROUPS NK_INTEGER", - /* 60 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", - /* 61 */ "db_options ::= db_options STREAM_MODE NK_INTEGER", - /* 62 */ "db_options ::= db_options RETENTIONS NK_STRING", - /* 63 */ "db_options ::= db_options FILE_FACTOR NK_FLOAT", - /* 64 */ "alter_db_options ::= alter_db_option", - /* 65 */ "alter_db_options ::= alter_db_options alter_db_option", - /* 66 */ "alter_db_option ::= BLOCKS NK_INTEGER", - /* 67 */ "alter_db_option ::= FSYNC NK_INTEGER", - /* 68 */ "alter_db_option ::= KEEP NK_INTEGER", - /* 69 */ "alter_db_option ::= WAL NK_INTEGER", - /* 70 */ "alter_db_option ::= QUORUM NK_INTEGER", - /* 71 */ "alter_db_option ::= CACHELAST NK_INTEGER", - /* 72 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 73 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 74 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 75 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 76 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 77 */ "cmd ::= SHOW TABLES", - /* 78 */ "cmd ::= SHOW STABLES", - /* 79 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 80 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 81 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 82 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 83 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 84 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 85 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 86 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 87 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 88 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 89 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 90 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", - /* 91 */ "multi_create_clause ::= create_subtable_clause", - /* 92 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 93 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", - /* 94 */ "multi_drop_clause ::= drop_table_clause", - /* 95 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 96 */ "drop_table_clause ::= exists_opt full_table_name", - /* 97 */ "specific_tags_opt ::=", - /* 98 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", - /* 99 */ "full_table_name ::= table_name", - /* 100 */ "full_table_name ::= db_name NK_DOT table_name", - /* 101 */ "column_def_list ::= column_def", - /* 102 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 103 */ "column_def ::= column_name type_name", - /* 104 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 105 */ "type_name ::= BOOL", - /* 106 */ "type_name ::= TINYINT", - /* 107 */ "type_name ::= SMALLINT", - /* 108 */ "type_name ::= INT", - /* 109 */ "type_name ::= INTEGER", - /* 110 */ "type_name ::= BIGINT", - /* 111 */ "type_name ::= FLOAT", - /* 112 */ "type_name ::= DOUBLE", - /* 113 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 114 */ "type_name ::= TIMESTAMP", - /* 115 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 116 */ "type_name ::= TINYINT UNSIGNED", - /* 117 */ "type_name ::= SMALLINT UNSIGNED", - /* 118 */ "type_name ::= INT UNSIGNED", - /* 119 */ "type_name ::= BIGINT UNSIGNED", - /* 120 */ "type_name ::= JSON", - /* 121 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 122 */ "type_name ::= MEDIUMBLOB", - /* 123 */ "type_name ::= BLOB", - /* 124 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 125 */ "type_name ::= DECIMAL", - /* 126 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 127 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 128 */ "tags_def_opt ::=", - /* 129 */ "tags_def_opt ::= tags_def", - /* 130 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 131 */ "table_options ::=", - /* 132 */ "table_options ::= table_options COMMENT NK_STRING", - /* 133 */ "table_options ::= table_options KEEP NK_INTEGER", - /* 134 */ "table_options ::= table_options TTL NK_INTEGER", - /* 135 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 136 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", - /* 137 */ "alter_table_options ::= alter_table_option", - /* 138 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 139 */ "alter_table_option ::= COMMENT NK_STRING", - /* 140 */ "alter_table_option ::= KEEP NK_INTEGER", - /* 141 */ "alter_table_option ::= TTL NK_INTEGER", - /* 142 */ "col_name_list ::= col_name", - /* 143 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 144 */ "col_name ::= column_name", - /* 145 */ "func_name_list ::= func_name", - /* 146 */ "func_name_list ::= func_name_list NK_COMMA col_name", - /* 147 */ "func_name ::= function_name", - /* 148 */ "cmd ::= CREATE SMA INDEX index_name ON table_name index_options", - /* 149 */ "cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP", - /* 150 */ "cmd ::= DROP INDEX index_name ON table_name", - /* 151 */ "index_options ::=", - /* 152 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 153 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 154 */ "func_list ::= func", - /* 155 */ "func_list ::= func_list NK_COMMA func", - /* 156 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 157 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 158 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", - /* 159 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 160 */ "cmd ::= SHOW VGROUPS", - /* 161 */ "cmd ::= SHOW db_name NK_DOT VGROUPS", - /* 162 */ "cmd ::= SHOW MNODES", - /* 163 */ "cmd ::= query_expression", - /* 164 */ "literal ::= NK_INTEGER", - /* 165 */ "literal ::= NK_FLOAT", - /* 166 */ "literal ::= NK_STRING", - /* 167 */ "literal ::= NK_BOOL", - /* 168 */ "literal ::= TIMESTAMP NK_STRING", - /* 169 */ "literal ::= duration_literal", - /* 170 */ "duration_literal ::= NK_VARIABLE", - /* 171 */ "literal_list ::= literal", - /* 172 */ "literal_list ::= literal_list NK_COMMA literal", - /* 173 */ "db_name ::= NK_ID", - /* 174 */ "table_name ::= NK_ID", - /* 175 */ "column_name ::= NK_ID", - /* 176 */ "function_name ::= NK_ID", - /* 177 */ "table_alias ::= NK_ID", - /* 178 */ "column_alias ::= NK_ID", - /* 179 */ "user_name ::= NK_ID", - /* 180 */ "index_name ::= NK_ID", - /* 181 */ "topic_name ::= NK_ID", - /* 182 */ "expression ::= literal", - /* 183 */ "expression ::= column_reference", - /* 184 */ "expression ::= function_name NK_LP expression_list NK_RP", - /* 185 */ "expression ::= function_name NK_LP NK_STAR NK_RP", - /* 186 */ "expression ::= subquery", - /* 187 */ "expression ::= NK_LP expression NK_RP", - /* 188 */ "expression ::= NK_PLUS expression", - /* 189 */ "expression ::= NK_MINUS expression", - /* 190 */ "expression ::= expression NK_PLUS expression", - /* 191 */ "expression ::= expression NK_MINUS expression", - /* 192 */ "expression ::= expression NK_STAR expression", - /* 193 */ "expression ::= expression NK_SLASH expression", - /* 194 */ "expression ::= expression NK_REM expression", - /* 195 */ "expression_list ::= expression", - /* 196 */ "expression_list ::= expression_list NK_COMMA expression", - /* 197 */ "column_reference ::= column_name", - /* 198 */ "column_reference ::= table_name NK_DOT column_name", - /* 199 */ "predicate ::= expression compare_op expression", - /* 200 */ "predicate ::= expression BETWEEN expression AND expression", - /* 201 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 202 */ "predicate ::= expression IS NULL", - /* 203 */ "predicate ::= expression IS NOT NULL", - /* 204 */ "predicate ::= expression in_op in_predicate_value", - /* 205 */ "compare_op ::= NK_LT", - /* 206 */ "compare_op ::= NK_GT", - /* 207 */ "compare_op ::= NK_LE", - /* 208 */ "compare_op ::= NK_GE", - /* 209 */ "compare_op ::= NK_NE", - /* 210 */ "compare_op ::= NK_EQ", - /* 211 */ "compare_op ::= LIKE", - /* 212 */ "compare_op ::= NOT LIKE", - /* 213 */ "compare_op ::= MATCH", - /* 214 */ "compare_op ::= NMATCH", - /* 215 */ "in_op ::= IN", - /* 216 */ "in_op ::= NOT IN", - /* 217 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 218 */ "boolean_value_expression ::= boolean_primary", - /* 219 */ "boolean_value_expression ::= NOT boolean_primary", - /* 220 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 221 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 222 */ "boolean_primary ::= predicate", - /* 223 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 224 */ "common_expression ::= expression", - /* 225 */ "common_expression ::= boolean_value_expression", - /* 226 */ "from_clause ::= FROM table_reference_list", - /* 227 */ "table_reference_list ::= table_reference", - /* 228 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 229 */ "table_reference ::= table_primary", - /* 230 */ "table_reference ::= joined_table", - /* 231 */ "table_primary ::= table_name alias_opt", - /* 232 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 233 */ "table_primary ::= subquery alias_opt", - /* 234 */ "table_primary ::= parenthesized_joined_table", - /* 235 */ "alias_opt ::=", - /* 236 */ "alias_opt ::= table_alias", - /* 237 */ "alias_opt ::= AS table_alias", - /* 238 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 239 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 240 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 241 */ "join_type ::=", - /* 242 */ "join_type ::= INNER", - /* 243 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 244 */ "set_quantifier_opt ::=", - /* 245 */ "set_quantifier_opt ::= DISTINCT", - /* 246 */ "set_quantifier_opt ::= ALL", - /* 247 */ "select_list ::= NK_STAR", - /* 248 */ "select_list ::= select_sublist", - /* 249 */ "select_sublist ::= select_item", - /* 250 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 251 */ "select_item ::= common_expression", - /* 252 */ "select_item ::= common_expression column_alias", - /* 253 */ "select_item ::= common_expression AS column_alias", - /* 254 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 255 */ "where_clause_opt ::=", - /* 256 */ "where_clause_opt ::= WHERE search_condition", - /* 257 */ "partition_by_clause_opt ::=", - /* 258 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 259 */ "twindow_clause_opt ::=", - /* 260 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP", - /* 261 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", - /* 262 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 263 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 264 */ "sliding_opt ::=", - /* 265 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 266 */ "fill_opt ::=", - /* 267 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 268 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 269 */ "fill_mode ::= NONE", - /* 270 */ "fill_mode ::= PREV", - /* 271 */ "fill_mode ::= NULL", - /* 272 */ "fill_mode ::= LINEAR", - /* 273 */ "fill_mode ::= NEXT", - /* 274 */ "group_by_clause_opt ::=", - /* 275 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 276 */ "group_by_list ::= expression", - /* 277 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 278 */ "having_clause_opt ::=", - /* 279 */ "having_clause_opt ::= HAVING search_condition", - /* 280 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 281 */ "query_expression_body ::= query_primary", - /* 282 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 283 */ "query_primary ::= query_specification", - /* 284 */ "order_by_clause_opt ::=", - /* 285 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 286 */ "slimit_clause_opt ::=", - /* 287 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 288 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 289 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 290 */ "limit_clause_opt ::=", - /* 291 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 292 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 293 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 294 */ "subquery ::= NK_LP query_expression NK_RP", - /* 295 */ "search_condition ::= common_expression", - /* 296 */ "sort_specification_list ::= sort_specification", - /* 297 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 298 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 299 */ "ordering_specification_opt ::=", - /* 300 */ "ordering_specification_opt ::= ASC", - /* 301 */ "ordering_specification_opt ::= DESC", - /* 302 */ "null_ordering_opt ::=", - /* 303 */ "null_ordering_opt ::= NULLS FIRST", - /* 304 */ "null_ordering_opt ::= NULLS LAST", + /* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options", + /* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options", + /* 2 */ "account_options ::=", + /* 3 */ "account_options ::= account_options PPS literal", + /* 4 */ "account_options ::= account_options TSERIES literal", + /* 5 */ "account_options ::= account_options STORAGE literal", + /* 6 */ "account_options ::= account_options STREAMS literal", + /* 7 */ "account_options ::= account_options QTIME literal", + /* 8 */ "account_options ::= account_options DBS literal", + /* 9 */ "account_options ::= account_options USERS literal", + /* 10 */ "account_options ::= account_options CONNS literal", + /* 11 */ "account_options ::= account_options STATE literal", + /* 12 */ "alter_account_options ::= alter_account_option", + /* 13 */ "alter_account_options ::= alter_account_options alter_account_option", + /* 14 */ "alter_account_option ::= PASS literal", + /* 15 */ "alter_account_option ::= PPS literal", + /* 16 */ "alter_account_option ::= TSERIES literal", + /* 17 */ "alter_account_option ::= STORAGE literal", + /* 18 */ "alter_account_option ::= STREAMS literal", + /* 19 */ "alter_account_option ::= QTIME literal", + /* 20 */ "alter_account_option ::= DBS literal", + /* 21 */ "alter_account_option ::= USERS literal", + /* 22 */ "alter_account_option ::= CONNS literal", + /* 23 */ "alter_account_option ::= STATE literal", + /* 24 */ "cmd ::= CREATE USER user_name PASS NK_STRING", + /* 25 */ "cmd ::= ALTER USER user_name PASS NK_STRING", + /* 26 */ "cmd ::= ALTER USER user_name PRIVILEGE NK_STRING", + /* 27 */ "cmd ::= DROP USER user_name", + /* 28 */ "cmd ::= SHOW USERS", + /* 29 */ "cmd ::= CREATE DNODE dnode_endpoint", + /* 30 */ "cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER", + /* 31 */ "cmd ::= DROP DNODE NK_INTEGER", + /* 32 */ "cmd ::= DROP DNODE dnode_endpoint", + /* 33 */ "cmd ::= SHOW DNODES", + /* 34 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", + /* 35 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", + /* 36 */ "cmd ::= ALTER ALL DNODES NK_STRING", + /* 37 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", + /* 38 */ "dnode_endpoint ::= NK_STRING", + /* 39 */ "dnode_host_name ::= NK_ID", + /* 40 */ "dnode_host_name ::= NK_IPTOKEN", + /* 41 */ "cmd ::= ALTER LOCAL NK_STRING", + /* 42 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", + /* 43 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", + /* 44 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", + /* 45 */ "cmd ::= SHOW QNODES", + /* 46 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", + /* 47 */ "cmd ::= DROP DATABASE exists_opt db_name", + /* 48 */ "cmd ::= SHOW DATABASES", + /* 49 */ "cmd ::= USE db_name", + /* 50 */ "cmd ::= ALTER DATABASE db_name alter_db_options", + /* 51 */ "not_exists_opt ::= IF NOT EXISTS", + /* 52 */ "not_exists_opt ::=", + /* 53 */ "exists_opt ::= IF EXISTS", + /* 54 */ "exists_opt ::=", + /* 55 */ "db_options ::=", + /* 56 */ "db_options ::= db_options BLOCKS NK_INTEGER", + /* 57 */ "db_options ::= db_options CACHE NK_INTEGER", + /* 58 */ "db_options ::= db_options CACHELAST NK_INTEGER", + /* 59 */ "db_options ::= db_options COMP NK_INTEGER", + /* 60 */ "db_options ::= db_options DAYS NK_INTEGER", + /* 61 */ "db_options ::= db_options FSYNC NK_INTEGER", + /* 62 */ "db_options ::= db_options MAXROWS NK_INTEGER", + /* 63 */ "db_options ::= db_options MINROWS NK_INTEGER", + /* 64 */ "db_options ::= db_options KEEP NK_INTEGER", + /* 65 */ "db_options ::= db_options PRECISION NK_STRING", + /* 66 */ "db_options ::= db_options QUORUM NK_INTEGER", + /* 67 */ "db_options ::= db_options REPLICA NK_INTEGER", + /* 68 */ "db_options ::= db_options TTL NK_INTEGER", + /* 69 */ "db_options ::= db_options WAL NK_INTEGER", + /* 70 */ "db_options ::= db_options VGROUPS NK_INTEGER", + /* 71 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", + /* 72 */ "db_options ::= db_options STREAM_MODE NK_INTEGER", + /* 73 */ "db_options ::= db_options RETENTIONS NK_STRING", + /* 74 */ "db_options ::= db_options FILE_FACTOR NK_FLOAT", + /* 75 */ "alter_db_options ::= alter_db_option", + /* 76 */ "alter_db_options ::= alter_db_options alter_db_option", + /* 77 */ "alter_db_option ::= BLOCKS NK_INTEGER", + /* 78 */ "alter_db_option ::= FSYNC NK_INTEGER", + /* 79 */ "alter_db_option ::= KEEP NK_INTEGER", + /* 80 */ "alter_db_option ::= WAL NK_INTEGER", + /* 81 */ "alter_db_option ::= QUORUM NK_INTEGER", + /* 82 */ "alter_db_option ::= CACHELAST NK_INTEGER", + /* 83 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 84 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 85 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 86 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 87 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 88 */ "cmd ::= SHOW TABLES", + /* 89 */ "cmd ::= SHOW STABLES", + /* 90 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 91 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 92 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 93 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 94 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 95 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 96 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 97 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 98 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 99 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 100 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 101 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", + /* 102 */ "multi_create_clause ::= create_subtable_clause", + /* 103 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 104 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", + /* 105 */ "multi_drop_clause ::= drop_table_clause", + /* 106 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 107 */ "drop_table_clause ::= exists_opt full_table_name", + /* 108 */ "specific_tags_opt ::=", + /* 109 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 110 */ "full_table_name ::= table_name", + /* 111 */ "full_table_name ::= db_name NK_DOT table_name", + /* 112 */ "column_def_list ::= column_def", + /* 113 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 114 */ "column_def ::= column_name type_name", + /* 115 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 116 */ "type_name ::= BOOL", + /* 117 */ "type_name ::= TINYINT", + /* 118 */ "type_name ::= SMALLINT", + /* 119 */ "type_name ::= INT", + /* 120 */ "type_name ::= INTEGER", + /* 121 */ "type_name ::= BIGINT", + /* 122 */ "type_name ::= FLOAT", + /* 123 */ "type_name ::= DOUBLE", + /* 124 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 125 */ "type_name ::= TIMESTAMP", + /* 126 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 127 */ "type_name ::= TINYINT UNSIGNED", + /* 128 */ "type_name ::= SMALLINT UNSIGNED", + /* 129 */ "type_name ::= INT UNSIGNED", + /* 130 */ "type_name ::= BIGINT UNSIGNED", + /* 131 */ "type_name ::= JSON", + /* 132 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 133 */ "type_name ::= MEDIUMBLOB", + /* 134 */ "type_name ::= BLOB", + /* 135 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 136 */ "type_name ::= DECIMAL", + /* 137 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 138 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 139 */ "tags_def_opt ::=", + /* 140 */ "tags_def_opt ::= tags_def", + /* 141 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 142 */ "table_options ::=", + /* 143 */ "table_options ::= table_options COMMENT NK_STRING", + /* 144 */ "table_options ::= table_options KEEP NK_INTEGER", + /* 145 */ "table_options ::= table_options TTL NK_INTEGER", + /* 146 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 147 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", + /* 148 */ "alter_table_options ::= alter_table_option", + /* 149 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 150 */ "alter_table_option ::= COMMENT NK_STRING", + /* 151 */ "alter_table_option ::= KEEP NK_INTEGER", + /* 152 */ "alter_table_option ::= TTL NK_INTEGER", + /* 153 */ "col_name_list ::= col_name", + /* 154 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 155 */ "col_name ::= column_name", + /* 156 */ "func_name_list ::= func_name", + /* 157 */ "func_name_list ::= func_name_list NK_COMMA col_name", + /* 158 */ "func_name ::= function_name", + /* 159 */ "cmd ::= CREATE SMA INDEX index_name ON table_name index_options", + /* 160 */ "cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP", + /* 161 */ "cmd ::= DROP INDEX index_name ON table_name", + /* 162 */ "index_options ::=", + /* 163 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 164 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 165 */ "func_list ::= func", + /* 166 */ "func_list ::= func_list NK_COMMA func", + /* 167 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 168 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 169 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", + /* 170 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 171 */ "cmd ::= SHOW VGROUPS", + /* 172 */ "cmd ::= SHOW db_name NK_DOT VGROUPS", + /* 173 */ "cmd ::= SHOW MNODES", + /* 174 */ "cmd ::= query_expression", + /* 175 */ "literal ::= NK_INTEGER", + /* 176 */ "literal ::= NK_FLOAT", + /* 177 */ "literal ::= NK_STRING", + /* 178 */ "literal ::= NK_BOOL", + /* 179 */ "literal ::= TIMESTAMP NK_STRING", + /* 180 */ "literal ::= duration_literal", + /* 181 */ "duration_literal ::= NK_VARIABLE", + /* 182 */ "literal_list ::= literal", + /* 183 */ "literal_list ::= literal_list NK_COMMA literal", + /* 184 */ "db_name ::= NK_ID", + /* 185 */ "table_name ::= NK_ID", + /* 186 */ "column_name ::= NK_ID", + /* 187 */ "function_name ::= NK_ID", + /* 188 */ "table_alias ::= NK_ID", + /* 189 */ "column_alias ::= NK_ID", + /* 190 */ "user_name ::= NK_ID", + /* 191 */ "index_name ::= NK_ID", + /* 192 */ "topic_name ::= NK_ID", + /* 193 */ "expression ::= literal", + /* 194 */ "expression ::= column_reference", + /* 195 */ "expression ::= function_name NK_LP expression_list NK_RP", + /* 196 */ "expression ::= function_name NK_LP NK_STAR NK_RP", + /* 197 */ "expression ::= subquery", + /* 198 */ "expression ::= NK_LP expression NK_RP", + /* 199 */ "expression ::= NK_PLUS expression", + /* 200 */ "expression ::= NK_MINUS expression", + /* 201 */ "expression ::= expression NK_PLUS expression", + /* 202 */ "expression ::= expression NK_MINUS expression", + /* 203 */ "expression ::= expression NK_STAR expression", + /* 204 */ "expression ::= expression NK_SLASH expression", + /* 205 */ "expression ::= expression NK_REM expression", + /* 206 */ "expression_list ::= expression", + /* 207 */ "expression_list ::= expression_list NK_COMMA expression", + /* 208 */ "column_reference ::= column_name", + /* 209 */ "column_reference ::= table_name NK_DOT column_name", + /* 210 */ "predicate ::= expression compare_op expression", + /* 211 */ "predicate ::= expression BETWEEN expression AND expression", + /* 212 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 213 */ "predicate ::= expression IS NULL", + /* 214 */ "predicate ::= expression IS NOT NULL", + /* 215 */ "predicate ::= expression in_op in_predicate_value", + /* 216 */ "compare_op ::= NK_LT", + /* 217 */ "compare_op ::= NK_GT", + /* 218 */ "compare_op ::= NK_LE", + /* 219 */ "compare_op ::= NK_GE", + /* 220 */ "compare_op ::= NK_NE", + /* 221 */ "compare_op ::= NK_EQ", + /* 222 */ "compare_op ::= LIKE", + /* 223 */ "compare_op ::= NOT LIKE", + /* 224 */ "compare_op ::= MATCH", + /* 225 */ "compare_op ::= NMATCH", + /* 226 */ "in_op ::= IN", + /* 227 */ "in_op ::= NOT IN", + /* 228 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 229 */ "boolean_value_expression ::= boolean_primary", + /* 230 */ "boolean_value_expression ::= NOT boolean_primary", + /* 231 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 232 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 233 */ "boolean_primary ::= predicate", + /* 234 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 235 */ "common_expression ::= expression", + /* 236 */ "common_expression ::= boolean_value_expression", + /* 237 */ "from_clause ::= FROM table_reference_list", + /* 238 */ "table_reference_list ::= table_reference", + /* 239 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 240 */ "table_reference ::= table_primary", + /* 241 */ "table_reference ::= joined_table", + /* 242 */ "table_primary ::= table_name alias_opt", + /* 243 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 244 */ "table_primary ::= subquery alias_opt", + /* 245 */ "table_primary ::= parenthesized_joined_table", + /* 246 */ "alias_opt ::=", + /* 247 */ "alias_opt ::= table_alias", + /* 248 */ "alias_opt ::= AS table_alias", + /* 249 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 250 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 251 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 252 */ "join_type ::=", + /* 253 */ "join_type ::= INNER", + /* 254 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 255 */ "set_quantifier_opt ::=", + /* 256 */ "set_quantifier_opt ::= DISTINCT", + /* 257 */ "set_quantifier_opt ::= ALL", + /* 258 */ "select_list ::= NK_STAR", + /* 259 */ "select_list ::= select_sublist", + /* 260 */ "select_sublist ::= select_item", + /* 261 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 262 */ "select_item ::= common_expression", + /* 263 */ "select_item ::= common_expression column_alias", + /* 264 */ "select_item ::= common_expression AS column_alias", + /* 265 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 266 */ "where_clause_opt ::=", + /* 267 */ "where_clause_opt ::= WHERE search_condition", + /* 268 */ "partition_by_clause_opt ::=", + /* 269 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 270 */ "twindow_clause_opt ::=", + /* 271 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP", + /* 272 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", + /* 273 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 274 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 275 */ "sliding_opt ::=", + /* 276 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 277 */ "fill_opt ::=", + /* 278 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 279 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 280 */ "fill_mode ::= NONE", + /* 281 */ "fill_mode ::= PREV", + /* 282 */ "fill_mode ::= NULL", + /* 283 */ "fill_mode ::= LINEAR", + /* 284 */ "fill_mode ::= NEXT", + /* 285 */ "group_by_clause_opt ::=", + /* 286 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 287 */ "group_by_list ::= expression", + /* 288 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 289 */ "having_clause_opt ::=", + /* 290 */ "having_clause_opt ::= HAVING search_condition", + /* 291 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 292 */ "query_expression_body ::= query_primary", + /* 293 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 294 */ "query_primary ::= query_specification", + /* 295 */ "order_by_clause_opt ::=", + /* 296 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 297 */ "slimit_clause_opt ::=", + /* 298 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 299 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 300 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 301 */ "limit_clause_opt ::=", + /* 302 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 303 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 304 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 305 */ "subquery ::= NK_LP query_expression NK_RP", + /* 306 */ "search_condition ::= common_expression", + /* 307 */ "sort_specification_list ::= sort_specification", + /* 308 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 309 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 310 */ "ordering_specification_opt ::=", + /* 311 */ "ordering_specification_opt ::= ASC", + /* 312 */ "ordering_specification_opt ::= DESC", + /* 313 */ "null_ordering_opt ::=", + /* 314 */ "null_ordering_opt ::= NULLS FIRST", + /* 315 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -1362,136 +1387,137 @@ static void yy_destructor( /* Default NON-TERMINAL Destructor */ case 160: /* cmd */ case 163: /* literal */ - case 169: /* db_options */ - case 171: /* alter_db_options */ - case 173: /* full_table_name */ - case 176: /* table_options */ - case 180: /* alter_table_clause */ - case 181: /* alter_table_options */ - case 184: /* create_subtable_clause */ - case 187: /* drop_table_clause */ - case 190: /* column_def */ - case 193: /* col_name */ - case 194: /* func_name */ - case 197: /* index_options */ - case 199: /* duration_literal */ - case 200: /* sliding_opt */ - case 201: /* func */ - case 204: /* query_expression */ - case 207: /* expression */ - case 208: /* column_reference */ - case 209: /* subquery */ - case 210: /* predicate */ - case 213: /* in_predicate_value */ - case 214: /* boolean_value_expression */ - case 215: /* boolean_primary */ - case 216: /* common_expression */ - case 217: /* from_clause */ - case 218: /* table_reference_list */ - case 219: /* table_reference */ - case 220: /* table_primary */ - case 221: /* joined_table */ - case 223: /* parenthesized_joined_table */ - case 225: /* search_condition */ - case 226: /* query_specification */ - case 229: /* where_clause_opt */ - case 231: /* twindow_clause_opt */ - case 233: /* having_clause_opt */ - case 235: /* select_item */ - case 236: /* fill_opt */ - case 239: /* query_expression_body */ - case 241: /* slimit_clause_opt */ - case 242: /* limit_clause_opt */ - case 243: /* query_primary */ - case 245: /* sort_specification */ + case 170: /* db_options */ + case 172: /* alter_db_options */ + case 174: /* full_table_name */ + case 177: /* table_options */ + case 181: /* alter_table_clause */ + case 182: /* alter_table_options */ + case 185: /* create_subtable_clause */ + case 188: /* drop_table_clause */ + case 191: /* column_def */ + case 194: /* col_name */ + case 195: /* func_name */ + case 198: /* index_options */ + case 200: /* duration_literal */ + case 201: /* sliding_opt */ + case 202: /* func */ + case 205: /* query_expression */ + case 208: /* expression */ + case 209: /* column_reference */ + case 210: /* subquery */ + case 211: /* predicate */ + case 214: /* in_predicate_value */ + case 215: /* boolean_value_expression */ + case 216: /* boolean_primary */ + case 217: /* common_expression */ + case 218: /* from_clause */ + case 219: /* table_reference_list */ + case 220: /* table_reference */ + case 221: /* table_primary */ + case 222: /* joined_table */ + case 224: /* parenthesized_joined_table */ + case 226: /* search_condition */ + case 227: /* query_specification */ + case 230: /* where_clause_opt */ + case 232: /* twindow_clause_opt */ + case 234: /* having_clause_opt */ + case 236: /* select_item */ + case 237: /* fill_opt */ + case 240: /* query_expression_body */ + case 242: /* slimit_clause_opt */ + case 243: /* limit_clause_opt */ + case 244: /* query_primary */ + case 246: /* sort_specification */ { - nodesDestroyNode((yypminor->yy168)); + nodesDestroyNode((yypminor->yy26)); } break; case 161: /* account_options */ - case 162: /* account_option */ + case 162: /* alter_account_options */ + case 164: /* alter_account_option */ { } break; - case 164: /* user_name */ - case 165: /* dnode_endpoint */ - case 166: /* dnode_host_name */ - case 168: /* db_name */ - case 182: /* column_name */ - case 189: /* table_name */ - case 195: /* function_name */ - case 196: /* index_name */ - case 203: /* topic_name */ - case 205: /* table_alias */ - case 206: /* column_alias */ - case 222: /* alias_opt */ + case 165: /* user_name */ + case 166: /* dnode_endpoint */ + case 167: /* dnode_host_name */ + case 169: /* db_name */ + case 183: /* column_name */ + case 190: /* table_name */ + case 196: /* function_name */ + case 197: /* index_name */ + case 204: /* topic_name */ + case 206: /* table_alias */ + case 207: /* column_alias */ + case 223: /* alias_opt */ { } break; - case 167: /* not_exists_opt */ - case 170: /* exists_opt */ - case 227: /* set_quantifier_opt */ + case 168: /* not_exists_opt */ + case 171: /* exists_opt */ + case 228: /* set_quantifier_opt */ { } break; - case 172: /* alter_db_option */ - case 192: /* alter_table_option */ + case 173: /* alter_db_option */ + case 193: /* alter_table_option */ { } break; - case 174: /* column_def_list */ - case 175: /* tags_def_opt */ - case 177: /* multi_create_clause */ - case 178: /* tags_def */ - case 179: /* multi_drop_clause */ - case 185: /* specific_tags_opt */ - case 186: /* literal_list */ - case 188: /* col_name_list */ - case 191: /* func_name_list */ - case 198: /* func_list */ - case 202: /* expression_list */ - case 228: /* select_list */ - case 230: /* partition_by_clause_opt */ - case 232: /* group_by_clause_opt */ - case 234: /* select_sublist */ - case 238: /* group_by_list */ - case 240: /* order_by_clause_opt */ - case 244: /* sort_specification_list */ + case 175: /* column_def_list */ + case 176: /* tags_def_opt */ + case 178: /* multi_create_clause */ + case 179: /* tags_def */ + case 180: /* multi_drop_clause */ + case 186: /* specific_tags_opt */ + case 187: /* literal_list */ + case 189: /* col_name_list */ + case 192: /* func_name_list */ + case 199: /* func_list */ + case 203: /* expression_list */ + case 229: /* select_list */ + case 231: /* partition_by_clause_opt */ + case 233: /* group_by_clause_opt */ + case 235: /* select_sublist */ + case 239: /* group_by_list */ + case 241: /* order_by_clause_opt */ + case 245: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy440)); + nodesDestroyList((yypminor->yy64)); } break; - case 183: /* type_name */ + case 184: /* type_name */ { } break; - case 211: /* compare_op */ - case 212: /* in_op */ + case 212: /* compare_op */ + case 213: /* in_op */ { } break; - case 224: /* join_type */ + case 225: /* join_type */ { } break; - case 237: /* fill_mode */ + case 238: /* fill_mode */ { } break; - case 246: /* ordering_specification_opt */ + case 247: /* ordering_specification_opt */ { } break; - case 247: /* null_ordering_opt */ + case 248: /* null_ordering_opt */ { } @@ -1790,311 +1816,322 @@ 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[] = { - { 160, -4 }, /* (0) cmd ::= ALTER ACCOUNT NK_ID account_options */ - { 161, -1 }, /* (1) account_options ::= account_option */ - { 161, -2 }, /* (2) account_options ::= account_options account_option */ - { 162, -2 }, /* (3) account_option ::= PASS literal */ - { 162, -2 }, /* (4) account_option ::= PPS literal */ - { 162, -2 }, /* (5) account_option ::= TSERIES literal */ - { 162, -2 }, /* (6) account_option ::= STORAGE literal */ - { 162, -2 }, /* (7) account_option ::= STREAMS literal */ - { 162, -2 }, /* (8) account_option ::= QTIME literal */ - { 162, -2 }, /* (9) account_option ::= DBS literal */ - { 162, -2 }, /* (10) account_option ::= USERS literal */ - { 162, -2 }, /* (11) account_option ::= CONNS literal */ - { 162, -2 }, /* (12) account_option ::= STATE literal */ - { 160, -5 }, /* (13) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 160, -5 }, /* (14) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 160, -5 }, /* (15) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 160, -3 }, /* (16) cmd ::= DROP USER user_name */ - { 160, -2 }, /* (17) cmd ::= SHOW USERS */ - { 160, -3 }, /* (18) cmd ::= CREATE DNODE dnode_endpoint */ - { 160, -5 }, /* (19) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ - { 160, -3 }, /* (20) cmd ::= DROP DNODE NK_INTEGER */ - { 160, -3 }, /* (21) cmd ::= DROP DNODE dnode_endpoint */ - { 160, -2 }, /* (22) cmd ::= SHOW DNODES */ - { 160, -4 }, /* (23) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 160, -5 }, /* (24) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 160, -4 }, /* (25) cmd ::= ALTER ALL DNODES NK_STRING */ - { 160, -5 }, /* (26) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 165, -1 }, /* (27) dnode_endpoint ::= NK_STRING */ - { 166, -1 }, /* (28) dnode_host_name ::= NK_ID */ - { 166, -1 }, /* (29) dnode_host_name ::= NK_IPTOKEN */ - { 160, -3 }, /* (30) cmd ::= ALTER LOCAL NK_STRING */ - { 160, -4 }, /* (31) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 160, -5 }, /* (32) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 160, -5 }, /* (33) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 160, -2 }, /* (34) cmd ::= SHOW QNODES */ - { 160, -5 }, /* (35) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 160, -4 }, /* (36) cmd ::= DROP DATABASE exists_opt db_name */ - { 160, -2 }, /* (37) cmd ::= SHOW DATABASES */ - { 160, -2 }, /* (38) cmd ::= USE db_name */ - { 160, -4 }, /* (39) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 167, -3 }, /* (40) not_exists_opt ::= IF NOT EXISTS */ - { 167, 0 }, /* (41) not_exists_opt ::= */ - { 170, -2 }, /* (42) exists_opt ::= IF EXISTS */ - { 170, 0 }, /* (43) exists_opt ::= */ - { 169, 0 }, /* (44) db_options ::= */ - { 169, -3 }, /* (45) db_options ::= db_options BLOCKS NK_INTEGER */ - { 169, -3 }, /* (46) db_options ::= db_options CACHE NK_INTEGER */ - { 169, -3 }, /* (47) db_options ::= db_options CACHELAST NK_INTEGER */ - { 169, -3 }, /* (48) db_options ::= db_options COMP NK_INTEGER */ - { 169, -3 }, /* (49) db_options ::= db_options DAYS NK_INTEGER */ - { 169, -3 }, /* (50) db_options ::= db_options FSYNC NK_INTEGER */ - { 169, -3 }, /* (51) db_options ::= db_options MAXROWS NK_INTEGER */ - { 169, -3 }, /* (52) db_options ::= db_options MINROWS NK_INTEGER */ - { 169, -3 }, /* (53) db_options ::= db_options KEEP NK_INTEGER */ - { 169, -3 }, /* (54) db_options ::= db_options PRECISION NK_STRING */ - { 169, -3 }, /* (55) db_options ::= db_options QUORUM NK_INTEGER */ - { 169, -3 }, /* (56) db_options ::= db_options REPLICA NK_INTEGER */ - { 169, -3 }, /* (57) db_options ::= db_options TTL NK_INTEGER */ - { 169, -3 }, /* (58) db_options ::= db_options WAL NK_INTEGER */ - { 169, -3 }, /* (59) db_options ::= db_options VGROUPS NK_INTEGER */ - { 169, -3 }, /* (60) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 169, -3 }, /* (61) db_options ::= db_options STREAM_MODE NK_INTEGER */ - { 169, -3 }, /* (62) db_options ::= db_options RETENTIONS NK_STRING */ - { 169, -3 }, /* (63) db_options ::= db_options FILE_FACTOR NK_FLOAT */ - { 171, -1 }, /* (64) alter_db_options ::= alter_db_option */ - { 171, -2 }, /* (65) alter_db_options ::= alter_db_options alter_db_option */ - { 172, -2 }, /* (66) alter_db_option ::= BLOCKS NK_INTEGER */ - { 172, -2 }, /* (67) alter_db_option ::= FSYNC NK_INTEGER */ - { 172, -2 }, /* (68) alter_db_option ::= KEEP NK_INTEGER */ - { 172, -2 }, /* (69) alter_db_option ::= WAL NK_INTEGER */ - { 172, -2 }, /* (70) alter_db_option ::= QUORUM NK_INTEGER */ - { 172, -2 }, /* (71) alter_db_option ::= CACHELAST NK_INTEGER */ - { 160, -9 }, /* (72) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 160, -3 }, /* (73) cmd ::= CREATE TABLE multi_create_clause */ - { 160, -9 }, /* (74) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 160, -3 }, /* (75) cmd ::= DROP TABLE multi_drop_clause */ - { 160, -4 }, /* (76) cmd ::= DROP STABLE exists_opt full_table_name */ - { 160, -2 }, /* (77) cmd ::= SHOW TABLES */ - { 160, -2 }, /* (78) cmd ::= SHOW STABLES */ - { 160, -3 }, /* (79) cmd ::= ALTER TABLE alter_table_clause */ - { 160, -3 }, /* (80) cmd ::= ALTER STABLE alter_table_clause */ - { 180, -2 }, /* (81) alter_table_clause ::= full_table_name alter_table_options */ - { 180, -5 }, /* (82) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 180, -4 }, /* (83) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 180, -5 }, /* (84) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 180, -5 }, /* (85) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 180, -5 }, /* (86) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 180, -4 }, /* (87) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 180, -5 }, /* (88) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 180, -5 }, /* (89) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 180, -6 }, /* (90) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ - { 177, -1 }, /* (91) multi_create_clause ::= create_subtable_clause */ - { 177, -2 }, /* (92) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 184, -9 }, /* (93) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ - { 179, -1 }, /* (94) multi_drop_clause ::= drop_table_clause */ - { 179, -2 }, /* (95) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 187, -2 }, /* (96) drop_table_clause ::= exists_opt full_table_name */ - { 185, 0 }, /* (97) specific_tags_opt ::= */ - { 185, -3 }, /* (98) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 173, -1 }, /* (99) full_table_name ::= table_name */ - { 173, -3 }, /* (100) full_table_name ::= db_name NK_DOT table_name */ - { 174, -1 }, /* (101) column_def_list ::= column_def */ - { 174, -3 }, /* (102) column_def_list ::= column_def_list NK_COMMA column_def */ - { 190, -2 }, /* (103) column_def ::= column_name type_name */ - { 190, -4 }, /* (104) column_def ::= column_name type_name COMMENT NK_STRING */ - { 183, -1 }, /* (105) type_name ::= BOOL */ - { 183, -1 }, /* (106) type_name ::= TINYINT */ - { 183, -1 }, /* (107) type_name ::= SMALLINT */ - { 183, -1 }, /* (108) type_name ::= INT */ - { 183, -1 }, /* (109) type_name ::= INTEGER */ - { 183, -1 }, /* (110) type_name ::= BIGINT */ - { 183, -1 }, /* (111) type_name ::= FLOAT */ - { 183, -1 }, /* (112) type_name ::= DOUBLE */ - { 183, -4 }, /* (113) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 183, -1 }, /* (114) type_name ::= TIMESTAMP */ - { 183, -4 }, /* (115) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 183, -2 }, /* (116) type_name ::= TINYINT UNSIGNED */ - { 183, -2 }, /* (117) type_name ::= SMALLINT UNSIGNED */ - { 183, -2 }, /* (118) type_name ::= INT UNSIGNED */ - { 183, -2 }, /* (119) type_name ::= BIGINT UNSIGNED */ - { 183, -1 }, /* (120) type_name ::= JSON */ - { 183, -4 }, /* (121) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 183, -1 }, /* (122) type_name ::= MEDIUMBLOB */ - { 183, -1 }, /* (123) type_name ::= BLOB */ - { 183, -4 }, /* (124) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 183, -1 }, /* (125) type_name ::= DECIMAL */ - { 183, -4 }, /* (126) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 183, -6 }, /* (127) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 175, 0 }, /* (128) tags_def_opt ::= */ - { 175, -1 }, /* (129) tags_def_opt ::= tags_def */ - { 178, -4 }, /* (130) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 176, 0 }, /* (131) table_options ::= */ - { 176, -3 }, /* (132) table_options ::= table_options COMMENT NK_STRING */ - { 176, -3 }, /* (133) table_options ::= table_options KEEP NK_INTEGER */ - { 176, -3 }, /* (134) table_options ::= table_options TTL NK_INTEGER */ - { 176, -5 }, /* (135) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 176, -5 }, /* (136) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ - { 181, -1 }, /* (137) alter_table_options ::= alter_table_option */ - { 181, -2 }, /* (138) alter_table_options ::= alter_table_options alter_table_option */ - { 192, -2 }, /* (139) alter_table_option ::= COMMENT NK_STRING */ - { 192, -2 }, /* (140) alter_table_option ::= KEEP NK_INTEGER */ - { 192, -2 }, /* (141) alter_table_option ::= TTL NK_INTEGER */ - { 188, -1 }, /* (142) col_name_list ::= col_name */ - { 188, -3 }, /* (143) col_name_list ::= col_name_list NK_COMMA col_name */ - { 193, -1 }, /* (144) col_name ::= column_name */ - { 191, -1 }, /* (145) func_name_list ::= func_name */ - { 191, -3 }, /* (146) func_name_list ::= func_name_list NK_COMMA col_name */ - { 194, -1 }, /* (147) func_name ::= function_name */ - { 160, -7 }, /* (148) cmd ::= CREATE SMA INDEX index_name ON table_name index_options */ - { 160, -9 }, /* (149) cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP */ - { 160, -5 }, /* (150) cmd ::= DROP INDEX index_name ON table_name */ - { 197, 0 }, /* (151) index_options ::= */ - { 197, -9 }, /* (152) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 197, -11 }, /* (153) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 198, -1 }, /* (154) func_list ::= func */ - { 198, -3 }, /* (155) func_list ::= func_list NK_COMMA func */ - { 201, -4 }, /* (156) func ::= function_name NK_LP expression_list NK_RP */ - { 160, -6 }, /* (157) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 160, -6 }, /* (158) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ - { 160, -4 }, /* (159) cmd ::= DROP TOPIC exists_opt topic_name */ - { 160, -2 }, /* (160) cmd ::= SHOW VGROUPS */ - { 160, -4 }, /* (161) cmd ::= SHOW db_name NK_DOT VGROUPS */ - { 160, -2 }, /* (162) cmd ::= SHOW MNODES */ - { 160, -1 }, /* (163) cmd ::= query_expression */ - { 163, -1 }, /* (164) literal ::= NK_INTEGER */ - { 163, -1 }, /* (165) literal ::= NK_FLOAT */ - { 163, -1 }, /* (166) literal ::= NK_STRING */ - { 163, -1 }, /* (167) literal ::= NK_BOOL */ - { 163, -2 }, /* (168) literal ::= TIMESTAMP NK_STRING */ - { 163, -1 }, /* (169) literal ::= duration_literal */ - { 199, -1 }, /* (170) duration_literal ::= NK_VARIABLE */ - { 186, -1 }, /* (171) literal_list ::= literal */ - { 186, -3 }, /* (172) literal_list ::= literal_list NK_COMMA literal */ - { 168, -1 }, /* (173) db_name ::= NK_ID */ - { 189, -1 }, /* (174) table_name ::= NK_ID */ - { 182, -1 }, /* (175) column_name ::= NK_ID */ - { 195, -1 }, /* (176) function_name ::= NK_ID */ - { 205, -1 }, /* (177) table_alias ::= NK_ID */ - { 206, -1 }, /* (178) column_alias ::= NK_ID */ - { 164, -1 }, /* (179) user_name ::= NK_ID */ - { 196, -1 }, /* (180) index_name ::= NK_ID */ - { 203, -1 }, /* (181) topic_name ::= NK_ID */ - { 207, -1 }, /* (182) expression ::= literal */ - { 207, -1 }, /* (183) expression ::= column_reference */ - { 207, -4 }, /* (184) expression ::= function_name NK_LP expression_list NK_RP */ - { 207, -4 }, /* (185) expression ::= function_name NK_LP NK_STAR NK_RP */ - { 207, -1 }, /* (186) expression ::= subquery */ - { 207, -3 }, /* (187) expression ::= NK_LP expression NK_RP */ - { 207, -2 }, /* (188) expression ::= NK_PLUS expression */ - { 207, -2 }, /* (189) expression ::= NK_MINUS expression */ - { 207, -3 }, /* (190) expression ::= expression NK_PLUS expression */ - { 207, -3 }, /* (191) expression ::= expression NK_MINUS expression */ - { 207, -3 }, /* (192) expression ::= expression NK_STAR expression */ - { 207, -3 }, /* (193) expression ::= expression NK_SLASH expression */ - { 207, -3 }, /* (194) expression ::= expression NK_REM expression */ - { 202, -1 }, /* (195) expression_list ::= expression */ - { 202, -3 }, /* (196) expression_list ::= expression_list NK_COMMA expression */ - { 208, -1 }, /* (197) column_reference ::= column_name */ - { 208, -3 }, /* (198) column_reference ::= table_name NK_DOT column_name */ - { 210, -3 }, /* (199) predicate ::= expression compare_op expression */ - { 210, -5 }, /* (200) predicate ::= expression BETWEEN expression AND expression */ - { 210, -6 }, /* (201) predicate ::= expression NOT BETWEEN expression AND expression */ - { 210, -3 }, /* (202) predicate ::= expression IS NULL */ - { 210, -4 }, /* (203) predicate ::= expression IS NOT NULL */ - { 210, -3 }, /* (204) predicate ::= expression in_op in_predicate_value */ - { 211, -1 }, /* (205) compare_op ::= NK_LT */ - { 211, -1 }, /* (206) compare_op ::= NK_GT */ - { 211, -1 }, /* (207) compare_op ::= NK_LE */ - { 211, -1 }, /* (208) compare_op ::= NK_GE */ - { 211, -1 }, /* (209) compare_op ::= NK_NE */ - { 211, -1 }, /* (210) compare_op ::= NK_EQ */ - { 211, -1 }, /* (211) compare_op ::= LIKE */ - { 211, -2 }, /* (212) compare_op ::= NOT LIKE */ - { 211, -1 }, /* (213) compare_op ::= MATCH */ - { 211, -1 }, /* (214) compare_op ::= NMATCH */ - { 212, -1 }, /* (215) in_op ::= IN */ - { 212, -2 }, /* (216) in_op ::= NOT IN */ - { 213, -3 }, /* (217) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 214, -1 }, /* (218) boolean_value_expression ::= boolean_primary */ - { 214, -2 }, /* (219) boolean_value_expression ::= NOT boolean_primary */ - { 214, -3 }, /* (220) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 214, -3 }, /* (221) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 215, -1 }, /* (222) boolean_primary ::= predicate */ - { 215, -3 }, /* (223) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 216, -1 }, /* (224) common_expression ::= expression */ - { 216, -1 }, /* (225) common_expression ::= boolean_value_expression */ - { 217, -2 }, /* (226) from_clause ::= FROM table_reference_list */ - { 218, -1 }, /* (227) table_reference_list ::= table_reference */ - { 218, -3 }, /* (228) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 219, -1 }, /* (229) table_reference ::= table_primary */ - { 219, -1 }, /* (230) table_reference ::= joined_table */ - { 220, -2 }, /* (231) table_primary ::= table_name alias_opt */ - { 220, -4 }, /* (232) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 220, -2 }, /* (233) table_primary ::= subquery alias_opt */ - { 220, -1 }, /* (234) table_primary ::= parenthesized_joined_table */ - { 222, 0 }, /* (235) alias_opt ::= */ - { 222, -1 }, /* (236) alias_opt ::= table_alias */ - { 222, -2 }, /* (237) alias_opt ::= AS table_alias */ - { 223, -3 }, /* (238) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 223, -3 }, /* (239) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 221, -6 }, /* (240) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 224, 0 }, /* (241) join_type ::= */ - { 224, -1 }, /* (242) join_type ::= INNER */ - { 226, -9 }, /* (243) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 227, 0 }, /* (244) set_quantifier_opt ::= */ - { 227, -1 }, /* (245) set_quantifier_opt ::= DISTINCT */ - { 227, -1 }, /* (246) set_quantifier_opt ::= ALL */ - { 228, -1 }, /* (247) select_list ::= NK_STAR */ - { 228, -1 }, /* (248) select_list ::= select_sublist */ - { 234, -1 }, /* (249) select_sublist ::= select_item */ - { 234, -3 }, /* (250) select_sublist ::= select_sublist NK_COMMA select_item */ - { 235, -1 }, /* (251) select_item ::= common_expression */ - { 235, -2 }, /* (252) select_item ::= common_expression column_alias */ - { 235, -3 }, /* (253) select_item ::= common_expression AS column_alias */ - { 235, -3 }, /* (254) select_item ::= table_name NK_DOT NK_STAR */ - { 229, 0 }, /* (255) where_clause_opt ::= */ - { 229, -2 }, /* (256) where_clause_opt ::= WHERE search_condition */ - { 230, 0 }, /* (257) partition_by_clause_opt ::= */ - { 230, -3 }, /* (258) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 231, 0 }, /* (259) twindow_clause_opt ::= */ - { 231, -6 }, /* (260) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP */ - { 231, -4 }, /* (261) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ - { 231, -6 }, /* (262) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 231, -8 }, /* (263) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 200, 0 }, /* (264) sliding_opt ::= */ - { 200, -4 }, /* (265) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 236, 0 }, /* (266) fill_opt ::= */ - { 236, -4 }, /* (267) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 236, -6 }, /* (268) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 237, -1 }, /* (269) fill_mode ::= NONE */ - { 237, -1 }, /* (270) fill_mode ::= PREV */ - { 237, -1 }, /* (271) fill_mode ::= NULL */ - { 237, -1 }, /* (272) fill_mode ::= LINEAR */ - { 237, -1 }, /* (273) fill_mode ::= NEXT */ - { 232, 0 }, /* (274) group_by_clause_opt ::= */ - { 232, -3 }, /* (275) group_by_clause_opt ::= GROUP BY group_by_list */ - { 238, -1 }, /* (276) group_by_list ::= expression */ - { 238, -3 }, /* (277) group_by_list ::= group_by_list NK_COMMA expression */ - { 233, 0 }, /* (278) having_clause_opt ::= */ - { 233, -2 }, /* (279) having_clause_opt ::= HAVING search_condition */ - { 204, -4 }, /* (280) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 239, -1 }, /* (281) query_expression_body ::= query_primary */ - { 239, -4 }, /* (282) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 243, -1 }, /* (283) query_primary ::= query_specification */ - { 240, 0 }, /* (284) order_by_clause_opt ::= */ - { 240, -3 }, /* (285) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 241, 0 }, /* (286) slimit_clause_opt ::= */ - { 241, -2 }, /* (287) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 241, -4 }, /* (288) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 241, -4 }, /* (289) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 242, 0 }, /* (290) limit_clause_opt ::= */ - { 242, -2 }, /* (291) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 242, -4 }, /* (292) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 242, -4 }, /* (293) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 209, -3 }, /* (294) subquery ::= NK_LP query_expression NK_RP */ - { 225, -1 }, /* (295) search_condition ::= common_expression */ - { 244, -1 }, /* (296) sort_specification_list ::= sort_specification */ - { 244, -3 }, /* (297) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 245, -3 }, /* (298) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 246, 0 }, /* (299) ordering_specification_opt ::= */ - { 246, -1 }, /* (300) ordering_specification_opt ::= ASC */ - { 246, -1 }, /* (301) ordering_specification_opt ::= DESC */ - { 247, 0 }, /* (302) null_ordering_opt ::= */ - { 247, -2 }, /* (303) null_ordering_opt ::= NULLS FIRST */ - { 247, -2 }, /* (304) null_ordering_opt ::= NULLS LAST */ + { 160, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 160, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 161, 0 }, /* (2) account_options ::= */ + { 161, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 161, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 161, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 161, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 161, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 161, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 161, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 161, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 161, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 162, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 162, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 164, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 164, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 164, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 164, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 164, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 164, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 164, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 164, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 164, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 164, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 160, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ + { 160, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 160, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + { 160, -3 }, /* (27) cmd ::= DROP USER user_name */ + { 160, -2 }, /* (28) cmd ::= SHOW USERS */ + { 160, -3 }, /* (29) cmd ::= CREATE DNODE dnode_endpoint */ + { 160, -5 }, /* (30) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ + { 160, -3 }, /* (31) cmd ::= DROP DNODE NK_INTEGER */ + { 160, -3 }, /* (32) cmd ::= DROP DNODE dnode_endpoint */ + { 160, -2 }, /* (33) cmd ::= SHOW DNODES */ + { 160, -4 }, /* (34) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 160, -5 }, /* (35) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 160, -4 }, /* (36) cmd ::= ALTER ALL DNODES NK_STRING */ + { 160, -5 }, /* (37) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 166, -1 }, /* (38) dnode_endpoint ::= NK_STRING */ + { 167, -1 }, /* (39) dnode_host_name ::= NK_ID */ + { 167, -1 }, /* (40) dnode_host_name ::= NK_IPTOKEN */ + { 160, -3 }, /* (41) cmd ::= ALTER LOCAL NK_STRING */ + { 160, -4 }, /* (42) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 160, -5 }, /* (43) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 160, -5 }, /* (44) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 160, -2 }, /* (45) cmd ::= SHOW QNODES */ + { 160, -5 }, /* (46) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 160, -4 }, /* (47) cmd ::= DROP DATABASE exists_opt db_name */ + { 160, -2 }, /* (48) cmd ::= SHOW DATABASES */ + { 160, -2 }, /* (49) cmd ::= USE db_name */ + { 160, -4 }, /* (50) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 168, -3 }, /* (51) not_exists_opt ::= IF NOT EXISTS */ + { 168, 0 }, /* (52) not_exists_opt ::= */ + { 171, -2 }, /* (53) exists_opt ::= IF EXISTS */ + { 171, 0 }, /* (54) exists_opt ::= */ + { 170, 0 }, /* (55) db_options ::= */ + { 170, -3 }, /* (56) db_options ::= db_options BLOCKS NK_INTEGER */ + { 170, -3 }, /* (57) db_options ::= db_options CACHE NK_INTEGER */ + { 170, -3 }, /* (58) db_options ::= db_options CACHELAST NK_INTEGER */ + { 170, -3 }, /* (59) db_options ::= db_options COMP NK_INTEGER */ + { 170, -3 }, /* (60) db_options ::= db_options DAYS NK_INTEGER */ + { 170, -3 }, /* (61) db_options ::= db_options FSYNC NK_INTEGER */ + { 170, -3 }, /* (62) db_options ::= db_options MAXROWS NK_INTEGER */ + { 170, -3 }, /* (63) db_options ::= db_options MINROWS NK_INTEGER */ + { 170, -3 }, /* (64) db_options ::= db_options KEEP NK_INTEGER */ + { 170, -3 }, /* (65) db_options ::= db_options PRECISION NK_STRING */ + { 170, -3 }, /* (66) db_options ::= db_options QUORUM NK_INTEGER */ + { 170, -3 }, /* (67) db_options ::= db_options REPLICA NK_INTEGER */ + { 170, -3 }, /* (68) db_options ::= db_options TTL NK_INTEGER */ + { 170, -3 }, /* (69) db_options ::= db_options WAL NK_INTEGER */ + { 170, -3 }, /* (70) db_options ::= db_options VGROUPS NK_INTEGER */ + { 170, -3 }, /* (71) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 170, -3 }, /* (72) db_options ::= db_options STREAM_MODE NK_INTEGER */ + { 170, -3 }, /* (73) db_options ::= db_options RETENTIONS NK_STRING */ + { 170, -3 }, /* (74) db_options ::= db_options FILE_FACTOR NK_FLOAT */ + { 172, -1 }, /* (75) alter_db_options ::= alter_db_option */ + { 172, -2 }, /* (76) alter_db_options ::= alter_db_options alter_db_option */ + { 173, -2 }, /* (77) alter_db_option ::= BLOCKS NK_INTEGER */ + { 173, -2 }, /* (78) alter_db_option ::= FSYNC NK_INTEGER */ + { 173, -2 }, /* (79) alter_db_option ::= KEEP NK_INTEGER */ + { 173, -2 }, /* (80) alter_db_option ::= WAL NK_INTEGER */ + { 173, -2 }, /* (81) alter_db_option ::= QUORUM NK_INTEGER */ + { 173, -2 }, /* (82) alter_db_option ::= CACHELAST NK_INTEGER */ + { 160, -9 }, /* (83) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 160, -3 }, /* (84) cmd ::= CREATE TABLE multi_create_clause */ + { 160, -9 }, /* (85) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 160, -3 }, /* (86) cmd ::= DROP TABLE multi_drop_clause */ + { 160, -4 }, /* (87) cmd ::= DROP STABLE exists_opt full_table_name */ + { 160, -2 }, /* (88) cmd ::= SHOW TABLES */ + { 160, -2 }, /* (89) cmd ::= SHOW STABLES */ + { 160, -3 }, /* (90) cmd ::= ALTER TABLE alter_table_clause */ + { 160, -3 }, /* (91) cmd ::= ALTER STABLE alter_table_clause */ + { 181, -2 }, /* (92) alter_table_clause ::= full_table_name alter_table_options */ + { 181, -5 }, /* (93) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 181, -4 }, /* (94) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 181, -5 }, /* (95) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 181, -5 }, /* (96) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 181, -5 }, /* (97) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 181, -4 }, /* (98) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 181, -5 }, /* (99) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 181, -5 }, /* (100) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 181, -6 }, /* (101) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ + { 178, -1 }, /* (102) multi_create_clause ::= create_subtable_clause */ + { 178, -2 }, /* (103) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 185, -9 }, /* (104) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ + { 180, -1 }, /* (105) multi_drop_clause ::= drop_table_clause */ + { 180, -2 }, /* (106) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 188, -2 }, /* (107) drop_table_clause ::= exists_opt full_table_name */ + { 186, 0 }, /* (108) specific_tags_opt ::= */ + { 186, -3 }, /* (109) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 174, -1 }, /* (110) full_table_name ::= table_name */ + { 174, -3 }, /* (111) full_table_name ::= db_name NK_DOT table_name */ + { 175, -1 }, /* (112) column_def_list ::= column_def */ + { 175, -3 }, /* (113) column_def_list ::= column_def_list NK_COMMA column_def */ + { 191, -2 }, /* (114) column_def ::= column_name type_name */ + { 191, -4 }, /* (115) column_def ::= column_name type_name COMMENT NK_STRING */ + { 184, -1 }, /* (116) type_name ::= BOOL */ + { 184, -1 }, /* (117) type_name ::= TINYINT */ + { 184, -1 }, /* (118) type_name ::= SMALLINT */ + { 184, -1 }, /* (119) type_name ::= INT */ + { 184, -1 }, /* (120) type_name ::= INTEGER */ + { 184, -1 }, /* (121) type_name ::= BIGINT */ + { 184, -1 }, /* (122) type_name ::= FLOAT */ + { 184, -1 }, /* (123) type_name ::= DOUBLE */ + { 184, -4 }, /* (124) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 184, -1 }, /* (125) type_name ::= TIMESTAMP */ + { 184, -4 }, /* (126) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 184, -2 }, /* (127) type_name ::= TINYINT UNSIGNED */ + { 184, -2 }, /* (128) type_name ::= SMALLINT UNSIGNED */ + { 184, -2 }, /* (129) type_name ::= INT UNSIGNED */ + { 184, -2 }, /* (130) type_name ::= BIGINT UNSIGNED */ + { 184, -1 }, /* (131) type_name ::= JSON */ + { 184, -4 }, /* (132) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 184, -1 }, /* (133) type_name ::= MEDIUMBLOB */ + { 184, -1 }, /* (134) type_name ::= BLOB */ + { 184, -4 }, /* (135) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 184, -1 }, /* (136) type_name ::= DECIMAL */ + { 184, -4 }, /* (137) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 184, -6 }, /* (138) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 176, 0 }, /* (139) tags_def_opt ::= */ + { 176, -1 }, /* (140) tags_def_opt ::= tags_def */ + { 179, -4 }, /* (141) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 177, 0 }, /* (142) table_options ::= */ + { 177, -3 }, /* (143) table_options ::= table_options COMMENT NK_STRING */ + { 177, -3 }, /* (144) table_options ::= table_options KEEP NK_INTEGER */ + { 177, -3 }, /* (145) table_options ::= table_options TTL NK_INTEGER */ + { 177, -5 }, /* (146) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 177, -5 }, /* (147) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + { 182, -1 }, /* (148) alter_table_options ::= alter_table_option */ + { 182, -2 }, /* (149) alter_table_options ::= alter_table_options alter_table_option */ + { 193, -2 }, /* (150) alter_table_option ::= COMMENT NK_STRING */ + { 193, -2 }, /* (151) alter_table_option ::= KEEP NK_INTEGER */ + { 193, -2 }, /* (152) alter_table_option ::= TTL NK_INTEGER */ + { 189, -1 }, /* (153) col_name_list ::= col_name */ + { 189, -3 }, /* (154) col_name_list ::= col_name_list NK_COMMA col_name */ + { 194, -1 }, /* (155) col_name ::= column_name */ + { 192, -1 }, /* (156) func_name_list ::= func_name */ + { 192, -3 }, /* (157) func_name_list ::= func_name_list NK_COMMA col_name */ + { 195, -1 }, /* (158) func_name ::= function_name */ + { 160, -7 }, /* (159) cmd ::= CREATE SMA INDEX index_name ON table_name index_options */ + { 160, -9 }, /* (160) cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP */ + { 160, -5 }, /* (161) cmd ::= DROP INDEX index_name ON table_name */ + { 198, 0 }, /* (162) index_options ::= */ + { 198, -9 }, /* (163) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 198, -11 }, /* (164) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 199, -1 }, /* (165) func_list ::= func */ + { 199, -3 }, /* (166) func_list ::= func_list NK_COMMA func */ + { 202, -4 }, /* (167) func ::= function_name NK_LP expression_list NK_RP */ + { 160, -6 }, /* (168) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 160, -6 }, /* (169) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ + { 160, -4 }, /* (170) cmd ::= DROP TOPIC exists_opt topic_name */ + { 160, -2 }, /* (171) cmd ::= SHOW VGROUPS */ + { 160, -4 }, /* (172) cmd ::= SHOW db_name NK_DOT VGROUPS */ + { 160, -2 }, /* (173) cmd ::= SHOW MNODES */ + { 160, -1 }, /* (174) cmd ::= query_expression */ + { 163, -1 }, /* (175) literal ::= NK_INTEGER */ + { 163, -1 }, /* (176) literal ::= NK_FLOAT */ + { 163, -1 }, /* (177) literal ::= NK_STRING */ + { 163, -1 }, /* (178) literal ::= NK_BOOL */ + { 163, -2 }, /* (179) literal ::= TIMESTAMP NK_STRING */ + { 163, -1 }, /* (180) literal ::= duration_literal */ + { 200, -1 }, /* (181) duration_literal ::= NK_VARIABLE */ + { 187, -1 }, /* (182) literal_list ::= literal */ + { 187, -3 }, /* (183) literal_list ::= literal_list NK_COMMA literal */ + { 169, -1 }, /* (184) db_name ::= NK_ID */ + { 190, -1 }, /* (185) table_name ::= NK_ID */ + { 183, -1 }, /* (186) column_name ::= NK_ID */ + { 196, -1 }, /* (187) function_name ::= NK_ID */ + { 206, -1 }, /* (188) table_alias ::= NK_ID */ + { 207, -1 }, /* (189) column_alias ::= NK_ID */ + { 165, -1 }, /* (190) user_name ::= NK_ID */ + { 197, -1 }, /* (191) index_name ::= NK_ID */ + { 204, -1 }, /* (192) topic_name ::= NK_ID */ + { 208, -1 }, /* (193) expression ::= literal */ + { 208, -1 }, /* (194) expression ::= column_reference */ + { 208, -4 }, /* (195) expression ::= function_name NK_LP expression_list NK_RP */ + { 208, -4 }, /* (196) expression ::= function_name NK_LP NK_STAR NK_RP */ + { 208, -1 }, /* (197) expression ::= subquery */ + { 208, -3 }, /* (198) expression ::= NK_LP expression NK_RP */ + { 208, -2 }, /* (199) expression ::= NK_PLUS expression */ + { 208, -2 }, /* (200) expression ::= NK_MINUS expression */ + { 208, -3 }, /* (201) expression ::= expression NK_PLUS expression */ + { 208, -3 }, /* (202) expression ::= expression NK_MINUS expression */ + { 208, -3 }, /* (203) expression ::= expression NK_STAR expression */ + { 208, -3 }, /* (204) expression ::= expression NK_SLASH expression */ + { 208, -3 }, /* (205) expression ::= expression NK_REM expression */ + { 203, -1 }, /* (206) expression_list ::= expression */ + { 203, -3 }, /* (207) expression_list ::= expression_list NK_COMMA expression */ + { 209, -1 }, /* (208) column_reference ::= column_name */ + { 209, -3 }, /* (209) column_reference ::= table_name NK_DOT column_name */ + { 211, -3 }, /* (210) predicate ::= expression compare_op expression */ + { 211, -5 }, /* (211) predicate ::= expression BETWEEN expression AND expression */ + { 211, -6 }, /* (212) predicate ::= expression NOT BETWEEN expression AND expression */ + { 211, -3 }, /* (213) predicate ::= expression IS NULL */ + { 211, -4 }, /* (214) predicate ::= expression IS NOT NULL */ + { 211, -3 }, /* (215) predicate ::= expression in_op in_predicate_value */ + { 212, -1 }, /* (216) compare_op ::= NK_LT */ + { 212, -1 }, /* (217) compare_op ::= NK_GT */ + { 212, -1 }, /* (218) compare_op ::= NK_LE */ + { 212, -1 }, /* (219) compare_op ::= NK_GE */ + { 212, -1 }, /* (220) compare_op ::= NK_NE */ + { 212, -1 }, /* (221) compare_op ::= NK_EQ */ + { 212, -1 }, /* (222) compare_op ::= LIKE */ + { 212, -2 }, /* (223) compare_op ::= NOT LIKE */ + { 212, -1 }, /* (224) compare_op ::= MATCH */ + { 212, -1 }, /* (225) compare_op ::= NMATCH */ + { 213, -1 }, /* (226) in_op ::= IN */ + { 213, -2 }, /* (227) in_op ::= NOT IN */ + { 214, -3 }, /* (228) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 215, -1 }, /* (229) boolean_value_expression ::= boolean_primary */ + { 215, -2 }, /* (230) boolean_value_expression ::= NOT boolean_primary */ + { 215, -3 }, /* (231) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 215, -3 }, /* (232) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 216, -1 }, /* (233) boolean_primary ::= predicate */ + { 216, -3 }, /* (234) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 217, -1 }, /* (235) common_expression ::= expression */ + { 217, -1 }, /* (236) common_expression ::= boolean_value_expression */ + { 218, -2 }, /* (237) from_clause ::= FROM table_reference_list */ + { 219, -1 }, /* (238) table_reference_list ::= table_reference */ + { 219, -3 }, /* (239) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 220, -1 }, /* (240) table_reference ::= table_primary */ + { 220, -1 }, /* (241) table_reference ::= joined_table */ + { 221, -2 }, /* (242) table_primary ::= table_name alias_opt */ + { 221, -4 }, /* (243) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 221, -2 }, /* (244) table_primary ::= subquery alias_opt */ + { 221, -1 }, /* (245) table_primary ::= parenthesized_joined_table */ + { 223, 0 }, /* (246) alias_opt ::= */ + { 223, -1 }, /* (247) alias_opt ::= table_alias */ + { 223, -2 }, /* (248) alias_opt ::= AS table_alias */ + { 224, -3 }, /* (249) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 224, -3 }, /* (250) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 222, -6 }, /* (251) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 225, 0 }, /* (252) join_type ::= */ + { 225, -1 }, /* (253) join_type ::= INNER */ + { 227, -9 }, /* (254) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 228, 0 }, /* (255) set_quantifier_opt ::= */ + { 228, -1 }, /* (256) set_quantifier_opt ::= DISTINCT */ + { 228, -1 }, /* (257) set_quantifier_opt ::= ALL */ + { 229, -1 }, /* (258) select_list ::= NK_STAR */ + { 229, -1 }, /* (259) select_list ::= select_sublist */ + { 235, -1 }, /* (260) select_sublist ::= select_item */ + { 235, -3 }, /* (261) select_sublist ::= select_sublist NK_COMMA select_item */ + { 236, -1 }, /* (262) select_item ::= common_expression */ + { 236, -2 }, /* (263) select_item ::= common_expression column_alias */ + { 236, -3 }, /* (264) select_item ::= common_expression AS column_alias */ + { 236, -3 }, /* (265) select_item ::= table_name NK_DOT NK_STAR */ + { 230, 0 }, /* (266) where_clause_opt ::= */ + { 230, -2 }, /* (267) where_clause_opt ::= WHERE search_condition */ + { 231, 0 }, /* (268) partition_by_clause_opt ::= */ + { 231, -3 }, /* (269) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 232, 0 }, /* (270) twindow_clause_opt ::= */ + { 232, -6 }, /* (271) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP */ + { 232, -4 }, /* (272) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ + { 232, -6 }, /* (273) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 232, -8 }, /* (274) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 201, 0 }, /* (275) sliding_opt ::= */ + { 201, -4 }, /* (276) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 237, 0 }, /* (277) fill_opt ::= */ + { 237, -4 }, /* (278) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 237, -6 }, /* (279) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 238, -1 }, /* (280) fill_mode ::= NONE */ + { 238, -1 }, /* (281) fill_mode ::= PREV */ + { 238, -1 }, /* (282) fill_mode ::= NULL */ + { 238, -1 }, /* (283) fill_mode ::= LINEAR */ + { 238, -1 }, /* (284) fill_mode ::= NEXT */ + { 233, 0 }, /* (285) group_by_clause_opt ::= */ + { 233, -3 }, /* (286) group_by_clause_opt ::= GROUP BY group_by_list */ + { 239, -1 }, /* (287) group_by_list ::= expression */ + { 239, -3 }, /* (288) group_by_list ::= group_by_list NK_COMMA expression */ + { 234, 0 }, /* (289) having_clause_opt ::= */ + { 234, -2 }, /* (290) having_clause_opt ::= HAVING search_condition */ + { 205, -4 }, /* (291) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 240, -1 }, /* (292) query_expression_body ::= query_primary */ + { 240, -4 }, /* (293) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 244, -1 }, /* (294) query_primary ::= query_specification */ + { 241, 0 }, /* (295) order_by_clause_opt ::= */ + { 241, -3 }, /* (296) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 242, 0 }, /* (297) slimit_clause_opt ::= */ + { 242, -2 }, /* (298) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 242, -4 }, /* (299) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 242, -4 }, /* (300) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 243, 0 }, /* (301) limit_clause_opt ::= */ + { 243, -2 }, /* (302) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 243, -4 }, /* (303) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 243, -4 }, /* (304) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 210, -3 }, /* (305) subquery ::= NK_LP query_expression NK_RP */ + { 226, -1 }, /* (306) search_condition ::= common_expression */ + { 245, -1 }, /* (307) sort_specification_list ::= sort_specification */ + { 245, -3 }, /* (308) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 246, -3 }, /* (309) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 247, 0 }, /* (310) ordering_specification_opt ::= */ + { 247, -1 }, /* (311) ordering_specification_opt ::= ASC */ + { 247, -1 }, /* (312) ordering_specification_opt ::= DESC */ + { 248, 0 }, /* (313) null_ordering_opt ::= */ + { 248, -2 }, /* (314) null_ordering_opt ::= NULLS FIRST */ + { 248, -2 }, /* (315) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -2181,928 +2218,949 @@ static YYACTIONTYPE yy_reduce( */ /********** Begin reduce actions **********************************************/ YYMINORTYPE yylhsminor; - case 0: /* cmd ::= ALTER ACCOUNT NK_ID account_options */ + case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } yy_destructor(yypParser,161,&yymsp[0].minor); break; - case 1: /* account_options ::= account_option */ -{ yy_destructor(yypParser,162,&yymsp[0].minor); + case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ +{ pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } + yy_destructor(yypParser,162,&yymsp[0].minor); + break; + case 2: /* account_options ::= */ +{ } + break; + case 3: /* account_options ::= account_options PPS literal */ + case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); + case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5); + case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6); + case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7); + case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8); + case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); + case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); + case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); +{ yy_destructor(yypParser,161,&yymsp[-2].minor); { } + yy_destructor(yypParser,163,&yymsp[0].minor); } break; - case 2: /* account_options ::= account_options account_option */ -{ yy_destructor(yypParser,161,&yymsp[-1].minor); + case 12: /* alter_account_options ::= alter_account_option */ +{ yy_destructor(yypParser,164,&yymsp[0].minor); { } - yy_destructor(yypParser,162,&yymsp[0].minor); } break; - case 3: /* account_option ::= PASS literal */ - case 4: /* account_option ::= PPS literal */ yytestcase(yyruleno==4); - case 5: /* account_option ::= TSERIES literal */ yytestcase(yyruleno==5); - case 6: /* account_option ::= STORAGE literal */ yytestcase(yyruleno==6); - case 7: /* account_option ::= STREAMS literal */ yytestcase(yyruleno==7); - case 8: /* account_option ::= QTIME literal */ yytestcase(yyruleno==8); - case 9: /* account_option ::= DBS literal */ yytestcase(yyruleno==9); - case 10: /* account_option ::= USERS literal */ yytestcase(yyruleno==10); - case 11: /* account_option ::= CONNS literal */ yytestcase(yyruleno==11); - case 12: /* account_option ::= STATE literal */ yytestcase(yyruleno==12); + case 13: /* alter_account_options ::= alter_account_options alter_account_option */ +{ yy_destructor(yypParser,162,&yymsp[-1].minor); +{ } + yy_destructor(yypParser,164,&yymsp[0].minor); +} + break; + case 14: /* alter_account_option ::= PASS literal */ + case 15: /* alter_account_option ::= PPS literal */ yytestcase(yyruleno==15); + case 16: /* alter_account_option ::= TSERIES literal */ yytestcase(yyruleno==16); + case 17: /* alter_account_option ::= STORAGE literal */ yytestcase(yyruleno==17); + case 18: /* alter_account_option ::= STREAMS literal */ yytestcase(yyruleno==18); + case 19: /* alter_account_option ::= QTIME literal */ yytestcase(yyruleno==19); + case 20: /* alter_account_option ::= DBS literal */ yytestcase(yyruleno==20); + case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21); + case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); + case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } yy_destructor(yypParser,163,&yymsp[0].minor); break; - case 13: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy0); } + case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy353, &yymsp[0].minor.yy0); } break; - case 14: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy241, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } + case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy353, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; - case 15: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy241, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } + case 26: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy353, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } break; - case 16: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy241); } + case 27: /* cmd ::= DROP USER user_name */ +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy353); } break; - case 17: /* cmd ::= SHOW USERS */ + case 28: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL); } break; - case 18: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy241, NULL); } + case 29: /* cmd ::= CREATE DNODE dnode_endpoint */ +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy353, NULL); } break; - case 19: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy0); } + case 30: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy353, &yymsp[0].minor.yy0); } break; - case 20: /* cmd ::= DROP DNODE NK_INTEGER */ + case 31: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 21: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy241); } + case 32: /* cmd ::= DROP DNODE dnode_endpoint */ +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy353); } break; - case 22: /* cmd ::= SHOW DNODES */ + case 33: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL); } break; - case 23: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + case 34: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } break; - case 24: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + case 35: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 25: /* cmd ::= ALTER ALL DNODES NK_STRING */ + case 36: /* cmd ::= ALTER ALL DNODES NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } break; - case 26: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + case 37: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 27: /* dnode_endpoint ::= NK_STRING */ - case 28: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==28); - case 29: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==29); - case 173: /* db_name ::= NK_ID */ yytestcase(yyruleno==173); - case 174: /* table_name ::= NK_ID */ yytestcase(yyruleno==174); - case 175: /* column_name ::= NK_ID */ yytestcase(yyruleno==175); - case 176: /* function_name ::= NK_ID */ yytestcase(yyruleno==176); - case 177: /* table_alias ::= NK_ID */ yytestcase(yyruleno==177); - case 178: /* column_alias ::= NK_ID */ yytestcase(yyruleno==178); - case 179: /* user_name ::= NK_ID */ yytestcase(yyruleno==179); - case 180: /* index_name ::= NK_ID */ yytestcase(yyruleno==180); - case 181: /* topic_name ::= NK_ID */ yytestcase(yyruleno==181); -{ yylhsminor.yy241 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy241 = yylhsminor.yy241; - break; - case 30: /* cmd ::= ALTER LOCAL NK_STRING */ + case 38: /* dnode_endpoint ::= NK_STRING */ + case 39: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==39); + case 40: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==40); + case 184: /* db_name ::= NK_ID */ yytestcase(yyruleno==184); + case 185: /* table_name ::= NK_ID */ yytestcase(yyruleno==185); + case 186: /* column_name ::= NK_ID */ yytestcase(yyruleno==186); + case 187: /* function_name ::= NK_ID */ yytestcase(yyruleno==187); + case 188: /* table_alias ::= NK_ID */ yytestcase(yyruleno==188); + case 189: /* column_alias ::= NK_ID */ yytestcase(yyruleno==189); + case 190: /* user_name ::= NK_ID */ yytestcase(yyruleno==190); + case 191: /* index_name ::= NK_ID */ yytestcase(yyruleno==191); + case 192: /* topic_name ::= NK_ID */ yytestcase(yyruleno==192); +{ yylhsminor.yy353 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy353 = yylhsminor.yy353; + break; + case 41: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 31: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + case 42: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 32: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + case 43: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateQnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 33: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + case 44: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropQnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 34: /* cmd ::= SHOW QNODES */ + case 45: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL); } break; - case 35: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy457, &yymsp[-1].minor.yy241, yymsp[0].minor.yy168); } + case 46: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy107, &yymsp[-1].minor.yy353, yymsp[0].minor.yy26); } break; - case 36: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy457, &yymsp[0].minor.yy241); } + case 47: /* cmd ::= DROP DATABASE exists_opt db_name */ +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy107, &yymsp[0].minor.yy353); } break; - case 37: /* cmd ::= SHOW DATABASES */ + case 48: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL); } break; - case 38: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy241); } + case 49: /* cmd ::= USE db_name */ +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy353); } break; - case 39: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy241, yymsp[0].minor.yy168); } + case 50: /* cmd ::= ALTER DATABASE db_name alter_db_options */ +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy353, yymsp[0].minor.yy26); } break; - case 40: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy457 = true; } + case 51: /* not_exists_opt ::= IF NOT EXISTS */ +{ yymsp[-2].minor.yy107 = true; } break; - case 41: /* not_exists_opt ::= */ - case 43: /* exists_opt ::= */ yytestcase(yyruleno==43); - case 244: /* set_quantifier_opt ::= */ yytestcase(yyruleno==244); -{ yymsp[1].minor.yy457 = false; } + case 52: /* not_exists_opt ::= */ + case 54: /* exists_opt ::= */ yytestcase(yyruleno==54); + case 255: /* set_quantifier_opt ::= */ yytestcase(yyruleno==255); +{ yymsp[1].minor.yy107 = false; } break; - case 42: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy457 = true; } + case 53: /* exists_opt ::= IF EXISTS */ +{ yymsp[-1].minor.yy107 = true; } break; - case 44: /* db_options ::= */ -{ yymsp[1].minor.yy168 = createDefaultDatabaseOptions(pCxt); } + case 55: /* db_options ::= */ +{ yymsp[1].minor.yy26 = createDefaultDatabaseOptions(pCxt); } break; - case 45: /* db_options ::= db_options BLOCKS NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_BLOCKS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 56: /* db_options ::= db_options BLOCKS NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_BLOCKS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 46: /* db_options ::= db_options CACHE NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_CACHE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 57: /* db_options ::= db_options CACHE NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_CACHE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 47: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 58: /* db_options ::= db_options CACHELAST NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 48: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 59: /* db_options ::= db_options COMP NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 49: /* db_options ::= db_options DAYS NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 60: /* db_options ::= db_options DAYS NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 50: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 61: /* db_options ::= db_options FSYNC NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 51: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 62: /* db_options ::= db_options MAXROWS NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 52: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 63: /* db_options ::= db_options MINROWS NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 53: /* db_options ::= db_options KEEP NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_KEEP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 64: /* db_options ::= db_options KEEP NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_KEEP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 54: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 65: /* db_options ::= db_options PRECISION NK_STRING */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 55: /* db_options ::= db_options QUORUM NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_QUORUM, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 66: /* db_options ::= db_options QUORUM NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_QUORUM, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 56: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 67: /* db_options ::= db_options REPLICA NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 57: /* db_options ::= db_options TTL NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 68: /* db_options ::= db_options TTL NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 58: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 69: /* db_options ::= db_options WAL NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 59: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 70: /* db_options ::= db_options VGROUPS NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 60: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 71: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 61: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_STREAM_MODE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 72: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_STREAM_MODE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 62: /* db_options ::= db_options RETENTIONS NK_STRING */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_RETENTIONS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 73: /* db_options ::= db_options RETENTIONS NK_STRING */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_RETENTIONS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 63: /* db_options ::= db_options FILE_FACTOR NK_FLOAT */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 74: /* db_options ::= db_options FILE_FACTOR NK_FLOAT */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-2].minor.yy26, DB_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 64: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy168 = createDefaultAlterDatabaseOptions(pCxt); yylhsminor.yy168 = setDatabaseOption(pCxt, yylhsminor.yy168, yymsp[0].minor.yy349.type, &yymsp[0].minor.yy349.val); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 75: /* alter_db_options ::= alter_db_option */ +{ yylhsminor.yy26 = createDefaultAlterDatabaseOptions(pCxt); yylhsminor.yy26 = setDatabaseOption(pCxt, yylhsminor.yy26, yymsp[0].minor.yy443.type, &yymsp[0].minor.yy443.val); } + yymsp[0].minor.yy26 = yylhsminor.yy26; break; - case 65: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-1].minor.yy168, yymsp[0].minor.yy349.type, &yymsp[0].minor.yy349.val); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 76: /* alter_db_options ::= alter_db_options alter_db_option */ +{ yylhsminor.yy26 = setDatabaseOption(pCxt, yymsp[-1].minor.yy26, yymsp[0].minor.yy443.type, &yymsp[0].minor.yy443.val); } + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 66: /* alter_db_option ::= BLOCKS NK_INTEGER */ -{ yymsp[-1].minor.yy349.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } + case 77: /* alter_db_option ::= BLOCKS NK_INTEGER */ +{ yymsp[-1].minor.yy443.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy443.val = yymsp[0].minor.yy0; } break; - case 67: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy349.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } + case 78: /* alter_db_option ::= FSYNC NK_INTEGER */ +{ yymsp[-1].minor.yy443.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy443.val = yymsp[0].minor.yy0; } break; - case 68: /* alter_db_option ::= KEEP NK_INTEGER */ -{ yymsp[-1].minor.yy349.type = DB_OPTION_KEEP; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } + case 79: /* alter_db_option ::= KEEP NK_INTEGER */ +{ yymsp[-1].minor.yy443.type = DB_OPTION_KEEP; yymsp[-1].minor.yy443.val = yymsp[0].minor.yy0; } break; - case 69: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy349.type = DB_OPTION_WAL; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } + case 80: /* alter_db_option ::= WAL NK_INTEGER */ +{ yymsp[-1].minor.yy443.type = DB_OPTION_WAL; yymsp[-1].minor.yy443.val = yymsp[0].minor.yy0; } break; - case 70: /* alter_db_option ::= QUORUM NK_INTEGER */ -{ yymsp[-1].minor.yy349.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } + case 81: /* alter_db_option ::= QUORUM NK_INTEGER */ +{ yymsp[-1].minor.yy443.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy443.val = yymsp[0].minor.yy0; } break; - case 71: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy349.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } + case 82: /* alter_db_option ::= CACHELAST NK_INTEGER */ +{ yymsp[-1].minor.yy443.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy443.val = yymsp[0].minor.yy0; } break; - case 72: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 74: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==74); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy457, yymsp[-5].minor.yy168, yymsp[-3].minor.yy440, yymsp[-1].minor.yy440, yymsp[0].minor.yy168); } + case 83: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 85: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==85); +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy107, yymsp[-5].minor.yy26, yymsp[-3].minor.yy64, yymsp[-1].minor.yy64, yymsp[0].minor.yy26); } break; - case 73: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy440); } + case 84: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy64); } break; - case 75: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy440); } + case 86: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy64); } break; - case 76: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy457, yymsp[0].minor.yy168); } + case 87: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy107, yymsp[0].minor.yy26); } break; - case 77: /* cmd ::= SHOW TABLES */ + case 88: /* cmd ::= SHOW TABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, NULL); } break; - case 78: /* cmd ::= SHOW STABLES */ + case 89: /* cmd ::= SHOW STABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, NULL); } break; - case 79: /* cmd ::= ALTER TABLE alter_table_clause */ - case 80: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==80); - case 163: /* cmd ::= query_expression */ yytestcase(yyruleno==163); -{ pCxt->pRootNode = yymsp[0].minor.yy168; } - break; - case 81: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy168 = createAlterTableOption(pCxt, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; - break; - case 82: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - case 84: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ yytestcase(yyruleno==84); - case 86: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ yytestcase(yyruleno==86); - case 88: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ yytestcase(yyruleno==88); -{ yylhsminor.yy168 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy241, yymsp[0].minor.yy208); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; - break; - case 83: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ - case 87: /* alter_table_clause ::= full_table_name DROP TAG column_name */ yytestcase(yyruleno==87); -{ yylhsminor.yy168 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy168, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[0].minor.yy241); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; - break; - case 85: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - case 89: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ yytestcase(yyruleno==89); -{ yylhsminor.yy168 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy241, &yymsp[0].minor.yy241); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; - break; - case 90: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ -{ yylhsminor.yy168 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy168, &yymsp[-2].minor.yy241, yymsp[0].minor.yy168); } - yymsp[-5].minor.yy168 = yylhsminor.yy168; - break; - case 91: /* multi_create_clause ::= create_subtable_clause */ - case 94: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==94); - case 101: /* column_def_list ::= column_def */ yytestcase(yyruleno==101); - case 142: /* col_name_list ::= col_name */ yytestcase(yyruleno==142); - case 145: /* func_name_list ::= func_name */ yytestcase(yyruleno==145); - case 154: /* func_list ::= func */ yytestcase(yyruleno==154); - case 249: /* select_sublist ::= select_item */ yytestcase(yyruleno==249); - case 296: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==296); -{ yylhsminor.yy440 = createNodeList(pCxt, yymsp[0].minor.yy168); } - yymsp[0].minor.yy440 = yylhsminor.yy440; + case 90: /* cmd ::= ALTER TABLE alter_table_clause */ + case 91: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==91); + case 174: /* cmd ::= query_expression */ yytestcase(yyruleno==174); +{ pCxt->pRootNode = yymsp[0].minor.yy26; } + break; + case 92: /* alter_table_clause ::= full_table_name alter_table_options */ +{ yylhsminor.yy26 = createAlterTableOption(pCxt, yymsp[-1].minor.yy26, yymsp[0].minor.yy26); } + yymsp[-1].minor.yy26 = yylhsminor.yy26; + break; + case 93: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + case 95: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ yytestcase(yyruleno==95); + case 97: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ yytestcase(yyruleno==97); + case 99: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ yytestcase(yyruleno==99); +{ yylhsminor.yy26 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy26, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy353, yymsp[0].minor.yy370); } + yymsp[-4].minor.yy26 = yylhsminor.yy26; + break; + case 94: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ + case 98: /* alter_table_clause ::= full_table_name DROP TAG column_name */ yytestcase(yyruleno==98); +{ yylhsminor.yy26 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy26, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[0].minor.yy353); } + yymsp[-3].minor.yy26 = yylhsminor.yy26; + break; + case 96: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + case 100: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ yytestcase(yyruleno==100); +{ yylhsminor.yy26 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy26, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy353, &yymsp[0].minor.yy353); } + yymsp[-4].minor.yy26 = yylhsminor.yy26; + break; + case 101: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ +{ yylhsminor.yy26 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy26, &yymsp[-2].minor.yy353, yymsp[0].minor.yy26); } + yymsp[-5].minor.yy26 = yylhsminor.yy26; + break; + case 102: /* multi_create_clause ::= create_subtable_clause */ + case 105: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==105); + case 112: /* column_def_list ::= column_def */ yytestcase(yyruleno==112); + case 153: /* col_name_list ::= col_name */ yytestcase(yyruleno==153); + case 156: /* func_name_list ::= func_name */ yytestcase(yyruleno==156); + case 165: /* func_list ::= func */ yytestcase(yyruleno==165); + case 260: /* select_sublist ::= select_item */ yytestcase(yyruleno==260); + case 307: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==307); +{ yylhsminor.yy64 = createNodeList(pCxt, yymsp[0].minor.yy26); } + yymsp[0].minor.yy64 = yylhsminor.yy64; break; - case 92: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 95: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==95); -{ yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-1].minor.yy440, yymsp[0].minor.yy168); } - yymsp[-1].minor.yy440 = yylhsminor.yy440; + case 103: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 106: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==106); +{ yylhsminor.yy64 = addNodeToList(pCxt, yymsp[-1].minor.yy64, yymsp[0].minor.yy26); } + yymsp[-1].minor.yy64 = yylhsminor.yy64; break; - case 93: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ -{ yylhsminor.yy168 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy457, yymsp[-7].minor.yy168, yymsp[-5].minor.yy168, yymsp[-4].minor.yy440, yymsp[-1].minor.yy440); } - yymsp[-8].minor.yy168 = yylhsminor.yy168; + case 104: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ +{ yylhsminor.yy26 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy107, yymsp[-7].minor.yy26, yymsp[-5].minor.yy26, yymsp[-4].minor.yy64, yymsp[-1].minor.yy64); } + yymsp[-8].minor.yy26 = yylhsminor.yy26; break; - case 96: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy168 = createDropTableClause(pCxt, yymsp[-1].minor.yy457, yymsp[0].minor.yy168); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 107: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy26 = createDropTableClause(pCxt, yymsp[-1].minor.yy107, yymsp[0].minor.yy26); } + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 97: /* specific_tags_opt ::= */ - case 128: /* tags_def_opt ::= */ yytestcase(yyruleno==128); - case 257: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==257); - case 274: /* group_by_clause_opt ::= */ yytestcase(yyruleno==274); - case 284: /* order_by_clause_opt ::= */ yytestcase(yyruleno==284); -{ yymsp[1].minor.yy440 = NULL; } + case 108: /* specific_tags_opt ::= */ + case 139: /* tags_def_opt ::= */ yytestcase(yyruleno==139); + case 268: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==268); + case 285: /* group_by_clause_opt ::= */ yytestcase(yyruleno==285); + case 295: /* order_by_clause_opt ::= */ yytestcase(yyruleno==295); +{ yymsp[1].minor.yy64 = NULL; } break; - case 98: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy440 = yymsp[-1].minor.yy440; } + case 109: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy64 = yymsp[-1].minor.yy64; } break; - case 99: /* full_table_name ::= table_name */ -{ yylhsminor.yy168 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy241, NULL); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 110: /* full_table_name ::= table_name */ +{ yylhsminor.yy26 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy353, NULL); } + yymsp[0].minor.yy26 = yylhsminor.yy26; break; - case 100: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy168 = createRealTableNode(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241, NULL); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 111: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy26 = createRealTableNode(pCxt, &yymsp[-2].minor.yy353, &yymsp[0].minor.yy353, NULL); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 102: /* column_def_list ::= column_def_list NK_COMMA column_def */ - case 143: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==143); - case 146: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==146); - case 155: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==155); - case 250: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==250); - case 297: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==297); -{ yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-2].minor.yy440, yymsp[0].minor.yy168); } - yymsp[-2].minor.yy440 = yylhsminor.yy440; + case 113: /* column_def_list ::= column_def_list NK_COMMA column_def */ + case 154: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==154); + case 157: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==157); + case 166: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==166); + case 261: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==261); + case 308: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==308); +{ yylhsminor.yy64 = addNodeToList(pCxt, yymsp[-2].minor.yy64, yymsp[0].minor.yy26); } + yymsp[-2].minor.yy64 = yylhsminor.yy64; break; - case 103: /* column_def ::= column_name type_name */ -{ yylhsminor.yy168 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy241, yymsp[0].minor.yy208, NULL); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 114: /* column_def ::= column_name type_name */ +{ yylhsminor.yy26 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy353, yymsp[0].minor.yy370, NULL); } + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 104: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy168 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy241, yymsp[-2].minor.yy208, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 115: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy26 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy353, yymsp[-2].minor.yy370, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy26 = yylhsminor.yy26; break; - case 105: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 116: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 106: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 117: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 107: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 118: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 108: /* type_name ::= INT */ - case 109: /* type_name ::= INTEGER */ yytestcase(yyruleno==109); -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_INT); } + case 119: /* type_name ::= INT */ + case 120: /* type_name ::= INTEGER */ yytestcase(yyruleno==120); +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 110: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 121: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 111: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 122: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 112: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 123: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 113: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy208 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 124: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy370 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 114: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 125: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 115: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy208 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 126: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy370 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 116: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy208 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 127: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy370 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 117: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy208 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 128: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy370 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 118: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy208 = createDataType(TSDB_DATA_TYPE_UINT); } + case 129: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy370 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 119: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy208 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 130: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy370 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 120: /* type_name ::= JSON */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_JSON); } + case 131: /* type_name ::= JSON */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 121: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy208 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 132: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy370 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 122: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 133: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 123: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 134: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 124: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy208 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 135: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy370 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 125: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 136: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy370 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 126: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy208 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 137: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy370 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 127: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy208 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 138: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy370 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 129: /* tags_def_opt ::= tags_def */ - case 248: /* select_list ::= select_sublist */ yytestcase(yyruleno==248); -{ yylhsminor.yy440 = yymsp[0].minor.yy440; } - yymsp[0].minor.yy440 = yylhsminor.yy440; + case 140: /* tags_def_opt ::= tags_def */ + case 259: /* select_list ::= select_sublist */ yytestcase(yyruleno==259); +{ yylhsminor.yy64 = yymsp[0].minor.yy64; } + yymsp[0].minor.yy64 = yylhsminor.yy64; break; - case 130: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy440 = yymsp[-1].minor.yy440; } + case 141: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy64 = yymsp[-1].minor.yy64; } break; - case 131: /* table_options ::= */ -{ yymsp[1].minor.yy168 = createDefaultTableOptions(pCxt); } + case 142: /* table_options ::= */ +{ yymsp[1].minor.yy26 = createDefaultTableOptions(pCxt); } break; - case 132: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy168 = setTableOption(pCxt, yymsp[-2].minor.yy168, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 143: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy26 = setTableOption(pCxt, yymsp[-2].minor.yy26, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 133: /* table_options ::= table_options KEEP NK_INTEGER */ -{ yylhsminor.yy168 = setTableOption(pCxt, yymsp[-2].minor.yy168, TABLE_OPTION_KEEP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 144: /* table_options ::= table_options KEEP NK_INTEGER */ +{ yylhsminor.yy26 = setTableOption(pCxt, yymsp[-2].minor.yy26, TABLE_OPTION_KEEP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 134: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy168 = setTableOption(pCxt, yymsp[-2].minor.yy168, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 145: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy26 = setTableOption(pCxt, yymsp[-2].minor.yy26, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 135: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy168 = setTableSmaOption(pCxt, yymsp[-4].minor.yy168, yymsp[-1].minor.yy440); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + case 146: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy26 = setTableSmaOption(pCxt, yymsp[-4].minor.yy26, yymsp[-1].minor.yy64); } + yymsp[-4].minor.yy26 = yylhsminor.yy26; break; - case 136: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ -{ yylhsminor.yy168 = setTableRollupOption(pCxt, yymsp[-4].minor.yy168, yymsp[-1].minor.yy440); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + case 147: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ +{ yylhsminor.yy26 = setTableRollupOption(pCxt, yymsp[-4].minor.yy26, yymsp[-1].minor.yy64); } + yymsp[-4].minor.yy26 = yylhsminor.yy26; break; - case 137: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy168 = createDefaultAlterTableOptions(pCxt); yylhsminor.yy168 = setTableOption(pCxt, yylhsminor.yy168, yymsp[0].minor.yy349.type, &yymsp[0].minor.yy349.val); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 148: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy26 = createDefaultAlterTableOptions(pCxt); yylhsminor.yy26 = setTableOption(pCxt, yylhsminor.yy26, yymsp[0].minor.yy443.type, &yymsp[0].minor.yy443.val); } + yymsp[0].minor.yy26 = yylhsminor.yy26; break; - case 138: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy168 = setTableOption(pCxt, yymsp[-1].minor.yy168, yymsp[0].minor.yy349.type, &yymsp[0].minor.yy349.val); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 149: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy26 = setTableOption(pCxt, yymsp[-1].minor.yy26, yymsp[0].minor.yy443.type, &yymsp[0].minor.yy443.val); } + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 139: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy349.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } + case 150: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy443.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy443.val = yymsp[0].minor.yy0; } break; - case 140: /* alter_table_option ::= KEEP NK_INTEGER */ -{ yymsp[-1].minor.yy349.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } + case 151: /* alter_table_option ::= KEEP NK_INTEGER */ +{ yymsp[-1].minor.yy443.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy443.val = yymsp[0].minor.yy0; } break; - case 141: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy349.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } + case 152: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy443.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy443.val = yymsp[0].minor.yy0; } break; - case 144: /* col_name ::= column_name */ -{ yylhsminor.yy168 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy241); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 155: /* col_name ::= column_name */ +{ yylhsminor.yy26 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy353); } + yymsp[0].minor.yy26 = yylhsminor.yy26; break; - case 147: /* func_name ::= function_name */ -{ yylhsminor.yy168 = createFunctionNode(pCxt, &yymsp[0].minor.yy241, NULL); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 158: /* func_name ::= function_name */ +{ yylhsminor.yy26 = createFunctionNode(pCxt, &yymsp[0].minor.yy353, NULL); } + yymsp[0].minor.yy26 = yylhsminor.yy26; break; - case 148: /* cmd ::= CREATE SMA INDEX index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, &yymsp[-3].minor.yy241, &yymsp[-1].minor.yy241, NULL, yymsp[0].minor.yy168); } + case 159: /* cmd ::= CREATE SMA INDEX index_name ON table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, &yymsp[-3].minor.yy353, &yymsp[-1].minor.yy353, NULL, yymsp[0].minor.yy26); } break; - case 149: /* cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, &yymsp[-5].minor.yy241, &yymsp[-3].minor.yy241, yymsp[-1].minor.yy440, NULL); } + case 160: /* cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, &yymsp[-5].minor.yy353, &yymsp[-3].minor.yy353, yymsp[-1].minor.yy64, NULL); } break; - case 150: /* cmd ::= DROP INDEX index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241); } + case 161: /* cmd ::= DROP INDEX index_name ON table_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, &yymsp[-2].minor.yy353, &yymsp[0].minor.yy353); } break; - case 151: /* index_options ::= */ - case 255: /* where_clause_opt ::= */ yytestcase(yyruleno==255); - case 259: /* twindow_clause_opt ::= */ yytestcase(yyruleno==259); - case 264: /* sliding_opt ::= */ yytestcase(yyruleno==264); - case 266: /* fill_opt ::= */ yytestcase(yyruleno==266); - case 278: /* having_clause_opt ::= */ yytestcase(yyruleno==278); - case 286: /* slimit_clause_opt ::= */ yytestcase(yyruleno==286); - case 290: /* limit_clause_opt ::= */ yytestcase(yyruleno==290); -{ yymsp[1].minor.yy168 = NULL; } + case 162: /* index_options ::= */ + case 266: /* where_clause_opt ::= */ yytestcase(yyruleno==266); + case 270: /* twindow_clause_opt ::= */ yytestcase(yyruleno==270); + case 275: /* sliding_opt ::= */ yytestcase(yyruleno==275); + case 277: /* fill_opt ::= */ yytestcase(yyruleno==277); + case 289: /* having_clause_opt ::= */ yytestcase(yyruleno==289); + case 297: /* slimit_clause_opt ::= */ yytestcase(yyruleno==297); + case 301: /* limit_clause_opt ::= */ yytestcase(yyruleno==301); +{ yymsp[1].minor.yy26 = NULL; } break; - case 152: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy168 = createIndexOption(pCxt, yymsp[-6].minor.yy440, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), NULL, yymsp[0].minor.yy168); } + case 163: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ +{ yymsp[-8].minor.yy26 = createIndexOption(pCxt, yymsp[-6].minor.yy64, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), NULL, yymsp[0].minor.yy26); } break; - case 153: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ -{ yymsp[-10].minor.yy168 = createIndexOption(pCxt, yymsp[-8].minor.yy440, releaseRawExprNode(pCxt, yymsp[-4].minor.yy168), releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), yymsp[0].minor.yy168); } + case 164: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ +{ yymsp[-10].minor.yy26 = createIndexOption(pCxt, yymsp[-8].minor.yy64, releaseRawExprNode(pCxt, yymsp[-4].minor.yy26), releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), yymsp[0].minor.yy26); } break; - case 156: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy168 = createFunctionNode(pCxt, &yymsp[-3].minor.yy241, yymsp[-1].minor.yy440); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 167: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy26 = createFunctionNode(pCxt, &yymsp[-3].minor.yy353, yymsp[-1].minor.yy64); } + yymsp[-3].minor.yy26 = yylhsminor.yy26; break; - case 157: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy457, &yymsp[-2].minor.yy241, yymsp[0].minor.yy168, NULL); } + case 168: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy107, &yymsp[-2].minor.yy353, yymsp[0].minor.yy26, NULL); } break; - case 158: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy457, &yymsp[-2].minor.yy241, NULL, &yymsp[0].minor.yy241); } + case 169: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy107, &yymsp[-2].minor.yy353, NULL, &yymsp[0].minor.yy353); } break; - case 159: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy457, &yymsp[0].minor.yy241); } + case 170: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy107, &yymsp[0].minor.yy353); } break; - case 160: /* cmd ::= SHOW VGROUPS */ + case 171: /* cmd ::= SHOW VGROUPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, NULL); } break; - case 161: /* cmd ::= SHOW db_name NK_DOT VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, &yymsp[-2].minor.yy241); } + case 172: /* cmd ::= SHOW db_name NK_DOT VGROUPS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, &yymsp[-2].minor.yy353); } break; - case 162: /* cmd ::= SHOW MNODES */ + case 173: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL); } break; - case 164: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 165: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 166: /* literal ::= NK_STRING */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 167: /* literal ::= NK_BOOL */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 168: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; - break; - case 169: /* literal ::= duration_literal */ - case 182: /* expression ::= literal */ yytestcase(yyruleno==182); - case 183: /* expression ::= column_reference */ yytestcase(yyruleno==183); - case 186: /* expression ::= subquery */ yytestcase(yyruleno==186); - case 218: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==218); - case 222: /* boolean_primary ::= predicate */ yytestcase(yyruleno==222); - case 224: /* common_expression ::= expression */ yytestcase(yyruleno==224); - case 225: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==225); - case 227: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==227); - case 229: /* table_reference ::= table_primary */ yytestcase(yyruleno==229); - case 230: /* table_reference ::= joined_table */ yytestcase(yyruleno==230); - case 234: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==234); - case 281: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==281); - case 283: /* query_primary ::= query_specification */ yytestcase(yyruleno==283); -{ yylhsminor.yy168 = yymsp[0].minor.yy168; } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 170: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 171: /* literal_list ::= literal */ - case 195: /* expression_list ::= expression */ yytestcase(yyruleno==195); -{ yylhsminor.yy440 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } - yymsp[0].minor.yy440 = yylhsminor.yy440; - break; - case 172: /* literal_list ::= literal_list NK_COMMA literal */ - case 196: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==196); -{ yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-2].minor.yy440, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } - yymsp[-2].minor.yy440 = yylhsminor.yy440; - break; - case 184: /* expression ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy241, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy241, yymsp[-1].minor.yy440)); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; - break; - case 185: /* expression ::= function_name NK_LP NK_STAR NK_RP */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy241, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy241, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; - break; - case 187: /* expression ::= NK_LP expression NK_RP */ - case 223: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==223); -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 188: /* expression ::= NK_PLUS expression */ + case 175: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy26 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy26 = yylhsminor.yy26; + break; + case 176: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy26 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy26 = yylhsminor.yy26; + break; + case 177: /* literal ::= NK_STRING */ +{ yylhsminor.yy26 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy26 = yylhsminor.yy26; + break; + case 178: /* literal ::= NK_BOOL */ +{ yylhsminor.yy26 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy26 = yylhsminor.yy26; + break; + case 179: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy26 = yylhsminor.yy26; + break; + case 180: /* literal ::= duration_literal */ + case 193: /* expression ::= literal */ yytestcase(yyruleno==193); + case 194: /* expression ::= column_reference */ yytestcase(yyruleno==194); + case 197: /* expression ::= subquery */ yytestcase(yyruleno==197); + case 229: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==229); + case 233: /* boolean_primary ::= predicate */ yytestcase(yyruleno==233); + case 235: /* common_expression ::= expression */ yytestcase(yyruleno==235); + case 236: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==236); + case 238: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==238); + case 240: /* table_reference ::= table_primary */ yytestcase(yyruleno==240); + case 241: /* table_reference ::= joined_table */ yytestcase(yyruleno==241); + case 245: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==245); + case 292: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==292); + case 294: /* query_primary ::= query_specification */ yytestcase(yyruleno==294); +{ yylhsminor.yy26 = yymsp[0].minor.yy26; } + yymsp[0].minor.yy26 = yylhsminor.yy26; + break; + case 181: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy26 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy26 = yylhsminor.yy26; + break; + case 182: /* literal_list ::= literal */ + case 206: /* expression_list ::= expression */ yytestcase(yyruleno==206); +{ yylhsminor.yy64 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy26)); } + yymsp[0].minor.yy64 = yylhsminor.yy64; + break; + case 183: /* literal_list ::= literal_list NK_COMMA literal */ + case 207: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==207); +{ yylhsminor.yy64 = addNodeToList(pCxt, yymsp[-2].minor.yy64, releaseRawExprNode(pCxt, yymsp[0].minor.yy26)); } + yymsp[-2].minor.yy64 = yylhsminor.yy64; + break; + case 195: /* expression ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy353, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy353, yymsp[-1].minor.yy64)); } + yymsp[-3].minor.yy26 = yylhsminor.yy26; + break; + case 196: /* expression ::= function_name NK_LP NK_STAR NK_RP */ +{ yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy353, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy353, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } + yymsp[-3].minor.yy26 = yylhsminor.yy26; + break; + case 198: /* expression ::= NK_LP expression NK_RP */ + case 234: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==234); +{ yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy26)); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; + break; + case 199: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy26)); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 189: /* expression ::= NK_MINUS expression */ + case 200: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[0].minor.yy168), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[0].minor.yy26), NULL)); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 190: /* expression ::= expression NK_PLUS expression */ + case 201: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 191: /* expression ::= expression NK_MINUS expression */ + case 202: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 192: /* expression ::= expression NK_STAR expression */ + case 203: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 193: /* expression ::= expression NK_SLASH expression */ + case 204: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 194: /* expression ::= expression NK_REM expression */ + case 205: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 197: /* column_reference ::= column_name */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy241, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy241)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 208: /* column_reference ::= column_name */ +{ yylhsminor.yy26 = createRawExprNode(pCxt, &yymsp[0].minor.yy353, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy353)); } + yymsp[0].minor.yy26 = yylhsminor.yy26; break; - case 198: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241, createColumnNode(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241)); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 209: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy353, &yymsp[0].minor.yy353, createColumnNode(pCxt, &yymsp[-2].minor.yy353, &yymsp[0].minor.yy353)); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 199: /* predicate ::= expression compare_op expression */ - case 204: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==204); + case 210: /* predicate ::= expression compare_op expression */ + case 215: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==215); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy476, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy80, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 200: /* predicate ::= expression BETWEEN expression AND expression */ + case 211: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy168), releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy26), releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + yymsp[-4].minor.yy26 = yylhsminor.yy26; break; - case 201: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 212: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[-5].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[-5].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-5].minor.yy168 = yylhsminor.yy168; + yymsp[-5].minor.yy26 = yylhsminor.yy26; break; - case 202: /* predicate ::= expression IS NULL */ + case 213: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), NULL)); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 203: /* predicate ::= expression IS NOT NULL */ + case 214: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy26), NULL)); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + yymsp[-3].minor.yy26 = yylhsminor.yy26; break; - case 205: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy476 = OP_TYPE_LOWER_THAN; } + case 216: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy80 = OP_TYPE_LOWER_THAN; } break; - case 206: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy476 = OP_TYPE_GREATER_THAN; } + case 217: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy80 = OP_TYPE_GREATER_THAN; } break; - case 207: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy476 = OP_TYPE_LOWER_EQUAL; } + case 218: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy80 = OP_TYPE_LOWER_EQUAL; } break; - case 208: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy476 = OP_TYPE_GREATER_EQUAL; } + case 219: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy80 = OP_TYPE_GREATER_EQUAL; } break; - case 209: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy476 = OP_TYPE_NOT_EQUAL; } + case 220: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy80 = OP_TYPE_NOT_EQUAL; } break; - case 210: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy476 = OP_TYPE_EQUAL; } + case 221: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy80 = OP_TYPE_EQUAL; } break; - case 211: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy476 = OP_TYPE_LIKE; } + case 222: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy80 = OP_TYPE_LIKE; } break; - case 212: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy476 = OP_TYPE_NOT_LIKE; } + case 223: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy80 = OP_TYPE_NOT_LIKE; } break; - case 213: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy476 = OP_TYPE_MATCH; } + case 224: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy80 = OP_TYPE_MATCH; } break; - case 214: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy476 = OP_TYPE_NMATCH; } + case 225: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy80 = OP_TYPE_NMATCH; } break; - case 215: /* in_op ::= IN */ -{ yymsp[0].minor.yy476 = OP_TYPE_IN; } + case 226: /* in_op ::= IN */ +{ yymsp[0].minor.yy80 = OP_TYPE_IN; } break; - case 216: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy476 = OP_TYPE_NOT_IN; } + case 227: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy80 = OP_TYPE_NOT_IN; } break; - case 217: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy440)); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 228: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy64)); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 219: /* boolean_value_expression ::= NOT boolean_primary */ + case 230: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy168), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy26), NULL)); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 220: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 231: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 221: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 232: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy26); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 226: /* from_clause ::= FROM table_reference_list */ - case 256: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==256); - case 279: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==279); -{ yymsp[-1].minor.yy168 = yymsp[0].minor.yy168; } + case 237: /* from_clause ::= FROM table_reference_list */ + case 267: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==267); + case 290: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==290); +{ yymsp[-1].minor.yy26 = yymsp[0].minor.yy26; } break; - case 228: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy168 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy168, yymsp[0].minor.yy168, NULL); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 239: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy26 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy26, yymsp[0].minor.yy26, NULL); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 231: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy168 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy241, &yymsp[0].minor.yy241); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 242: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy26 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy353, &yymsp[0].minor.yy353); } + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 232: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy168 = createRealTableNode(pCxt, &yymsp[-3].minor.yy241, &yymsp[-1].minor.yy241, &yymsp[0].minor.yy241); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 243: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy26 = createRealTableNode(pCxt, &yymsp[-3].minor.yy353, &yymsp[-1].minor.yy353, &yymsp[0].minor.yy353); } + yymsp[-3].minor.yy26 = yylhsminor.yy26; break; - case 233: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy168 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168), &yymsp[0].minor.yy241); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 244: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy26 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy26), &yymsp[0].minor.yy353); } + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 235: /* alias_opt ::= */ -{ yymsp[1].minor.yy241 = nil_token; } + case 246: /* alias_opt ::= */ +{ yymsp[1].minor.yy353 = nil_token; } break; - case 236: /* alias_opt ::= table_alias */ -{ yylhsminor.yy241 = yymsp[0].minor.yy241; } - yymsp[0].minor.yy241 = yylhsminor.yy241; + case 247: /* alias_opt ::= table_alias */ +{ yylhsminor.yy353 = yymsp[0].minor.yy353; } + yymsp[0].minor.yy353 = yylhsminor.yy353; break; - case 237: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy241 = yymsp[0].minor.yy241; } + case 248: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy353 = yymsp[0].minor.yy353; } break; - case 238: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 239: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==239); -{ yymsp[-2].minor.yy168 = yymsp[-1].minor.yy168; } + case 249: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 250: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==250); +{ yymsp[-2].minor.yy26 = yymsp[-1].minor.yy26; } break; - case 240: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy168 = createJoinTableNode(pCxt, yymsp[-4].minor.yy228, yymsp[-5].minor.yy168, yymsp[-2].minor.yy168, yymsp[0].minor.yy168); } - yymsp[-5].minor.yy168 = yylhsminor.yy168; + case 251: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy26 = createJoinTableNode(pCxt, yymsp[-4].minor.yy372, yymsp[-5].minor.yy26, yymsp[-2].minor.yy26, yymsp[0].minor.yy26); } + yymsp[-5].minor.yy26 = yylhsminor.yy26; break; - case 241: /* join_type ::= */ -{ yymsp[1].minor.yy228 = JOIN_TYPE_INNER; } + case 252: /* join_type ::= */ +{ yymsp[1].minor.yy372 = JOIN_TYPE_INNER; } break; - case 242: /* join_type ::= INNER */ -{ yymsp[0].minor.yy228 = JOIN_TYPE_INNER; } + case 253: /* join_type ::= INNER */ +{ yymsp[0].minor.yy372 = JOIN_TYPE_INNER; } break; - case 243: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 254: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-8].minor.yy168 = createSelectStmt(pCxt, yymsp[-7].minor.yy457, yymsp[-6].minor.yy440, yymsp[-5].minor.yy168); - yymsp[-8].minor.yy168 = addWhereClause(pCxt, yymsp[-8].minor.yy168, yymsp[-4].minor.yy168); - yymsp[-8].minor.yy168 = addPartitionByClause(pCxt, yymsp[-8].minor.yy168, yymsp[-3].minor.yy440); - yymsp[-8].minor.yy168 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy168, yymsp[-2].minor.yy168); - yymsp[-8].minor.yy168 = addGroupByClause(pCxt, yymsp[-8].minor.yy168, yymsp[-1].minor.yy440); - yymsp[-8].minor.yy168 = addHavingClause(pCxt, yymsp[-8].minor.yy168, yymsp[0].minor.yy168); + yymsp[-8].minor.yy26 = createSelectStmt(pCxt, yymsp[-7].minor.yy107, yymsp[-6].minor.yy64, yymsp[-5].minor.yy26); + yymsp[-8].minor.yy26 = addWhereClause(pCxt, yymsp[-8].minor.yy26, yymsp[-4].minor.yy26); + yymsp[-8].minor.yy26 = addPartitionByClause(pCxt, yymsp[-8].minor.yy26, yymsp[-3].minor.yy64); + yymsp[-8].minor.yy26 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy26, yymsp[-2].minor.yy26); + yymsp[-8].minor.yy26 = addGroupByClause(pCxt, yymsp[-8].minor.yy26, yymsp[-1].minor.yy64); + yymsp[-8].minor.yy26 = addHavingClause(pCxt, yymsp[-8].minor.yy26, yymsp[0].minor.yy26); } break; - case 245: /* set_quantifier_opt ::= DISTINCT */ -{ yymsp[0].minor.yy457 = true; } + case 256: /* set_quantifier_opt ::= DISTINCT */ +{ yymsp[0].minor.yy107 = true; } break; - case 246: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy457 = false; } + case 257: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy107 = false; } break; - case 247: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy440 = NULL; } + case 258: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy64 = NULL; } break; - case 251: /* select_item ::= common_expression */ + case 262: /* select_item ::= common_expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168), &t); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy26); + yylhsminor.yy26 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy26), &t); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + yymsp[0].minor.yy26 = yylhsminor.yy26; break; - case 252: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy168 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168), &yymsp[0].minor.yy241); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 263: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy26 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy26), &yymsp[0].minor.yy353); } + yymsp[-1].minor.yy26 = yylhsminor.yy26; break; - case 253: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy168 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), &yymsp[0].minor.yy241); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 264: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy26 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), &yymsp[0].minor.yy353); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 254: /* select_item ::= table_name NK_DOT NK_STAR */ -{ yylhsminor.yy168 = createColumnNode(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 265: /* select_item ::= table_name NK_DOT NK_STAR */ +{ yylhsminor.yy26 = createColumnNode(pCxt, &yymsp[-2].minor.yy353, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 258: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 275: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==275); - case 285: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==285); -{ yymsp[-2].minor.yy440 = yymsp[0].minor.yy440; } + case 269: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 286: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==286); + case 296: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==296); +{ yymsp[-2].minor.yy64 = yymsp[0].minor.yy64; } break; - case 260: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy168 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), &yymsp[-1].minor.yy0); } + case 271: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy26 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy26), &yymsp[-1].minor.yy0); } break; - case 261: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ -{ yymsp[-3].minor.yy168 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } + case 272: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ +{ yymsp[-3].minor.yy26 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy26)); } break; - case 262: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy168 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), NULL, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } + case 273: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy26 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy26), NULL, yymsp[-1].minor.yy26, yymsp[0].minor.yy26); } break; - case 263: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy168 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy168), releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } + case 274: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy26 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy26), releaseRawExprNode(pCxt, yymsp[-3].minor.yy26), yymsp[-1].minor.yy26, yymsp[0].minor.yy26); } break; - case 265: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy168 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy168); } + case 276: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ +{ yymsp[-3].minor.yy26 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy26); } break; - case 267: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy168 = createFillNode(pCxt, yymsp[-1].minor.yy262, NULL); } + case 278: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy26 = createFillNode(pCxt, yymsp[-1].minor.yy192, NULL); } break; - case 268: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy168 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy440)); } + case 279: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy26 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy64)); } break; - case 269: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy262 = FILL_MODE_NONE; } + case 280: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy192 = FILL_MODE_NONE; } break; - case 270: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy262 = FILL_MODE_PREV; } + case 281: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy192 = FILL_MODE_PREV; } break; - case 271: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy262 = FILL_MODE_NULL; } + case 282: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy192 = FILL_MODE_NULL; } break; - case 272: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy262 = FILL_MODE_LINEAR; } + case 283: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy192 = FILL_MODE_LINEAR; } break; - case 273: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy262 = FILL_MODE_NEXT; } + case 284: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy192 = FILL_MODE_NEXT; } break; - case 276: /* group_by_list ::= expression */ -{ yylhsminor.yy440 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } - yymsp[0].minor.yy440 = yylhsminor.yy440; + case 287: /* group_by_list ::= expression */ +{ yylhsminor.yy64 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } + yymsp[0].minor.yy64 = yylhsminor.yy64; break; - case 277: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-2].minor.yy440, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } - yymsp[-2].minor.yy440 = yylhsminor.yy440; + case 288: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy64 = addNodeToList(pCxt, yymsp[-2].minor.yy64, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy26))); } + yymsp[-2].minor.yy64 = yylhsminor.yy64; break; - case 280: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 291: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy168 = addOrderByClause(pCxt, yymsp[-3].minor.yy168, yymsp[-2].minor.yy440); - yylhsminor.yy168 = addSlimitClause(pCxt, yylhsminor.yy168, yymsp[-1].minor.yy168); - yylhsminor.yy168 = addLimitClause(pCxt, yylhsminor.yy168, yymsp[0].minor.yy168); + yylhsminor.yy26 = addOrderByClause(pCxt, yymsp[-3].minor.yy26, yymsp[-2].minor.yy64); + yylhsminor.yy26 = addSlimitClause(pCxt, yylhsminor.yy26, yymsp[-1].minor.yy26); + yylhsminor.yy26 = addLimitClause(pCxt, yylhsminor.yy26, yymsp[0].minor.yy26); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + yymsp[-3].minor.yy26 = yylhsminor.yy26; break; - case 282: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy168 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy168, yymsp[0].minor.yy168); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 293: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy26 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy26, yymsp[0].minor.yy26); } + yymsp[-3].minor.yy26 = yylhsminor.yy26; break; - case 287: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 291: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==291); -{ yymsp[-1].minor.yy168 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 298: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 302: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==302); +{ yymsp[-1].minor.yy26 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 288: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 292: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==292); -{ yymsp[-3].minor.yy168 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 299: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 303: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==303); +{ yymsp[-3].minor.yy26 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 289: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 293: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==293); -{ yymsp[-3].minor.yy168 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 300: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 304: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==304); +{ yymsp[-3].minor.yy26 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 294: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy168); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 305: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy26 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy26); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 295: /* search_condition ::= common_expression */ -{ yylhsminor.yy168 = releaseRawExprNode(pCxt, yymsp[0].minor.yy168); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 306: /* search_condition ::= common_expression */ +{ yylhsminor.yy26 = releaseRawExprNode(pCxt, yymsp[0].minor.yy26); } + yymsp[0].minor.yy26 = yylhsminor.yy26; break; - case 298: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy168 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), yymsp[-1].minor.yy258, yymsp[0].minor.yy425); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 309: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy26 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy26), yymsp[-1].minor.yy32, yymsp[0].minor.yy391); } + yymsp[-2].minor.yy26 = yylhsminor.yy26; break; - case 299: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy258 = ORDER_ASC; } + case 310: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy32 = ORDER_ASC; } break; - case 300: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy258 = ORDER_ASC; } + case 311: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy32 = ORDER_ASC; } break; - case 301: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy258 = ORDER_DESC; } + case 312: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy32 = ORDER_DESC; } break; - case 302: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy425 = NULL_ORDER_DEFAULT; } + case 313: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy391 = NULL_ORDER_DEFAULT; } break; - case 303: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy425 = NULL_ORDER_FIRST; } + case 314: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy391 = NULL_ORDER_FIRST; } break; - case 304: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy425 = NULL_ORDER_LAST; } + case 315: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy391 = NULL_ORDER_LAST; } break; default: break;