提交 67976208 编写于 作者: D dapan1121

remove sub query

上级 49c70a84
......@@ -212,6 +212,8 @@
#define TK_SPACE 300
#define TK_COMMENT 301
#define TK_ILLEGAL 302
......
......@@ -28,7 +28,7 @@
#include <stdbool.h>
#include "qSqlparser.h"
#include "tcmdtype.h"
#include "tstoken.h"
#include "ttoken.h"
#include "ttokendef.h"
#include "tutil.h"
#include "tvariant.h"
......@@ -507,7 +507,6 @@ distinct(X) ::= . { X.n = 0;}
// A complete FROM clause.
%type from {SFromInfo*}
from(A) ::= FROM tablelist(X). {A = X;}
from(A) ::= FROM LP union(Y) RP. {A = Y;}
%type tablelist {SArray*}
tablelist(A) ::= ids(X) cpxName(Y). {
......
......@@ -26,11 +26,11 @@
#include <assert.h>
/************ Begin %include sections from the grammar ************************/
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>
#include "qSqlparser.h"
#include "tcmdtype.h"
#include "ttoken.h"
......@@ -137,18 +137,18 @@ typedef union {
#define ParseCTX_FETCH
#define ParseCTX_STORE
#define YYFALLBACK 1
#define YYNSTATE 315
#define YYNRULE 269
#define YYNRULE_WITH_ACTION 269
#define YYNSTATE 313
#define YYNRULE 268
#define YYNRULE_WITH_ACTION 268
#define YYNTOKEN 187
#define YY_MAX_SHIFT 314
#define YY_MIN_SHIFTREDUCE 508
#define YY_MAX_SHIFTREDUCE 776
#define YY_ERROR_ACTION 777
#define YY_ACCEPT_ACTION 778
#define YY_NO_ACTION 779
#define YY_MIN_REDUCE 780
#define YY_MAX_REDUCE 1048
#define YY_MAX_SHIFT 312
#define YY_MIN_SHIFTREDUCE 505
#define YY_MAX_SHIFTREDUCE 772
#define YY_ERROR_ACTION 773
#define YY_ACCEPT_ACTION 774
#define YY_NO_ACTION 775
#define YY_MIN_REDUCE 776
#define YY_MAX_REDUCE 1043
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
......@@ -215,76 +215,76 @@ typedef union {
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (672)
#define YY_ACTTAB_COUNT (675)
static const YYACTIONTYPE yy_action[] = {
/* 0 */ 133, 555, 204, 312, 208, 140, 947, 17, 85, 556,
/* 10 */ 778, 314, 179, 47, 48, 140, 51, 52, 30, 181,
/* 20 */ 214, 41, 181, 50, 262, 55, 53, 57, 54, 1029,
/* 30 */ 926, 211, 1030, 46, 45, 185, 181, 44, 43, 42,
/* 40 */ 47, 48, 914, 51, 52, 210, 1030, 214, 41, 555,
/* 50 */ 50, 262, 55, 53, 57, 54, 938, 556, 1026, 205,
/* 60 */ 46, 45, 923, 247, 44, 43, 42, 48, 944, 51,
/* 70 */ 52, 242, 978, 214, 41, 555, 50, 262, 55, 53,
/* 80 */ 57, 54, 979, 556, 257, 278, 46, 45, 298, 225,
/* 90 */ 44, 43, 42, 509, 510, 511, 512, 513, 514, 515,
/* 100 */ 516, 517, 518, 519, 520, 521, 313, 634, 1025, 231,
/* 110 */ 70, 555, 30, 47, 48, 1024, 51, 52, 825, 556,
/* 120 */ 214, 41, 166, 50, 262, 55, 53, 57, 54, 44,
/* 130 */ 43, 42, 720, 46, 45, 288, 287, 44, 43, 42,
/* 140 */ 47, 49, 834, 51, 52, 198, 166, 214, 41, 234,
/* 150 */ 50, 262, 55, 53, 57, 54, 922, 238, 237, 227,
/* 160 */ 46, 45, 285, 284, 44, 43, 42, 23, 276, 307,
/* 170 */ 306, 275, 274, 273, 305, 272, 304, 303, 302, 271,
/* 180 */ 301, 300, 886, 140, 874, 875, 876, 877, 878, 879,
/* 190 */ 880, 881, 882, 883, 884, 885, 887, 888, 51, 52,
/* 200 */ 826, 219, 214, 41, 166, 50, 262, 55, 53, 57,
/* 210 */ 54, 223, 18, 82, 25, 46, 45, 1, 154, 44,
/* 220 */ 43, 42, 213, 735, 938, 722, 724, 926, 727, 190,
/* 230 */ 730, 226, 213, 735, 140, 191, 724, 912, 727, 206,
/* 240 */ 730, 118, 117, 189, 909, 910, 29, 913, 259, 74,
/* 250 */ 78, 726, 30, 729, 200, 201, 221, 36, 261, 199,
/* 260 */ 23, 723, 307, 306, 200, 201, 924, 305, 30, 304,
/* 270 */ 303, 302, 74, 301, 300, 894, 183, 308, 892, 893,
/* 280 */ 36, 224, 926, 895, 280, 897, 898, 896, 184, 899,
/* 290 */ 900, 920, 658, 217, 69, 655, 923, 656, 725, 657,
/* 300 */ 728, 79, 241, 926, 68, 55, 53, 57, 54, 218,
/* 310 */ 197, 212, 923, 46, 45, 30, 278, 44, 43, 42,
/* 320 */ 673, 103, 108, 228, 229, 56, 911, 97, 107, 113,
/* 330 */ 116, 106, 736, 220, 263, 56, 186, 110, 732, 30,
/* 340 */ 180, 30, 736, 5, 156, 30, 3, 167, 732, 33,
/* 350 */ 155, 92, 87, 91, 731, 6, 281, 701, 702, 923,
/* 360 */ 174, 170, 28, 733, 731, 268, 172, 169, 121, 120,
/* 370 */ 119, 46, 45, 105, 80, 44, 43, 42, 298, 662,
/* 380 */ 282, 663, 286, 923, 670, 923, 290, 71, 12, 923,
/* 390 */ 187, 24, 84, 188, 81, 311, 310, 126, 677, 243,
/* 400 */ 680, 659, 660, 31, 661, 686, 1040, 692, 245, 135,
/* 410 */ 734, 60, 693, 756, 737, 61, 20, 19, 19, 64,
/* 420 */ 644, 265, 646, 267, 31, 31, 60, 83, 645, 67,
/* 430 */ 739, 633, 60, 925, 96, 95, 194, 62, 195, 65,
/* 440 */ 193, 14, 13, 102, 101, 115, 114, 131, 129, 16,
/* 450 */ 15, 178, 192, 182, 989, 988, 215, 239, 985, 132,
/* 460 */ 984, 216, 289, 946, 39, 971, 954, 956, 134, 138,
/* 470 */ 970, 939, 246, 130, 921, 151, 919, 150, 152, 153,
/* 480 */ 248, 837, 270, 685, 890, 299, 104, 291, 148, 37,
/* 490 */ 145, 176, 936, 141, 34, 58, 207, 250, 255, 66,
/* 500 */ 63, 142, 279, 833, 1045, 260, 143, 258, 144, 256,
/* 510 */ 93, 1044, 1042, 254, 157, 146, 283, 1039, 99, 1038,
/* 520 */ 1036, 252, 158, 855, 35, 32, 38, 177, 249, 822,
/* 530 */ 109, 820, 111, 112, 818, 817, 230, 168, 815, 814,
/* 540 */ 813, 812, 811, 810, 171, 173, 807, 805, 803, 801,
/* 550 */ 799, 175, 40, 244, 72, 75, 251, 292, 972, 293,
/* 560 */ 294, 296, 295, 297, 309, 776, 202, 222, 269, 232,
/* 570 */ 233, 203, 775, 235, 88, 89, 236, 196, 774, 762,
/* 580 */ 761, 240, 245, 8, 73, 264, 209, 665, 687, 816,
/* 590 */ 165, 856, 161, 159, 160, 122, 162, 163, 123, 164,
/* 600 */ 809, 2, 76, 124, 125, 808, 800, 136, 137, 4,
/* 610 */ 690, 149, 147, 77, 253, 26, 694, 139, 902, 9,
/* 620 */ 10, 27, 738, 7, 11, 740, 21, 22, 266, 86,
/* 630 */ 597, 593, 84, 591, 590, 589, 586, 559, 277, 90,
/* 640 */ 94, 31, 636, 59, 635, 632, 581, 579, 571, 577,
/* 650 */ 573, 575, 569, 567, 98, 100, 600, 599, 598, 596,
/* 660 */ 595, 594, 592, 588, 587, 60, 557, 525, 523, 780,
/* 670 */ 127, 128,
/* 0 */ 132, 552, 203, 310, 206, 139, 943, 17, 84, 553,
/* 10 */ 774, 312, 178, 46, 47, 139, 50, 51, 29, 180,
/* 20 */ 212, 40, 180, 49, 260, 54, 52, 56, 53, 1024,
/* 30 */ 922, 209, 1025, 45, 44, 184, 180, 43, 42, 41,
/* 40 */ 46, 47, 910, 50, 51, 208, 1025, 212, 40, 552,
/* 50 */ 49, 260, 54, 52, 56, 53, 934, 553, 1021, 204,
/* 60 */ 45, 44, 919, 245, 43, 42, 41, 47, 940, 50,
/* 70 */ 51, 241, 973, 212, 40, 552, 49, 260, 54, 52,
/* 80 */ 56, 53, 974, 553, 255, 217, 45, 44, 276, 223,
/* 90 */ 43, 42, 41, 506, 507, 508, 509, 510, 511, 512,
/* 100 */ 513, 514, 515, 516, 517, 518, 311, 631, 1020, 229,
/* 110 */ 71, 922, 29, 46, 47, 1019, 50, 51, 821, 219,
/* 120 */ 212, 40, 165, 49, 260, 54, 52, 56, 53, 43,
/* 130 */ 42, 41, 716, 45, 44, 286, 285, 43, 42, 41,
/* 140 */ 46, 48, 296, 50, 51, 922, 908, 212, 40, 232,
/* 150 */ 49, 260, 54, 52, 56, 53, 918, 236, 235, 225,
/* 160 */ 45, 44, 283, 282, 43, 42, 41, 23, 274, 305,
/* 170 */ 304, 273, 272, 271, 303, 270, 302, 301, 300, 269,
/* 180 */ 299, 298, 882, 139, 870, 871, 872, 873, 874, 875,
/* 190 */ 876, 877, 878, 879, 880, 881, 883, 884, 50, 51,
/* 200 */ 830, 306, 212, 40, 165, 49, 260, 54, 52, 56,
/* 210 */ 53, 221, 18, 81, 916, 45, 44, 69, 197, 43,
/* 220 */ 42, 41, 211, 731, 139, 276, 720, 922, 723, 189,
/* 230 */ 726, 224, 211, 731, 104, 190, 720, 198, 723, 296,
/* 240 */ 726, 117, 116, 188, 905, 906, 28, 909, 257, 907,
/* 250 */ 77, 722, 29, 725, 199, 200, 218, 242, 259, 261,
/* 260 */ 23, 30, 305, 304, 199, 200, 920, 303, 29, 302,
/* 270 */ 301, 300, 70, 299, 298, 890, 3, 166, 888, 889,
/* 280 */ 35, 222, 182, 891, 278, 893, 894, 892, 79, 895,
/* 290 */ 896, 78, 655, 215, 183, 652, 919, 653, 721, 654,
/* 300 */ 724, 72, 239, 70, 67, 54, 52, 56, 53, 216,
/* 310 */ 196, 35, 919, 45, 44, 29, 822, 43, 42, 41,
/* 320 */ 165, 102, 107, 226, 227, 55, 670, 96, 106, 112,
/* 330 */ 115, 105, 732, 1, 153, 55, 185, 109, 728, 29,
/* 340 */ 179, 29, 732, 5, 155, 29, 697, 698, 728, 32,
/* 350 */ 154, 91, 86, 90, 727, 735, 279, 60, 667, 919,
/* 360 */ 173, 169, 718, 729, 727, 24, 171, 168, 120, 119,
/* 370 */ 118, 45, 44, 210, 682, 43, 42, 41, 134, 61,
/* 380 */ 280, 27, 284, 919, 266, 919, 288, 688, 12, 919,
/* 390 */ 186, 59, 83, 187, 80, 309, 308, 125, 719, 689,
/* 400 */ 63, 656, 752, 20, 674, 733, 19, 641, 263, 19,
/* 410 */ 730, 30, 30, 193, 643, 265, 194, 6, 59, 82,
/* 420 */ 64, 642, 192, 95, 94, 59, 14, 13, 114, 113,
/* 430 */ 101, 100, 66, 659, 630, 660, 177, 16, 15, 657,
/* 440 */ 191, 658, 130, 128, 181, 1035, 921, 237, 935, 984,
/* 450 */ 983, 213, 980, 979, 214, 287, 131, 942, 38, 966,
/* 460 */ 949, 951, 133, 244, 137, 965, 917, 129, 150, 149,
/* 470 */ 243, 246, 205, 915, 681, 297, 151, 152, 886, 148,
/* 480 */ 146, 144, 141, 932, 140, 833, 268, 57, 248, 253,
/* 490 */ 65, 36, 258, 62, 175, 33, 277, 829, 1040, 142,
/* 500 */ 256, 92, 1039, 143, 1037, 156, 254, 281, 1034, 98,
/* 510 */ 1033, 1031, 157, 851, 34, 31, 37, 176, 252, 818,
/* 520 */ 108, 250, 816, 110, 111, 814, 813, 228, 247, 167,
/* 530 */ 811, 810, 809, 808, 807, 806, 170, 172, 803, 801,
/* 540 */ 799, 797, 103, 795, 174, 39, 73, 74, 289, 249,
/* 550 */ 967, 290, 291, 292, 293, 294, 295, 201, 220, 267,
/* 560 */ 307, 772, 230, 231, 202, 87, 195, 88, 771, 233,
/* 570 */ 234, 770, 758, 757, 812, 238, 8, 68, 240, 805,
/* 580 */ 160, 121, 159, 852, 158, 161, 162, 164, 122, 163,
/* 590 */ 2, 123, 804, 4, 262, 124, 796, 662, 75, 683,
/* 600 */ 135, 207, 686, 76, 147, 145, 898, 136, 251, 9,
/* 610 */ 690, 138, 25, 10, 734, 26, 7, 11, 21, 736,
/* 620 */ 22, 85, 264, 594, 590, 83, 588, 587, 586, 583,
/* 630 */ 556, 275, 93, 89, 30, 633, 58, 632, 629, 578,
/* 640 */ 576, 97, 568, 574, 570, 572, 566, 564, 597, 99,
/* 650 */ 596, 595, 593, 592, 591, 589, 585, 584, 59, 554,
/* 660 */ 776, 522, 520, 775, 775, 126, 775, 775, 775, 775,
/* 670 */ 775, 775, 775, 775, 127,
};
static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 190, 1, 189, 190, 209, 190, 190, 251, 196, 9,
......@@ -295,66 +295,66 @@ static const YYCODETYPE yy_lookahead[] = {
/* 50 */ 23, 24, 25, 26, 27, 28, 233, 9, 251, 231,
/* 60 */ 33, 34, 234, 253, 37, 38, 39, 14, 252, 16,
/* 70 */ 17, 248, 257, 20, 21, 1, 23, 24, 25, 26,
/* 80 */ 27, 28, 257, 9, 259, 79, 33, 34, 81, 67,
/* 80 */ 27, 28, 257, 9, 259, 209, 33, 34, 79, 67,
/* 90 */ 37, 38, 39, 45, 46, 47, 48, 49, 50, 51,
/* 100 */ 52, 53, 54, 55, 56, 57, 58, 5, 251, 61,
/* 110 */ 110, 1, 190, 13, 14, 251, 16, 17, 195, 9,
/* 110 */ 110, 235, 190, 13, 14, 251, 16, 17, 195, 209,
/* 120 */ 20, 21, 199, 23, 24, 25, 26, 27, 28, 37,
/* 130 */ 38, 39, 105, 33, 34, 33, 34, 37, 38, 39,
/* 140 */ 13, 14, 195, 16, 17, 251, 199, 20, 21, 135,
/* 140 */ 13, 14, 81, 16, 17, 235, 0, 20, 21, 135,
/* 150 */ 23, 24, 25, 26, 27, 28, 234, 143, 144, 137,
/* 160 */ 33, 34, 140, 141, 37, 38, 39, 88, 89, 90,
/* 170 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
/* 180 */ 101, 102, 208, 190, 210, 211, 212, 213, 214, 215,
/* 190 */ 216, 217, 218, 219, 220, 221, 222, 223, 16, 17,
/* 200 */ 195, 209, 20, 21, 199, 23, 24, 25, 26, 27,
/* 210 */ 28, 67, 44, 196, 104, 33, 34, 197, 198, 37,
/* 220 */ 38, 39, 1, 2, 233, 1, 5, 235, 7, 61,
/* 230 */ 9, 190, 1, 2, 190, 67, 5, 0, 7, 248,
/* 240 */ 9, 73, 74, 75, 227, 228, 229, 230, 255, 104,
/* 250 */ 257, 5, 190, 7, 33, 34, 209, 112, 37, 251,
/* 260 */ 88, 37, 90, 91, 33, 34, 225, 95, 190, 97,
/* 270 */ 98, 99, 104, 101, 102, 208, 251, 209, 211, 212,
/* 280 */ 112, 137, 235, 216, 140, 218, 219, 220, 251, 222,
/* 290 */ 223, 190, 2, 231, 196, 5, 234, 7, 5, 9,
/* 300 */ 7, 257, 134, 235, 136, 25, 26, 27, 28, 231,
/* 310 */ 142, 60, 234, 33, 34, 190, 79, 37, 38, 39,
/* 320 */ 37, 62, 63, 33, 34, 104, 228, 68, 69, 70,
/* 330 */ 71, 72, 111, 232, 15, 104, 251, 78, 117, 190,
/* 340 */ 251, 190, 111, 62, 63, 190, 193, 194, 117, 68,
/* 350 */ 69, 70, 71, 72, 133, 104, 231, 124, 125, 234,
/* 360 */ 62, 63, 104, 117, 133, 107, 68, 69, 70, 71,
/* 370 */ 72, 33, 34, 76, 236, 37, 38, 39, 81, 5,
/* 380 */ 231, 7, 231, 234, 109, 234, 231, 249, 104, 234,
/* 390 */ 251, 116, 108, 251, 110, 64, 65, 66, 115, 105,
/* 400 */ 105, 111, 5, 109, 7, 105, 235, 105, 113, 109,
/* 410 */ 117, 109, 105, 105, 105, 109, 109, 109, 109, 109,
/* 420 */ 105, 105, 105, 105, 109, 109, 109, 109, 105, 104,
/* 430 */ 111, 106, 109, 235, 138, 139, 251, 131, 251, 129,
/* 440 */ 251, 138, 139, 138, 139, 76, 77, 62, 63, 138,
/* 450 */ 139, 251, 251, 251, 226, 226, 226, 190, 226, 190,
/* 460 */ 226, 226, 226, 190, 250, 258, 190, 190, 190, 190,
/* 470 */ 258, 233, 233, 60, 233, 190, 190, 237, 190, 190,
/* 480 */ 254, 190, 190, 117, 224, 103, 87, 86, 239, 190,
/* 490 */ 242, 190, 247, 246, 190, 127, 254, 254, 254, 128,
/* 500 */ 130, 245, 190, 190, 190, 122, 244, 126, 243, 121,
/* 510 */ 190, 190, 190, 120, 190, 241, 190, 190, 190, 190,
/* 210 */ 28, 67, 44, 196, 190, 33, 34, 196, 251, 37,
/* 220 */ 38, 39, 1, 2, 190, 79, 5, 235, 7, 61,
/* 230 */ 9, 190, 1, 2, 76, 67, 5, 251, 7, 81,
/* 240 */ 9, 73, 74, 75, 227, 228, 229, 230, 255, 228,
/* 250 */ 257, 5, 190, 7, 33, 34, 232, 105, 37, 15,
/* 260 */ 88, 109, 90, 91, 33, 34, 225, 95, 190, 97,
/* 270 */ 98, 99, 104, 101, 102, 208, 193, 194, 211, 212,
/* 280 */ 112, 137, 251, 216, 140, 218, 219, 220, 236, 222,
/* 290 */ 223, 257, 2, 231, 251, 5, 234, 7, 5, 9,
/* 300 */ 7, 249, 134, 104, 136, 25, 26, 27, 28, 231,
/* 310 */ 142, 112, 234, 33, 34, 190, 195, 37, 38, 39,
/* 320 */ 199, 62, 63, 33, 34, 104, 37, 68, 69, 70,
/* 330 */ 71, 72, 111, 197, 198, 104, 251, 78, 117, 190,
/* 340 */ 251, 190, 111, 62, 63, 190, 124, 125, 117, 68,
/* 350 */ 69, 70, 71, 72, 133, 111, 231, 109, 109, 234,
/* 360 */ 62, 63, 1, 117, 133, 116, 68, 69, 70, 71,
/* 370 */ 72, 33, 34, 60, 105, 37, 38, 39, 109, 131,
/* 380 */ 231, 104, 231, 234, 107, 234, 231, 105, 104, 234,
/* 390 */ 251, 109, 108, 251, 110, 64, 65, 66, 37, 105,
/* 400 */ 109, 111, 105, 109, 115, 105, 109, 105, 105, 109,
/* 410 */ 117, 109, 109, 251, 105, 105, 251, 104, 109, 109,
/* 420 */ 129, 105, 251, 138, 139, 109, 138, 139, 76, 77,
/* 430 */ 138, 139, 104, 5, 106, 7, 251, 138, 139, 5,
/* 440 */ 251, 7, 62, 63, 251, 235, 235, 190, 233, 226,
/* 450 */ 226, 226, 226, 226, 226, 226, 190, 190, 250, 258,
/* 460 */ 190, 190, 190, 233, 190, 258, 233, 60, 190, 237,
/* 470 */ 191, 254, 254, 190, 117, 103, 190, 190, 224, 238,
/* 480 */ 240, 242, 245, 247, 246, 190, 190, 127, 254, 254,
/* 490 */ 128, 190, 122, 130, 190, 190, 190, 190, 190, 244,
/* 500 */ 126, 190, 190, 243, 190, 190, 121, 190, 190, 190,
/* 510 */ 190, 190, 190, 190, 190, 190, 190, 190, 120, 190,
/* 520 */ 190, 119, 190, 190, 190, 190, 190, 190, 118, 190,
/* 530 */ 190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
/* 540 */ 190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
/* 550 */ 190, 190, 132, 191, 191, 191, 191, 50, 191, 83,
/* 560 */ 85, 84, 54, 82, 79, 5, 191, 191, 191, 145,
/* 570 */ 5, 191, 5, 145, 196, 196, 5, 191, 5, 90,
/* 580 */ 89, 135, 113, 104, 114, 107, 1, 105, 105, 191,
/* 590 */ 200, 207, 201, 206, 205, 192, 204, 202, 192, 203,
/* 600 */ 191, 197, 109, 192, 192, 191, 191, 104, 109, 193,
/* 610 */ 105, 238, 240, 104, 104, 109, 105, 104, 224, 123,
/* 620 */ 123, 109, 105, 104, 104, 111, 104, 104, 107, 76,
/* 630 */ 9, 5, 108, 5, 5, 5, 5, 80, 15, 76,
/* 640 */ 139, 109, 5, 16, 5, 105, 5, 5, 5, 5,
/* 650 */ 5, 5, 5, 5, 139, 139, 5, 5, 5, 5,
/* 660 */ 5, 5, 5, 5, 5, 109, 80, 60, 59, 0,
/* 670 */ 21, 21, 262, 262, 262, 262, 262, 262, 262, 262,
/* 540 */ 190, 190, 87, 190, 190, 132, 191, 191, 86, 191,
/* 550 */ 191, 50, 83, 85, 54, 84, 82, 191, 191, 191,
/* 560 */ 79, 5, 145, 5, 191, 196, 191, 196, 5, 145,
/* 570 */ 5, 5, 90, 89, 191, 135, 104, 114, 113, 191,
/* 580 */ 201, 192, 205, 207, 206, 204, 202, 200, 192, 203,
/* 590 */ 197, 192, 191, 193, 107, 192, 191, 105, 109, 105,
/* 600 */ 104, 1, 105, 104, 239, 241, 224, 109, 104, 123,
/* 610 */ 105, 104, 109, 123, 105, 109, 104, 104, 104, 111,
/* 620 */ 104, 76, 107, 9, 5, 108, 5, 5, 5, 5,
/* 630 */ 80, 15, 139, 76, 109, 5, 16, 5, 105, 5,
/* 640 */ 5, 139, 5, 5, 5, 5, 5, 5, 5, 139,
/* 650 */ 5, 5, 5, 5, 5, 5, 5, 5, 109, 80,
/* 660 */ 0, 60, 59, 262, 262, 21, 262, 262, 262, 262,
/* 670 */ 262, 262, 262, 262, 21, 262, 262, 262, 262, 262,
/* 680 */ 262, 262, 262, 262, 262, 262, 262, 262, 262, 262,
/* 690 */ 262, 262, 262, 262, 262, 262, 262, 262, 262, 262,
/* 700 */ 262, 262, 262, 262, 262, 262, 262, 262, 262, 262,
......@@ -372,101 +372,102 @@ static const YYCODETYPE yy_lookahead[] = {
/* 820 */ 262, 262, 262, 262, 262, 262, 262, 262, 262, 262,
/* 830 */ 262, 262, 262, 262, 262, 262, 262, 262, 262, 262,
/* 840 */ 262, 262, 262, 262, 262, 262, 262, 262, 262, 262,
/* 850 */ 262, 262, 262, 262, 262, 262, 262, 262, 262,
/* 850 */ 262, 262, 262, 262, 262, 262, 262, 262, 262, 262,
/* 860 */ 262, 262,
};
#define YY_SHIFT_COUNT (314)
#define YY_SHIFT_COUNT (312)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (669)
#define YY_SHIFT_MAX (660)
static const unsigned short int yy_shift_ofst[] = {
/* 0 */ 168, 79, 79, 172, 172, 6, 221, 231, 74, 74,
/* 0 */ 168, 79, 79, 172, 172, 9, 221, 231, 74, 74,
/* 10 */ 74, 74, 74, 74, 74, 74, 74, 0, 48, 231,
/* 20 */ 290, 290, 290, 290, 110, 145, 74, 74, 74, 237,
/* 30 */ 74, 74, 297, 6, 7, 7, 672, 672, 672, 231,
/* 20 */ 290, 290, 290, 290, 74, 74, 74, 74, 146, 74,
/* 30 */ 74, 158, 9, 61, 61, 675, 675, 675, 231, 231,
/* 40 */ 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
/* 50 */ 231, 231, 231, 231, 231, 231, 231, 231, 231, 290,
/* 60 */ 290, 102, 102, 102, 102, 102, 102, 102, 74, 74,
/* 70 */ 74, 283, 74, 145, 145, 74, 74, 74, 233, 233,
/* 80 */ 275, 145, 74, 74, 74, 74, 74, 74, 74, 74,
/* 50 */ 231, 231, 231, 231, 231, 231, 231, 231, 290, 290,
/* 60 */ 102, 102, 102, 102, 102, 102, 102, 74, 199, 74,
/* 70 */ 199, 74, 289, 74, 74, 74, 74, 222, 222, 249,
/* 80 */ 199, 74, 74, 74, 74, 74, 74, 74, 74, 74,
/* 90 */ 74, 74, 74, 74, 74, 74, 74, 74, 74, 74,
/* 100 */ 74, 74, 74, 74, 74, 74, 74, 74, 74, 74,
/* 110 */ 74, 74, 74, 74, 74, 74, 74, 74, 74, 74,
/* 120 */ 74, 74, 74, 74, 74, 74, 74, 74, 74, 74,
/* 130 */ 74, 74, 413, 413, 413, 366, 366, 366, 413, 366,
/* 140 */ 413, 371, 370, 368, 383, 381, 388, 393, 402, 410,
/* 150 */ 420, 413, 413, 413, 382, 6, 6, 413, 413, 399,
/* 160 */ 401, 507, 476, 475, 508, 477, 481, 382, 413, 485,
/* 170 */ 485, 413, 485, 413, 485, 413, 672, 672, 27, 100,
/* 180 */ 127, 100, 100, 53, 182, 280, 280, 280, 280, 259,
/* 190 */ 281, 298, 338, 338, 338, 338, 22, 14, 92, 92,
/* 200 */ 246, 293, 284, 144, 331, 294, 295, 300, 302, 307,
/* 210 */ 308, 309, 224, 251, 319, 306, 310, 315, 316, 317,
/* 220 */ 318, 323, 258, 296, 303, 305, 325, 311, 374, 397,
/* 230 */ 369, 385, 560, 424, 565, 567, 428, 571, 573, 489,
/* 240 */ 491, 446, 469, 478, 479, 470, 482, 493, 483, 503,
/* 250 */ 505, 499, 509, 585, 510, 511, 513, 506, 496, 512,
/* 260 */ 497, 517, 519, 514, 520, 478, 522, 521, 523, 524,
/* 270 */ 553, 621, 626, 628, 629, 630, 631, 557, 623, 563,
/* 280 */ 501, 532, 532, 627, 515, 516, 532, 637, 639, 540,
/* 290 */ 532, 641, 642, 643, 644, 645, 646, 647, 648, 651,
/* 300 */ 652, 653, 654, 655, 656, 657, 658, 659, 556, 586,
/* 310 */ 649, 650, 607, 609, 669,
/* 130 */ 74, 407, 407, 407, 357, 357, 357, 407, 357, 407,
/* 140 */ 362, 363, 360, 370, 374, 385, 398, 402, 410, 413,
/* 150 */ 407, 407, 407, 372, 9, 9, 407, 407, 455, 462,
/* 160 */ 501, 469, 468, 500, 471, 474, 372, 407, 481, 481,
/* 170 */ 407, 481, 407, 481, 407, 675, 675, 27, 100, 127,
/* 180 */ 100, 100, 53, 182, 280, 280, 280, 280, 259, 281,
/* 190 */ 298, 338, 338, 338, 338, 22, 14, 92, 92, 246,
/* 200 */ 293, 284, 144, 331, 152, 269, 282, 294, 297, 300,
/* 210 */ 361, 313, 244, 248, 291, 302, 303, 309, 310, 316,
/* 220 */ 277, 285, 288, 292, 328, 299, 428, 434, 352, 380,
/* 230 */ 556, 417, 558, 563, 424, 565, 566, 482, 484, 440,
/* 240 */ 463, 465, 487, 472, 492, 489, 494, 496, 497, 498,
/* 250 */ 499, 600, 504, 505, 507, 503, 486, 506, 490, 509,
/* 260 */ 512, 508, 513, 487, 514, 515, 516, 517, 545, 614,
/* 270 */ 619, 621, 622, 623, 624, 550, 616, 557, 493, 525,
/* 280 */ 525, 620, 502, 510, 525, 630, 632, 533, 525, 634,
/* 290 */ 635, 637, 638, 639, 640, 641, 642, 643, 645, 646,
/* 300 */ 647, 648, 649, 650, 651, 652, 549, 579, 644, 653,
/* 310 */ 601, 603, 660,
};
#define YY_REDUCE_COUNT (177)
#define YY_REDUCE_COUNT (176)
#define YY_REDUCE_MIN (-244)
#define YY_REDUCE_MAX (416)
#define YY_REDUCE_MAX (405)
static const short yy_reduce_ofst[] = {
/* 0 */ -177, -26, -26, 67, 67, 17, -229, -215, -172, -175,
/* 10 */ -7, 62, 78, 125, 149, 151, 155, -184, -187, -232,
/* 20 */ -205, -8, 47, 68, -190, -9, -185, 44, 101, -188,
/* 30 */ 41, -78, -77, 98, -53, 5, 138, 20, 153, -244,
/* 40 */ -239, -216, -193, -143, -136, -106, 8, 25, 37, 85,
/* 50 */ 89, 139, 142, 185, 187, 189, 200, 201, 202, 171,
/* 60 */ 198, 228, 229, 230, 232, 234, 235, 236, 267, 269,
/* 70 */ 273, 214, 276, 238, 239, 277, 278, 279, 207, 212,
/* 80 */ 240, 241, 285, 286, 288, 289, 291, 292, 299, 301,
/* 90 */ 304, 312, 313, 314, 320, 321, 322, 324, 326, 327,
/* 100 */ 328, 329, 330, 332, 333, 334, 335, 336, 337, 339,
/* 110 */ 340, 341, 342, 343, 344, 345, 346, 347, 348, 349,
/* 120 */ 350, 351, 352, 353, 354, 355, 356, 357, 358, 359,
/* 130 */ 360, 361, 362, 363, 364, 226, 242, 243, 365, 244,
/* 140 */ 367, 245, 247, 256, 262, 265, 248, 274, 372, 249,
/* 150 */ 373, 375, 376, 377, 260, 378, 379, 380, 386, 384,
/* 160 */ 387, 389, 391, 392, 395, 396, 390, 394, 398, 403,
/* 170 */ 406, 409, 411, 414, 412, 415, 404, 416,
/* 20 */ -205, -124, -90, -8, -190, -185, 34, 24, -188, 41,
/* 30 */ -78, -77, 21, 5, 121, 52, 136, 83, -244, -239,
/* 40 */ -216, -193, -143, -136, -33, -14, 31, 43, 85, 89,
/* 50 */ 139, 142, 162, 165, 171, 185, 189, 193, 210, 211,
/* 60 */ 223, 224, 225, 226, 227, 228, 229, 257, 215, 266,
/* 70 */ 230, 267, 208, 270, 271, 272, 274, 201, 207, 232,
/* 80 */ 233, 278, 283, 286, 287, 295, 296, 301, 304, 305,
/* 90 */ 306, 307, 308, 311, 312, 314, 315, 317, 318, 319,
/* 100 */ 320, 321, 322, 323, 324, 325, 326, 327, 329, 330,
/* 110 */ 332, 333, 334, 335, 336, 337, 339, 340, 341, 342,
/* 120 */ 343, 344, 345, 346, 347, 348, 349, 350, 351, 353,
/* 130 */ 354, 279, 355, 356, 217, 218, 234, 358, 235, 359,
/* 140 */ 236, 238, 237, 255, 260, 239, 364, 240, 365, 241,
/* 150 */ 366, 367, 368, 254, 369, 371, 373, 375, 376, 378,
/* 160 */ 377, 379, 381, 384, 386, 387, 382, 383, 389, 396,
/* 170 */ 388, 399, 401, 403, 405, 393, 400,
};
static const YYACTIONTYPE yy_default[] = {
/* 0 */ 777, 889, 835, 901, 823, 832, 1032, 1032, 777, 777,
/* 10 */ 777, 777, 777, 777, 777, 777, 777, 948, 796, 1032,
/* 20 */ 777, 777, 777, 777, 777, 777, 777, 777, 777, 832,
/* 30 */ 777, 777, 838, 832, 838, 838, 943, 873, 891, 777,
/* 40 */ 777, 777, 777, 777, 777, 777, 777, 777, 777, 777,
/* 50 */ 777, 777, 777, 777, 777, 777, 777, 777, 777, 777,
/* 60 */ 777, 777, 777, 777, 777, 777, 777, 777, 777, 777,
/* 70 */ 777, 950, 953, 777, 777, 955, 777, 777, 975, 975,
/* 80 */ 941, 777, 777, 777, 777, 777, 777, 777, 777, 777,
/* 90 */ 777, 777, 777, 777, 777, 777, 777, 777, 777, 777,
/* 100 */ 777, 777, 777, 777, 777, 777, 777, 777, 777, 821,
/* 110 */ 777, 819, 777, 777, 777, 777, 777, 777, 777, 777,
/* 120 */ 777, 777, 777, 777, 777, 777, 806, 777, 777, 777,
/* 130 */ 777, 777, 798, 798, 798, 777, 777, 777, 798, 777,
/* 140 */ 798, 982, 986, 980, 968, 976, 967, 963, 961, 960,
/* 150 */ 990, 798, 798, 798, 836, 832, 832, 798, 798, 854,
/* 160 */ 852, 850, 842, 848, 844, 846, 840, 824, 798, 830,
/* 170 */ 830, 798, 830, 798, 830, 798, 873, 891, 777, 991,
/* 180 */ 777, 1031, 981, 1021, 1020, 1027, 1019, 1018, 1017, 777,
/* 190 */ 777, 777, 1013, 1014, 1016, 1015, 777, 777, 1023, 1022,
/* 200 */ 777, 777, 777, 777, 777, 777, 777, 777, 777, 777,
/* 210 */ 777, 777, 777, 993, 777, 987, 983, 777, 777, 777,
/* 220 */ 777, 777, 777, 777, 777, 777, 903, 777, 777, 777,
/* 230 */ 777, 777, 777, 777, 777, 777, 777, 777, 777, 777,
/* 240 */ 777, 777, 940, 777, 777, 777, 777, 951, 777, 777,
/* 250 */ 777, 777, 777, 777, 777, 777, 777, 977, 777, 969,
/* 260 */ 777, 777, 777, 777, 777, 915, 777, 777, 777, 777,
/* 270 */ 777, 777, 777, 777, 777, 777, 777, 777, 777, 777,
/* 280 */ 777, 1043, 1041, 777, 777, 777, 1037, 777, 777, 777,
/* 290 */ 1035, 777, 777, 777, 777, 777, 777, 777, 777, 777,
/* 300 */ 777, 777, 777, 777, 777, 777, 777, 777, 857, 777,
/* 310 */ 804, 802, 777, 794, 777,
/* 0 */ 773, 885, 831, 897, 819, 828, 1027, 1027, 773, 773,
/* 10 */ 773, 773, 773, 773, 773, 773, 773, 944, 792, 1027,
/* 20 */ 773, 773, 773, 773, 773, 773, 773, 773, 828, 773,
/* 30 */ 773, 834, 828, 834, 834, 939, 869, 887, 773, 773,
/* 40 */ 773, 773, 773, 773, 773, 773, 773, 773, 773, 773,
/* 50 */ 773, 773, 773, 773, 773, 773, 773, 773, 773, 773,
/* 60 */ 773, 773, 773, 773, 773, 773, 773, 773, 773, 773,
/* 70 */ 773, 773, 946, 948, 950, 773, 773, 970, 970, 937,
/* 80 */ 773, 773, 773, 773, 773, 773, 773, 773, 773, 773,
/* 90 */ 773, 773, 773, 773, 773, 773, 773, 773, 773, 773,
/* 100 */ 773, 773, 773, 773, 773, 773, 773, 773, 817, 773,
/* 110 */ 815, 773, 773, 773, 773, 773, 773, 773, 773, 773,
/* 120 */ 773, 773, 773, 773, 773, 802, 773, 773, 773, 773,
/* 130 */ 773, 794, 794, 794, 773, 773, 773, 794, 773, 794,
/* 140 */ 977, 981, 975, 963, 971, 962, 958, 956, 955, 985,
/* 150 */ 794, 794, 794, 832, 828, 828, 794, 794, 850, 848,
/* 160 */ 846, 838, 844, 840, 842, 836, 820, 794, 826, 826,
/* 170 */ 794, 826, 794, 826, 794, 869, 887, 773, 986, 773,
/* 180 */ 1026, 976, 1016, 1015, 1022, 1014, 1013, 1012, 773, 773,
/* 190 */ 773, 1008, 1009, 1011, 1010, 773, 773, 1018, 1017, 773,
/* 200 */ 773, 773, 773, 773, 773, 773, 773, 773, 773, 773,
/* 210 */ 773, 988, 773, 982, 978, 773, 773, 773, 773, 773,
/* 220 */ 773, 773, 773, 773, 899, 773, 773, 773, 773, 773,
/* 230 */ 773, 773, 773, 773, 773, 773, 773, 773, 773, 773,
/* 240 */ 773, 936, 773, 773, 773, 947, 773, 773, 773, 773,
/* 250 */ 773, 773, 773, 773, 773, 972, 773, 964, 773, 773,
/* 260 */ 773, 773, 773, 911, 773, 773, 773, 773, 773, 773,
/* 270 */ 773, 773, 773, 773, 773, 773, 773, 773, 773, 1038,
/* 280 */ 1036, 773, 773, 773, 1032, 773, 773, 773, 1030, 773,
/* 290 */ 773, 773, 773, 773, 773, 773, 773, 773, 773, 773,
/* 300 */ 773, 773, 773, 773, 773, 773, 853, 773, 800, 798,
/* 310 */ 773, 790, 773,
};
/********** End of lemon-generated parsing tables *****************************/
......@@ -1201,103 +1202,102 @@ static const char *const yyRuleName[] = {
/* 169 */ "distinct ::= DISTINCT",
/* 170 */ "distinct ::=",
/* 171 */ "from ::= FROM tablelist",
/* 172 */ "from ::= FROM LP union RP",
/* 173 */ "tablelist ::= ids cpxName",
/* 174 */ "tablelist ::= ids cpxName ids",
/* 175 */ "tablelist ::= tablelist COMMA ids cpxName",
/* 176 */ "tablelist ::= tablelist COMMA ids cpxName ids",
/* 177 */ "tmvar ::= VARIABLE",
/* 178 */ "interval_opt ::= INTERVAL LP tmvar RP",
/* 179 */ "interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP",
/* 180 */ "interval_opt ::=",
/* 181 */ "session_option ::=",
/* 182 */ "session_option ::= SESSION LP ids cpxName COMMA tmvar RP",
/* 183 */ "fill_opt ::=",
/* 184 */ "fill_opt ::= FILL LP ID COMMA tagitemlist RP",
/* 185 */ "fill_opt ::= FILL LP ID RP",
/* 186 */ "sliding_opt ::= SLIDING LP tmvar RP",
/* 187 */ "sliding_opt ::=",
/* 188 */ "orderby_opt ::=",
/* 189 */ "orderby_opt ::= ORDER BY sortlist",
/* 190 */ "sortlist ::= sortlist COMMA item sortorder",
/* 191 */ "sortlist ::= item sortorder",
/* 192 */ "item ::= ids cpxName",
/* 193 */ "sortorder ::= ASC",
/* 194 */ "sortorder ::= DESC",
/* 195 */ "sortorder ::=",
/* 196 */ "groupby_opt ::=",
/* 197 */ "groupby_opt ::= GROUP BY grouplist",
/* 198 */ "grouplist ::= grouplist COMMA item",
/* 199 */ "grouplist ::= item",
/* 200 */ "having_opt ::=",
/* 201 */ "having_opt ::= HAVING expr",
/* 202 */ "limit_opt ::=",
/* 203 */ "limit_opt ::= LIMIT signed",
/* 204 */ "limit_opt ::= LIMIT signed OFFSET signed",
/* 205 */ "limit_opt ::= LIMIT signed COMMA signed",
/* 206 */ "slimit_opt ::=",
/* 207 */ "slimit_opt ::= SLIMIT signed",
/* 208 */ "slimit_opt ::= SLIMIT signed SOFFSET signed",
/* 209 */ "slimit_opt ::= SLIMIT signed COMMA signed",
/* 210 */ "where_opt ::=",
/* 211 */ "where_opt ::= WHERE expr",
/* 212 */ "expr ::= LP expr RP",
/* 213 */ "expr ::= ID",
/* 214 */ "expr ::= ID DOT ID",
/* 215 */ "expr ::= ID DOT STAR",
/* 216 */ "expr ::= INTEGER",
/* 217 */ "expr ::= MINUS INTEGER",
/* 218 */ "expr ::= PLUS INTEGER",
/* 219 */ "expr ::= FLOAT",
/* 220 */ "expr ::= MINUS FLOAT",
/* 221 */ "expr ::= PLUS FLOAT",
/* 222 */ "expr ::= STRING",
/* 223 */ "expr ::= NOW",
/* 224 */ "expr ::= VARIABLE",
/* 225 */ "expr ::= PLUS VARIABLE",
/* 226 */ "expr ::= MINUS VARIABLE",
/* 227 */ "expr ::= BOOL",
/* 228 */ "expr ::= NULL",
/* 229 */ "expr ::= ID LP exprlist RP",
/* 230 */ "expr ::= ID LP STAR RP",
/* 231 */ "expr ::= expr IS NULL",
/* 232 */ "expr ::= expr IS NOT NULL",
/* 233 */ "expr ::= expr LT expr",
/* 234 */ "expr ::= expr GT expr",
/* 235 */ "expr ::= expr LE expr",
/* 236 */ "expr ::= expr GE expr",
/* 237 */ "expr ::= expr NE expr",
/* 238 */ "expr ::= expr EQ expr",
/* 239 */ "expr ::= expr BETWEEN expr AND expr",
/* 240 */ "expr ::= expr AND expr",
/* 241 */ "expr ::= expr OR expr",
/* 242 */ "expr ::= expr PLUS expr",
/* 243 */ "expr ::= expr MINUS expr",
/* 244 */ "expr ::= expr STAR expr",
/* 245 */ "expr ::= expr SLASH expr",
/* 246 */ "expr ::= expr REM expr",
/* 247 */ "expr ::= expr LIKE expr",
/* 248 */ "expr ::= expr IN LP exprlist RP",
/* 249 */ "exprlist ::= exprlist COMMA expritem",
/* 250 */ "exprlist ::= expritem",
/* 251 */ "expritem ::= expr",
/* 252 */ "expritem ::=",
/* 253 */ "cmd ::= RESET QUERY CACHE",
/* 254 */ "cmd ::= SYNCDB ids REPLICA",
/* 255 */ "cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist",
/* 256 */ "cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids",
/* 257 */ "cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist",
/* 258 */ "cmd ::= ALTER TABLE ids cpxName DROP TAG ids",
/* 259 */ "cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids",
/* 260 */ "cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem",
/* 261 */ "cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist",
/* 262 */ "cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids",
/* 263 */ "cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist",
/* 264 */ "cmd ::= ALTER STABLE ids cpxName DROP TAG ids",
/* 265 */ "cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids",
/* 266 */ "cmd ::= KILL CONNECTION INTEGER",
/* 267 */ "cmd ::= KILL STREAM INTEGER COLON INTEGER",
/* 268 */ "cmd ::= KILL QUERY INTEGER COLON INTEGER",
/* 172 */ "tablelist ::= ids cpxName",
/* 173 */ "tablelist ::= ids cpxName ids",
/* 174 */ "tablelist ::= tablelist COMMA ids cpxName",
/* 175 */ "tablelist ::= tablelist COMMA ids cpxName ids",
/* 176 */ "tmvar ::= VARIABLE",
/* 177 */ "interval_opt ::= INTERVAL LP tmvar RP",
/* 178 */ "interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP",
/* 179 */ "interval_opt ::=",
/* 180 */ "session_option ::=",
/* 181 */ "session_option ::= SESSION LP ids cpxName COMMA tmvar RP",
/* 182 */ "fill_opt ::=",
/* 183 */ "fill_opt ::= FILL LP ID COMMA tagitemlist RP",
/* 184 */ "fill_opt ::= FILL LP ID RP",
/* 185 */ "sliding_opt ::= SLIDING LP tmvar RP",
/* 186 */ "sliding_opt ::=",
/* 187 */ "orderby_opt ::=",
/* 188 */ "orderby_opt ::= ORDER BY sortlist",
/* 189 */ "sortlist ::= sortlist COMMA item sortorder",
/* 190 */ "sortlist ::= item sortorder",
/* 191 */ "item ::= ids cpxName",
/* 192 */ "sortorder ::= ASC",
/* 193 */ "sortorder ::= DESC",
/* 194 */ "sortorder ::=",
/* 195 */ "groupby_opt ::=",
/* 196 */ "groupby_opt ::= GROUP BY grouplist",
/* 197 */ "grouplist ::= grouplist COMMA item",
/* 198 */ "grouplist ::= item",
/* 199 */ "having_opt ::=",
/* 200 */ "having_opt ::= HAVING expr",
/* 201 */ "limit_opt ::=",
/* 202 */ "limit_opt ::= LIMIT signed",
/* 203 */ "limit_opt ::= LIMIT signed OFFSET signed",
/* 204 */ "limit_opt ::= LIMIT signed COMMA signed",
/* 205 */ "slimit_opt ::=",
/* 206 */ "slimit_opt ::= SLIMIT signed",
/* 207 */ "slimit_opt ::= SLIMIT signed SOFFSET signed",
/* 208 */ "slimit_opt ::= SLIMIT signed COMMA signed",
/* 209 */ "where_opt ::=",
/* 210 */ "where_opt ::= WHERE expr",
/* 211 */ "expr ::= LP expr RP",
/* 212 */ "expr ::= ID",
/* 213 */ "expr ::= ID DOT ID",
/* 214 */ "expr ::= ID DOT STAR",
/* 215 */ "expr ::= INTEGER",
/* 216 */ "expr ::= MINUS INTEGER",
/* 217 */ "expr ::= PLUS INTEGER",
/* 218 */ "expr ::= FLOAT",
/* 219 */ "expr ::= MINUS FLOAT",
/* 220 */ "expr ::= PLUS FLOAT",
/* 221 */ "expr ::= STRING",
/* 222 */ "expr ::= NOW",
/* 223 */ "expr ::= VARIABLE",
/* 224 */ "expr ::= PLUS VARIABLE",
/* 225 */ "expr ::= MINUS VARIABLE",
/* 226 */ "expr ::= BOOL",
/* 227 */ "expr ::= NULL",
/* 228 */ "expr ::= ID LP exprlist RP",
/* 229 */ "expr ::= ID LP STAR RP",
/* 230 */ "expr ::= expr IS NULL",
/* 231 */ "expr ::= expr IS NOT NULL",
/* 232 */ "expr ::= expr LT expr",
/* 233 */ "expr ::= expr GT expr",
/* 234 */ "expr ::= expr LE expr",
/* 235 */ "expr ::= expr GE expr",
/* 236 */ "expr ::= expr NE expr",
/* 237 */ "expr ::= expr EQ expr",
/* 238 */ "expr ::= expr BETWEEN expr AND expr",
/* 239 */ "expr ::= expr AND expr",
/* 240 */ "expr ::= expr OR expr",
/* 241 */ "expr ::= expr PLUS expr",
/* 242 */ "expr ::= expr MINUS expr",
/* 243 */ "expr ::= expr STAR expr",
/* 244 */ "expr ::= expr SLASH expr",
/* 245 */ "expr ::= expr REM expr",
/* 246 */ "expr ::= expr LIKE expr",
/* 247 */ "expr ::= expr IN LP exprlist RP",
/* 248 */ "exprlist ::= exprlist COMMA expritem",
/* 249 */ "exprlist ::= expritem",
/* 250 */ "expritem ::= expr",
/* 251 */ "expritem ::=",
/* 252 */ "cmd ::= RESET QUERY CACHE",
/* 253 */ "cmd ::= SYNCDB ids REPLICA",
/* 254 */ "cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist",
/* 255 */ "cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids",
/* 256 */ "cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist",
/* 257 */ "cmd ::= ALTER TABLE ids cpxName DROP TAG ids",
/* 258 */ "cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids",
/* 259 */ "cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem",
/* 260 */ "cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist",
/* 261 */ "cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids",
/* 262 */ "cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist",
/* 263 */ "cmd ::= ALTER STABLE ids cpxName DROP TAG ids",
/* 264 */ "cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids",
/* 265 */ "cmd ::= KILL CONNECTION INTEGER",
/* 266 */ "cmd ::= KILL STREAM INTEGER COLON INTEGER",
/* 267 */ "cmd ::= KILL QUERY INTEGER COLON INTEGER",
};
#endif /* NDEBUG */
......@@ -1929,103 +1929,102 @@ static const YYCODETYPE yyRuleInfoLhs[] = {
250, /* (169) distinct ::= DISTINCT */
250, /* (170) distinct ::= */
237, /* (171) from ::= FROM tablelist */
237, /* (172) from ::= FROM LP union RP */
253, /* (173) tablelist ::= ids cpxName */
253, /* (174) tablelist ::= ids cpxName ids */
253, /* (175) tablelist ::= tablelist COMMA ids cpxName */
253, /* (176) tablelist ::= tablelist COMMA ids cpxName ids */
254, /* (177) tmvar ::= VARIABLE */
239, /* (178) interval_opt ::= INTERVAL LP tmvar RP */
239, /* (179) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
239, /* (180) interval_opt ::= */
240, /* (181) session_option ::= */
240, /* (182) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
241, /* (183) fill_opt ::= */
241, /* (184) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
241, /* (185) fill_opt ::= FILL LP ID RP */
242, /* (186) sliding_opt ::= SLIDING LP tmvar RP */
242, /* (187) sliding_opt ::= */
244, /* (188) orderby_opt ::= */
244, /* (189) orderby_opt ::= ORDER BY sortlist */
255, /* (190) sortlist ::= sortlist COMMA item sortorder */
255, /* (191) sortlist ::= item sortorder */
257, /* (192) item ::= ids cpxName */
258, /* (193) sortorder ::= ASC */
258, /* (194) sortorder ::= DESC */
258, /* (195) sortorder ::= */
243, /* (196) groupby_opt ::= */
243, /* (197) groupby_opt ::= GROUP BY grouplist */
259, /* (198) grouplist ::= grouplist COMMA item */
259, /* (199) grouplist ::= item */
245, /* (200) having_opt ::= */
245, /* (201) having_opt ::= HAVING expr */
247, /* (202) limit_opt ::= */
247, /* (203) limit_opt ::= LIMIT signed */
247, /* (204) limit_opt ::= LIMIT signed OFFSET signed */
247, /* (205) limit_opt ::= LIMIT signed COMMA signed */
246, /* (206) slimit_opt ::= */
246, /* (207) slimit_opt ::= SLIMIT signed */
246, /* (208) slimit_opt ::= SLIMIT signed SOFFSET signed */
246, /* (209) slimit_opt ::= SLIMIT signed COMMA signed */
238, /* (210) where_opt ::= */
238, /* (211) where_opt ::= WHERE expr */
251, /* (212) expr ::= LP expr RP */
251, /* (213) expr ::= ID */
251, /* (214) expr ::= ID DOT ID */
251, /* (215) expr ::= ID DOT STAR */
251, /* (216) expr ::= INTEGER */
251, /* (217) expr ::= MINUS INTEGER */
251, /* (218) expr ::= PLUS INTEGER */
251, /* (219) expr ::= FLOAT */
251, /* (220) expr ::= MINUS FLOAT */
251, /* (221) expr ::= PLUS FLOAT */
251, /* (222) expr ::= STRING */
251, /* (223) expr ::= NOW */
251, /* (224) expr ::= VARIABLE */
251, /* (225) expr ::= PLUS VARIABLE */
251, /* (226) expr ::= MINUS VARIABLE */
251, /* (227) expr ::= BOOL */
251, /* (228) expr ::= NULL */
251, /* (229) expr ::= ID LP exprlist RP */
251, /* (230) expr ::= ID LP STAR RP */
251, /* (231) expr ::= expr IS NULL */
251, /* (232) expr ::= expr IS NOT NULL */
251, /* (233) expr ::= expr LT expr */
251, /* (234) expr ::= expr GT expr */
251, /* (235) expr ::= expr LE expr */
251, /* (236) expr ::= expr GE expr */
251, /* (237) expr ::= expr NE expr */
251, /* (238) expr ::= expr EQ expr */
251, /* (239) expr ::= expr BETWEEN expr AND expr */
251, /* (240) expr ::= expr AND expr */
251, /* (241) expr ::= expr OR expr */
251, /* (242) expr ::= expr PLUS expr */
251, /* (243) expr ::= expr MINUS expr */
251, /* (244) expr ::= expr STAR expr */
251, /* (245) expr ::= expr SLASH expr */
251, /* (246) expr ::= expr REM expr */
251, /* (247) expr ::= expr LIKE expr */
251, /* (248) expr ::= expr IN LP exprlist RP */
260, /* (249) exprlist ::= exprlist COMMA expritem */
260, /* (250) exprlist ::= expritem */
261, /* (251) expritem ::= expr */
261, /* (252) expritem ::= */
188, /* (253) cmd ::= RESET QUERY CACHE */
188, /* (254) cmd ::= SYNCDB ids REPLICA */
188, /* (255) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
188, /* (256) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
188, /* (257) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
188, /* (258) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
188, /* (259) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
188, /* (260) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
188, /* (261) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
188, /* (262) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
188, /* (263) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
188, /* (264) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
188, /* (265) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
188, /* (266) cmd ::= KILL CONNECTION INTEGER */
188, /* (267) cmd ::= KILL STREAM INTEGER COLON INTEGER */
188, /* (268) cmd ::= KILL QUERY INTEGER COLON INTEGER */
253, /* (172) tablelist ::= ids cpxName */
253, /* (173) tablelist ::= ids cpxName ids */
253, /* (174) tablelist ::= tablelist COMMA ids cpxName */
253, /* (175) tablelist ::= tablelist COMMA ids cpxName ids */
254, /* (176) tmvar ::= VARIABLE */
239, /* (177) interval_opt ::= INTERVAL LP tmvar RP */
239, /* (178) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
239, /* (179) interval_opt ::= */
240, /* (180) session_option ::= */
240, /* (181) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
241, /* (182) fill_opt ::= */
241, /* (183) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
241, /* (184) fill_opt ::= FILL LP ID RP */
242, /* (185) sliding_opt ::= SLIDING LP tmvar RP */
242, /* (186) sliding_opt ::= */
244, /* (187) orderby_opt ::= */
244, /* (188) orderby_opt ::= ORDER BY sortlist */
255, /* (189) sortlist ::= sortlist COMMA item sortorder */
255, /* (190) sortlist ::= item sortorder */
257, /* (191) item ::= ids cpxName */
258, /* (192) sortorder ::= ASC */
258, /* (193) sortorder ::= DESC */
258, /* (194) sortorder ::= */
243, /* (195) groupby_opt ::= */
243, /* (196) groupby_opt ::= GROUP BY grouplist */
259, /* (197) grouplist ::= grouplist COMMA item */
259, /* (198) grouplist ::= item */
245, /* (199) having_opt ::= */
245, /* (200) having_opt ::= HAVING expr */
247, /* (201) limit_opt ::= */
247, /* (202) limit_opt ::= LIMIT signed */
247, /* (203) limit_opt ::= LIMIT signed OFFSET signed */
247, /* (204) limit_opt ::= LIMIT signed COMMA signed */
246, /* (205) slimit_opt ::= */
246, /* (206) slimit_opt ::= SLIMIT signed */
246, /* (207) slimit_opt ::= SLIMIT signed SOFFSET signed */
246, /* (208) slimit_opt ::= SLIMIT signed COMMA signed */
238, /* (209) where_opt ::= */
238, /* (210) where_opt ::= WHERE expr */
251, /* (211) expr ::= LP expr RP */
251, /* (212) expr ::= ID */
251, /* (213) expr ::= ID DOT ID */
251, /* (214) expr ::= ID DOT STAR */
251, /* (215) expr ::= INTEGER */
251, /* (216) expr ::= MINUS INTEGER */
251, /* (217) expr ::= PLUS INTEGER */
251, /* (218) expr ::= FLOAT */
251, /* (219) expr ::= MINUS FLOAT */
251, /* (220) expr ::= PLUS FLOAT */
251, /* (221) expr ::= STRING */
251, /* (222) expr ::= NOW */
251, /* (223) expr ::= VARIABLE */
251, /* (224) expr ::= PLUS VARIABLE */
251, /* (225) expr ::= MINUS VARIABLE */
251, /* (226) expr ::= BOOL */
251, /* (227) expr ::= NULL */
251, /* (228) expr ::= ID LP exprlist RP */
251, /* (229) expr ::= ID LP STAR RP */
251, /* (230) expr ::= expr IS NULL */
251, /* (231) expr ::= expr IS NOT NULL */
251, /* (232) expr ::= expr LT expr */
251, /* (233) expr ::= expr GT expr */
251, /* (234) expr ::= expr LE expr */
251, /* (235) expr ::= expr GE expr */
251, /* (236) expr ::= expr NE expr */
251, /* (237) expr ::= expr EQ expr */
251, /* (238) expr ::= expr BETWEEN expr AND expr */
251, /* (239) expr ::= expr AND expr */
251, /* (240) expr ::= expr OR expr */
251, /* (241) expr ::= expr PLUS expr */
251, /* (242) expr ::= expr MINUS expr */
251, /* (243) expr ::= expr STAR expr */
251, /* (244) expr ::= expr SLASH expr */
251, /* (245) expr ::= expr REM expr */
251, /* (246) expr ::= expr LIKE expr */
251, /* (247) expr ::= expr IN LP exprlist RP */
260, /* (248) exprlist ::= exprlist COMMA expritem */
260, /* (249) exprlist ::= expritem */
261, /* (250) expritem ::= expr */
261, /* (251) expritem ::= */
188, /* (252) cmd ::= RESET QUERY CACHE */
188, /* (253) cmd ::= SYNCDB ids REPLICA */
188, /* (254) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
188, /* (255) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
188, /* (256) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
188, /* (257) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
188, /* (258) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
188, /* (259) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
188, /* (260) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
188, /* (261) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
188, /* (262) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
188, /* (263) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
188, /* (264) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
188, /* (265) cmd ::= KILL CONNECTION INTEGER */
188, /* (266) cmd ::= KILL STREAM INTEGER COLON INTEGER */
188, /* (267) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
......@@ -2203,103 +2202,102 @@ static const signed char yyRuleInfoNRhs[] = {
-1, /* (169) distinct ::= DISTINCT */
0, /* (170) distinct ::= */
-2, /* (171) from ::= FROM tablelist */
-4, /* (172) from ::= FROM LP union RP */
-2, /* (173) tablelist ::= ids cpxName */
-3, /* (174) tablelist ::= ids cpxName ids */
-4, /* (175) tablelist ::= tablelist COMMA ids cpxName */
-5, /* (176) tablelist ::= tablelist COMMA ids cpxName ids */
-1, /* (177) tmvar ::= VARIABLE */
-4, /* (178) interval_opt ::= INTERVAL LP tmvar RP */
-6, /* (179) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
0, /* (180) interval_opt ::= */
0, /* (181) session_option ::= */
-7, /* (182) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
0, /* (183) fill_opt ::= */
-6, /* (184) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
-4, /* (185) fill_opt ::= FILL LP ID RP */
-4, /* (186) sliding_opt ::= SLIDING LP tmvar RP */
0, /* (187) sliding_opt ::= */
0, /* (188) orderby_opt ::= */
-3, /* (189) orderby_opt ::= ORDER BY sortlist */
-4, /* (190) sortlist ::= sortlist COMMA item sortorder */
-2, /* (191) sortlist ::= item sortorder */
-2, /* (192) item ::= ids cpxName */
-1, /* (193) sortorder ::= ASC */
-1, /* (194) sortorder ::= DESC */
0, /* (195) sortorder ::= */
0, /* (196) groupby_opt ::= */
-3, /* (197) groupby_opt ::= GROUP BY grouplist */
-3, /* (198) grouplist ::= grouplist COMMA item */
-1, /* (199) grouplist ::= item */
0, /* (200) having_opt ::= */
-2, /* (201) having_opt ::= HAVING expr */
0, /* (202) limit_opt ::= */
-2, /* (203) limit_opt ::= LIMIT signed */
-4, /* (204) limit_opt ::= LIMIT signed OFFSET signed */
-4, /* (205) limit_opt ::= LIMIT signed COMMA signed */
0, /* (206) slimit_opt ::= */
-2, /* (207) slimit_opt ::= SLIMIT signed */
-4, /* (208) slimit_opt ::= SLIMIT signed SOFFSET signed */
-4, /* (209) slimit_opt ::= SLIMIT signed COMMA signed */
0, /* (210) where_opt ::= */
-2, /* (211) where_opt ::= WHERE expr */
-3, /* (212) expr ::= LP expr RP */
-1, /* (213) expr ::= ID */
-3, /* (214) expr ::= ID DOT ID */
-3, /* (215) expr ::= ID DOT STAR */
-1, /* (216) expr ::= INTEGER */
-2, /* (217) expr ::= MINUS INTEGER */
-2, /* (218) expr ::= PLUS INTEGER */
-1, /* (219) expr ::= FLOAT */
-2, /* (220) expr ::= MINUS FLOAT */
-2, /* (221) expr ::= PLUS FLOAT */
-1, /* (222) expr ::= STRING */
-1, /* (223) expr ::= NOW */
-1, /* (224) expr ::= VARIABLE */
-2, /* (225) expr ::= PLUS VARIABLE */
-2, /* (226) expr ::= MINUS VARIABLE */
-1, /* (227) expr ::= BOOL */
-1, /* (228) expr ::= NULL */
-4, /* (229) expr ::= ID LP exprlist RP */
-4, /* (230) expr ::= ID LP STAR RP */
-3, /* (231) expr ::= expr IS NULL */
-4, /* (232) expr ::= expr IS NOT NULL */
-3, /* (233) expr ::= expr LT expr */
-3, /* (234) expr ::= expr GT expr */
-3, /* (235) expr ::= expr LE expr */
-3, /* (236) expr ::= expr GE expr */
-3, /* (237) expr ::= expr NE expr */
-3, /* (238) expr ::= expr EQ expr */
-5, /* (239) expr ::= expr BETWEEN expr AND expr */
-3, /* (240) expr ::= expr AND expr */
-3, /* (241) expr ::= expr OR expr */
-3, /* (242) expr ::= expr PLUS expr */
-3, /* (243) expr ::= expr MINUS expr */
-3, /* (244) expr ::= expr STAR expr */
-3, /* (245) expr ::= expr SLASH expr */
-3, /* (246) expr ::= expr REM expr */
-3, /* (247) expr ::= expr LIKE expr */
-5, /* (248) expr ::= expr IN LP exprlist RP */
-3, /* (249) exprlist ::= exprlist COMMA expritem */
-1, /* (250) exprlist ::= expritem */
-1, /* (251) expritem ::= expr */
0, /* (252) expritem ::= */
-3, /* (253) cmd ::= RESET QUERY CACHE */
-3, /* (254) cmd ::= SYNCDB ids REPLICA */
-7, /* (255) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
-7, /* (256) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
-7, /* (257) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
-7, /* (258) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
-8, /* (259) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
-9, /* (260) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
-7, /* (261) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
-7, /* (262) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
-7, /* (263) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
-7, /* (264) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
-8, /* (265) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
-3, /* (266) cmd ::= KILL CONNECTION INTEGER */
-5, /* (267) cmd ::= KILL STREAM INTEGER COLON INTEGER */
-5, /* (268) cmd ::= KILL QUERY INTEGER COLON INTEGER */
-2, /* (172) tablelist ::= ids cpxName */
-3, /* (173) tablelist ::= ids cpxName ids */
-4, /* (174) tablelist ::= tablelist COMMA ids cpxName */
-5, /* (175) tablelist ::= tablelist COMMA ids cpxName ids */
-1, /* (176) tmvar ::= VARIABLE */
-4, /* (177) interval_opt ::= INTERVAL LP tmvar RP */
-6, /* (178) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
0, /* (179) interval_opt ::= */
0, /* (180) session_option ::= */
-7, /* (181) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
0, /* (182) fill_opt ::= */
-6, /* (183) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
-4, /* (184) fill_opt ::= FILL LP ID RP */
-4, /* (185) sliding_opt ::= SLIDING LP tmvar RP */
0, /* (186) sliding_opt ::= */
0, /* (187) orderby_opt ::= */
-3, /* (188) orderby_opt ::= ORDER BY sortlist */
-4, /* (189) sortlist ::= sortlist COMMA item sortorder */
-2, /* (190) sortlist ::= item sortorder */
-2, /* (191) item ::= ids cpxName */
-1, /* (192) sortorder ::= ASC */
-1, /* (193) sortorder ::= DESC */
0, /* (194) sortorder ::= */
0, /* (195) groupby_opt ::= */
-3, /* (196) groupby_opt ::= GROUP BY grouplist */
-3, /* (197) grouplist ::= grouplist COMMA item */
-1, /* (198) grouplist ::= item */
0, /* (199) having_opt ::= */
-2, /* (200) having_opt ::= HAVING expr */
0, /* (201) limit_opt ::= */
-2, /* (202) limit_opt ::= LIMIT signed */
-4, /* (203) limit_opt ::= LIMIT signed OFFSET signed */
-4, /* (204) limit_opt ::= LIMIT signed COMMA signed */
0, /* (205) slimit_opt ::= */
-2, /* (206) slimit_opt ::= SLIMIT signed */
-4, /* (207) slimit_opt ::= SLIMIT signed SOFFSET signed */
-4, /* (208) slimit_opt ::= SLIMIT signed COMMA signed */
0, /* (209) where_opt ::= */
-2, /* (210) where_opt ::= WHERE expr */
-3, /* (211) expr ::= LP expr RP */
-1, /* (212) expr ::= ID */
-3, /* (213) expr ::= ID DOT ID */
-3, /* (214) expr ::= ID DOT STAR */
-1, /* (215) expr ::= INTEGER */
-2, /* (216) expr ::= MINUS INTEGER */
-2, /* (217) expr ::= PLUS INTEGER */
-1, /* (218) expr ::= FLOAT */
-2, /* (219) expr ::= MINUS FLOAT */
-2, /* (220) expr ::= PLUS FLOAT */
-1, /* (221) expr ::= STRING */
-1, /* (222) expr ::= NOW */
-1, /* (223) expr ::= VARIABLE */
-2, /* (224) expr ::= PLUS VARIABLE */
-2, /* (225) expr ::= MINUS VARIABLE */
-1, /* (226) expr ::= BOOL */
-1, /* (227) expr ::= NULL */
-4, /* (228) expr ::= ID LP exprlist RP */
-4, /* (229) expr ::= ID LP STAR RP */
-3, /* (230) expr ::= expr IS NULL */
-4, /* (231) expr ::= expr IS NOT NULL */
-3, /* (232) expr ::= expr LT expr */
-3, /* (233) expr ::= expr GT expr */
-3, /* (234) expr ::= expr LE expr */
-3, /* (235) expr ::= expr GE expr */
-3, /* (236) expr ::= expr NE expr */
-3, /* (237) expr ::= expr EQ expr */
-5, /* (238) expr ::= expr BETWEEN expr AND expr */
-3, /* (239) expr ::= expr AND expr */
-3, /* (240) expr ::= expr OR expr */
-3, /* (241) expr ::= expr PLUS expr */
-3, /* (242) expr ::= expr MINUS expr */
-3, /* (243) expr ::= expr STAR expr */
-3, /* (244) expr ::= expr SLASH expr */
-3, /* (245) expr ::= expr REM expr */
-3, /* (246) expr ::= expr LIKE expr */
-5, /* (247) expr ::= expr IN LP exprlist RP */
-3, /* (248) exprlist ::= exprlist COMMA expritem */
-1, /* (249) exprlist ::= expritem */
-1, /* (250) expritem ::= expr */
0, /* (251) expritem ::= */
-3, /* (252) cmd ::= RESET QUERY CACHE */
-3, /* (253) cmd ::= SYNCDB ids REPLICA */
-7, /* (254) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
-7, /* (255) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
-7, /* (256) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
-7, /* (257) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
-8, /* (258) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
-9, /* (259) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
-7, /* (260) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
-7, /* (261) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
-7, /* (262) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
-7, /* (263) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
-8, /* (264) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
-3, /* (265) cmd ::= KILL CONNECTION INTEGER */
-5, /* (266) cmd ::= KILL STREAM INTEGER COLON INTEGER */
-5, /* (267) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
static void yy_accept(yyParser*); /* Forward Declaration */
......@@ -2922,7 +2920,7 @@ static YYACTIONTYPE yy_reduce(
yymsp[-1].minor.yy429 = yylhsminor.yy429;
break;
case 163: /* sclp ::= */
case 188: /* orderby_opt ::= */ yytestcase(yyruleno==188);
case 187: /* orderby_opt ::= */ yytestcase(yyruleno==187);
{yymsp[1].minor.yy429 = 0;}
break;
case 164: /* selcollist ::= sclp distinct expr as */
......@@ -2955,10 +2953,7 @@ static YYACTIONTYPE yy_reduce(
case 171: /* from ::= FROM tablelist */
{yymsp[-1].minor.yy70 = yymsp[0].minor.yy429;}
break;
case 172: /* from ::= FROM LP union RP */
{yymsp[-3].minor.yy70 = yymsp[-1].minor.yy141;}
break;
case 173: /* tablelist ::= ids cpxName */
case 172: /* tablelist ::= ids cpxName */
{
toTSDBType(yymsp[-1].minor.yy0.type);
yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
......@@ -2966,7 +2961,7 @@ static YYACTIONTYPE yy_reduce(
}
yymsp[-1].minor.yy429 = yylhsminor.yy429;
break;
case 174: /* tablelist ::= ids cpxName ids */
case 173: /* tablelist ::= ids cpxName ids */
{
toTSDBType(yymsp[-2].minor.yy0.type);
toTSDBType(yymsp[0].minor.yy0.type);
......@@ -2975,7 +2970,7 @@ static YYACTIONTYPE yy_reduce(
}
yymsp[-2].minor.yy429 = yylhsminor.yy429;
break;
case 175: /* tablelist ::= tablelist COMMA ids cpxName */
case 174: /* tablelist ::= tablelist COMMA ids cpxName */
{
toTSDBType(yymsp[-1].minor.yy0.type);
yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
......@@ -2983,7 +2978,7 @@ static YYACTIONTYPE yy_reduce(
}
yymsp[-3].minor.yy429 = yylhsminor.yy429;
break;
case 176: /* tablelist ::= tablelist COMMA ids cpxName ids */
case 175: /* tablelist ::= tablelist COMMA ids cpxName ids */
{
toTSDBType(yymsp[-2].minor.yy0.type);
toTSDBType(yymsp[0].minor.yy0.type);
......@@ -2993,33 +2988,33 @@ static YYACTIONTYPE yy_reduce(
}
yymsp[-4].minor.yy429 = yylhsminor.yy429;
break;
case 177: /* tmvar ::= VARIABLE */
case 176: /* tmvar ::= VARIABLE */
{yylhsminor.yy0 = yymsp[0].minor.yy0;}
yymsp[0].minor.yy0 = yylhsminor.yy0;
break;
case 178: /* interval_opt ::= INTERVAL LP tmvar RP */
case 177: /* interval_opt ::= INTERVAL LP tmvar RP */
{yymsp[-3].minor.yy220.interval = yymsp[-1].minor.yy0; yymsp[-3].minor.yy220.offset.n = 0;}
break;
case 179: /* interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
case 178: /* interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
{yymsp[-5].minor.yy220.interval = yymsp[-3].minor.yy0; yymsp[-5].minor.yy220.offset = yymsp[-1].minor.yy0;}
break;
case 180: /* interval_opt ::= */
case 179: /* interval_opt ::= */
{memset(&yymsp[1].minor.yy220, 0, sizeof(yymsp[1].minor.yy220));}
break;
case 181: /* session_option ::= */
case 180: /* session_option ::= */
{yymsp[1].minor.yy87.col.n = 0; yymsp[1].minor.yy87.gap.n = 0;}
break;
case 182: /* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
case 181: /* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
yymsp[-6].minor.yy87.col = yymsp[-4].minor.yy0;
yymsp[-6].minor.yy87.gap = yymsp[-1].minor.yy0;
}
break;
case 183: /* fill_opt ::= */
case 182: /* fill_opt ::= */
{ yymsp[1].minor.yy429 = 0; }
break;
case 184: /* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
case 183: /* fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
tVariant A = {0};
toTSDBType(yymsp[-3].minor.yy0.type);
......@@ -3029,34 +3024,34 @@ static YYACTIONTYPE yy_reduce(
yymsp[-5].minor.yy429 = yymsp[-1].minor.yy429;
}
break;
case 185: /* fill_opt ::= FILL LP ID RP */
case 184: /* fill_opt ::= FILL LP ID RP */
{
toTSDBType(yymsp[-1].minor.yy0.type);
yymsp[-3].minor.yy429 = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1);
}
break;
case 186: /* sliding_opt ::= SLIDING LP tmvar RP */
case 185: /* sliding_opt ::= SLIDING LP tmvar RP */
{yymsp[-3].minor.yy0 = yymsp[-1].minor.yy0; }
break;
case 187: /* sliding_opt ::= */
case 186: /* sliding_opt ::= */
{yymsp[1].minor.yy0.n = 0; yymsp[1].minor.yy0.z = NULL; yymsp[1].minor.yy0.type = 0; }
break;
case 189: /* orderby_opt ::= ORDER BY sortlist */
case 188: /* orderby_opt ::= ORDER BY sortlist */
{yymsp[-2].minor.yy429 = yymsp[0].minor.yy429;}
break;
case 190: /* sortlist ::= sortlist COMMA item sortorder */
case 189: /* sortlist ::= sortlist COMMA item sortorder */
{
yylhsminor.yy429 = tVariantListAppend(yymsp[-3].minor.yy429, &yymsp[-1].minor.yy218, yymsp[0].minor.yy116);
}
yymsp[-3].minor.yy429 = yylhsminor.yy429;
break;
case 191: /* sortlist ::= item sortorder */
case 190: /* sortlist ::= item sortorder */
{
yylhsminor.yy429 = tVariantListAppend(NULL, &yymsp[-1].minor.yy218, yymsp[0].minor.yy116);
}
yymsp[-1].minor.yy429 = yylhsminor.yy429;
break;
case 192: /* item ::= ids cpxName */
case 191: /* item ::= ids cpxName */
{
toTSDBType(yymsp[-1].minor.yy0.type);
yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n;
......@@ -3065,227 +3060,227 @@ static YYACTIONTYPE yy_reduce(
}
yymsp[-1].minor.yy218 = yylhsminor.yy218;
break;
case 193: /* sortorder ::= ASC */
case 192: /* sortorder ::= ASC */
{ yymsp[0].minor.yy116 = TSDB_ORDER_ASC; }
break;
case 194: /* sortorder ::= DESC */
case 193: /* sortorder ::= DESC */
{ yymsp[0].minor.yy116 = TSDB_ORDER_DESC;}
break;
case 195: /* sortorder ::= */
case 194: /* sortorder ::= */
{ yymsp[1].minor.yy116 = TSDB_ORDER_ASC; }
break;
case 196: /* groupby_opt ::= */
case 195: /* groupby_opt ::= */
{ yymsp[1].minor.yy429 = 0;}
break;
case 197: /* groupby_opt ::= GROUP BY grouplist */
case 196: /* groupby_opt ::= GROUP BY grouplist */
{ yymsp[-2].minor.yy429 = yymsp[0].minor.yy429;}
break;
case 198: /* grouplist ::= grouplist COMMA item */
case 197: /* grouplist ::= grouplist COMMA item */
{
yylhsminor.yy429 = tVariantListAppend(yymsp[-2].minor.yy429, &yymsp[0].minor.yy218, -1);
}
yymsp[-2].minor.yy429 = yylhsminor.yy429;
break;
case 199: /* grouplist ::= item */
case 198: /* grouplist ::= item */
{
yylhsminor.yy429 = tVariantListAppend(NULL, &yymsp[0].minor.yy218, -1);
}
yymsp[0].minor.yy429 = yylhsminor.yy429;
break;
case 200: /* having_opt ::= */
case 210: /* where_opt ::= */ yytestcase(yyruleno==210);
case 252: /* expritem ::= */ yytestcase(yyruleno==252);
case 199: /* having_opt ::= */
case 209: /* where_opt ::= */ yytestcase(yyruleno==209);
case 251: /* expritem ::= */ yytestcase(yyruleno==251);
{yymsp[1].minor.yy170 = 0;}
break;
case 201: /* having_opt ::= HAVING expr */
case 211: /* where_opt ::= WHERE expr */ yytestcase(yyruleno==211);
case 200: /* having_opt ::= HAVING expr */
case 210: /* where_opt ::= WHERE expr */ yytestcase(yyruleno==210);
{yymsp[-1].minor.yy170 = yymsp[0].minor.yy170;}
break;
case 202: /* limit_opt ::= */
case 206: /* slimit_opt ::= */ yytestcase(yyruleno==206);
case 201: /* limit_opt ::= */
case 205: /* slimit_opt ::= */ yytestcase(yyruleno==205);
{yymsp[1].minor.yy18.limit = -1; yymsp[1].minor.yy18.offset = 0;}
break;
case 203: /* limit_opt ::= LIMIT signed */
case 207: /* slimit_opt ::= SLIMIT signed */ yytestcase(yyruleno==207);
case 202: /* limit_opt ::= LIMIT signed */
case 206: /* slimit_opt ::= SLIMIT signed */ yytestcase(yyruleno==206);
{yymsp[-1].minor.yy18.limit = yymsp[0].minor.yy481; yymsp[-1].minor.yy18.offset = 0;}
break;
case 204: /* limit_opt ::= LIMIT signed OFFSET signed */
case 203: /* limit_opt ::= LIMIT signed OFFSET signed */
{ yymsp[-3].minor.yy18.limit = yymsp[-2].minor.yy481; yymsp[-3].minor.yy18.offset = yymsp[0].minor.yy481;}
break;
case 205: /* limit_opt ::= LIMIT signed COMMA signed */
case 204: /* limit_opt ::= LIMIT signed COMMA signed */
{ yymsp[-3].minor.yy18.limit = yymsp[0].minor.yy481; yymsp[-3].minor.yy18.offset = yymsp[-2].minor.yy481;}
break;
case 208: /* slimit_opt ::= SLIMIT signed SOFFSET signed */
case 207: /* slimit_opt ::= SLIMIT signed SOFFSET signed */
{yymsp[-3].minor.yy18.limit = yymsp[-2].minor.yy481; yymsp[-3].minor.yy18.offset = yymsp[0].minor.yy481;}
break;
case 209: /* slimit_opt ::= SLIMIT signed COMMA signed */
case 208: /* slimit_opt ::= SLIMIT signed COMMA signed */
{yymsp[-3].minor.yy18.limit = yymsp[0].minor.yy481; yymsp[-3].minor.yy18.offset = yymsp[-2].minor.yy481;}
break;
case 212: /* expr ::= LP expr RP */
case 211: /* expr ::= LP expr RP */
{yylhsminor.yy170 = yymsp[-1].minor.yy170; yylhsminor.yy170->token.z = yymsp[-2].minor.yy0.z; yylhsminor.yy170->token.n = (yymsp[0].minor.yy0.z - yymsp[-2].minor.yy0.z + 1);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 213: /* expr ::= ID */
case 212: /* expr ::= ID */
{ yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_ID);}
yymsp[0].minor.yy170 = yylhsminor.yy170;
break;
case 214: /* expr ::= ID DOT ID */
case 213: /* expr ::= ID DOT ID */
{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ID);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 215: /* expr ::= ID DOT STAR */
case 214: /* expr ::= ID DOT STAR */
{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[-2].minor.yy0, TK_ALL);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 216: /* expr ::= INTEGER */
case 215: /* expr ::= INTEGER */
{ yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_INTEGER);}
yymsp[0].minor.yy170 = yylhsminor.yy170;
break;
case 217: /* expr ::= MINUS INTEGER */
case 218: /* expr ::= PLUS INTEGER */ yytestcase(yyruleno==218);
case 216: /* expr ::= MINUS INTEGER */
case 217: /* expr ::= PLUS INTEGER */ yytestcase(yyruleno==217);
{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_INTEGER);}
yymsp[-1].minor.yy170 = yylhsminor.yy170;
break;
case 219: /* expr ::= FLOAT */
case 218: /* expr ::= FLOAT */
{ yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_FLOAT);}
yymsp[0].minor.yy170 = yylhsminor.yy170;
break;
case 220: /* expr ::= MINUS FLOAT */
case 221: /* expr ::= PLUS FLOAT */ yytestcase(yyruleno==221);
case 219: /* expr ::= MINUS FLOAT */
case 220: /* expr ::= PLUS FLOAT */ yytestcase(yyruleno==220);
{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_FLOAT; yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_FLOAT);}
yymsp[-1].minor.yy170 = yylhsminor.yy170;
break;
case 222: /* expr ::= STRING */
case 221: /* expr ::= STRING */
{ yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_STRING);}
yymsp[0].minor.yy170 = yylhsminor.yy170;
break;
case 223: /* expr ::= NOW */
case 222: /* expr ::= NOW */
{ yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NOW); }
yymsp[0].minor.yy170 = yylhsminor.yy170;
break;
case 224: /* expr ::= VARIABLE */
case 223: /* expr ::= VARIABLE */
{ yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_VARIABLE);}
yymsp[0].minor.yy170 = yylhsminor.yy170;
break;
case 225: /* expr ::= PLUS VARIABLE */
case 226: /* expr ::= MINUS VARIABLE */ yytestcase(yyruleno==226);
case 224: /* expr ::= PLUS VARIABLE */
case 225: /* expr ::= MINUS VARIABLE */ yytestcase(yyruleno==225);
{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_VARIABLE; yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[-1].minor.yy0, TK_VARIABLE);}
yymsp[-1].minor.yy170 = yylhsminor.yy170;
break;
case 227: /* expr ::= BOOL */
case 226: /* expr ::= BOOL */
{ yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_BOOL);}
yymsp[0].minor.yy170 = yylhsminor.yy170;
break;
case 228: /* expr ::= NULL */
case 227: /* expr ::= NULL */
{ yylhsminor.yy170 = tSqlExprCreateIdValue(&yymsp[0].minor.yy0, TK_NULL);}
yymsp[0].minor.yy170 = yylhsminor.yy170;
break;
case 229: /* expr ::= ID LP exprlist RP */
case 228: /* expr ::= ID LP exprlist RP */
{ yylhsminor.yy170 = tSqlExprCreateFunction(yymsp[-1].minor.yy429, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); }
yymsp[-3].minor.yy170 = yylhsminor.yy170;
break;
case 230: /* expr ::= ID LP STAR RP */
case 229: /* expr ::= ID LP STAR RP */
{ yylhsminor.yy170 = tSqlExprCreateFunction(NULL, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); }
yymsp[-3].minor.yy170 = yylhsminor.yy170;
break;
case 231: /* expr ::= expr IS NULL */
case 230: /* expr ::= expr IS NULL */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, NULL, TK_ISNULL);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 232: /* expr ::= expr IS NOT NULL */
case 231: /* expr ::= expr IS NOT NULL */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-3].minor.yy170, NULL, TK_NOTNULL);}
yymsp[-3].minor.yy170 = yylhsminor.yy170;
break;
case 233: /* expr ::= expr LT expr */
case 232: /* expr ::= expr LT expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_LT);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 234: /* expr ::= expr GT expr */
case 233: /* expr ::= expr GT expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_GT);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 235: /* expr ::= expr LE expr */
case 234: /* expr ::= expr LE expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_LE);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 236: /* expr ::= expr GE expr */
case 235: /* expr ::= expr GE expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_GE);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 237: /* expr ::= expr NE expr */
case 236: /* expr ::= expr NE expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_NE);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 238: /* expr ::= expr EQ expr */
case 237: /* expr ::= expr EQ expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_EQ);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 239: /* expr ::= expr BETWEEN expr AND expr */
case 238: /* expr ::= expr BETWEEN expr AND expr */
{ tSqlExpr* X2 = tSqlExprClone(yymsp[-4].minor.yy170); yylhsminor.yy170 = tSqlExprCreate(tSqlExprCreate(yymsp[-4].minor.yy170, yymsp[-2].minor.yy170, TK_GE), tSqlExprCreate(X2, yymsp[0].minor.yy170, TK_LE), TK_AND);}
yymsp[-4].minor.yy170 = yylhsminor.yy170;
break;
case 240: /* expr ::= expr AND expr */
case 239: /* expr ::= expr AND expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_AND);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 241: /* expr ::= expr OR expr */
case 240: /* expr ::= expr OR expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_OR); }
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 242: /* expr ::= expr PLUS expr */
case 241: /* expr ::= expr PLUS expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_PLUS); }
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 243: /* expr ::= expr MINUS expr */
case 242: /* expr ::= expr MINUS expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_MINUS); }
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 244: /* expr ::= expr STAR expr */
case 243: /* expr ::= expr STAR expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_STAR); }
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 245: /* expr ::= expr SLASH expr */
case 244: /* expr ::= expr SLASH expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_DIVIDE);}
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 246: /* expr ::= expr REM expr */
case 245: /* expr ::= expr REM expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_REM); }
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 247: /* expr ::= expr LIKE expr */
case 246: /* expr ::= expr LIKE expr */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-2].minor.yy170, yymsp[0].minor.yy170, TK_LIKE); }
yymsp[-2].minor.yy170 = yylhsminor.yy170;
break;
case 248: /* expr ::= expr IN LP exprlist RP */
case 247: /* expr ::= expr IN LP exprlist RP */
{yylhsminor.yy170 = tSqlExprCreate(yymsp[-4].minor.yy170, (tSqlExpr*)yymsp[-1].minor.yy429, TK_IN); }
yymsp[-4].minor.yy170 = yylhsminor.yy170;
break;
case 249: /* exprlist ::= exprlist COMMA expritem */
case 248: /* exprlist ::= exprlist COMMA expritem */
{yylhsminor.yy429 = tSqlExprListAppend(yymsp[-2].minor.yy429,yymsp[0].minor.yy170,0, 0);}
yymsp[-2].minor.yy429 = yylhsminor.yy429;
break;
case 250: /* exprlist ::= expritem */
case 249: /* exprlist ::= expritem */
{yylhsminor.yy429 = tSqlExprListAppend(0,yymsp[0].minor.yy170,0, 0);}
yymsp[0].minor.yy429 = yylhsminor.yy429;
break;
case 251: /* expritem ::= expr */
case 250: /* expritem ::= expr */
{yylhsminor.yy170 = yymsp[0].minor.yy170;}
yymsp[0].minor.yy170 = yylhsminor.yy170;
break;
case 253: /* cmd ::= RESET QUERY CACHE */
case 252: /* cmd ::= RESET QUERY CACHE */
{ setDCLSqlElems(pInfo, TSDB_SQL_RESET_CACHE, 0);}
break;
case 254: /* cmd ::= SYNCDB ids REPLICA */
case 253: /* cmd ::= SYNCDB ids REPLICA */
{ setDCLSqlElems(pInfo, TSDB_SQL_SYNC_DB_REPLICA, 1, &yymsp[-1].minor.yy0);}
break;
case 255: /* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
case 254: /* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy429, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, -1);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 256: /* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
case 255: /* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
......@@ -3296,14 +3291,14 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 257: /* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
case 256: /* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy429, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, -1);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 258: /* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
case 257: /* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
......@@ -3314,7 +3309,7 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 259: /* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
case 258: /* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
......@@ -3328,7 +3323,7 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 260: /* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
case 259: /* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n;
......@@ -3340,14 +3335,14 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 261: /* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
case 260: /* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy429, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, TSDB_SUPER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 262: /* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
case 261: /* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
......@@ -3358,14 +3353,14 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 263: /* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
case 262: /* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy429, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, TSDB_SUPER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 264: /* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
case 263: /* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{
yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n;
......@@ -3376,7 +3371,7 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 265: /* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
case 264: /* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{
yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n;
......@@ -3390,13 +3385,13 @@ static YYACTIONTYPE yy_reduce(
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
break;
case 266: /* cmd ::= KILL CONNECTION INTEGER */
case 265: /* cmd ::= KILL CONNECTION INTEGER */
{setKillSql(pInfo, TSDB_SQL_KILL_CONNECTION, &yymsp[0].minor.yy0);}
break;
case 267: /* cmd ::= KILL STREAM INTEGER COLON INTEGER */
case 266: /* cmd ::= KILL STREAM INTEGER COLON INTEGER */
{yymsp[-2].minor.yy0.n += (yymsp[-1].minor.yy0.n + yymsp[0].minor.yy0.n); setKillSql(pInfo, TSDB_SQL_KILL_STREAM, &yymsp[-2].minor.yy0);}
break;
case 268: /* cmd ::= KILL QUERY INTEGER COLON INTEGER */
case 267: /* cmd ::= KILL QUERY INTEGER COLON INTEGER */
{yymsp[-2].minor.yy0.n += (yymsp[-1].minor.yy0.n + yymsp[0].minor.yy0.n); setKillSql(pInfo, TSDB_SQL_KILL_QUERY, &yymsp[-2].minor.yy0);}
break;
default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册