// Generated from dt-sql-parser/src/grammar/hive/HiveSqlParser.g4 by ANTLR 4.13.1 import * as antlr from "antlr4ng"; import { Token } from "antlr4ng"; import { HiveSqlParserListener } from "./HiveSqlParserListener.js"; import { HiveSqlParserVisitor } from "./HiveSqlParserVisitor.js"; // for running tests with parameters, TODO: discuss strategy for typed parameters in CI // eslint-disable-next-line no-unused-vars type int = number; import { SQLParserBase } from '../SQLParserBase'; export class HiveSqlParser extends SQLParserBase { public static readonly KW_ABORT = 1; public static readonly KW_ACTIVATE = 2; public static readonly KW_ACTIVE = 3; public static readonly KW_ADD = 4; public static readonly KW_ADMIN = 5; public static readonly KW_AFTER = 6; public static readonly KW_ALL = 7; public static readonly KW_ALLOC_FRACTION = 8; public static readonly KW_ALTER = 9; public static readonly KW_ANALYZE = 10; public static readonly KW_AND = 11; public static readonly KW_ANTI = 12; public static readonly KW_ANY = 13; public static readonly KW_APPLICATION = 14; public static readonly KW_ARCHIVE = 15; public static readonly KW_ARRAY = 16; public static readonly KW_AS = 17; public static readonly KW_ASC = 18; public static readonly KW_AST = 19; public static readonly KW_AT = 20; public static readonly KW_AUTHORIZATION = 21; public static readonly KW_AUTOCOMMIT = 22; public static readonly KW_BATCH = 23; public static readonly KW_BEFORE = 24; public static readonly KW_BETWEEN = 25; public static readonly KW_BIGINT = 26; public static readonly KW_BINARY = 27; public static readonly KW_BOOLEAN = 28; public static readonly KW_BOTH = 29; public static readonly KW_BUCKET = 30; public static readonly KW_BUCKETS = 31; public static readonly KW_BY = 32; public static readonly KW_CACHE = 33; public static readonly KW_CASCADE = 34; public static readonly KW_CASE = 35; public static readonly KW_CAST = 36; public static readonly KW_CBO = 37; public static readonly KW_CHANGE = 38; public static readonly KW_CHAR = 39; public static readonly KW_CHECK = 40; public static readonly KW_CLUSTER = 41; public static readonly KW_CLUSTERED = 42; public static readonly KW_CLUSTERSTATUS = 43; public static readonly KW_COLLECTION = 44; public static readonly KW_COLUMN = 45; public static readonly KW_COLUMNS = 46; public static readonly KW_COMMENT = 47; public static readonly KW_COMMIT = 48; public static readonly KW_COMPACT = 49; public static readonly KW_COMPACTIONS = 50; public static readonly KW_COMPACT_ID = 51; public static readonly KW_COMPUTE = 52; public static readonly KW_CONCATENATE = 53; public static readonly KW_CONF = 54; public static readonly KW_CONSTRAINT = 55; public static readonly KW_CONTINUE = 56; public static readonly KW_COST = 57; public static readonly KW_CREATE = 58; public static readonly KW_CRON = 59; public static readonly KW_CROSS = 60; public static readonly KW_CUBE = 61; public static readonly KW_CURRENT = 62; public static readonly KW_CURRENT_DATE = 63; public static readonly KW_CURRENT_TIMESTAMP = 64; public static readonly KW_CURSOR = 65; public static readonly KW_DATA = 66; public static readonly KW_DATABASE = 67; public static readonly KW_DATABASES = 68; public static readonly KW_DATACONNECTOR = 69; public static readonly KW_DATACONNECTORS = 70; public static readonly KW_DATE = 71; public static readonly KW_DATETIME = 72; public static readonly KW_DAY = 73; public static readonly KW_DAYS = 74; public static readonly KW_DAYOFWEEK = 75; public static readonly KW_DBPROPERTIES = 76; public static readonly KW_DCPROPERTIES = 77; public static readonly KW_DDL = 78; public static readonly KW_DEBUG = 79; public static readonly KW_DEC = 80; public static readonly KW_DECIMAL = 81; public static readonly KW_NUMERIC = 82; public static readonly KW_DEFAULT = 83; public static readonly KW_DEFERRED = 84; public static readonly KW_DEFINED = 85; public static readonly KW_DELETE = 86; public static readonly KW_DELIMITED = 87; public static readonly KW_DEPENDENCY = 88; public static readonly KW_DESC = 89; public static readonly KW_DESCRIBE = 90; public static readonly KW_DETAIL = 91; public static readonly KW_DIRECTORIES = 92; public static readonly KW_DIRECTORY = 93; public static readonly KW_DISABLE = 94; public static readonly KW_DISABLED = 95; public static readonly KW_DISTINCT = 96; public static readonly KW_DISTRIBUTE = 97; public static readonly KW_DISTRIBUTED = 98; public static readonly KW_DO = 99; public static readonly KW_DOUBLE = 100; public static readonly KW_DROP = 101; public static readonly KW_RECOVER = 102; public static readonly KW_DUMP = 103; public static readonly KW_ELEM_TYPE = 104; public static readonly KW_ELSE = 105; public static readonly KW_ENABLE = 106; public static readonly KW_ENABLED = 107; public static readonly KW_END = 108; public static readonly KW_ENFORCED = 109; public static readonly KW_ESCAPED = 110; public static readonly KW_EVERY = 111; public static readonly KW_EXCEPT = 112; public static readonly KW_EXCHANGE = 113; public static readonly KW_EXCLUSIVE = 114; public static readonly KW_EXECUTE = 115; public static readonly KW_EXECUTED = 116; public static readonly KW_EXISTS = 117; public static readonly KW_EXPIRE_SNAPSHOTS = 118; public static readonly KW_EXPLAIN = 119; public static readonly KW_EXPORT = 120; public static readonly KW_EXPRESSION = 121; public static readonly KW_EXTENDED = 122; public static readonly KW_EXTERNAL = 123; public static readonly KW_EXTRACT = 124; public static readonly KW_FALSE = 125; public static readonly KW_FETCH = 126; public static readonly KW_FIELDS = 127; public static readonly KW_FILE = 128; public static readonly KW_FILEFORMAT = 129; public static readonly KW_FIRST = 130; public static readonly KW_FLOAT = 131; public static readonly KW_FLOOR = 132; public static readonly KW_FOLLOWING = 133; public static readonly KW_FOR = 134; public static readonly KW_FORCE = 135; public static readonly KW_FOREIGN = 136; public static readonly KW_FORMAT = 137; public static readonly KW_FORMATTED = 138; public static readonly KW_FROM = 139; public static readonly KW_FULL = 140; public static readonly KW_FUNCTION = 141; public static readonly KW_FUNCTIONS = 142; public static readonly KW_GRANT = 143; public static readonly KW_GROUP = 144; public static readonly KW_GROUPING = 145; public static readonly KW_HAVING = 146; public static readonly KW_HOLD_DDLTIME = 147; public static readonly KW_HOUR = 148; public static readonly KW_HOURS = 149; public static readonly KW_IDXPROPERTIES = 150; public static readonly KW_IF = 151; public static readonly KW_IGNORE = 152; public static readonly KW_IMPORT = 153; public static readonly KW_IN = 154; public static readonly KW_INDEX = 155; public static readonly KW_INDEXES = 156; public static readonly KW_INNER = 157; public static readonly KW_INPATH = 158; public static readonly KW_INPUTDRIVER = 159; public static readonly KW_INPUTFORMAT = 160; public static readonly KW_INSERT = 161; public static readonly KW_INT = 162; public static readonly KW_INTEGER = 163; public static readonly KW_INTERSECT = 164; public static readonly KW_INTERVAL = 165; public static readonly KW_INTO = 166; public static readonly KW_IS = 167; public static readonly KW_ISOLATION = 168; public static readonly KW_ITEMS = 169; public static readonly KW_JAR = 170; public static readonly KW_JOIN = 171; public static readonly KW_JOINCOST = 172; public static readonly KW_KEY = 173; public static readonly KW_KEYS = 174; public static readonly KW_KEY_TYPE = 175; public static readonly KW_KILL = 176; public static readonly KW_LAST = 177; public static readonly KW_LATERAL = 178; public static readonly KW_LEADING = 179; public static readonly KW_LEFT = 180; public static readonly KW_LESS = 181; public static readonly KW_LEVEL = 182; public static readonly KW_LIKE = 183; public static readonly KW_LIMIT = 184; public static readonly KW_LINES = 185; public static readonly KW_LOAD = 186; public static readonly KW_LOCAL = 187; public static readonly KW_LOCATION = 188; public static readonly KW_LOCK = 189; public static readonly KW_LOCKS = 190; public static readonly KW_LOGICAL = 191; public static readonly KW_LONG = 192; public static readonly KW_MACRO = 193; public static readonly KW_MANAGED = 194; public static readonly KW_MANAGEDLOCATION = 195; public static readonly KW_MANAGEMENT = 196; public static readonly KW_MAP = 197; public static readonly KW_MAPJOIN = 198; public static readonly KW_MAPPING = 199; public static readonly KW_MATCHED = 200; public static readonly KW_MATERIALIZED = 201; public static readonly KW_MERGE = 202; public static readonly KW_METADATA = 203; public static readonly KW_MINUS = 204; public static readonly KW_MINUTE = 205; public static readonly KW_MINUTES = 206; public static readonly KW_MONTH = 207; public static readonly KW_MONTHS = 208; public static readonly KW_MORE = 209; public static readonly KW_MOVE = 210; public static readonly KW_MSCK = 211; public static readonly KW_NONE = 212; public static readonly KW_NORELY = 213; public static readonly KW_NOSCAN = 214; public static readonly KW_NOT = 215; public static readonly KW_NOVALIDATE = 216; public static readonly KW_NO_DROP = 217; public static readonly KW_NULL = 218; public static readonly KW_NULLS = 219; public static readonly KW_OF = 220; public static readonly KW_OFFLINE = 221; public static readonly KW_OFFSET = 222; public static readonly KW_ON = 223; public static readonly KW_ONLY = 224; public static readonly KW_OPERATOR = 225; public static readonly KW_OPTION = 226; public static readonly KW_OR = 227; public static readonly KW_ORDER = 228; public static readonly KW_OUT = 229; public static readonly KW_OUTER = 230; public static readonly KW_OUTPUTDRIVER = 231; public static readonly KW_OUTPUTFORMAT = 232; public static readonly KW_OVER = 233; public static readonly KW_OVERWRITE = 234; public static readonly KW_OWNER = 235; public static readonly KW_PARTITION = 236; public static readonly KW_PARTITIONED = 237; public static readonly KW_PARTITIONS = 238; public static readonly KW_PATH = 239; public static readonly KW_PERCENT = 240; public static readonly KW_PKFK_JOIN = 241; public static readonly KW_PLAN = 242; public static readonly KW_PLANS = 243; public static readonly KW_PLUS = 244; public static readonly KW_POOL = 245; public static readonly KW_PRECEDING = 246; public static readonly KW_PRECISION = 247; public static readonly KW_PREPARE = 248; public static readonly KW_PRESERVE = 249; public static readonly KW_PRIMARY = 250; public static readonly KW_PRINCIPALS = 251; public static readonly KW_PROCEDURE = 252; public static readonly KW_PROTECTION = 253; public static readonly KW_PURGE = 254; public static readonly KW_QUALIFY = 255; public static readonly KW_QUARTER = 256; public static readonly KW_QUERY = 257; public static readonly KW_QUERY_PARALLELISM = 258; public static readonly KW_RANGE = 259; public static readonly KW_READ = 260; public static readonly KW_READONLY = 261; public static readonly KW_READS = 262; public static readonly KW_REAL = 263; public static readonly KW_REBUILD = 264; public static readonly KW_RECORDREADER = 265; public static readonly KW_RECORDWRITER = 266; public static readonly KW_REDUCE = 267; public static readonly KW_REFERENCES = 268; public static readonly KW_REGEXP = 269; public static readonly KW_RELOAD = 270; public static readonly KW_RELY = 271; public static readonly KW_REMOTE = 272; public static readonly KW_RENAME = 273; public static readonly KW_REOPTIMIZATION = 274; public static readonly KW_REPAIR = 275; public static readonly KW_REPL = 276; public static readonly KW_REPLACE = 277; public static readonly KW_REPLICATION = 278; public static readonly KW_RESOURCE = 279; public static readonly KW_RESPECT = 280; public static readonly KW_RESTRICT = 281; public static readonly KW_REVOKE = 282; public static readonly KW_REWRITE = 283; public static readonly KW_RIGHT = 284; public static readonly KW_RLIKE = 285; public static readonly KW_ROLE = 286; public static readonly KW_ROLES = 287; public static readonly KW_ROLLBACK = 288; public static readonly KW_ROLLUP = 289; public static readonly KW_ROW = 290; public static readonly KW_ROWS = 291; public static readonly KW_SCHEDULED = 292; public static readonly KW_SCHEDULING_POLICY = 293; public static readonly KW_SCHEMA = 294; public static readonly KW_SCHEMAS = 295; public static readonly KW_SECOND = 296; public static readonly KW_SECONDS = 297; public static readonly KW_SELECT = 298; public static readonly KW_SEMI = 299; public static readonly KW_SERDE = 300; public static readonly KW_SERDEPROPERTIES = 301; public static readonly KW_SERVER = 302; public static readonly KW_SET = 303; public static readonly KW_SETS = 304; public static readonly KW_SET_CURRENT_SNAPSHOT = 305; public static readonly KW_SHARED = 306; public static readonly KW_SHOW = 307; public static readonly KW_SHOW_DATABASE = 308; public static readonly KW_SKEWED = 309; public static readonly KW_SMALLINT = 310; public static readonly KW_SNAPSHOT = 311; public static readonly KW_SOME = 312; public static readonly KW_SORT = 313; public static readonly KW_SORTED = 314; public static readonly KW_SPEC = 315; public static readonly KW_SSL = 316; public static readonly KW_START = 317; public static readonly KW_STATISTICS = 318; public static readonly KW_STATUS = 319; public static readonly KW_STORED = 320; public static readonly KW_STREAMTABLE = 321; public static readonly KW_STRING = 322; public static readonly KW_STRUCT = 323; public static readonly KW_SUMMARY = 324; public static readonly KW_SYNC = 325; public static readonly KW_SYSTEM_TIME = 326; public static readonly KW_SYSTEM_VERSION = 327; public static readonly KW_TABLE = 328; public static readonly KW_TABLES = 329; public static readonly KW_TABLESAMPLE = 330; public static readonly KW_TBLPROPERTIES = 331; public static readonly KW_TEMPORARY = 332; public static readonly KW_TERMINATED = 333; public static readonly KW_THEN = 334; public static readonly KW_TIME = 335; public static readonly KW_TIMESTAMP = 336; public static readonly KW_TIMESTAMPLOCALTZ = 337; public static readonly KW_TIMESTAMPTZ = 338; public static readonly KW_TINYINT = 339; public static readonly KW_TO = 340; public static readonly KW_TOUCH = 341; public static readonly KW_TRAILING = 342; public static readonly KW_TRANSACTION = 343; public static readonly KW_TRANSACTIONAL = 344; public static readonly KW_TRANSACTIONS = 345; public static readonly KW_TRANSFORM = 346; public static readonly KW_TRIGGER = 347; public static readonly KW_TRIM = 348; public static readonly KW_TRUE = 349; public static readonly KW_TRUNCATE = 350; public static readonly KW_TYPE = 351; public static readonly KW_UNARCHIVE = 352; public static readonly KW_UNBOUNDED = 353; public static readonly KW_UNDO = 354; public static readonly KW_UNION = 355; public static readonly KW_UNIONTYPE = 356; public static readonly KW_UNIQUE = 357; public static readonly KW_UNIQUEJOIN = 358; public static readonly KW_UNKNOWN = 359; public static readonly KW_UNLOCK = 360; public static readonly KW_UNMANAGED = 361; public static readonly KW_UNSET = 362; public static readonly KW_UNSIGNED = 363; public static readonly KW_UPDATE = 364; public static readonly KW_URI = 365; public static readonly KW_URL = 366; public static readonly KW_USE = 367; public static readonly KW_USER = 368; public static readonly KW_USING = 369; public static readonly KW_UTC = 370; public static readonly KW_UTCTIMESTAMP = 371; public static readonly KW_VALIDATE = 372; public static readonly KW_VALUES = 373; public static readonly KW_VALUE_TYPE = 374; public static readonly KW_VARCHAR = 375; public static readonly KW_VECTORIZATION = 376; public static readonly KW_VIEW = 377; public static readonly KW_VIEWS = 378; public static readonly KW_WAIT = 379; public static readonly KW_WEEK = 380; public static readonly KW_WEEKS = 381; public static readonly KW_WHEN = 382; public static readonly KW_WHERE = 383; public static readonly KW_WHILE = 384; public static readonly KW_WINDOW = 385; public static readonly KW_WITH = 386; public static readonly KW_WITHIN = 387; public static readonly KW_WORK = 388; public static readonly KW_WORKLOAD = 389; public static readonly KW_WRITE = 390; public static readonly KW_YEAR = 391; public static readonly KW_YEARS = 392; public static readonly KW_ZONE = 393; public static readonly DOT = 394; public static readonly COLON = 395; public static readonly COMMA = 396; public static readonly SEMICOLON = 397; public static readonly LPAREN = 398; public static readonly RPAREN = 399; public static readonly LSQUARE = 400; public static readonly RSQUARE = 401; public static readonly LCURLY = 402; public static readonly RCURLY = 403; public static readonly EQUAL = 404; public static readonly EQUAL_NS = 405; public static readonly NOTEQUAL = 406; public static readonly LESSTHANOREQUALTO = 407; public static readonly LESSTHAN = 408; public static readonly GREATERTHANOREQUALTO = 409; public static readonly GREATERTHAN = 410; public static readonly DIVIDE = 411; public static readonly PLUS = 412; public static readonly MINUS = 413; public static readonly STAR = 414; public static readonly MOD = 415; public static readonly DIV = 416; public static readonly BITWISENOT = 417; public static readonly AMPERSAND = 418; public static readonly TILDE = 419; public static readonly BITWISEOR = 420; public static readonly CONCATENATE = 421; public static readonly BITWISEXOR = 422; public static readonly QUESTION = 423; public static readonly DOLLAR = 424; public static readonly StringLiteral = 425; public static readonly CharSetLiteral = 426; public static readonly IntegralLiteral = 427; public static readonly NumberLiteral = 428; public static readonly ByteLengthLiteral = 429; public static readonly Number = 430; public static readonly Identifier = 431; public static readonly CharSetName = 432; public static readonly WHITE_SPACE = 433; public static readonly LINE_COMMENT = 434; public static readonly QUERY_HINT = 435; public static readonly SHOW_HINT = 436; public static readonly HIDDEN_HINT = 437; public static readonly RULE_program = 0; public static readonly RULE_statement = 1; public static readonly RULE_explainStatement = 2; public static readonly RULE_explainOption = 3; public static readonly RULE_vectorizationOnly = 4; public static readonly RULE_vectorizatonDetail = 5; public static readonly RULE_execStatement = 6; public static readonly RULE_loadStatement = 7; public static readonly RULE_dropPartitionsIgnoreClause = 8; public static readonly RULE_replicationClause = 9; public static readonly RULE_exportStatement = 10; public static readonly RULE_importStatement = 11; public static readonly RULE_replDumpStatement = 12; public static readonly RULE_replDbPolicy = 13; public static readonly RULE_replLoadStatement = 14; public static readonly RULE_replConfigs = 15; public static readonly RULE_replConfigsList = 16; public static readonly RULE_replTableLevelPolicy = 17; public static readonly RULE_replStatusStatement = 18; public static readonly RULE_ddlStatement = 19; public static readonly RULE_ifExists = 20; public static readonly RULE_restrictOrCascade = 21; public static readonly RULE_ifNotExists = 22; public static readonly RULE_force = 23; public static readonly RULE_rewriteEnabled = 24; public static readonly RULE_rewriteDisabled = 25; public static readonly RULE_storedAsDirs = 26; public static readonly RULE_orReplace = 27; public static readonly RULE_createDatabaseStatement = 28; public static readonly RULE_dbLocation = 29; public static readonly RULE_dbManagedLocation = 30; public static readonly RULE_dbProperties = 31; public static readonly RULE_dbPropertiesList = 32; public static readonly RULE_dbConnectorName = 33; public static readonly RULE_switchDatabaseStatement = 34; public static readonly RULE_dropDatabaseStatement = 35; public static readonly RULE_databaseComment = 36; public static readonly RULE_truncateTableStatement = 37; public static readonly RULE_dropTableStatement = 38; public static readonly RULE_inputFileFormat = 39; public static readonly RULE_tabTypeExpr = 40; public static readonly RULE_partTypeExpr = 41; public static readonly RULE_tabPartColTypeExpr = 42; public static readonly RULE_descStatement = 43; public static readonly RULE_analyzeStatement = 44; public static readonly RULE_from_in = 45; public static readonly RULE_db_schema = 46; public static readonly RULE_showStatement = 47; public static readonly RULE_showTablesFilterExpr = 48; public static readonly RULE_lockStatement = 49; public static readonly RULE_lockDatabase = 50; public static readonly RULE_lockMode = 51; public static readonly RULE_unlockStatement = 52; public static readonly RULE_unlockDatabase = 53; public static readonly RULE_createRoleStatement = 54; public static readonly RULE_dropRoleStatement = 55; public static readonly RULE_grantPrivileges = 56; public static readonly RULE_revokePrivileges = 57; public static readonly RULE_grantRole = 58; public static readonly RULE_revokeRole = 59; public static readonly RULE_showRoleGrants = 60; public static readonly RULE_showRoles = 61; public static readonly RULE_showCurrentRole = 62; public static readonly RULE_setRole = 63; public static readonly RULE_showGrants = 64; public static readonly RULE_showRolePrincipals = 65; public static readonly RULE_privilegeIncludeColObject = 66; public static readonly RULE_privilegeObject = 67; public static readonly RULE_privObject = 68; public static readonly RULE_privObjectCols = 69; public static readonly RULE_privilegeList = 70; public static readonly RULE_privlegeDef = 71; public static readonly RULE_privilegeType = 72; public static readonly RULE_principalSpecification = 73; public static readonly RULE_principalName = 74; public static readonly RULE_principalAlterName = 75; public static readonly RULE_withGrantOption = 76; public static readonly RULE_grantOptionFor = 77; public static readonly RULE_adminOptionFor = 78; public static readonly RULE_withAdminOption = 79; public static readonly RULE_metastoreCheck = 80; public static readonly RULE_resourceList = 81; public static readonly RULE_resource = 82; public static readonly RULE_resourceType = 83; public static readonly RULE_createFunctionStatement = 84; public static readonly RULE_dropFunctionStatement = 85; public static readonly RULE_reloadFunctionsStatement = 86; public static readonly RULE_createMacroStatement = 87; public static readonly RULE_dropMacroStatement = 88; public static readonly RULE_createIndexStatement = 89; public static readonly RULE_dropIndexStatement = 90; public static readonly RULE_createViewStatement = 91; public static readonly RULE_viewPartition = 92; public static readonly RULE_viewOrganization = 93; public static readonly RULE_viewClusterSpec = 94; public static readonly RULE_viewComplexSpec = 95; public static readonly RULE_viewDistSpec = 96; public static readonly RULE_viewSortSpec = 97; public static readonly RULE_dropViewStatement = 98; public static readonly RULE_createMaterializedViewStatement = 99; public static readonly RULE_dropMaterializedViewStatement = 100; public static readonly RULE_createScheduledQueryStatement = 101; public static readonly RULE_dropScheduledQueryStatement = 102; public static readonly RULE_alterScheduledQueryStatement = 103; public static readonly RULE_alterScheduledQueryChange = 104; public static readonly RULE_scheduleSpec = 105; public static readonly RULE_executedAsSpec = 106; public static readonly RULE_definedAsSpec = 107; public static readonly RULE_showStmtIdentifier = 108; public static readonly RULE_tableComment = 109; public static readonly RULE_createTablePartitionSpec = 110; public static readonly RULE_createTablePartitionColumnTypeSpec = 111; public static readonly RULE_createTablePartitionColumnSpec = 112; public static readonly RULE_partitionTransformSpec = 113; public static readonly RULE_columnNameTransformConstraint = 114; public static readonly RULE_partitionTransformType = 115; public static readonly RULE_tableBuckets = 116; public static readonly RULE_tableImplBuckets = 117; public static readonly RULE_tableSkewed = 118; public static readonly RULE_rowFormat = 119; public static readonly RULE_recordReader = 120; public static readonly RULE_recordWriter = 121; public static readonly RULE_rowFormatSerde = 122; public static readonly RULE_rowFormatDelimited = 123; public static readonly RULE_tableRowFormat = 124; public static readonly RULE_tablePropertiesPrefixed = 125; public static readonly RULE_tableProperties = 126; public static readonly RULE_tablePropertiesList = 127; public static readonly RULE_keyValueProperty = 128; public static readonly RULE_keyProperty = 129; public static readonly RULE_tableRowFormatFieldIdentifier = 130; public static readonly RULE_tableRowFormatCollItemsIdentifier = 131; public static readonly RULE_tableRowFormatMapKeysIdentifier = 132; public static readonly RULE_tableRowFormatLinesIdentifier = 133; public static readonly RULE_tableRowNullFormat = 134; public static readonly RULE_tableFileFormat = 135; public static readonly RULE_tableLocation = 136; public static readonly RULE_columnNameTypeList = 137; public static readonly RULE_columnNameTypeOrConstraintList = 138; public static readonly RULE_columnNameColonTypeList = 139; public static readonly RULE_columnNameList = 140; public static readonly RULE_columnName = 141; public static readonly RULE_columnNameCreate = 142; public static readonly RULE_extColumnName = 143; public static readonly RULE_columnNameOrderList = 144; public static readonly RULE_columnParenthesesList = 145; public static readonly RULE_enableValidateSpecification = 146; public static readonly RULE_enableSpecification = 147; public static readonly RULE_validateSpecification = 148; public static readonly RULE_enforcedSpecification = 149; public static readonly RULE_relySpecification = 150; public static readonly RULE_createConstraint = 151; public static readonly RULE_alterConstraintWithName = 152; public static readonly RULE_tableLevelConstraint = 153; public static readonly RULE_pkUkConstraint = 154; public static readonly RULE_checkConstraint = 155; public static readonly RULE_createForeignKey = 156; public static readonly RULE_alterForeignKeyWithName = 157; public static readonly RULE_skewedValueElement = 158; public static readonly RULE_skewedColumnValuePairList = 159; public static readonly RULE_skewedColumnValuePair = 160; public static readonly RULE_skewedColumnValues = 161; public static readonly RULE_skewedColumnValue = 162; public static readonly RULE_skewedValueLocationElement = 163; public static readonly RULE_orderSpecification = 164; public static readonly RULE_nullOrdering = 165; public static readonly RULE_columnNameOrder = 166; public static readonly RULE_columnNameCommentList = 167; public static readonly RULE_columnNameComment = 168; public static readonly RULE_orderSpecificationRewrite = 169; public static readonly RULE_columnRefOrder = 170; public static readonly RULE_columnNameType = 171; public static readonly RULE_columnNameTypeOrConstraint = 172; public static readonly RULE_tableConstraint = 173; public static readonly RULE_columnNameTypeConstraint = 174; public static readonly RULE_columnConstraint = 175; public static readonly RULE_foreignKeyConstraint = 176; public static readonly RULE_colConstraint = 177; public static readonly RULE_alterColumnConstraint = 178; public static readonly RULE_alterForeignKeyConstraint = 179; public static readonly RULE_alterColConstraint = 180; public static readonly RULE_columnConstraintType = 181; public static readonly RULE_defaultVal = 182; public static readonly RULE_tableConstraintType = 183; public static readonly RULE_constraintOptsCreate = 184; public static readonly RULE_constraintOptsAlter = 185; public static readonly RULE_columnNameColonType = 186; public static readonly RULE_colType = 187; public static readonly RULE_colTypeList = 188; public static readonly RULE_type = 189; public static readonly RULE_primitiveType = 190; public static readonly RULE_listType = 191; public static readonly RULE_structType = 192; public static readonly RULE_mapType = 193; public static readonly RULE_unionType = 194; public static readonly RULE_setOperator = 195; public static readonly RULE_queryStatementExpression = 196; public static readonly RULE_queryStatementExpressionBody = 197; public static readonly RULE_withClause = 198; public static readonly RULE_cteStatement = 199; public static readonly RULE_fromStatement = 200; public static readonly RULE_singleFromStatement = 201; public static readonly RULE_regularBody = 202; public static readonly RULE_atomSelectStatement = 203; public static readonly RULE_selectStatement = 204; public static readonly RULE_setOpSelectStatement = 205; public static readonly RULE_selectStatementWithCTE = 206; public static readonly RULE_insertClause = 207; public static readonly RULE_destination = 208; public static readonly RULE_limitClause = 209; public static readonly RULE_deleteStatement = 210; public static readonly RULE_columnAssignmentClause = 211; public static readonly RULE_precedencePlusExpressionOrDefault = 212; public static readonly RULE_setColumnsClause = 213; public static readonly RULE_updateStatement = 214; public static readonly RULE_sqlTransactionStatement = 215; public static readonly RULE_startTransactionStatement = 216; public static readonly RULE_transactionMode = 217; public static readonly RULE_transactionAccessMode = 218; public static readonly RULE_isolationLevel = 219; public static readonly RULE_levelOfIsolation = 220; public static readonly RULE_commitStatement = 221; public static readonly RULE_rollbackStatement = 222; public static readonly RULE_setAutoCommitStatement = 223; public static readonly RULE_abortTransactionStatement = 224; public static readonly RULE_abortCompactionStatement = 225; public static readonly RULE_mergeStatement = 226; public static readonly RULE_whenClauses = 227; public static readonly RULE_whenNotMatchedClause = 228; public static readonly RULE_whenMatchedAndClause = 229; public static readonly RULE_whenMatchedThenClause = 230; public static readonly RULE_updateOrDelete = 231; public static readonly RULE_killQueryStatement = 232; public static readonly RULE_compactionId = 233; public static readonly RULE_compactionPool = 234; public static readonly RULE_compactionType = 235; public static readonly RULE_compactionStatus = 236; public static readonly RULE_alterStatement = 237; public static readonly RULE_alterTableStatementSuffix = 238; public static readonly RULE_alterTblPartitionStatementSuffix = 239; public static readonly RULE_alterStatementPartitionKeyType = 240; public static readonly RULE_alterViewStatementSuffix = 241; public static readonly RULE_alterMaterializedViewStatementSuffix = 242; public static readonly RULE_alterMaterializedViewSuffixRewrite = 243; public static readonly RULE_alterMaterializedViewSuffixRebuild = 244; public static readonly RULE_alterDatabaseStatementSuffix = 245; public static readonly RULE_alterDatabaseSuffixProperties = 246; public static readonly RULE_alterDatabaseSuffixSetOwner = 247; public static readonly RULE_alterDatabaseSuffixSetLocation = 248; public static readonly RULE_alterDatabaseSuffixSetManagedLocation = 249; public static readonly RULE_alterStatementSuffixRename = 250; public static readonly RULE_alterStatementSuffixAddCol = 251; public static readonly RULE_alterStatementSuffixAddConstraint = 252; public static readonly RULE_alterStatementSuffixUpdateColumns = 253; public static readonly RULE_alterStatementSuffixProtections = 254; public static readonly RULE_alterStatementSuffixDropConstraint = 255; public static readonly RULE_alterStatementSuffixRenameCol = 256; public static readonly RULE_alterStatementSuffixUpdateStatsCol = 257; public static readonly RULE_alterStatementSuffixUpdateStats = 258; public static readonly RULE_alterStatementChangeColPosition = 259; public static readonly RULE_alterStatementSuffixAddPartitions = 260; public static readonly RULE_alterStatementSuffixAddPartitionsElement = 261; public static readonly RULE_alterStatementSuffixTouch = 262; public static readonly RULE_alterStatementSuffixArchive = 263; public static readonly RULE_alterStatementSuffixUnArchive = 264; public static readonly RULE_partitionLocation = 265; public static readonly RULE_alterStatementSuffixRecoverPartitions = 266; public static readonly RULE_alterStatementSuffixDropPartitions = 267; public static readonly RULE_alterStatementSuffixProperties = 268; public static readonly RULE_alterViewSuffixProperties = 269; public static readonly RULE_alterStatementSuffixSerdeProperties = 270; public static readonly RULE_tablePartitionPrefix = 271; public static readonly RULE_alterStatementSuffixFileFormat = 272; public static readonly RULE_alterStatementSuffixClusterbySortby = 273; public static readonly RULE_alterTblPartitionStatementSuffixSkewedLocation = 274; public static readonly RULE_skewedLocations = 275; public static readonly RULE_skewedLocationsList = 276; public static readonly RULE_skewedLocationMap = 277; public static readonly RULE_alterStatementSuffixLocation = 278; public static readonly RULE_alterStatementSuffixSkewedby = 279; public static readonly RULE_alterStatementSuffixExchangePartition = 280; public static readonly RULE_alterStatementSuffixRenamePart = 281; public static readonly RULE_alterStatementSuffixStatsPart = 282; public static readonly RULE_alterStatementSuffixMergeFiles = 283; public static readonly RULE_alterStatementSuffixBucketNum = 284; public static readonly RULE_blocking = 285; public static readonly RULE_compactPool = 286; public static readonly RULE_alterStatementSuffixCompact = 287; public static readonly RULE_alterStatementSuffixSetOwner = 288; public static readonly RULE_alterStatementSuffixSetPartSpec = 289; public static readonly RULE_alterStatementSuffixExecute = 290; public static readonly RULE_alterIndexStatementSuffix = 291; public static readonly RULE_fileFormat = 292; public static readonly RULE_alterDataConnectorStatementSuffix = 293; public static readonly RULE_alterDataConnectorSuffixProperties = 294; public static readonly RULE_alterDataConnectorSuffixSetOwner = 295; public static readonly RULE_alterDataConnectorSuffixSetUrl = 296; public static readonly RULE_likeTableOrFile = 297; public static readonly RULE_createTableStatement = 298; public static readonly RULE_createDataConnectorStatement = 299; public static readonly RULE_dataConnectorComment = 300; public static readonly RULE_dataConnectorUrl = 301; public static readonly RULE_dataConnectorType = 302; public static readonly RULE_dcProperties = 303; public static readonly RULE_dropDataConnectorStatement = 304; public static readonly RULE_tableAllColumns = 305; public static readonly RULE_defaultValue = 306; public static readonly RULE_expressionList = 307; public static readonly RULE_aliasList = 308; public static readonly RULE_fromClause = 309; public static readonly RULE_fromSource = 310; public static readonly RULE_atomjoinSource = 311; public static readonly RULE_joinSource = 312; public static readonly RULE_joinSourcePart = 313; public static readonly RULE_uniqueJoinSource = 314; public static readonly RULE_uniqueJoinExpr = 315; public static readonly RULE_uniqueJoinToken = 316; public static readonly RULE_joinToken = 317; public static readonly RULE_lateralView = 318; public static readonly RULE_tableAlias = 319; public static readonly RULE_tableBucketSample = 320; public static readonly RULE_splitSample = 321; public static readonly RULE_tableSample = 322; public static readonly RULE_tableSource = 323; public static readonly RULE_asOfClause = 324; public static readonly RULE_uniqueJoinTableSource = 325; public static readonly RULE_dbSchemaName = 326; public static readonly RULE_dbSchemaNameCreate = 327; public static readonly RULE_tableOrView = 328; public static readonly RULE_tableName = 329; public static readonly RULE_tableNameCreate = 330; public static readonly RULE_viewName = 331; public static readonly RULE_viewNameCreate = 332; public static readonly RULE_subQuerySource = 333; public static readonly RULE_partitioningSpec = 334; public static readonly RULE_partitionTableFunctionSource = 335; public static readonly RULE_partitionedTableFunction = 336; public static readonly RULE_whereClause = 337; public static readonly RULE_searchCondition = 338; public static readonly RULE_valuesSource = 339; public static readonly RULE_valuesClause = 340; public static readonly RULE_valuesTableConstructor = 341; public static readonly RULE_valueRowConstructor = 342; public static readonly RULE_firstValueRowConstructor = 343; public static readonly RULE_virtualTableSource = 344; public static readonly RULE_selectClause = 345; public static readonly RULE_all_distinct = 346; public static readonly RULE_selectList = 347; public static readonly RULE_selectTrfmClause = 348; public static readonly RULE_selectItem = 349; public static readonly RULE_trfmClause = 350; public static readonly RULE_selectExpression = 351; public static readonly RULE_selectExpressionList = 352; public static readonly RULE_window_clause = 353; public static readonly RULE_window_defn = 354; public static readonly RULE_window_specification = 355; public static readonly RULE_window_frame = 356; public static readonly RULE_window_range_expression = 357; public static readonly RULE_window_value_expression = 358; public static readonly RULE_window_frame_start_boundary = 359; public static readonly RULE_window_frame_boundary = 360; public static readonly RULE_groupByClause = 361; public static readonly RULE_groupby_expression = 362; public static readonly RULE_groupByEmpty = 363; public static readonly RULE_rollupStandard = 364; public static readonly RULE_rollupOldSyntax = 365; public static readonly RULE_groupingSetExpression = 366; public static readonly RULE_groupingSetExpressionMultiple = 367; public static readonly RULE_groupingExpressionSingle = 368; public static readonly RULE_havingClause = 369; public static readonly RULE_qualifyClause = 370; public static readonly RULE_havingCondition = 371; public static readonly RULE_expressionsInParenthesis = 372; public static readonly RULE_expressionsNotInParenthesis = 373; public static readonly RULE_expressionPart = 374; public static readonly RULE_expressionOrDefault = 375; public static readonly RULE_firstExpressionsWithAlias = 376; public static readonly RULE_expressionWithAlias = 377; public static readonly RULE_expressions = 378; public static readonly RULE_columnRefOrderInParenthesis = 379; public static readonly RULE_columnRefOrderNotInParenthesis = 380; public static readonly RULE_orderByClause = 381; public static readonly RULE_clusterByClause = 382; public static readonly RULE_partitionByClause = 383; public static readonly RULE_distributeByClause = 384; public static readonly RULE_sortByClause = 385; public static readonly RULE_trimFunction = 386; public static readonly RULE_function_ = 387; public static readonly RULE_null_treatment = 388; public static readonly RULE_functionNameCreate = 389; public static readonly RULE_functionNameForDDL = 390; public static readonly RULE_functionNameForInvoke = 391; public static readonly RULE_userDefinedFuncName = 392; public static readonly RULE_internalFunctionName = 393; public static readonly RULE_castExpression = 394; public static readonly RULE_caseExpression = 395; public static readonly RULE_whenExpression = 396; public static readonly RULE_floorExpression = 397; public static readonly RULE_floorDateQualifiers = 398; public static readonly RULE_extractExpression = 399; public static readonly RULE_timeQualifiers = 400; public static readonly RULE_constant = 401; public static readonly RULE_prepareStmtParam = 402; public static readonly RULE_parameterIdx = 403; public static readonly RULE_stringLiteralSequence = 404; public static readonly RULE_charSetStringLiteral = 405; public static readonly RULE_dateLiteral = 406; public static readonly RULE_timestampLiteral = 407; public static readonly RULE_timestampLocalTZLiteral = 408; public static readonly RULE_intervalValue = 409; public static readonly RULE_intervalLiteral = 410; public static readonly RULE_intervalExpression = 411; public static readonly RULE_intervalQualifiers = 412; public static readonly RULE_expression = 413; public static readonly RULE_atomExpression = 414; public static readonly RULE_precedenceFieldExpression = 415; public static readonly RULE_precedenceUnaryOperator = 416; public static readonly RULE_precedenceUnaryPrefixExpression = 417; public static readonly RULE_precedenceBitwiseXorOperator = 418; public static readonly RULE_precedenceBitwiseXorExpression = 419; public static readonly RULE_precedenceStarOperator = 420; public static readonly RULE_precedenceStarExpression = 421; public static readonly RULE_precedencePlusOperator = 422; public static readonly RULE_precedencePlusExpression = 423; public static readonly RULE_precedenceConcatenateOperator = 424; public static readonly RULE_precedenceConcatenateExpression = 425; public static readonly RULE_precedenceAmpersandOperator = 426; public static readonly RULE_precedenceAmpersandExpression = 427; public static readonly RULE_precedenceBitwiseOrOperator = 428; public static readonly RULE_precedenceBitwiseOrExpression = 429; public static readonly RULE_precedenceRegexpOperator = 430; public static readonly RULE_precedenceSimilarOperator = 431; public static readonly RULE_subQueryExpression = 432; public static readonly RULE_precedenceSimilarExpression = 433; public static readonly RULE_precedenceSimilarExpressionMain = 434; public static readonly RULE_precedenceSimilarExpressionPart = 435; public static readonly RULE_precedenceSimilarExpressionAtom = 436; public static readonly RULE_precedenceSimilarExpressionQuantifierPredicate = 437; public static readonly RULE_quantifierType = 438; public static readonly RULE_precedenceSimilarExpressionIn = 439; public static readonly RULE_precedenceSimilarExpressionPartNot = 440; public static readonly RULE_precedenceDistinctOperator = 441; public static readonly RULE_precedenceEqualOperator = 442; public static readonly RULE_precedenceEqualExpression = 443; public static readonly RULE_isCondition = 444; public static readonly RULE_precedenceUnarySuffixExpression = 445; public static readonly RULE_precedenceNotOperator = 446; public static readonly RULE_precedenceNotExpression = 447; public static readonly RULE_precedenceAndOperator = 448; public static readonly RULE_precedenceAndExpression = 449; public static readonly RULE_precedenceOrOperator = 450; public static readonly RULE_precedenceOrExpression = 451; public static readonly RULE_booleanValue = 452; public static readonly RULE_booleanValueTok = 453; public static readonly RULE_tableOrPartition = 454; public static readonly RULE_partitionSpec = 455; public static readonly RULE_partitionVal = 456; public static readonly RULE_partitionSelectorSpec = 457; public static readonly RULE_partitionSelectorVal = 458; public static readonly RULE_partitionSelectorOperator = 459; public static readonly RULE_subQuerySelectorOperator = 460; public static readonly RULE_sysFuncNames = 461; public static readonly RULE_id_ = 462; public static readonly RULE_functionIdentifier = 463; public static readonly RULE_principalIdentifier = 464; public static readonly RULE_nonReserved = 465; public static readonly RULE_sql11ReservedKeywordsUsedAsFunctionName = 466; public static readonly RULE_hint = 467; public static readonly RULE_hintList = 468; public static readonly RULE_hintItem = 469; public static readonly RULE_hintName = 470; public static readonly RULE_hintArgs = 471; public static readonly RULE_hintArgName = 472; public static readonly RULE_prepareStatement = 473; public static readonly RULE_executeStatement = 474; public static readonly RULE_executeParamList = 475; public static readonly RULE_resourcePlanDdlStatements = 476; public static readonly RULE_rpAssign = 477; public static readonly RULE_rpAssignList = 478; public static readonly RULE_rpUnassign = 479; public static readonly RULE_rpUnassignList = 480; public static readonly RULE_createResourcePlanStatement = 481; public static readonly RULE_withReplace = 482; public static readonly RULE_activate = 483; public static readonly RULE_enable = 484; public static readonly RULE_disable = 485; public static readonly RULE_unmanaged = 486; public static readonly RULE_year = 487; public static readonly RULE_month = 488; public static readonly RULE_week = 489; public static readonly RULE_day = 490; public static readonly RULE_hour = 491; public static readonly RULE_minute = 492; public static readonly RULE_second = 493; public static readonly RULE_decimal = 494; public static readonly RULE_alterResourcePlanStatement = 495; public static readonly RULE_globalWmStatement = 496; public static readonly RULE_replaceResourcePlanStatement = 497; public static readonly RULE_dropResourcePlanStatement = 498; public static readonly RULE_poolPath = 499; public static readonly RULE_triggerExpression = 500; public static readonly RULE_triggerExpressionStandalone = 501; public static readonly RULE_triggerOrExpression = 502; public static readonly RULE_triggerAndExpression = 503; public static readonly RULE_triggerAtomExpression = 504; public static readonly RULE_triggerLiteral = 505; public static readonly RULE_comparisionOperator = 506; public static readonly RULE_triggerActionExpression = 507; public static readonly RULE_triggerActionExpressionStandalone = 508; public static readonly RULE_createTriggerStatement = 509; public static readonly RULE_alterTriggerStatement = 510; public static readonly RULE_dropTriggerStatement = 511; public static readonly RULE_poolAssign = 512; public static readonly RULE_poolAssignList = 513; public static readonly RULE_createPoolStatement = 514; public static readonly RULE_alterPoolStatement = 515; public static readonly RULE_dropPoolStatement = 516; public static readonly RULE_createMappingStatement = 517; public static readonly RULE_alterMappingStatement = 518; public static readonly RULE_dropMappingStatement = 519; public static readonly literalNames = [ null, "'ABORT'", "'ACTIVATE'", "'ACTIVE'", "'ADD'", "'ADMIN'", "'AFTER'", "'ALL'", "'ALLOC_FRACTION'", "'ALTER'", "'ANALYZE'", "'AND'", "'ANTI'", "'ANY'", "'APPLICATION'", "'ARCHIVE'", "'ARRAY'", "'AS'", "'ASC'", "'AST'", "'AT'", "'AUTHORIZATION'", "'AUTOCOMMIT'", "'BATCH'", "'BEFORE'", "'BETWEEN'", "'BIGINT'", "'BINARY'", "'BOOLEAN'", "'BOTH'", "'BUCKET'", "'BUCKETS'", "'BY'", "'CACHE'", "'CASCADE'", "'CASE'", "'CAST'", "'CBO'", "'CHANGE'", "'CHAR'", "'CHECK'", "'CLUSTER'", "'CLUSTERED'", "'CLUSTERSTATUS'", "'COLLECTION'", "'COLUMN'", "'COLUMNS'", "'COMMENT'", "'COMMIT'", "'COMPACT'", "'COMPACTIONS'", "'COMPACTIONID'", "'COMPUTE'", "'CONCATENATE'", "'CONF'", "'CONSTRAINT'", "'CONTINUE'", "'COST'", "'CREATE'", "'CRON'", "'CROSS'", "'CUBE'", "'CURRENT'", "'CURRENT_DATE'", "'CURRENT_TIMESTAMP'", "'CURSOR'", "'DATA'", "'DATABASE'", "'DATABASES'", "'CONNECTOR'", "'CONNECTORS'", "'DATE'", "'DATETIME'", "'DAY'", "'DAYS'", "'DAYOFWEEK'", "'DBPROPERTIES'", "'DCPROPERTIES'", "'DDL'", "'DEBUG'", "'DEC'", "'DECIMAL'", "'NUMERIC'", "'DEFAULT'", "'DEFERRED'", "'DEFINED'", "'DELETE'", "'DELIMITED'", "'DEPENDENCY'", "'DESC'", "'DESCRIBE'", "'DETAIL'", "'DIRECTORIES'", "'DIRECTORY'", "'DISABLE'", "'DISABLED'", "'DISTINCT'", "'DISTRIBUTE'", "'DISTRIBUTED'", "'DO'", "'DOUBLE'", "'DROP'", "'RECOVER'", "'DUMP'", "'$ELEM$'", "'ELSE'", "'ENABLE'", "'ENABLED'", "'END'", "'ENFORCED'", "'ESCAPED'", "'EVERY'", "'EXCEPT'", "'EXCHANGE'", "'EXCLUSIVE'", "'EXECUTE'", "'EXECUTED'", "'EXISTS'", "'EXPIRE_SNAPSHOTS'", "'EXPLAIN'", "'EXPORT'", "'EXPRESSION'", "'EXTENDED'", "'EXTERNAL'", "'EXTRACT'", "'FALSE'", "'FETCH'", "'FIELDS'", "'FILE'", "'FILEFORMAT'", "'FIRST'", "'FLOAT'", "'FLOOR'", "'FOLLOWING'", "'FOR'", "'FORCE'", "'FOREIGN'", "'FORMAT'", "'FORMATTED'", "'FROM'", "'FULL'", "'FUNCTION'", "'FUNCTIONS'", "'GRANT'", "'GROUP'", "'GROUPING'", "'HAVING'", "'HOLD_DDLTIME'", "'HOUR'", "'HOURS'", "'IDXPROPERTIES'", "'IF'", "'IGNORE'", "'IMPORT'", "'IN'", "'INDEX'", "'INDEXES'", "'INNER'", "'INPATH'", "'INPUTDRIVER'", "'INPUTFORMAT'", "'INSERT'", "'INT'", "'INTEGER'", "'INTERSECT'", "'INTERVAL'", "'INTO'", "'IS'", "'ISOLATION'", "'ITEMS'", "'JAR'", "'JOIN'", "'JOINCOST'", "'KEY'", "'KEYS'", "'$KEY$'", "'KILL'", "'LAST'", "'LATERAL'", "'LEADING'", "'LEFT'", "'LESS'", "'LEVEL'", "'LIKE'", "'LIMIT'", "'LINES'", "'LOAD'", "'LOCAL'", "'LOCATION'", "'LOCK'", "'LOCKS'", "'LOGICAL'", "'LONG'", "'MACRO'", "'MANAGED'", "'MANAGEDLOCATION'", "'MANAGEMENT'", "'MAP'", "'MAPJOIN'", "'MAPPING'", "'MATCHED'", "'MATERIALIZED'", "'MERGE'", "'METADATA'", "'MINUS'", "'MINUTE'", "'MINUTES'", "'MONTH'", "'MONTHS'", "'MORE'", "'MOVE'", "'MSCK'", "'NONE'", "'NORELY'", "'NOSCAN'", "'NOT'", "'NOVALIDATE'", "'NO_DROP'", "'NULL'", "'NULLS'", "'OF'", "'OFFLINE'", "'OFFSET'", "'ON'", "'ONLY'", "'OPERATOR'", "'OPTION'", "'OR'", "'ORDER'", "'OUT'", "'OUTER'", "'OUTPUTDRIVER'", "'OUTPUTFORMAT'", "'OVER'", "'OVERWRITE'", "'OWNER'", "'PARTITION'", "'PARTITIONED'", "'PARTITIONS'", "'PATH'", "'PERCENT'", "'PKFK_JOIN'", "'PLAN'", "'PLANS'", "'PLUS'", "'POOL'", "'PRECEDING'", "'PRECISION'", "'PREPARE'", "'PRESERVE'", "'PRIMARY'", "'PRINCIPALS'", "'PROCEDURE'", "'PROTECTION'", "'PURGE'", "'QUALIFY'", "'QUARTER'", "'QUERY'", "'QUERY_PARALLELISM'", "'RANGE'", "'READ'", "'READONLY'", "'READS'", "'REAL'", "'REBUILD'", "'RECORDREADER'", "'RECORDWRITER'", "'REDUCE'", "'REFERENCES'", "'REGEXP'", "'RELOAD'", "'RELY'", "'REMOTE'", "'RENAME'", "'REOPTIMIZATION'", "'REPAIR'", "'REPL'", "'REPLACE'", "'REPLICATION'", "'RESOURCE'", "'RESPECT'", "'RESTRICT'", "'REVOKE'", "'REWRITE'", "'RIGHT'", "'RLIKE'", "'ROLE'", "'ROLES'", "'ROLLBACK'", "'ROLLUP'", "'ROW'", "'ROWS'", "'SCHEDULED'", "'SCHEDULING_POLICY'", "'SCHEMA'", "'SCHEMAS'", "'SECOND'", "'SECONDS'", "'SELECT'", "'SEMI'", "'SERDE'", "'SERDEPROPERTIES'", "'SERVER'", "'SET'", "'SETS'", "'SET_CURRENT_SNAPSHOT'", "'SHARED'", "'SHOW'", "'SHOW_DATABASE'", "'SKEWED'", "'SMALLINT'", "'SNAPSHOT'", "'SOME'", "'SORT'", "'SORTED'", "'SPEC'", "'SSL'", "'START'", "'STATISTICS'", "'STATUS'", "'STORED'", "'STREAMTABLE'", "'STRING'", "'STRUCT'", "'SUMMARY'", "'SYNC'", "'SYSTEM_TIME'", "'SYSTEM_VERSION'", "'TABLE'", "'TABLES'", "'TABLESAMPLE'", "'TBLPROPERTIES'", "'TEMPORARY'", "'TERMINATED'", "'THEN'", "'TIME'", "'TIMESTAMP'", "'TIMESTAMPLOCALTZ'", "'TIMESTAMPTZ'", "'TINYINT'", "'TO'", "'TOUCH'", "'TRAILING'", "'TRANSACTION'", "'TRANSACTIONAL'", "'TRANSACTIONS'", "'TRANSFORM'", "'TRIGGER'", "'TRIM'", "'TRUE'", "'TRUNCATE'", "'TYPE'", "'UNARCHIVE'", "'UNBOUNDED'", "'UNDO'", "'UNION'", "'UNIONTYPE'", "'UNIQUE'", "'UNIQUEJOIN'", "'UNKNOWN'", "'UNLOCK'", "'UNMANAGED'", "'UNSET'", "'UNSIGNED'", "'UPDATE'", "'URI'", "'URL'", "'USE'", "'USER'", "'USING'", "'UTC'", "'UTC_TMESTAMP'", "'VALIDATE'", "'VALUES'", "'$VALUE$'", "'VARCHAR'", "'VECTORIZATION'", "'VIEW'", "'VIEWS'", "'WAIT'", "'WEEK'", "'WEEKS'", "'WHEN'", "'WHERE'", "'WHILE'", "'WINDOW'", "'WITH'", "'WITHIN'", "'WORK'", "'WORKLOAD'", "'WRITE'", "'YEAR'", "'YEARS'", "'ZONE'", "'.'", "':'", "','", "';'", "'('", "')'", "'['", "']'", "'{'", "'}'", null, "'<=>'", null, "'<='", "'<'", "'>='", "'>'", "'/'", "'+'", "'-'", "'*'", "'%'", "'DIV'", "'!'", "'&'", "'~'", "'|'", "'||'", "'^'", "'?'", "'$'" ]; public static readonly symbolicNames = [ null, "KW_ABORT", "KW_ACTIVATE", "KW_ACTIVE", "KW_ADD", "KW_ADMIN", "KW_AFTER", "KW_ALL", "KW_ALLOC_FRACTION", "KW_ALTER", "KW_ANALYZE", "KW_AND", "KW_ANTI", "KW_ANY", "KW_APPLICATION", "KW_ARCHIVE", "KW_ARRAY", "KW_AS", "KW_ASC", "KW_AST", "KW_AT", "KW_AUTHORIZATION", "KW_AUTOCOMMIT", "KW_BATCH", "KW_BEFORE", "KW_BETWEEN", "KW_BIGINT", "KW_BINARY", "KW_BOOLEAN", "KW_BOTH", "KW_BUCKET", "KW_BUCKETS", "KW_BY", "KW_CACHE", "KW_CASCADE", "KW_CASE", "KW_CAST", "KW_CBO", "KW_CHANGE", "KW_CHAR", "KW_CHECK", "KW_CLUSTER", "KW_CLUSTERED", "KW_CLUSTERSTATUS", "KW_COLLECTION", "KW_COLUMN", "KW_COLUMNS", "KW_COMMENT", "KW_COMMIT", "KW_COMPACT", "KW_COMPACTIONS", "KW_COMPACT_ID", "KW_COMPUTE", "KW_CONCATENATE", "KW_CONF", "KW_CONSTRAINT", "KW_CONTINUE", "KW_COST", "KW_CREATE", "KW_CRON", "KW_CROSS", "KW_CUBE", "KW_CURRENT", "KW_CURRENT_DATE", "KW_CURRENT_TIMESTAMP", "KW_CURSOR", "KW_DATA", "KW_DATABASE", "KW_DATABASES", "KW_DATACONNECTOR", "KW_DATACONNECTORS", "KW_DATE", "KW_DATETIME", "KW_DAY", "KW_DAYS", "KW_DAYOFWEEK", "KW_DBPROPERTIES", "KW_DCPROPERTIES", "KW_DDL", "KW_DEBUG", "KW_DEC", "KW_DECIMAL", "KW_NUMERIC", "KW_DEFAULT", "KW_DEFERRED", "KW_DEFINED", "KW_DELETE", "KW_DELIMITED", "KW_DEPENDENCY", "KW_DESC", "KW_DESCRIBE", "KW_DETAIL", "KW_DIRECTORIES", "KW_DIRECTORY", "KW_DISABLE", "KW_DISABLED", "KW_DISTINCT", "KW_DISTRIBUTE", "KW_DISTRIBUTED", "KW_DO", "KW_DOUBLE", "KW_DROP", "KW_RECOVER", "KW_DUMP", "KW_ELEM_TYPE", "KW_ELSE", "KW_ENABLE", "KW_ENABLED", "KW_END", "KW_ENFORCED", "KW_ESCAPED", "KW_EVERY", "KW_EXCEPT", "KW_EXCHANGE", "KW_EXCLUSIVE", "KW_EXECUTE", "KW_EXECUTED", "KW_EXISTS", "KW_EXPIRE_SNAPSHOTS", "KW_EXPLAIN", "KW_EXPORT", "KW_EXPRESSION", "KW_EXTENDED", "KW_EXTERNAL", "KW_EXTRACT", "KW_FALSE", "KW_FETCH", "KW_FIELDS", "KW_FILE", "KW_FILEFORMAT", "KW_FIRST", "KW_FLOAT", "KW_FLOOR", "KW_FOLLOWING", "KW_FOR", "KW_FORCE", "KW_FOREIGN", "KW_FORMAT", "KW_FORMATTED", "KW_FROM", "KW_FULL", "KW_FUNCTION", "KW_FUNCTIONS", "KW_GRANT", "KW_GROUP", "KW_GROUPING", "KW_HAVING", "KW_HOLD_DDLTIME", "KW_HOUR", "KW_HOURS", "KW_IDXPROPERTIES", "KW_IF", "KW_IGNORE", "KW_IMPORT", "KW_IN", "KW_INDEX", "KW_INDEXES", "KW_INNER", "KW_INPATH", "KW_INPUTDRIVER", "KW_INPUTFORMAT", "KW_INSERT", "KW_INT", "KW_INTEGER", "KW_INTERSECT", "KW_INTERVAL", "KW_INTO", "KW_IS", "KW_ISOLATION", "KW_ITEMS", "KW_JAR", "KW_JOIN", "KW_JOINCOST", "KW_KEY", "KW_KEYS", "KW_KEY_TYPE", "KW_KILL", "KW_LAST", "KW_LATERAL", "KW_LEADING", "KW_LEFT", "KW_LESS", "KW_LEVEL", "KW_LIKE", "KW_LIMIT", "KW_LINES", "KW_LOAD", "KW_LOCAL", "KW_LOCATION", "KW_LOCK", "KW_LOCKS", "KW_LOGICAL", "KW_LONG", "KW_MACRO", "KW_MANAGED", "KW_MANAGEDLOCATION", "KW_MANAGEMENT", "KW_MAP", "KW_MAPJOIN", "KW_MAPPING", "KW_MATCHED", "KW_MATERIALIZED", "KW_MERGE", "KW_METADATA", "KW_MINUS", "KW_MINUTE", "KW_MINUTES", "KW_MONTH", "KW_MONTHS", "KW_MORE", "KW_MOVE", "KW_MSCK", "KW_NONE", "KW_NORELY", "KW_NOSCAN", "KW_NOT", "KW_NOVALIDATE", "KW_NO_DROP", "KW_NULL", "KW_NULLS", "KW_OF", "KW_OFFLINE", "KW_OFFSET", "KW_ON", "KW_ONLY", "KW_OPERATOR", "KW_OPTION", "KW_OR", "KW_ORDER", "KW_OUT", "KW_OUTER", "KW_OUTPUTDRIVER", "KW_OUTPUTFORMAT", "KW_OVER", "KW_OVERWRITE", "KW_OWNER", "KW_PARTITION", "KW_PARTITIONED", "KW_PARTITIONS", "KW_PATH", "KW_PERCENT", "KW_PKFK_JOIN", "KW_PLAN", "KW_PLANS", "KW_PLUS", "KW_POOL", "KW_PRECEDING", "KW_PRECISION", "KW_PREPARE", "KW_PRESERVE", "KW_PRIMARY", "KW_PRINCIPALS", "KW_PROCEDURE", "KW_PROTECTION", "KW_PURGE", "KW_QUALIFY", "KW_QUARTER", "KW_QUERY", "KW_QUERY_PARALLELISM", "KW_RANGE", "KW_READ", "KW_READONLY", "KW_READS", "KW_REAL", "KW_REBUILD", "KW_RECORDREADER", "KW_RECORDWRITER", "KW_REDUCE", "KW_REFERENCES", "KW_REGEXP", "KW_RELOAD", "KW_RELY", "KW_REMOTE", "KW_RENAME", "KW_REOPTIMIZATION", "KW_REPAIR", "KW_REPL", "KW_REPLACE", "KW_REPLICATION", "KW_RESOURCE", "KW_RESPECT", "KW_RESTRICT", "KW_REVOKE", "KW_REWRITE", "KW_RIGHT", "KW_RLIKE", "KW_ROLE", "KW_ROLES", "KW_ROLLBACK", "KW_ROLLUP", "KW_ROW", "KW_ROWS", "KW_SCHEDULED", "KW_SCHEDULING_POLICY", "KW_SCHEMA", "KW_SCHEMAS", "KW_SECOND", "KW_SECONDS", "KW_SELECT", "KW_SEMI", "KW_SERDE", "KW_SERDEPROPERTIES", "KW_SERVER", "KW_SET", "KW_SETS", "KW_SET_CURRENT_SNAPSHOT", "KW_SHARED", "KW_SHOW", "KW_SHOW_DATABASE", "KW_SKEWED", "KW_SMALLINT", "KW_SNAPSHOT", "KW_SOME", "KW_SORT", "KW_SORTED", "KW_SPEC", "KW_SSL", "KW_START", "KW_STATISTICS", "KW_STATUS", "KW_STORED", "KW_STREAMTABLE", "KW_STRING", "KW_STRUCT", "KW_SUMMARY", "KW_SYNC", "KW_SYSTEM_TIME", "KW_SYSTEM_VERSION", "KW_TABLE", "KW_TABLES", "KW_TABLESAMPLE", "KW_TBLPROPERTIES", "KW_TEMPORARY", "KW_TERMINATED", "KW_THEN", "KW_TIME", "KW_TIMESTAMP", "KW_TIMESTAMPLOCALTZ", "KW_TIMESTAMPTZ", "KW_TINYINT", "KW_TO", "KW_TOUCH", "KW_TRAILING", "KW_TRANSACTION", "KW_TRANSACTIONAL", "KW_TRANSACTIONS", "KW_TRANSFORM", "KW_TRIGGER", "KW_TRIM", "KW_TRUE", "KW_TRUNCATE", "KW_TYPE", "KW_UNARCHIVE", "KW_UNBOUNDED", "KW_UNDO", "KW_UNION", "KW_UNIONTYPE", "KW_UNIQUE", "KW_UNIQUEJOIN", "KW_UNKNOWN", "KW_UNLOCK", "KW_UNMANAGED", "KW_UNSET", "KW_UNSIGNED", "KW_UPDATE", "KW_URI", "KW_URL", "KW_USE", "KW_USER", "KW_USING", "KW_UTC", "KW_UTCTIMESTAMP", "KW_VALIDATE", "KW_VALUES", "KW_VALUE_TYPE", "KW_VARCHAR", "KW_VECTORIZATION", "KW_VIEW", "KW_VIEWS", "KW_WAIT", "KW_WEEK", "KW_WEEKS", "KW_WHEN", "KW_WHERE", "KW_WHILE", "KW_WINDOW", "KW_WITH", "KW_WITHIN", "KW_WORK", "KW_WORKLOAD", "KW_WRITE", "KW_YEAR", "KW_YEARS", "KW_ZONE", "DOT", "COLON", "COMMA", "SEMICOLON", "LPAREN", "RPAREN", "LSQUARE", "RSQUARE", "LCURLY", "RCURLY", "EQUAL", "EQUAL_NS", "NOTEQUAL", "LESSTHANOREQUALTO", "LESSTHAN", "GREATERTHANOREQUALTO", "GREATERTHAN", "DIVIDE", "PLUS", "MINUS", "STAR", "MOD", "DIV", "BITWISENOT", "AMPERSAND", "TILDE", "BITWISEOR", "CONCATENATE", "BITWISEXOR", "QUESTION", "DOLLAR", "StringLiteral", "CharSetLiteral", "IntegralLiteral", "NumberLiteral", "ByteLengthLiteral", "Number", "Identifier", "CharSetName", "WHITE_SPACE", "LINE_COMMENT", "QUERY_HINT", "SHOW_HINT", "HIDDEN_HINT" ]; public static readonly ruleNames = [ "program", "statement", "explainStatement", "explainOption", "vectorizationOnly", "vectorizatonDetail", "execStatement", "loadStatement", "dropPartitionsIgnoreClause", "replicationClause", "exportStatement", "importStatement", "replDumpStatement", "replDbPolicy", "replLoadStatement", "replConfigs", "replConfigsList", "replTableLevelPolicy", "replStatusStatement", "ddlStatement", "ifExists", "restrictOrCascade", "ifNotExists", "force", "rewriteEnabled", "rewriteDisabled", "storedAsDirs", "orReplace", "createDatabaseStatement", "dbLocation", "dbManagedLocation", "dbProperties", "dbPropertiesList", "dbConnectorName", "switchDatabaseStatement", "dropDatabaseStatement", "databaseComment", "truncateTableStatement", "dropTableStatement", "inputFileFormat", "tabTypeExpr", "partTypeExpr", "tabPartColTypeExpr", "descStatement", "analyzeStatement", "from_in", "db_schema", "showStatement", "showTablesFilterExpr", "lockStatement", "lockDatabase", "lockMode", "unlockStatement", "unlockDatabase", "createRoleStatement", "dropRoleStatement", "grantPrivileges", "revokePrivileges", "grantRole", "revokeRole", "showRoleGrants", "showRoles", "showCurrentRole", "setRole", "showGrants", "showRolePrincipals", "privilegeIncludeColObject", "privilegeObject", "privObject", "privObjectCols", "privilegeList", "privlegeDef", "privilegeType", "principalSpecification", "principalName", "principalAlterName", "withGrantOption", "grantOptionFor", "adminOptionFor", "withAdminOption", "metastoreCheck", "resourceList", "resource", "resourceType", "createFunctionStatement", "dropFunctionStatement", "reloadFunctionsStatement", "createMacroStatement", "dropMacroStatement", "createIndexStatement", "dropIndexStatement", "createViewStatement", "viewPartition", "viewOrganization", "viewClusterSpec", "viewComplexSpec", "viewDistSpec", "viewSortSpec", "dropViewStatement", "createMaterializedViewStatement", "dropMaterializedViewStatement", "createScheduledQueryStatement", "dropScheduledQueryStatement", "alterScheduledQueryStatement", "alterScheduledQueryChange", "scheduleSpec", "executedAsSpec", "definedAsSpec", "showStmtIdentifier", "tableComment", "createTablePartitionSpec", "createTablePartitionColumnTypeSpec", "createTablePartitionColumnSpec", "partitionTransformSpec", "columnNameTransformConstraint", "partitionTransformType", "tableBuckets", "tableImplBuckets", "tableSkewed", "rowFormat", "recordReader", "recordWriter", "rowFormatSerde", "rowFormatDelimited", "tableRowFormat", "tablePropertiesPrefixed", "tableProperties", "tablePropertiesList", "keyValueProperty", "keyProperty", "tableRowFormatFieldIdentifier", "tableRowFormatCollItemsIdentifier", "tableRowFormatMapKeysIdentifier", "tableRowFormatLinesIdentifier", "tableRowNullFormat", "tableFileFormat", "tableLocation", "columnNameTypeList", "columnNameTypeOrConstraintList", "columnNameColonTypeList", "columnNameList", "columnName", "columnNameCreate", "extColumnName", "columnNameOrderList", "columnParenthesesList", "enableValidateSpecification", "enableSpecification", "validateSpecification", "enforcedSpecification", "relySpecification", "createConstraint", "alterConstraintWithName", "tableLevelConstraint", "pkUkConstraint", "checkConstraint", "createForeignKey", "alterForeignKeyWithName", "skewedValueElement", "skewedColumnValuePairList", "skewedColumnValuePair", "skewedColumnValues", "skewedColumnValue", "skewedValueLocationElement", "orderSpecification", "nullOrdering", "columnNameOrder", "columnNameCommentList", "columnNameComment", "orderSpecificationRewrite", "columnRefOrder", "columnNameType", "columnNameTypeOrConstraint", "tableConstraint", "columnNameTypeConstraint", "columnConstraint", "foreignKeyConstraint", "colConstraint", "alterColumnConstraint", "alterForeignKeyConstraint", "alterColConstraint", "columnConstraintType", "defaultVal", "tableConstraintType", "constraintOptsCreate", "constraintOptsAlter", "columnNameColonType", "colType", "colTypeList", "type", "primitiveType", "listType", "structType", "mapType", "unionType", "setOperator", "queryStatementExpression", "queryStatementExpressionBody", "withClause", "cteStatement", "fromStatement", "singleFromStatement", "regularBody", "atomSelectStatement", "selectStatement", "setOpSelectStatement", "selectStatementWithCTE", "insertClause", "destination", "limitClause", "deleteStatement", "columnAssignmentClause", "precedencePlusExpressionOrDefault", "setColumnsClause", "updateStatement", "sqlTransactionStatement", "startTransactionStatement", "transactionMode", "transactionAccessMode", "isolationLevel", "levelOfIsolation", "commitStatement", "rollbackStatement", "setAutoCommitStatement", "abortTransactionStatement", "abortCompactionStatement", "mergeStatement", "whenClauses", "whenNotMatchedClause", "whenMatchedAndClause", "whenMatchedThenClause", "updateOrDelete", "killQueryStatement", "compactionId", "compactionPool", "compactionType", "compactionStatus", "alterStatement", "alterTableStatementSuffix", "alterTblPartitionStatementSuffix", "alterStatementPartitionKeyType", "alterViewStatementSuffix", "alterMaterializedViewStatementSuffix", "alterMaterializedViewSuffixRewrite", "alterMaterializedViewSuffixRebuild", "alterDatabaseStatementSuffix", "alterDatabaseSuffixProperties", "alterDatabaseSuffixSetOwner", "alterDatabaseSuffixSetLocation", "alterDatabaseSuffixSetManagedLocation", "alterStatementSuffixRename", "alterStatementSuffixAddCol", "alterStatementSuffixAddConstraint", "alterStatementSuffixUpdateColumns", "alterStatementSuffixProtections", "alterStatementSuffixDropConstraint", "alterStatementSuffixRenameCol", "alterStatementSuffixUpdateStatsCol", "alterStatementSuffixUpdateStats", "alterStatementChangeColPosition", "alterStatementSuffixAddPartitions", "alterStatementSuffixAddPartitionsElement", "alterStatementSuffixTouch", "alterStatementSuffixArchive", "alterStatementSuffixUnArchive", "partitionLocation", "alterStatementSuffixRecoverPartitions", "alterStatementSuffixDropPartitions", "alterStatementSuffixProperties", "alterViewSuffixProperties", "alterStatementSuffixSerdeProperties", "tablePartitionPrefix", "alterStatementSuffixFileFormat", "alterStatementSuffixClusterbySortby", "alterTblPartitionStatementSuffixSkewedLocation", "skewedLocations", "skewedLocationsList", "skewedLocationMap", "alterStatementSuffixLocation", "alterStatementSuffixSkewedby", "alterStatementSuffixExchangePartition", "alterStatementSuffixRenamePart", "alterStatementSuffixStatsPart", "alterStatementSuffixMergeFiles", "alterStatementSuffixBucketNum", "blocking", "compactPool", "alterStatementSuffixCompact", "alterStatementSuffixSetOwner", "alterStatementSuffixSetPartSpec", "alterStatementSuffixExecute", "alterIndexStatementSuffix", "fileFormat", "alterDataConnectorStatementSuffix", "alterDataConnectorSuffixProperties", "alterDataConnectorSuffixSetOwner", "alterDataConnectorSuffixSetUrl", "likeTableOrFile", "createTableStatement", "createDataConnectorStatement", "dataConnectorComment", "dataConnectorUrl", "dataConnectorType", "dcProperties", "dropDataConnectorStatement", "tableAllColumns", "defaultValue", "expressionList", "aliasList", "fromClause", "fromSource", "atomjoinSource", "joinSource", "joinSourcePart", "uniqueJoinSource", "uniqueJoinExpr", "uniqueJoinToken", "joinToken", "lateralView", "tableAlias", "tableBucketSample", "splitSample", "tableSample", "tableSource", "asOfClause", "uniqueJoinTableSource", "dbSchemaName", "dbSchemaNameCreate", "tableOrView", "tableName", "tableNameCreate", "viewName", "viewNameCreate", "subQuerySource", "partitioningSpec", "partitionTableFunctionSource", "partitionedTableFunction", "whereClause", "searchCondition", "valuesSource", "valuesClause", "valuesTableConstructor", "valueRowConstructor", "firstValueRowConstructor", "virtualTableSource", "selectClause", "all_distinct", "selectList", "selectTrfmClause", "selectItem", "trfmClause", "selectExpression", "selectExpressionList", "window_clause", "window_defn", "window_specification", "window_frame", "window_range_expression", "window_value_expression", "window_frame_start_boundary", "window_frame_boundary", "groupByClause", "groupby_expression", "groupByEmpty", "rollupStandard", "rollupOldSyntax", "groupingSetExpression", "groupingSetExpressionMultiple", "groupingExpressionSingle", "havingClause", "qualifyClause", "havingCondition", "expressionsInParenthesis", "expressionsNotInParenthesis", "expressionPart", "expressionOrDefault", "firstExpressionsWithAlias", "expressionWithAlias", "expressions", "columnRefOrderInParenthesis", "columnRefOrderNotInParenthesis", "orderByClause", "clusterByClause", "partitionByClause", "distributeByClause", "sortByClause", "trimFunction", "function_", "null_treatment", "functionNameCreate", "functionNameForDDL", "functionNameForInvoke", "userDefinedFuncName", "internalFunctionName", "castExpression", "caseExpression", "whenExpression", "floorExpression", "floorDateQualifiers", "extractExpression", "timeQualifiers", "constant", "prepareStmtParam", "parameterIdx", "stringLiteralSequence", "charSetStringLiteral", "dateLiteral", "timestampLiteral", "timestampLocalTZLiteral", "intervalValue", "intervalLiteral", "intervalExpression", "intervalQualifiers", "expression", "atomExpression", "precedenceFieldExpression", "precedenceUnaryOperator", "precedenceUnaryPrefixExpression", "precedenceBitwiseXorOperator", "precedenceBitwiseXorExpression", "precedenceStarOperator", "precedenceStarExpression", "precedencePlusOperator", "precedencePlusExpression", "precedenceConcatenateOperator", "precedenceConcatenateExpression", "precedenceAmpersandOperator", "precedenceAmpersandExpression", "precedenceBitwiseOrOperator", "precedenceBitwiseOrExpression", "precedenceRegexpOperator", "precedenceSimilarOperator", "subQueryExpression", "precedenceSimilarExpression", "precedenceSimilarExpressionMain", "precedenceSimilarExpressionPart", "precedenceSimilarExpressionAtom", "precedenceSimilarExpressionQuantifierPredicate", "quantifierType", "precedenceSimilarExpressionIn", "precedenceSimilarExpressionPartNot", "precedenceDistinctOperator", "precedenceEqualOperator", "precedenceEqualExpression", "isCondition", "precedenceUnarySuffixExpression", "precedenceNotOperator", "precedenceNotExpression", "precedenceAndOperator", "precedenceAndExpression", "precedenceOrOperator", "precedenceOrExpression", "booleanValue", "booleanValueTok", "tableOrPartition", "partitionSpec", "partitionVal", "partitionSelectorSpec", "partitionSelectorVal", "partitionSelectorOperator", "subQuerySelectorOperator", "sysFuncNames", "id_", "functionIdentifier", "principalIdentifier", "nonReserved", "sql11ReservedKeywordsUsedAsFunctionName", "hint", "hintList", "hintItem", "hintName", "hintArgs", "hintArgName", "prepareStatement", "executeStatement", "executeParamList", "resourcePlanDdlStatements", "rpAssign", "rpAssignList", "rpUnassign", "rpUnassignList", "createResourcePlanStatement", "withReplace", "activate", "enable", "disable", "unmanaged", "year", "month", "week", "day", "hour", "minute", "second", "decimal", "alterResourcePlanStatement", "globalWmStatement", "replaceResourcePlanStatement", "dropResourcePlanStatement", "poolPath", "triggerExpression", "triggerExpressionStandalone", "triggerOrExpression", "triggerAndExpression", "triggerAtomExpression", "triggerLiteral", "comparisionOperator", "triggerActionExpression", "triggerActionExpressionStandalone", "createTriggerStatement", "alterTriggerStatement", "dropTriggerStatement", "poolAssign", "poolAssignList", "createPoolStatement", "alterPoolStatement", "dropPoolStatement", "createMappingStatement", "alterMappingStatement", "dropMappingStatement", ]; public get grammarFileName(): string { return "HiveSqlParser.g4"; } public get literalNames(): (string | null)[] { return HiveSqlParser.literalNames; } public get symbolicNames(): (string | null)[] { return HiveSqlParser.symbolicNames; } public get ruleNames(): string[] { return HiveSqlParser.ruleNames; } public get serializedATN(): number[] { return HiveSqlParser._serializedATN; } protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException { return new antlr.FailedPredicateException(this, predicate, message); } public constructor(input: antlr.TokenStream) { super(input); this.interpreter = new antlr.ParserATNSimulator(this, HiveSqlParser._ATN, HiveSqlParser.decisionsToDFA, new antlr.PredictionContextCache()); } public program(): ProgramContext { let localContext = new ProgramContext(this.context, this.state); this.enterRule(localContext, 0, HiveSqlParser.RULE_program); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1043; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1538) !== 0) || _la === 48 || _la === 58 || ((((_la - 86)) & ~0x1F) === 0 && ((1 << (_la - 86)) & 540050201) !== 0) || ((((_la - 119)) & ~0x1F) === 0 && ((1 << (_la - 119)) & 17825795) !== 0) || ((((_la - 153)) & ~0x1F) === 0 && ((1 << (_la - 153)) & 8388865) !== 0) || ((((_la - 186)) & ~0x1F) === 0 && ((1 << (_la - 186)) & 33622025) !== 0) || ((((_la - 248)) & ~0x1F) === 0 && ((1 << (_la - 248)) & 810024961) !== 0) || ((((_la - 282)) & ~0x1F) === 0 && ((1 << (_la - 282)) & 35717185) !== 0) || _la === 317 || ((((_la - 350)) & ~0x1F) === 0 && ((1 << (_la - 350)) & 8537089) !== 0) || _la === 386 || _la === 398) { { { this.state = 1040; this.statement(); } } this.state = 1045; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 1046; this.match(HiveSqlParser.EOF); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public statement(): StatementContext { let localContext = new StatementContext(this.context, this.state); this.enterRule(localContext, 2, HiveSqlParser.RULE_statement); try { this.enterOuterAlt(localContext, 1); { this.state = 1050; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_EXPLAIN: { this.state = 1048; this.explainStatement(); } break; case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ALTER: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_COMMIT: case HiveSqlParser.KW_CREATE: case HiveSqlParser.KW_DELETE: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DESCRIBE: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DROP: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_FROM: case HiveSqlParser.KW_GRANT: case HiveSqlParser.KW_IMPORT: case HiveSqlParser.KW_INSERT: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_MERGE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_PREPARE: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REVOKE: case HiveSqlParser.KW_ROLLBACK: case HiveSqlParser.KW_SELECT: case HiveSqlParser.KW_SET: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_START: case HiveSqlParser.KW_TRUNCATE: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UPDATE: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_VALUES: case HiveSqlParser.KW_WITH: case HiveSqlParser.LPAREN: { this.state = 1049; this.execStatement(); } break; default: throw new antlr.NoViableAltException(this); } this.state = 1053; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 2, this.context) ) { case 1: { this.state = 1052; this.match(HiveSqlParser.SEMICOLON); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public explainStatement(): ExplainStatementContext { let localContext = new ExplainStatementContext(this.context, this.state); this.enterRule(localContext, 4, HiveSqlParser.RULE_explainStatement); try { let alternative: number; this.enterOuterAlt(localContext, 1); { this.state = 1055; this.match(HiveSqlParser.KW_EXPLAIN); this.state = 1065; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ALTER: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AUTHORIZATION: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_COMMIT: case HiveSqlParser.KW_CREATE: case HiveSqlParser.KW_DDL: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DELETE: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DESCRIBE: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DROP: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXTENDED: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FROM: case HiveSqlParser.KW_GRANT: case HiveSqlParser.KW_IMPORT: case HiveSqlParser.KW_INSERT: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_MERGE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_PREPARE: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REVOKE: case HiveSqlParser.KW_ROLLBACK: case HiveSqlParser.KW_SELECT: case HiveSqlParser.KW_SET: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_START: case HiveSqlParser.KW_TRUNCATE: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UPDATE: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_VALUES: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_WITH: case HiveSqlParser.LPAREN: { this.state = 1059; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 3, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 1056; this.explainOption(); } } } this.state = 1061; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 3, this.context); } this.state = 1062; this.execStatement(); } break; case HiveSqlParser.KW_REWRITE: { this.state = 1063; this.match(HiveSqlParser.KW_REWRITE); this.state = 1064; this.queryStatementExpression(); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public explainOption(): ExplainOptionContext { let localContext = new ExplainOptionContext(this.context, this.state); this.enterRule(localContext, 6, HiveSqlParser.RULE_explainOption); let _la: number; try { this.state = 1089; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_EXTENDED: this.enterOuterAlt(localContext, 1); { this.state = 1067; this.match(HiveSqlParser.KW_EXTENDED); } break; case HiveSqlParser.KW_FORMATTED: this.enterOuterAlt(localContext, 2); { this.state = 1068; this.match(HiveSqlParser.KW_FORMATTED); } break; case HiveSqlParser.KW_DEPENDENCY: this.enterOuterAlt(localContext, 3); { this.state = 1069; this.match(HiveSqlParser.KW_DEPENDENCY); } break; case HiveSqlParser.KW_CBO: this.enterOuterAlt(localContext, 4); { this.state = 1070; this.match(HiveSqlParser.KW_CBO); this.state = 1072; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 57 || _la === 172) { { this.state = 1071; _la = this.tokenStream.LA(1); if(!(_la === 57 || _la === 172)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } } break; case HiveSqlParser.KW_LOGICAL: this.enterOuterAlt(localContext, 5); { this.state = 1074; this.match(HiveSqlParser.KW_LOGICAL); } break; case HiveSqlParser.KW_AUTHORIZATION: this.enterOuterAlt(localContext, 6); { this.state = 1075; this.match(HiveSqlParser.KW_AUTHORIZATION); } break; case HiveSqlParser.KW_ANALYZE: this.enterOuterAlt(localContext, 7); { this.state = 1076; this.match(HiveSqlParser.KW_ANALYZE); } break; case HiveSqlParser.KW_REOPTIMIZATION: this.enterOuterAlt(localContext, 8); { this.state = 1077; this.match(HiveSqlParser.KW_REOPTIMIZATION); } break; case HiveSqlParser.KW_LOCKS: this.enterOuterAlt(localContext, 9); { this.state = 1078; this.match(HiveSqlParser.KW_LOCKS); } break; case HiveSqlParser.KW_AST: this.enterOuterAlt(localContext, 10); { this.state = 1079; this.match(HiveSqlParser.KW_AST); } break; case HiveSqlParser.KW_VECTORIZATION: this.enterOuterAlt(localContext, 11); { this.state = 1080; this.match(HiveSqlParser.KW_VECTORIZATION); this.state = 1082; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 224) { { this.state = 1081; this.vectorizationOnly(); } } this.state = 1085; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 91 || _la === 121 || _la === 225 || _la === 324) { { this.state = 1084; this.vectorizatonDetail(); } } } break; case HiveSqlParser.KW_DEBUG: this.enterOuterAlt(localContext, 12); { this.state = 1087; this.match(HiveSqlParser.KW_DEBUG); } break; case HiveSqlParser.KW_DDL: this.enterOuterAlt(localContext, 13); { this.state = 1088; this.match(HiveSqlParser.KW_DDL); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public vectorizationOnly(): VectorizationOnlyContext { let localContext = new VectorizationOnlyContext(this.context, this.state); this.enterRule(localContext, 8, HiveSqlParser.RULE_vectorizationOnly); try { this.enterOuterAlt(localContext, 1); { this.state = 1091; this.match(HiveSqlParser.KW_ONLY); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public vectorizatonDetail(): VectorizatonDetailContext { let localContext = new VectorizatonDetailContext(this.context, this.state); this.enterRule(localContext, 10, HiveSqlParser.RULE_vectorizatonDetail); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1093; _la = this.tokenStream.LA(1); if(!(_la === 91 || _la === 121 || _la === 225 || _la === 324)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public execStatement(): ExecStatementContext { let localContext = new ExecStatementContext(this.context, this.state); this.enterRule(localContext, 12, HiveSqlParser.RULE_execStatement); try { this.state = 1109; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 9, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 1095; this.queryStatementExpression(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 1096; this.loadStatement(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 1097; this.exportStatement(); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 1098; this.importStatement(); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 1099; this.replDumpStatement(); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 1100; this.replLoadStatement(); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 1101; this.replStatusStatement(); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 1102; this.ddlStatement(); } break; case 9: this.enterOuterAlt(localContext, 9); { this.state = 1103; this.deleteStatement(); } break; case 10: this.enterOuterAlt(localContext, 10); { this.state = 1104; this.updateStatement(); } break; case 11: this.enterOuterAlt(localContext, 11); { this.state = 1105; this.sqlTransactionStatement(); } break; case 12: this.enterOuterAlt(localContext, 12); { this.state = 1106; this.mergeStatement(); } break; case 13: this.enterOuterAlt(localContext, 13); { this.state = 1107; this.prepareStatement(); } break; case 14: this.enterOuterAlt(localContext, 14); { this.state = 1108; this.executeStatement(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public loadStatement(): LoadStatementContext { let localContext = new LoadStatementContext(this.context, this.state); this.enterRule(localContext, 14, HiveSqlParser.RULE_loadStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1111; this.match(HiveSqlParser.KW_LOAD); this.state = 1112; this.match(HiveSqlParser.KW_DATA); this.state = 1114; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 187) { { this.state = 1113; this.match(HiveSqlParser.KW_LOCAL); } } this.state = 1116; this.match(HiveSqlParser.KW_INPATH); this.state = 1117; this.match(HiveSqlParser.StringLiteral); this.state = 1119; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 234) { { this.state = 1118; this.match(HiveSqlParser.KW_OVERWRITE); } } this.state = 1121; this.match(HiveSqlParser.KW_INTO); this.state = 1122; this.match(HiveSqlParser.KW_TABLE); this.state = 1123; this.tableOrPartition(); this.state = 1125; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 160) { { this.state = 1124; this.inputFileFormat(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropPartitionsIgnoreClause(): DropPartitionsIgnoreClauseContext { let localContext = new DropPartitionsIgnoreClauseContext(this.context, this.state); this.enterRule(localContext, 16, HiveSqlParser.RULE_dropPartitionsIgnoreClause); try { this.enterOuterAlt(localContext, 1); { this.state = 1127; this.match(HiveSqlParser.KW_IGNORE); this.state = 1128; this.match(HiveSqlParser.KW_PROTECTION); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public replicationClause(): ReplicationClauseContext { let localContext = new ReplicationClauseContext(this.context, this.state); this.enterRule(localContext, 18, HiveSqlParser.RULE_replicationClause); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1130; this.match(HiveSqlParser.KW_FOR); this.state = 1132; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 203) { { this.state = 1131; this.match(HiveSqlParser.KW_METADATA); } } this.state = 1134; this.match(HiveSqlParser.KW_REPLICATION); this.state = 1135; this.match(HiveSqlParser.LPAREN); this.state = 1136; this.match(HiveSqlParser.StringLiteral); this.state = 1137; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public exportStatement(): ExportStatementContext { let localContext = new ExportStatementContext(this.context, this.state); this.enterRule(localContext, 20, HiveSqlParser.RULE_exportStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1139; this.match(HiveSqlParser.KW_EXPORT); this.state = 1140; this.match(HiveSqlParser.KW_TABLE); this.state = 1141; this.tableOrPartition(); this.state = 1142; this.match(HiveSqlParser.KW_TO); this.state = 1143; this.match(HiveSqlParser.StringLiteral); this.state = 1145; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 134) { { this.state = 1144; this.replicationClause(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public importStatement(): ImportStatementContext { let localContext = new ImportStatementContext(this.context, this.state); this.enterRule(localContext, 22, HiveSqlParser.RULE_importStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1147; this.match(HiveSqlParser.KW_IMPORT); this.state = 1153; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 123 || _la === 328) { { this.state = 1149; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 123) { { this.state = 1148; this.match(HiveSqlParser.KW_EXTERNAL); } } this.state = 1151; this.match(HiveSqlParser.KW_TABLE); this.state = 1152; this.tableOrPartition(); } } this.state = 1155; this.match(HiveSqlParser.KW_FROM); this.state = 1156; localContext._path = this.match(HiveSqlParser.StringLiteral); this.state = 1158; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 188) { { this.state = 1157; this.tableLocation(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public replDumpStatement(): ReplDumpStatementContext { let localContext = new ReplDumpStatementContext(this.context, this.state); this.enterRule(localContext, 24, HiveSqlParser.RULE_replDumpStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 1160; this.match(HiveSqlParser.KW_REPL); this.state = 1161; this.match(HiveSqlParser.KW_DUMP); this.state = 1162; localContext._dbPolicy = this.replDbPolicy(); this.state = 1165; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 18, this.context) ) { case 1: { this.state = 1163; this.match(HiveSqlParser.KW_REPLACE); this.state = 1164; localContext._oldDbPolicy = this.replDbPolicy(); } break; } this.state = 1169; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 19, this.context) ) { case 1: { this.state = 1167; this.match(HiveSqlParser.KW_WITH); this.state = 1168; localContext._replConf = this.replConfigs(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public replDbPolicy(): ReplDbPolicyContext { let localContext = new ReplDbPolicyContext(this.context, this.state); this.enterRule(localContext, 26, HiveSqlParser.RULE_replDbPolicy); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1171; localContext._dbName = this.dbSchemaName(); this.state = 1174; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 394) { { this.state = 1172; this.match(HiveSqlParser.DOT); this.state = 1173; localContext._tablePolicy = this.replTableLevelPolicy(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public replLoadStatement(): ReplLoadStatementContext { let localContext = new ReplLoadStatementContext(this.context, this.state); this.enterRule(localContext, 28, HiveSqlParser.RULE_replLoadStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1176; this.match(HiveSqlParser.KW_REPL); this.state = 1177; this.match(HiveSqlParser.KW_LOAD); this.state = 1178; localContext._sourceDbPolicy = this.replDbPolicy(); this.state = 1181; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 166) { { this.state = 1179; this.match(HiveSqlParser.KW_INTO); this.state = 1180; localContext._dbName = this.dbSchemaName(); } } this.state = 1185; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 22, this.context) ) { case 1: { this.state = 1183; this.match(HiveSqlParser.KW_WITH); this.state = 1184; localContext._replConf = this.replConfigs(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public replConfigs(): ReplConfigsContext { let localContext = new ReplConfigsContext(this.context, this.state); this.enterRule(localContext, 30, HiveSqlParser.RULE_replConfigs); try { this.enterOuterAlt(localContext, 1); { this.state = 1187; this.match(HiveSqlParser.LPAREN); this.state = 1188; this.replConfigsList(); this.state = 1189; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public replConfigsList(): ReplConfigsListContext { let localContext = new ReplConfigsListContext(this.context, this.state); this.enterRule(localContext, 32, HiveSqlParser.RULE_replConfigsList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1191; this.keyValueProperty(); this.state = 1196; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 1192; this.match(HiveSqlParser.COMMA); this.state = 1193; this.keyValueProperty(); } } this.state = 1198; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public replTableLevelPolicy(): ReplTableLevelPolicyContext { let localContext = new ReplTableLevelPolicyContext(this.context, this.state); this.enterRule(localContext, 34, HiveSqlParser.RULE_replTableLevelPolicy); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1199; localContext._replTablesIncludeList = this.match(HiveSqlParser.StringLiteral); this.state = 1202; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 394) { { this.state = 1200; this.match(HiveSqlParser.DOT); this.state = 1201; localContext._replTablesExcludeList = this.match(HiveSqlParser.StringLiteral); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public replStatusStatement(): ReplStatusStatementContext { let localContext = new ReplStatusStatementContext(this.context, this.state); this.enterRule(localContext, 36, HiveSqlParser.RULE_replStatusStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 1204; this.match(HiveSqlParser.KW_REPL); this.state = 1205; this.match(HiveSqlParser.KW_STATUS); this.state = 1206; localContext._dbName = this.dbSchemaName(); this.state = 1209; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 25, this.context) ) { case 1: { this.state = 1207; this.match(HiveSqlParser.KW_WITH); this.state = 1208; localContext._replConf = this.replConfigs(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public ddlStatement(): DdlStatementContext { let localContext = new DdlStatementContext(this.context, this.state); this.enterRule(localContext, 38, HiveSqlParser.RULE_ddlStatement); try { this.state = 1258; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 26, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 1211; this.createDatabaseStatement(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 1212; this.switchDatabaseStatement(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 1213; this.dropDatabaseStatement(); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 1214; this.createTableStatement(); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 1215; this.dropTableStatement(); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 1216; this.truncateTableStatement(); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 1217; this.alterStatement(); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 1218; this.descStatement(); } break; case 9: this.enterOuterAlt(localContext, 9); { this.state = 1219; this.showStatement(); } break; case 10: this.enterOuterAlt(localContext, 10); { this.state = 1220; this.metastoreCheck(); } break; case 11: this.enterOuterAlt(localContext, 11); { this.state = 1221; this.createViewStatement(); } break; case 12: this.enterOuterAlt(localContext, 12); { this.state = 1222; this.createMaterializedViewStatement(); } break; case 13: this.enterOuterAlt(localContext, 13); { this.state = 1223; this.createScheduledQueryStatement(); } break; case 14: this.enterOuterAlt(localContext, 14); { this.state = 1224; this.alterScheduledQueryStatement(); } break; case 15: this.enterOuterAlt(localContext, 15); { this.state = 1225; this.dropScheduledQueryStatement(); } break; case 16: this.enterOuterAlt(localContext, 16); { this.state = 1226; this.dropViewStatement(); } break; case 17: this.enterOuterAlt(localContext, 17); { this.state = 1227; this.dropMaterializedViewStatement(); } break; case 18: this.enterOuterAlt(localContext, 18); { this.state = 1228; this.createFunctionStatement(); } break; case 19: this.enterOuterAlt(localContext, 19); { this.state = 1229; this.createMacroStatement(); } break; case 20: this.enterOuterAlt(localContext, 20); { this.state = 1230; this.dropFunctionStatement(); } break; case 21: this.enterOuterAlt(localContext, 21); { this.state = 1231; this.reloadFunctionsStatement(); } break; case 22: this.enterOuterAlt(localContext, 22); { this.state = 1232; this.dropMacroStatement(); } break; case 23: this.enterOuterAlt(localContext, 23); { this.state = 1233; this.createIndexStatement(); } break; case 24: this.enterOuterAlt(localContext, 24); { this.state = 1234; this.dropIndexStatement(); } break; case 25: this.enterOuterAlt(localContext, 25); { this.state = 1235; this.analyzeStatement(); } break; case 26: this.enterOuterAlt(localContext, 26); { this.state = 1236; this.lockStatement(); } break; case 27: this.enterOuterAlt(localContext, 27); { this.state = 1237; this.unlockStatement(); } break; case 28: this.enterOuterAlt(localContext, 28); { this.state = 1238; this.lockDatabase(); } break; case 29: this.enterOuterAlt(localContext, 29); { this.state = 1239; this.unlockDatabase(); } break; case 30: this.enterOuterAlt(localContext, 30); { this.state = 1240; this.createRoleStatement(); } break; case 31: this.enterOuterAlt(localContext, 31); { this.state = 1241; this.dropRoleStatement(); } break; case 32: this.enterOuterAlt(localContext, 32); { this.state = 1242; this.grantPrivileges(); } break; case 33: this.enterOuterAlt(localContext, 33); { this.state = 1243; this.revokePrivileges(); } break; case 34: this.enterOuterAlt(localContext, 34); { this.state = 1244; this.showGrants(); } break; case 35: this.enterOuterAlt(localContext, 35); { this.state = 1245; this.showRoleGrants(); } break; case 36: this.enterOuterAlt(localContext, 36); { this.state = 1246; this.showRolePrincipals(); } break; case 37: this.enterOuterAlt(localContext, 37); { this.state = 1247; this.showRoles(); } break; case 38: this.enterOuterAlt(localContext, 38); { this.state = 1248; this.grantRole(); } break; case 39: this.enterOuterAlt(localContext, 39); { this.state = 1249; this.revokeRole(); } break; case 40: this.enterOuterAlt(localContext, 40); { this.state = 1250; this.setRole(); } break; case 41: this.enterOuterAlt(localContext, 41); { this.state = 1251; this.showCurrentRole(); } break; case 42: this.enterOuterAlt(localContext, 42); { this.state = 1252; this.abortTransactionStatement(); } break; case 43: this.enterOuterAlt(localContext, 43); { this.state = 1253; this.abortCompactionStatement(); } break; case 44: this.enterOuterAlt(localContext, 44); { this.state = 1254; this.killQueryStatement(); } break; case 45: this.enterOuterAlt(localContext, 45); { this.state = 1255; this.resourcePlanDdlStatements(); } break; case 46: this.enterOuterAlt(localContext, 46); { this.state = 1256; this.createDataConnectorStatement(); } break; case 47: this.enterOuterAlt(localContext, 47); { this.state = 1257; this.dropDataConnectorStatement(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public ifExists(): IfExistsContext { let localContext = new IfExistsContext(this.context, this.state); this.enterRule(localContext, 40, HiveSqlParser.RULE_ifExists); try { this.enterOuterAlt(localContext, 1); { this.state = 1260; this.match(HiveSqlParser.KW_IF); this.state = 1261; this.match(HiveSqlParser.KW_EXISTS); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public restrictOrCascade(): RestrictOrCascadeContext { let localContext = new RestrictOrCascadeContext(this.context, this.state); this.enterRule(localContext, 42, HiveSqlParser.RULE_restrictOrCascade); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1263; _la = this.tokenStream.LA(1); if(!(_la === 34 || _la === 281)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public ifNotExists(): IfNotExistsContext { let localContext = new IfNotExistsContext(this.context, this.state); this.enterRule(localContext, 44, HiveSqlParser.RULE_ifNotExists); try { this.enterOuterAlt(localContext, 1); { this.state = 1265; this.match(HiveSqlParser.KW_IF); this.state = 1266; this.match(HiveSqlParser.KW_NOT); this.state = 1267; this.match(HiveSqlParser.KW_EXISTS); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public force(): ForceContext { let localContext = new ForceContext(this.context, this.state); this.enterRule(localContext, 46, HiveSqlParser.RULE_force); try { this.enterOuterAlt(localContext, 1); { this.state = 1269; this.match(HiveSqlParser.KW_FORCE); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rewriteEnabled(): RewriteEnabledContext { let localContext = new RewriteEnabledContext(this.context, this.state); this.enterRule(localContext, 48, HiveSqlParser.RULE_rewriteEnabled); try { this.enterOuterAlt(localContext, 1); { this.state = 1271; this.enable(); this.state = 1272; this.match(HiveSqlParser.KW_REWRITE); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rewriteDisabled(): RewriteDisabledContext { let localContext = new RewriteDisabledContext(this.context, this.state); this.enterRule(localContext, 50, HiveSqlParser.RULE_rewriteDisabled); try { this.enterOuterAlt(localContext, 1); { this.state = 1274; this.disable(); this.state = 1275; this.match(HiveSqlParser.KW_REWRITE); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public storedAsDirs(): StoredAsDirsContext { let localContext = new StoredAsDirsContext(this.context, this.state); this.enterRule(localContext, 52, HiveSqlParser.RULE_storedAsDirs); try { this.enterOuterAlt(localContext, 1); { this.state = 1277; this.match(HiveSqlParser.KW_STORED); this.state = 1278; this.match(HiveSqlParser.KW_AS); this.state = 1279; this.match(HiveSqlParser.KW_DIRECTORIES); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public orReplace(): OrReplaceContext { let localContext = new OrReplaceContext(this.context, this.state); this.enterRule(localContext, 54, HiveSqlParser.RULE_orReplace); try { this.enterOuterAlt(localContext, 1); { this.state = 1281; this.match(HiveSqlParser.KW_OR); this.state = 1282; this.match(HiveSqlParser.KW_REPLACE); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createDatabaseStatement(): CreateDatabaseStatementContext { let localContext = new CreateDatabaseStatementContext(this.context, this.state); this.enterRule(localContext, 56, HiveSqlParser.RULE_createDatabaseStatement); let _la: number; try { this.state = 1323; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 36, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 1284; this.match(HiveSqlParser.KW_CREATE); this.state = 1286; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 272) { { this.state = 1285; this.match(HiveSqlParser.KW_REMOTE); } } this.state = 1288; this.db_schema(); this.state = 1290; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 1289; this.ifNotExists(); } } this.state = 1292; localContext._name = this.dbSchemaNameCreate(); this.state = 1294; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 1293; this.databaseComment(); } } this.state = 1297; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 188) { { this.state = 1296; this.dbLocation(); } } this.state = 1300; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 195) { { this.state = 1299; this.dbManagedLocation(); } } this.state = 1305; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 32, this.context) ) { case 1: { this.state = 1302; this.match(HiveSqlParser.KW_WITH); this.state = 1303; this.match(HiveSqlParser.KW_DBPROPERTIES); this.state = 1304; localContext._dbprops = this.dbProperties(); } break; } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 1307; this.match(HiveSqlParser.KW_CREATE); this.state = 1308; this.match(HiveSqlParser.KW_REMOTE); this.state = 1309; this.db_schema(); this.state = 1311; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 1310; this.ifNotExists(); } } this.state = 1313; localContext._name = this.dbSchemaNameCreate(); this.state = 1315; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 1314; this.databaseComment(); } } this.state = 1317; this.dbConnectorName(); this.state = 1321; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 35, this.context) ) { case 1: { this.state = 1318; this.match(HiveSqlParser.KW_WITH); this.state = 1319; this.match(HiveSqlParser.KW_DBPROPERTIES); this.state = 1320; localContext._dbprops = this.dbProperties(); } break; } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dbLocation(): DbLocationContext { let localContext = new DbLocationContext(this.context, this.state); this.enterRule(localContext, 58, HiveSqlParser.RULE_dbLocation); try { this.enterOuterAlt(localContext, 1); { this.state = 1325; this.match(HiveSqlParser.KW_LOCATION); this.state = 1326; localContext._locn = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dbManagedLocation(): DbManagedLocationContext { let localContext = new DbManagedLocationContext(this.context, this.state); this.enterRule(localContext, 60, HiveSqlParser.RULE_dbManagedLocation); try { this.enterOuterAlt(localContext, 1); { this.state = 1328; this.match(HiveSqlParser.KW_MANAGEDLOCATION); this.state = 1329; localContext._locn = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dbProperties(): DbPropertiesContext { let localContext = new DbPropertiesContext(this.context, this.state); this.enterRule(localContext, 62, HiveSqlParser.RULE_dbProperties); try { this.enterOuterAlt(localContext, 1); { this.state = 1331; this.match(HiveSqlParser.LPAREN); this.state = 1332; this.dbPropertiesList(); this.state = 1333; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dbPropertiesList(): DbPropertiesListContext { let localContext = new DbPropertiesListContext(this.context, this.state); this.enterRule(localContext, 64, HiveSqlParser.RULE_dbPropertiesList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1335; this.keyValueProperty(); this.state = 1340; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 1336; this.match(HiveSqlParser.COMMA); this.state = 1337; this.keyValueProperty(); } } this.state = 1342; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dbConnectorName(): DbConnectorNameContext { let localContext = new DbConnectorNameContext(this.context, this.state); this.enterRule(localContext, 66, HiveSqlParser.RULE_dbConnectorName); try { this.enterOuterAlt(localContext, 1); { this.state = 1343; this.match(HiveSqlParser.KW_USING); this.state = 1344; localContext._dcName = this.dbSchemaName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public switchDatabaseStatement(): SwitchDatabaseStatementContext { let localContext = new SwitchDatabaseStatementContext(this.context, this.state); this.enterRule(localContext, 68, HiveSqlParser.RULE_switchDatabaseStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 1346; this.match(HiveSqlParser.KW_USE); this.state = 1347; this.dbSchemaName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropDatabaseStatement(): DropDatabaseStatementContext { let localContext = new DropDatabaseStatementContext(this.context, this.state); this.enterRule(localContext, 70, HiveSqlParser.RULE_dropDatabaseStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1349; this.match(HiveSqlParser.KW_DROP); this.state = 1350; this.db_schema(); this.state = 1352; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 1351; this.ifExists(); } } this.state = 1354; this.dbSchemaName(); this.state = 1356; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 34 || _la === 281) { { this.state = 1355; this.restrictOrCascade(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public databaseComment(): DatabaseCommentContext { let localContext = new DatabaseCommentContext(this.context, this.state); this.enterRule(localContext, 72, HiveSqlParser.RULE_databaseComment); try { this.enterOuterAlt(localContext, 1); { this.state = 1358; this.match(HiveSqlParser.KW_COMMENT); this.state = 1359; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public truncateTableStatement(): TruncateTableStatementContext { let localContext = new TruncateTableStatementContext(this.context, this.state); this.enterRule(localContext, 74, HiveSqlParser.RULE_truncateTableStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1361; this.match(HiveSqlParser.KW_TRUNCATE); this.state = 1363; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 328) { { this.state = 1362; this.match(HiveSqlParser.KW_TABLE); } } this.state = 1365; this.tablePartitionPrefix(); this.state = 1371; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 46) { { this.state = 1366; this.match(HiveSqlParser.KW_COLUMNS); this.state = 1367; this.match(HiveSqlParser.LPAREN); this.state = 1368; this.columnNameList(); this.state = 1369; this.match(HiveSqlParser.RPAREN); } } this.state = 1374; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 135) { { this.state = 1373; this.force(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropTableStatement(): DropTableStatementContext { let localContext = new DropTableStatementContext(this.context, this.state); this.enterRule(localContext, 76, HiveSqlParser.RULE_dropTableStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1376; this.match(HiveSqlParser.KW_DROP); this.state = 1377; this.match(HiveSqlParser.KW_TABLE); this.state = 1379; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 1378; this.ifExists(); } } this.state = 1381; this.tableName(); this.state = 1383; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 254) { { this.state = 1382; this.match(HiveSqlParser.KW_PURGE); } } this.state = 1386; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 134) { { this.state = 1385; this.replicationClause(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public inputFileFormat(): InputFileFormatContext { let localContext = new InputFileFormatContext(this.context, this.state); this.enterRule(localContext, 78, HiveSqlParser.RULE_inputFileFormat); try { this.enterOuterAlt(localContext, 1); { this.state = 1388; this.match(HiveSqlParser.KW_INPUTFORMAT); this.state = 1389; localContext._inFmt = this.match(HiveSqlParser.StringLiteral); this.state = 1390; this.match(HiveSqlParser.KW_SERDE); this.state = 1391; localContext._serdeCls = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tabTypeExpr(): TabTypeExprContext { let localContext = new TabTypeExprContext(this.context, this.state); this.enterRule(localContext, 80, HiveSqlParser.RULE_tabTypeExpr); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1393; this.id_(); this.state = 1396; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 394) { { this.state = 1394; this.match(HiveSqlParser.DOT); this.state = 1395; this.id_(); } } this.state = 1411; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 49, this.context) ) { case 1: { this.state = 1398; this.id_(); this.state = 1408; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 394) { { { this.state = 1399; this.match(HiveSqlParser.DOT); this.state = 1404; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 47, this.context) ) { case 1: { this.state = 1400; this.match(HiveSqlParser.KW_ELEM_TYPE); } break; case 2: { this.state = 1401; this.match(HiveSqlParser.KW_KEY_TYPE); } break; case 3: { this.state = 1402; this.match(HiveSqlParser.KW_VALUE_TYPE); } break; case 4: { this.state = 1403; this.id_(); } break; } } } this.state = 1410; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partTypeExpr(): PartTypeExprContext { let localContext = new PartTypeExprContext(this.context, this.state); this.enterRule(localContext, 82, HiveSqlParser.RULE_partTypeExpr); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1413; this.tabTypeExpr(); this.state = 1415; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 1414; this.partitionSpec(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tabPartColTypeExpr(): TabPartColTypeExprContext { let localContext = new TabPartColTypeExprContext(this.context, this.state); this.enterRule(localContext, 84, HiveSqlParser.RULE_tabPartColTypeExpr); try { this.enterOuterAlt(localContext, 1); { this.state = 1417; this.tableOrView(); this.state = 1419; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 51, this.context) ) { case 1: { this.state = 1418; this.partitionSpec(); } break; } this.state = 1422; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 52, this.context) ) { case 1: { this.state = 1421; this.extColumnName(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public descStatement(): DescStatementContext { let localContext = new DescStatementContext(this.context, this.state); this.enterRule(localContext, 86, HiveSqlParser.RULE_descStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1424; _la = this.tokenStream.LA(1); if(!(_la === 89 || _la === 90)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 1447; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 57, this.context) ) { case 1: { this.state = 1425; this.db_schema(); this.state = 1427; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 122) { { this.state = 1426; this.match(HiveSqlParser.KW_EXTENDED); } } this.state = 1429; localContext._dbName = this.dbSchemaName(); } break; case 2: { this.state = 1431; this.match(HiveSqlParser.KW_DATACONNECTOR); this.state = 1433; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 122) { { this.state = 1432; this.match(HiveSqlParser.KW_EXTENDED); } } this.state = 1435; localContext._dcName = this.dbSchemaName(); } break; case 3: { this.state = 1436; this.match(HiveSqlParser.KW_FUNCTION); this.state = 1438; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 122) { { this.state = 1437; this.match(HiveSqlParser.KW_EXTENDED); } } this.state = 1440; localContext._name = this.functionNameForDDL(); } break; case 4: { this.state = 1443; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_FORMATTED: { this.state = 1441; localContext._descOptions = this.match(HiveSqlParser.KW_FORMATTED); } break; case HiveSqlParser.KW_EXTENDED: { this.state = 1442; localContext._descOptions = this.match(HiveSqlParser.KW_EXTENDED); } break; default: throw new antlr.NoViableAltException(this); } this.state = 1445; localContext._parttype = this.tabPartColTypeExpr(); } break; case 5: { this.state = 1446; localContext._parttype = this.tabPartColTypeExpr(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public analyzeStatement(): AnalyzeStatementContext { let localContext = new AnalyzeStatementContext(this.context, this.state); this.enterRule(localContext, 88, HiveSqlParser.RULE_analyzeStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 1449; this.match(HiveSqlParser.KW_ANALYZE); this.state = 1450; this.match(HiveSqlParser.KW_TABLE); this.state = 1451; localContext._parttype = this.tableOrPartition(); this.state = 1464; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_COMPUTE: { this.state = 1452; this.match(HiveSqlParser.KW_COMPUTE); this.state = 1453; this.match(HiveSqlParser.KW_STATISTICS); this.state = 1460; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_NOSCAN: { this.state = 1454; localContext._noscan = this.match(HiveSqlParser.KW_NOSCAN); } break; case HiveSqlParser.KW_FOR: { this.state = 1455; this.match(HiveSqlParser.KW_FOR); this.state = 1456; this.match(HiveSqlParser.KW_COLUMNS); this.state = 1458; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 58, this.context) ) { case 1: { this.state = 1457; localContext._statsColumnName = this.columnNameList(); } break; } } break; case HiveSqlParser.EOF: case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ALTER: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_COMMIT: case HiveSqlParser.KW_CREATE: case HiveSqlParser.KW_DELETE: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DESCRIBE: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DROP: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_FROM: case HiveSqlParser.KW_GRANT: case HiveSqlParser.KW_IMPORT: case HiveSqlParser.KW_INSERT: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_MERGE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_PREPARE: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REVOKE: case HiveSqlParser.KW_ROLLBACK: case HiveSqlParser.KW_SELECT: case HiveSqlParser.KW_SET: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_START: case HiveSqlParser.KW_TRUNCATE: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UPDATE: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_VALUES: case HiveSqlParser.KW_WITH: case HiveSqlParser.SEMICOLON: case HiveSqlParser.LPAREN: break; default: break; } } break; case HiveSqlParser.KW_CACHE: { this.state = 1462; this.match(HiveSqlParser.KW_CACHE); this.state = 1463; this.match(HiveSqlParser.KW_METADATA); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public from_in(): From_inContext { let localContext = new From_inContext(this.context, this.state); this.enterRule(localContext, 90, HiveSqlParser.RULE_from_in); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1466; _la = this.tokenStream.LA(1); if(!(_la === 139 || _la === 154)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public db_schema(): Db_schemaContext { let localContext = new Db_schemaContext(this.context, this.state); this.enterRule(localContext, 92, HiveSqlParser.RULE_db_schema); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1468; _la = this.tokenStream.LA(1); if(!(_la === 67 || _la === 294)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public showStatement(): ShowStatementContext { let localContext = new ShowStatementContext(this.context, this.state); this.enterRule(localContext, 94, HiveSqlParser.RULE_showStatement); let _la: number; try { this.state = 1663; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 100, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 1470; this.match(HiveSqlParser.KW_SHOW); this.state = 1471; _la = this.tokenStream.LA(1); if(!(_la === 68 || _la === 295)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 1474; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 183) { { this.state = 1472; this.match(HiveSqlParser.KW_LIKE); this.state = 1473; this.showStmtIdentifier(); } } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 1476; this.match(HiveSqlParser.KW_SHOW); this.state = 1478; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 122) { { this.state = 1477; localContext._isExtended = this.match(HiveSqlParser.KW_EXTENDED); } } this.state = 1480; this.match(HiveSqlParser.KW_TABLES); this.state = 1484; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 63, this.context) ) { case 1: { this.state = 1481; this.from_in(); this.state = 1482; localContext._db_name = this.dbSchemaName(); } break; } this.state = 1487; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 64, this.context) ) { case 1: { this.state = 1486; localContext._filter = this.showTablesFilterExpr(); } break; } } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 1489; this.match(HiveSqlParser.KW_SHOW); this.state = 1490; this.match(HiveSqlParser.KW_VIEWS); this.state = 1494; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 65, this.context) ) { case 1: { this.state = 1491; this.from_in(); this.state = 1492; localContext._db_name = this.dbSchemaName(); } break; } this.state = 1499; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 66, this.context) ) { case 1: { this.state = 1496; this.match(HiveSqlParser.KW_LIKE); this.state = 1497; this.showStmtIdentifier(); } break; case 2: { this.state = 1498; this.showStmtIdentifier(); } break; } } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 1501; this.match(HiveSqlParser.KW_SHOW); this.state = 1502; this.match(HiveSqlParser.KW_MATERIALIZED); this.state = 1503; this.match(HiveSqlParser.KW_VIEWS); this.state = 1507; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 67, this.context) ) { case 1: { this.state = 1504; this.from_in(); this.state = 1505; localContext._db_name = this.dbSchemaName(); } break; } this.state = 1512; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 68, this.context) ) { case 1: { this.state = 1509; this.match(HiveSqlParser.KW_LIKE); this.state = 1510; this.showStmtIdentifier(); } break; case 2: { this.state = 1511; this.showStmtIdentifier(); } break; } } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 1514; this.match(HiveSqlParser.KW_SHOW); this.state = 1516; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 314) { { this.state = 1515; this.match(HiveSqlParser.KW_SORTED); } } this.state = 1518; this.match(HiveSqlParser.KW_COLUMNS); this.state = 1519; this.from_in(); this.state = 1520; this.tableOrView(); this.state = 1524; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 70, this.context) ) { case 1: { this.state = 1521; this.from_in(); this.state = 1522; localContext._db_name = this.dbSchemaName(); } break; } this.state = 1529; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 71, this.context) ) { case 1: { this.state = 1526; this.match(HiveSqlParser.KW_LIKE); this.state = 1527; this.showStmtIdentifier(); } break; case 2: { this.state = 1528; this.showStmtIdentifier(); } break; } } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 1531; this.match(HiveSqlParser.KW_SHOW); this.state = 1532; this.match(HiveSqlParser.KW_FUNCTIONS); this.state = 1535; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 183) { { this.state = 1533; this.match(HiveSqlParser.KW_LIKE); this.state = 1534; this.functionNameForDDL(); } } } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 1537; this.match(HiveSqlParser.KW_SHOW); this.state = 1538; this.match(HiveSqlParser.KW_PARTITIONS); this.state = 1539; localContext._tabOrViewName = this.tableOrView(); this.state = 1541; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 1540; this.partitionSpec(); } } this.state = 1544; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 383) { { this.state = 1543; this.whereClause(); } } this.state = 1547; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 228) { { this.state = 1546; this.orderByClause(); } } this.state = 1550; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 184) { { this.state = 1549; this.limitClause(); } } } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 1552; this.match(HiveSqlParser.KW_SHOW); this.state = 1553; this.match(HiveSqlParser.KW_CREATE); this.state = 1559; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_DATABASE: case HiveSqlParser.KW_SCHEMA: { this.state = 1554; this.db_schema(); this.state = 1555; localContext._db_name = this.dbSchemaName(); } break; case HiveSqlParser.KW_TABLE: { this.state = 1557; this.match(HiveSqlParser.KW_TABLE); this.state = 1558; localContext._tabName = this.tableName(); } break; default: throw new antlr.NoViableAltException(this); } } break; case 9: this.enterOuterAlt(localContext, 9); { this.state = 1561; this.match(HiveSqlParser.KW_SHOW); this.state = 1562; this.match(HiveSqlParser.KW_TABLE); this.state = 1563; this.match(HiveSqlParser.KW_EXTENDED); this.state = 1567; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 139 || _la === 154) { { this.state = 1564; this.from_in(); this.state = 1565; localContext._db_name = this.dbSchemaName(); } } this.state = 1569; this.match(HiveSqlParser.KW_LIKE); this.state = 1570; this.showStmtIdentifier(); this.state = 1572; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 1571; this.partitionSpec(); } } } break; case 10: this.enterOuterAlt(localContext, 10); { this.state = 1574; this.match(HiveSqlParser.KW_SHOW); this.state = 1575; this.match(HiveSqlParser.KW_TBLPROPERTIES); this.state = 1576; this.tableName(); this.state = 1580; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 80, this.context) ) { case 1: { this.state = 1577; this.match(HiveSqlParser.LPAREN); this.state = 1578; localContext._prptyName = this.match(HiveSqlParser.StringLiteral); this.state = 1579; this.match(HiveSqlParser.RPAREN); } break; } } break; case 11: this.enterOuterAlt(localContext, 11); { this.state = 1582; this.match(HiveSqlParser.KW_SHOW); this.state = 1583; this.match(HiveSqlParser.KW_LOCKS); this.state = 1595; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 84, this.context) ) { case 1: { this.state = 1584; this.db_schema(); this.state = 1585; localContext._dbName = this.dbSchemaName(); this.state = 1587; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 122) { { this.state = 1586; localContext._isExtended = this.match(HiveSqlParser.KW_EXTENDED); } } } break; case 2: { this.state = 1590; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 82, this.context) ) { case 1: { this.state = 1589; localContext._parttype = this.partTypeExpr(); } break; } this.state = 1593; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 122) { { this.state = 1592; localContext._isExtended = this.match(HiveSqlParser.KW_EXTENDED); } } } break; } } break; case 12: this.enterOuterAlt(localContext, 12); { this.state = 1597; this.match(HiveSqlParser.KW_SHOW); this.state = 1598; this.match(HiveSqlParser.KW_COMPACTIONS); this.state = 1635; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 96, this.context) ) { case 1: { this.state = 1599; this.compactionId(); } break; case 2: { this.state = 1600; this.db_schema(); this.state = 1601; localContext._dbName = this.dbSchemaName(); this.state = 1603; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 245) { { this.state = 1602; this.compactionPool(); } } this.state = 1606; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 351) { { this.state = 1605; this.compactionType(); } } this.state = 1609; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 319) { { this.state = 1608; this.compactionStatus(); } } this.state = 1612; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 228) { { this.state = 1611; this.orderByClause(); } } this.state = 1615; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 184) { { this.state = 1614; this.limitClause(); } } } break; case 3: { this.state = 1618; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 90, this.context) ) { case 1: { this.state = 1617; localContext._parttype = this.partTypeExpr(); } break; } this.state = 1621; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 245) { { this.state = 1620; this.compactionPool(); } } this.state = 1624; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 351) { { this.state = 1623; this.compactionType(); } } this.state = 1627; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 319) { { this.state = 1626; this.compactionStatus(); } } this.state = 1630; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 228) { { this.state = 1629; this.orderByClause(); } } this.state = 1633; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 184) { { this.state = 1632; this.limitClause(); } } } break; } } break; case 13: this.enterOuterAlt(localContext, 13); { this.state = 1637; this.match(HiveSqlParser.KW_SHOW); this.state = 1638; this.match(HiveSqlParser.KW_TRANSACTIONS); } break; case 14: this.enterOuterAlt(localContext, 14); { this.state = 1639; this.match(HiveSqlParser.KW_SHOW); this.state = 1640; this.match(HiveSqlParser.KW_CONF); this.state = 1641; this.match(HiveSqlParser.StringLiteral); } break; case 15: this.enterOuterAlt(localContext, 15); { this.state = 1642; this.match(HiveSqlParser.KW_SHOW); this.state = 1643; this.match(HiveSqlParser.KW_RESOURCE); this.state = 1647; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_PLAN: { this.state = 1644; this.match(HiveSqlParser.KW_PLAN); this.state = 1645; localContext._rp_name = this.id_(); } break; case HiveSqlParser.KW_PLANS: { this.state = 1646; this.match(HiveSqlParser.KW_PLANS); } break; default: throw new antlr.NoViableAltException(this); } } break; case 16: this.enterOuterAlt(localContext, 16); { this.state = 1649; this.match(HiveSqlParser.KW_SHOW); this.state = 1650; this.match(HiveSqlParser.KW_DATACONNECTORS); } break; case 17: this.enterOuterAlt(localContext, 17); { this.state = 1651; this.match(HiveSqlParser.KW_SHOW); this.state = 1653; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 138) { { this.state = 1652; this.match(HiveSqlParser.KW_FORMATTED); } } this.state = 1655; _la = this.tokenStream.LA(1); if(!(_la === 155 || _la === 156)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 1656; this.match(HiveSqlParser.KW_ON); this.state = 1657; this.tableName(); this.state = 1661; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 99, this.context) ) { case 1: { this.state = 1658; this.from_in(); this.state = 1659; this.dbSchemaName(); } break; } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public showTablesFilterExpr(): ShowTablesFilterExprContext { let localContext = new ShowTablesFilterExprContext(this.context, this.state); this.enterRule(localContext, 96, HiveSqlParser.RULE_showTablesFilterExpr); try { this.state = 1673; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_WHERE: this.enterOuterAlt(localContext, 1); { this.state = 1665; this.match(HiveSqlParser.KW_WHERE); this.state = 1666; this.id_(); this.state = 1667; this.match(HiveSqlParser.EQUAL); this.state = 1668; this.match(HiveSqlParser.StringLiteral); } break; case HiveSqlParser.KW_LIKE: this.enterOuterAlt(localContext, 2); { this.state = 1670; this.match(HiveSqlParser.KW_LIKE); this.state = 1671; this.showStmtIdentifier(); } break; case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: case HiveSqlParser.StringLiteral: case HiveSqlParser.Identifier: this.enterOuterAlt(localContext, 3); { this.state = 1672; this.showStmtIdentifier(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public lockStatement(): LockStatementContext { let localContext = new LockStatementContext(this.context, this.state); this.enterRule(localContext, 98, HiveSqlParser.RULE_lockStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1675; this.match(HiveSqlParser.KW_LOCK); this.state = 1676; this.match(HiveSqlParser.KW_TABLE); this.state = 1677; this.tableName(); this.state = 1679; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 1678; this.partitionSpec(); } } this.state = 1681; this.lockMode(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public lockDatabase(): LockDatabaseContext { let localContext = new LockDatabaseContext(this.context, this.state); this.enterRule(localContext, 100, HiveSqlParser.RULE_lockDatabase); try { this.enterOuterAlt(localContext, 1); { this.state = 1683; this.match(HiveSqlParser.KW_LOCK); this.state = 1684; this.db_schema(); this.state = 1685; localContext._dbName = this.dbSchemaName(); this.state = 1686; this.lockMode(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public lockMode(): LockModeContext { let localContext = new LockModeContext(this.context, this.state); this.enterRule(localContext, 102, HiveSqlParser.RULE_lockMode); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1688; _la = this.tokenStream.LA(1); if(!(_la === 114 || _la === 306)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public unlockStatement(): UnlockStatementContext { let localContext = new UnlockStatementContext(this.context, this.state); this.enterRule(localContext, 104, HiveSqlParser.RULE_unlockStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1690; this.match(HiveSqlParser.KW_UNLOCK); this.state = 1691; this.match(HiveSqlParser.KW_TABLE); this.state = 1692; this.tableName(); this.state = 1694; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 1693; this.partitionSpec(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public unlockDatabase(): UnlockDatabaseContext { let localContext = new UnlockDatabaseContext(this.context, this.state); this.enterRule(localContext, 106, HiveSqlParser.RULE_unlockDatabase); try { this.enterOuterAlt(localContext, 1); { this.state = 1696; this.match(HiveSqlParser.KW_UNLOCK); this.state = 1697; this.db_schema(); this.state = 1698; localContext._dbName = this.dbSchemaName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createRoleStatement(): CreateRoleStatementContext { let localContext = new CreateRoleStatementContext(this.context, this.state); this.enterRule(localContext, 108, HiveSqlParser.RULE_createRoleStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 1700; this.match(HiveSqlParser.KW_CREATE); this.state = 1701; this.match(HiveSqlParser.KW_ROLE); this.state = 1702; localContext._roleName = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropRoleStatement(): DropRoleStatementContext { let localContext = new DropRoleStatementContext(this.context, this.state); this.enterRule(localContext, 110, HiveSqlParser.RULE_dropRoleStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 1704; this.match(HiveSqlParser.KW_DROP); this.state = 1705; this.match(HiveSqlParser.KW_ROLE); this.state = 1706; localContext._roleName = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public grantPrivileges(): GrantPrivilegesContext { let localContext = new GrantPrivilegesContext(this.context, this.state); this.enterRule(localContext, 112, HiveSqlParser.RULE_grantPrivileges); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1708; this.match(HiveSqlParser.KW_GRANT); this.state = 1709; localContext._privList = this.privilegeList(); this.state = 1711; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 223) { { this.state = 1710; this.privilegeObject(); } } this.state = 1713; this.match(HiveSqlParser.KW_TO); this.state = 1714; this.principalSpecification(); this.state = 1716; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 105, this.context) ) { case 1: { this.state = 1715; this.withGrantOption(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public revokePrivileges(): RevokePrivilegesContext { let localContext = new RevokePrivilegesContext(this.context, this.state); this.enterRule(localContext, 114, HiveSqlParser.RULE_revokePrivileges); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1718; this.match(HiveSqlParser.KW_REVOKE); this.state = 1720; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 143) { { this.state = 1719; this.grantOptionFor(); } } this.state = 1722; this.privilegeList(); this.state = 1724; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 223) { { this.state = 1723; this.privilegeObject(); } } this.state = 1726; this.match(HiveSqlParser.KW_FROM); this.state = 1727; this.principalSpecification(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public grantRole(): GrantRoleContext { let localContext = new GrantRoleContext(this.context, this.state); this.enterRule(localContext, 116, HiveSqlParser.RULE_grantRole); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1729; this.match(HiveSqlParser.KW_GRANT); this.state = 1731; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 108, this.context) ) { case 1: { this.state = 1730; this.match(HiveSqlParser.KW_ROLE); } break; } this.state = 1733; this.id_(); this.state = 1738; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 1734; this.match(HiveSqlParser.COMMA); this.state = 1735; this.id_(); } } this.state = 1740; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 1741; this.match(HiveSqlParser.KW_TO); this.state = 1742; this.principalSpecification(); this.state = 1744; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 110, this.context) ) { case 1: { this.state = 1743; this.withAdminOption(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public revokeRole(): RevokeRoleContext { let localContext = new RevokeRoleContext(this.context, this.state); this.enterRule(localContext, 118, HiveSqlParser.RULE_revokeRole); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1746; this.match(HiveSqlParser.KW_REVOKE); this.state = 1748; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 111, this.context) ) { case 1: { this.state = 1747; this.adminOptionFor(); } break; } this.state = 1751; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 112, this.context) ) { case 1: { this.state = 1750; this.match(HiveSqlParser.KW_ROLE); } break; } this.state = 1753; this.id_(); this.state = 1758; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 1754; this.match(HiveSqlParser.COMMA); this.state = 1755; this.id_(); } } this.state = 1760; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 1761; this.match(HiveSqlParser.KW_FROM); this.state = 1762; this.principalSpecification(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public showRoleGrants(): ShowRoleGrantsContext { let localContext = new ShowRoleGrantsContext(this.context, this.state); this.enterRule(localContext, 120, HiveSqlParser.RULE_showRoleGrants); try { this.enterOuterAlt(localContext, 1); { this.state = 1764; this.match(HiveSqlParser.KW_SHOW); this.state = 1765; this.match(HiveSqlParser.KW_ROLE); this.state = 1766; this.match(HiveSqlParser.KW_GRANT); this.state = 1767; this.principalName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public showRoles(): ShowRolesContext { let localContext = new ShowRolesContext(this.context, this.state); this.enterRule(localContext, 122, HiveSqlParser.RULE_showRoles); try { this.enterOuterAlt(localContext, 1); { this.state = 1769; this.match(HiveSqlParser.KW_SHOW); this.state = 1770; this.match(HiveSqlParser.KW_ROLES); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public showCurrentRole(): ShowCurrentRoleContext { let localContext = new ShowCurrentRoleContext(this.context, this.state); this.enterRule(localContext, 124, HiveSqlParser.RULE_showCurrentRole); try { this.enterOuterAlt(localContext, 1); { this.state = 1772; this.match(HiveSqlParser.KW_SHOW); this.state = 1773; this.match(HiveSqlParser.KW_CURRENT); this.state = 1774; this.match(HiveSqlParser.KW_ROLES); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public setRole(): SetRoleContext { let localContext = new SetRoleContext(this.context, this.state); this.enterRule(localContext, 126, HiveSqlParser.RULE_setRole); try { this.enterOuterAlt(localContext, 1); { this.state = 1776; this.match(HiveSqlParser.KW_SET); this.state = 1777; this.match(HiveSqlParser.KW_ROLE); this.state = 1781; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ALL: { this.state = 1778; localContext._all = this.match(HiveSqlParser.KW_ALL); } break; case HiveSqlParser.KW_NONE: { this.state = 1779; localContext._none = this.match(HiveSqlParser.KW_NONE); } break; case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: case HiveSqlParser.Identifier: { this.state = 1780; this.id_(); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public showGrants(): ShowGrantsContext { let localContext = new ShowGrantsContext(this.context, this.state); this.enterRule(localContext, 128, HiveSqlParser.RULE_showGrants); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1783; this.match(HiveSqlParser.KW_SHOW); this.state = 1784; this.match(HiveSqlParser.KW_GRANT); this.state = 1786; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 144 || _la === 286 || _la === 368) { { this.state = 1785; this.principalName(); } } this.state = 1790; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 223) { { this.state = 1788; this.match(HiveSqlParser.KW_ON); this.state = 1789; this.privilegeIncludeColObject(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public showRolePrincipals(): ShowRolePrincipalsContext { let localContext = new ShowRolePrincipalsContext(this.context, this.state); this.enterRule(localContext, 130, HiveSqlParser.RULE_showRolePrincipals); try { this.enterOuterAlt(localContext, 1); { this.state = 1792; this.match(HiveSqlParser.KW_SHOW); this.state = 1793; this.match(HiveSqlParser.KW_PRINCIPALS); this.state = 1794; localContext._roleName = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public privilegeIncludeColObject(): PrivilegeIncludeColObjectContext { let localContext = new PrivilegeIncludeColObjectContext(this.context, this.state); this.enterRule(localContext, 132, HiveSqlParser.RULE_privilegeIncludeColObject); try { this.state = 1798; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ALL: this.enterOuterAlt(localContext, 1); { this.state = 1796; this.match(HiveSqlParser.KW_ALL); } break; case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASE: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLE: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: case HiveSqlParser.Identifier: this.enterOuterAlt(localContext, 2); { this.state = 1797; this.privObjectCols(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public privilegeObject(): PrivilegeObjectContext { let localContext = new PrivilegeObjectContext(this.context, this.state); this.enterRule(localContext, 134, HiveSqlParser.RULE_privilegeObject); try { this.enterOuterAlt(localContext, 1); { this.state = 1800; this.match(HiveSqlParser.KW_ON); this.state = 1801; this.privObject(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public privObject(): PrivObjectContext { let localContext = new PrivObjectContext(this.context, this.state); this.enterRule(localContext, 136, HiveSqlParser.RULE_privObject); let _la: number; try { this.state = 1817; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 120, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 1803; this.db_schema(); this.state = 1804; this.dbSchemaName(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 1807; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 328) { { this.state = 1806; this.match(HiveSqlParser.KW_TABLE); } } this.state = 1809; this.tableName(); this.state = 1811; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 1810; this.partitionSpec(); } } } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 1813; this.match(HiveSqlParser.KW_URI); this.state = 1814; localContext._path = this.match(HiveSqlParser.StringLiteral); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 1815; this.match(HiveSqlParser.KW_SERVER); this.state = 1816; this.id_(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public privObjectCols(): PrivObjectColsContext { let localContext = new PrivObjectColsContext(this.context, this.state); this.enterRule(localContext, 138, HiveSqlParser.RULE_privObjectCols); let _la: number; try { this.state = 1839; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 124, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 1819; this.db_schema(); this.state = 1820; this.dbSchemaName(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 1823; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 328) { { this.state = 1822; this.match(HiveSqlParser.KW_TABLE); } } this.state = 1825; this.tableName(); this.state = 1830; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 122, this.context) ) { case 1: { this.state = 1826; this.match(HiveSqlParser.LPAREN); this.state = 1827; localContext._cols = this.columnNameList(); this.state = 1828; this.match(HiveSqlParser.RPAREN); } break; } this.state = 1833; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 1832; this.partitionSpec(); } } } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 1835; this.match(HiveSqlParser.KW_URI); this.state = 1836; localContext._path = this.match(HiveSqlParser.StringLiteral); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 1837; this.match(HiveSqlParser.KW_SERVER); this.state = 1838; this.id_(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public privilegeList(): PrivilegeListContext { let localContext = new PrivilegeListContext(this.context, this.state); this.enterRule(localContext, 140, HiveSqlParser.RULE_privilegeList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1841; this.privlegeDef(); this.state = 1846; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 1842; this.match(HiveSqlParser.COMMA); this.state = 1843; this.privlegeDef(); } } this.state = 1848; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public privlegeDef(): PrivlegeDefContext { let localContext = new PrivlegeDefContext(this.context, this.state); this.enterRule(localContext, 142, HiveSqlParser.RULE_privlegeDef); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1849; this.privilegeType(); this.state = 1854; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 398) { { this.state = 1850; this.match(HiveSqlParser.LPAREN); this.state = 1851; localContext._cols = this.columnNameList(); this.state = 1852; this.match(HiveSqlParser.RPAREN); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public privilegeType(): PrivilegeTypeContext { let localContext = new PrivilegeTypeContext(this.context, this.state); this.enterRule(localContext, 144, HiveSqlParser.RULE_privilegeType); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1856; _la = this.tokenStream.LA(1); if(!(_la === 7 || _la === 9 || _la === 58 || _la === 86 || _la === 101 || _la === 155 || _la === 161 || _la === 189 || _la === 298 || _la === 308 || _la === 364)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public principalSpecification(): PrincipalSpecificationContext { let localContext = new PrincipalSpecificationContext(this.context, this.state); this.enterRule(localContext, 146, HiveSqlParser.RULE_principalSpecification); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1858; this.principalName(); this.state = 1863; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 1859; this.match(HiveSqlParser.COMMA); this.state = 1860; this.principalName(); } } this.state = 1865; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public principalName(): PrincipalNameContext { let localContext = new PrincipalNameContext(this.context, this.state); this.enterRule(localContext, 148, HiveSqlParser.RULE_principalName); try { this.state = 1872; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_USER: this.enterOuterAlt(localContext, 1); { this.state = 1866; this.match(HiveSqlParser.KW_USER); this.state = 1867; this.principalIdentifier(); } break; case HiveSqlParser.KW_GROUP: this.enterOuterAlt(localContext, 2); { this.state = 1868; this.match(HiveSqlParser.KW_GROUP); this.state = 1869; this.principalIdentifier(); } break; case HiveSqlParser.KW_ROLE: this.enterOuterAlt(localContext, 3); { this.state = 1870; this.match(HiveSqlParser.KW_ROLE); this.state = 1871; this.id_(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public principalAlterName(): PrincipalAlterNameContext { let localContext = new PrincipalAlterNameContext(this.context, this.state); this.enterRule(localContext, 150, HiveSqlParser.RULE_principalAlterName); try { this.state = 1879; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 129, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 1874; this.match(HiveSqlParser.KW_USER); this.state = 1875; this.principalIdentifier(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 1876; this.match(HiveSqlParser.KW_ROLE); this.state = 1877; this.id_(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 1878; this.id_(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public withGrantOption(): WithGrantOptionContext { let localContext = new WithGrantOptionContext(this.context, this.state); this.enterRule(localContext, 152, HiveSqlParser.RULE_withGrantOption); try { this.enterOuterAlt(localContext, 1); { this.state = 1881; this.match(HiveSqlParser.KW_WITH); this.state = 1882; this.match(HiveSqlParser.KW_GRANT); this.state = 1883; this.match(HiveSqlParser.KW_OPTION); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public grantOptionFor(): GrantOptionForContext { let localContext = new GrantOptionForContext(this.context, this.state); this.enterRule(localContext, 154, HiveSqlParser.RULE_grantOptionFor); try { this.enterOuterAlt(localContext, 1); { this.state = 1885; this.match(HiveSqlParser.KW_GRANT); this.state = 1886; this.match(HiveSqlParser.KW_OPTION); this.state = 1887; this.match(HiveSqlParser.KW_FOR); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public adminOptionFor(): AdminOptionForContext { let localContext = new AdminOptionForContext(this.context, this.state); this.enterRule(localContext, 156, HiveSqlParser.RULE_adminOptionFor); try { this.enterOuterAlt(localContext, 1); { this.state = 1889; this.match(HiveSqlParser.KW_ADMIN); this.state = 1890; this.match(HiveSqlParser.KW_OPTION); this.state = 1891; this.match(HiveSqlParser.KW_FOR); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public withAdminOption(): WithAdminOptionContext { let localContext = new WithAdminOptionContext(this.context, this.state); this.enterRule(localContext, 158, HiveSqlParser.RULE_withAdminOption); try { this.enterOuterAlt(localContext, 1); { this.state = 1893; this.match(HiveSqlParser.KW_WITH); this.state = 1894; this.match(HiveSqlParser.KW_ADMIN); this.state = 1895; this.match(HiveSqlParser.KW_OPTION); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public metastoreCheck(): MetastoreCheckContext { let localContext = new MetastoreCheckContext(this.context, this.state); this.enterRule(localContext, 160, HiveSqlParser.RULE_metastoreCheck); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1897; this.match(HiveSqlParser.KW_MSCK); this.state = 1899; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 275) { { this.state = 1898; localContext._repair = this.match(HiveSqlParser.KW_REPAIR); } } { this.state = 1901; this.match(HiveSqlParser.KW_TABLE); this.state = 1902; this.tableName(); this.state = 1908; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 132, this.context) ) { case 1: { this.state = 1903; localContext._opt = this.tokenStream.LT(1); _la = this.tokenStream.LA(1); if(!(_la === 4 || _la === 101 || _la === 325)) { localContext._opt = this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 1904; localContext._parts = this.match(HiveSqlParser.KW_PARTITIONS); this.state = 1906; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 131, this.context) ) { case 1: { this.state = 1905; this.partitionSelectorSpec(); } break; } } break; } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public resourceList(): ResourceListContext { let localContext = new ResourceListContext(this.context, this.state); this.enterRule(localContext, 162, HiveSqlParser.RULE_resourceList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1910; this.resource(); this.state = 1915; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 1911; this.match(HiveSqlParser.COMMA); this.state = 1912; this.resource(); } } this.state = 1917; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public resource(): ResourceContext { let localContext = new ResourceContext(this.context, this.state); this.enterRule(localContext, 164, HiveSqlParser.RULE_resource); try { this.enterOuterAlt(localContext, 1); { this.state = 1918; localContext._resType = this.resourceType(); this.state = 1919; localContext._resPath = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public resourceType(): ResourceTypeContext { let localContext = new ResourceTypeContext(this.context, this.state); this.enterRule(localContext, 166, HiveSqlParser.RULE_resourceType); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1921; _la = this.tokenStream.LA(1); if(!(_la === 15 || _la === 128 || _la === 170)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createFunctionStatement(): CreateFunctionStatementContext { let localContext = new CreateFunctionStatementContext(this.context, this.state); this.enterRule(localContext, 168, HiveSqlParser.RULE_createFunctionStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1923; this.match(HiveSqlParser.KW_CREATE); this.state = 1925; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 332) { { this.state = 1924; localContext._temp = this.match(HiveSqlParser.KW_TEMPORARY); } } this.state = 1927; this.match(HiveSqlParser.KW_FUNCTION); this.state = 1928; this.functionNameCreate(); this.state = 1929; this.match(HiveSqlParser.KW_AS); this.state = 1930; this.match(HiveSqlParser.StringLiteral); this.state = 1933; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 369) { { this.state = 1931; this.match(HiveSqlParser.KW_USING); this.state = 1932; localContext._rList = this.resourceList(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropFunctionStatement(): DropFunctionStatementContext { let localContext = new DropFunctionStatementContext(this.context, this.state); this.enterRule(localContext, 170, HiveSqlParser.RULE_dropFunctionStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1935; this.match(HiveSqlParser.KW_DROP); this.state = 1937; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 332) { { this.state = 1936; localContext._temp = this.match(HiveSqlParser.KW_TEMPORARY); } } this.state = 1939; this.match(HiveSqlParser.KW_FUNCTION); this.state = 1941; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 1940; this.ifExists(); } } this.state = 1943; this.functionNameForDDL(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public reloadFunctionsStatement(): ReloadFunctionsStatementContext { let localContext = new ReloadFunctionsStatementContext(this.context, this.state); this.enterRule(localContext, 172, HiveSqlParser.RULE_reloadFunctionsStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1945; this.match(HiveSqlParser.KW_RELOAD); this.state = 1946; _la = this.tokenStream.LA(1); if(!(_la === 141 || _la === 142)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createMacroStatement(): CreateMacroStatementContext { let localContext = new CreateMacroStatementContext(this.context, this.state); this.enterRule(localContext, 174, HiveSqlParser.RULE_createMacroStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1948; this.match(HiveSqlParser.KW_CREATE); this.state = 1949; this.match(HiveSqlParser.KW_TEMPORARY); this.state = 1950; this.match(HiveSqlParser.KW_MACRO); this.state = 1951; this.match(HiveSqlParser.Identifier); this.state = 1952; this.match(HiveSqlParser.LPAREN); this.state = 1954; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3252454782) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 94072755) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 3203280837) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 3774298979) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 1985876353) !== 0) || ((((_la - 168)) & ~0x1F) === 0 && ((1 << (_la - 168)) & 3723969527) !== 0) || ((((_la - 200)) & ~0x1F) === 0 && ((1 << (_la - 200)) & 2255187435) !== 0) || ((((_la - 232)) & ~0x1F) === 0 && ((1 << (_la - 232)) & 929578221) !== 0) || ((((_la - 264)) & ~0x1F) === 0 && ((1 << (_la - 264)) & 4039901127) !== 0) || ((((_la - 296)) & ~0x1F) === 0 && ((1 << (_la - 296)) & 3755917179) !== 0) || ((((_la - 329)) & ~0x1F) === 0 && ((1 << (_la - 329)) & 3402225181) !== 0) || ((((_la - 361)) & ~0x1F) === 0 && ((1 << (_la - 361)) & 4238323319) !== 0) || _la === 393 || _la === 431) { { this.state = 1953; this.columnNameTypeList(); } } this.state = 1956; this.match(HiveSqlParser.RPAREN); this.state = 1957; this.expression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropMacroStatement(): DropMacroStatementContext { let localContext = new DropMacroStatementContext(this.context, this.state); this.enterRule(localContext, 176, HiveSqlParser.RULE_dropMacroStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1959; this.match(HiveSqlParser.KW_DROP); this.state = 1960; this.match(HiveSqlParser.KW_TEMPORARY); this.state = 1961; this.match(HiveSqlParser.KW_MACRO); this.state = 1963; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 1962; this.ifExists(); } } this.state = 1965; this.match(HiveSqlParser.Identifier); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createIndexStatement(): CreateIndexStatementContext { let localContext = new CreateIndexStatementContext(this.context, this.state); this.enterRule(localContext, 178, HiveSqlParser.RULE_createIndexStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 1967; this.match(HiveSqlParser.KW_CREATE); this.state = 1968; this.match(HiveSqlParser.KW_INDEX); this.state = 1969; this.id_(); this.state = 1970; this.match(HiveSqlParser.KW_ON); this.state = 1971; this.match(HiveSqlParser.KW_TABLE); this.state = 1972; this.tableName(); this.state = 1973; this.columnParenthesesList(); this.state = 1974; this.match(HiveSqlParser.KW_AS); this.state = 1975; localContext._indextype = this.match(HiveSqlParser.StringLiteral); this.state = 1979; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 140, this.context) ) { case 1: { this.state = 1976; this.match(HiveSqlParser.KW_WITH); this.state = 1977; this.match(HiveSqlParser.KW_DEFERRED); this.state = 1978; this.match(HiveSqlParser.KW_REBUILD); } break; } this.state = 1983; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 150) { { this.state = 1981; this.match(HiveSqlParser.KW_IDXPROPERTIES); this.state = 1982; this.tableProperties(); } } this.state = 1988; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 154) { { this.state = 1985; this.match(HiveSqlParser.KW_IN); this.state = 1986; this.match(HiveSqlParser.KW_TABLE); this.state = 1987; this.tableName(); } } this.state = 1993; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 237) { { this.state = 1990; this.match(HiveSqlParser.KW_PARTITIONED); this.state = 1991; this.match(HiveSqlParser.KW_BY); this.state = 1992; this.columnParenthesesList(); } } this.state = 1999; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 290 || _la === 320) { { this.state = 1996; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 290) { { this.state = 1995; this.tableRowFormat(); } } this.state = 1998; this.tableFileFormat(); } } this.state = 2003; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 188) { { this.state = 2001; this.match(HiveSqlParser.KW_LOCATION); this.state = 2002; localContext._locn = this.match(HiveSqlParser.StringLiteral); } } this.state = 2006; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 331) { { this.state = 2005; this.tablePropertiesPrefixed(); } } this.state = 2009; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 2008; this.tableComment(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropIndexStatement(): DropIndexStatementContext { let localContext = new DropIndexStatementContext(this.context, this.state); this.enterRule(localContext, 180, HiveSqlParser.RULE_dropIndexStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2011; this.match(HiveSqlParser.KW_DROP); this.state = 2012; this.match(HiveSqlParser.KW_INDEX); this.state = 2014; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 2013; this.ifExists(); } } this.state = 2016; this.id_(); this.state = 2017; this.match(HiveSqlParser.KW_ON); this.state = 2018; this.tableName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createViewStatement(): CreateViewStatementContext { let localContext = new CreateViewStatementContext(this.context, this.state); this.enterRule(localContext, 182, HiveSqlParser.RULE_createViewStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2020; this.match(HiveSqlParser.KW_CREATE); this.state = 2022; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 227) { { this.state = 2021; this.orReplace(); } } this.state = 2024; this.match(HiveSqlParser.KW_VIEW); this.state = 2026; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 2025; this.ifNotExists(); } } this.state = 2028; localContext._name = this.viewNameCreate(); this.state = 2033; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 398) { { this.state = 2029; this.match(HiveSqlParser.LPAREN); this.state = 2030; this.columnNameCommentList(); this.state = 2031; this.match(HiveSqlParser.RPAREN); } } this.state = 2036; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 2035; this.tableComment(); } } this.state = 2039; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 237) { { this.state = 2038; this.viewPartition(); } } this.state = 2042; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 331) { { this.state = 2041; this.tablePropertiesPrefixed(); } } this.state = 2044; this.match(HiveSqlParser.KW_AS); this.state = 2045; this.selectStatementWithCTE(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public viewPartition(): ViewPartitionContext { let localContext = new ViewPartitionContext(this.context, this.state); this.enterRule(localContext, 184, HiveSqlParser.RULE_viewPartition); try { this.enterOuterAlt(localContext, 1); { this.state = 2047; this.match(HiveSqlParser.KW_PARTITIONED); this.state = 2048; this.match(HiveSqlParser.KW_ON); this.state = 2054; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.LPAREN: { this.state = 2049; this.match(HiveSqlParser.LPAREN); this.state = 2050; this.columnNameList(); } break; case HiveSqlParser.KW_SPEC: { this.state = 2051; this.match(HiveSqlParser.KW_SPEC); this.state = 2052; this.match(HiveSqlParser.LPAREN); this.state = 2053; localContext._spec = this.partitionTransformSpec(); } break; default: throw new antlr.NoViableAltException(this); } this.state = 2056; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public viewOrganization(): ViewOrganizationContext { let localContext = new ViewOrganizationContext(this.context, this.state); this.enterRule(localContext, 186, HiveSqlParser.RULE_viewOrganization); try { this.state = 2060; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_CLUSTERED: this.enterOuterAlt(localContext, 1); { this.state = 2058; this.viewClusterSpec(); } break; case HiveSqlParser.KW_DISTRIBUTED: this.enterOuterAlt(localContext, 2); { this.state = 2059; this.viewComplexSpec(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public viewClusterSpec(): ViewClusterSpecContext { let localContext = new ViewClusterSpecContext(this.context, this.state); this.enterRule(localContext, 188, HiveSqlParser.RULE_viewClusterSpec); try { this.enterOuterAlt(localContext, 1); { this.state = 2062; this.match(HiveSqlParser.KW_CLUSTERED); this.state = 2063; this.match(HiveSqlParser.KW_ON); this.state = 2064; this.match(HiveSqlParser.LPAREN); this.state = 2065; this.columnNameList(); this.state = 2066; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public viewComplexSpec(): ViewComplexSpecContext { let localContext = new ViewComplexSpecContext(this.context, this.state); this.enterRule(localContext, 190, HiveSqlParser.RULE_viewComplexSpec); try { this.enterOuterAlt(localContext, 1); { this.state = 2068; this.viewDistSpec(); this.state = 2069; this.viewSortSpec(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public viewDistSpec(): ViewDistSpecContext { let localContext = new ViewDistSpecContext(this.context, this.state); this.enterRule(localContext, 192, HiveSqlParser.RULE_viewDistSpec); try { this.enterOuterAlt(localContext, 1); { this.state = 2071; this.match(HiveSqlParser.KW_DISTRIBUTED); this.state = 2072; this.match(HiveSqlParser.KW_ON); this.state = 2073; this.match(HiveSqlParser.LPAREN); this.state = 2074; localContext._colList = this.columnNameList(); this.state = 2075; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public viewSortSpec(): ViewSortSpecContext { let localContext = new ViewSortSpecContext(this.context, this.state); this.enterRule(localContext, 194, HiveSqlParser.RULE_viewSortSpec); try { this.enterOuterAlt(localContext, 1); { this.state = 2077; this.match(HiveSqlParser.KW_SORTED); this.state = 2078; this.match(HiveSqlParser.KW_ON); this.state = 2079; this.match(HiveSqlParser.LPAREN); this.state = 2080; localContext._colList = this.columnNameList(); this.state = 2081; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropViewStatement(): DropViewStatementContext { let localContext = new DropViewStatementContext(this.context, this.state); this.enterRule(localContext, 196, HiveSqlParser.RULE_dropViewStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2083; this.match(HiveSqlParser.KW_DROP); this.state = 2084; this.match(HiveSqlParser.KW_VIEW); this.state = 2086; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 2085; this.ifExists(); } } this.state = 2088; this.viewName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createMaterializedViewStatement(): CreateMaterializedViewStatementContext { let localContext = new CreateMaterializedViewStatementContext(this.context, this.state); this.enterRule(localContext, 198, HiveSqlParser.RULE_createMaterializedViewStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2090; this.match(HiveSqlParser.KW_CREATE); this.state = 2091; this.match(HiveSqlParser.KW_MATERIALIZED); this.state = 2092; this.match(HiveSqlParser.KW_VIEW); this.state = 2094; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 2093; this.ifNotExists(); } } this.state = 2096; localContext._name = this.viewNameCreate(); this.state = 2098; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 94 || _la === 95) { { this.state = 2097; this.rewriteDisabled(); } } this.state = 2101; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 2100; this.tableComment(); } } this.state = 2104; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 237) { { this.state = 2103; this.viewPartition(); } } this.state = 2107; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 42 || _la === 98) { { this.state = 2106; this.viewOrganization(); } } this.state = 2110; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 290) { { this.state = 2109; this.tableRowFormat(); } } this.state = 2113; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 320) { { this.state = 2112; this.tableFileFormat(); } } this.state = 2116; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 188) { { this.state = 2115; this.tableLocation(); } } this.state = 2119; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 331) { { this.state = 2118; this.tablePropertiesPrefixed(); } } this.state = 2121; this.match(HiveSqlParser.KW_AS); this.state = 2122; this.selectStatementWithCTE(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropMaterializedViewStatement(): DropMaterializedViewStatementContext { let localContext = new DropMaterializedViewStatementContext(this.context, this.state); this.enterRule(localContext, 200, HiveSqlParser.RULE_dropMaterializedViewStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2124; this.match(HiveSqlParser.KW_DROP); this.state = 2125; this.match(HiveSqlParser.KW_MATERIALIZED); this.state = 2126; this.match(HiveSqlParser.KW_VIEW); this.state = 2128; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 2127; this.ifExists(); } } this.state = 2130; this.viewName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createScheduledQueryStatement(): CreateScheduledQueryStatementContext { let localContext = new CreateScheduledQueryStatementContext(this.context, this.state); this.enterRule(localContext, 202, HiveSqlParser.RULE_createScheduledQueryStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2132; this.match(HiveSqlParser.KW_CREATE); this.state = 2133; this.match(HiveSqlParser.KW_SCHEDULED); this.state = 2134; this.match(HiveSqlParser.KW_QUERY); this.state = 2135; localContext._name = this.id_(); this.state = 2136; this.scheduleSpec(); this.state = 2138; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 116) { { this.state = 2137; this.executedAsSpec(); } } this.state = 2141; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (((((_la - 94)) & ~0x1F) === 0 && ((1 << (_la - 94)) & 12291) !== 0)) { { this.state = 2140; this.enableSpecification(); } } this.state = 2143; this.definedAsSpec(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropScheduledQueryStatement(): DropScheduledQueryStatementContext { let localContext = new DropScheduledQueryStatementContext(this.context, this.state); this.enterRule(localContext, 204, HiveSqlParser.RULE_dropScheduledQueryStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 2145; this.match(HiveSqlParser.KW_DROP); this.state = 2146; this.match(HiveSqlParser.KW_SCHEDULED); this.state = 2147; this.match(HiveSqlParser.KW_QUERY); this.state = 2148; localContext._name = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterScheduledQueryStatement(): AlterScheduledQueryStatementContext { let localContext = new AlterScheduledQueryStatementContext(this.context, this.state); this.enterRule(localContext, 206, HiveSqlParser.RULE_alterScheduledQueryStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 2150; this.match(HiveSqlParser.KW_ALTER); this.state = 2151; this.match(HiveSqlParser.KW_SCHEDULED); this.state = 2152; this.match(HiveSqlParser.KW_QUERY); this.state = 2153; localContext._name = this.id_(); this.state = 2154; localContext._mod = this.alterScheduledQueryChange(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterScheduledQueryChange(): AlterScheduledQueryChangeContext { let localContext = new AlterScheduledQueryChangeContext(this.context, this.state); this.enterRule(localContext, 208, HiveSqlParser.RULE_alterScheduledQueryChange); try { this.state = 2161; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_EVERY: this.enterOuterAlt(localContext, 1); { this.state = 2156; this.scheduleSpec(); } break; case HiveSqlParser.KW_EXECUTED: this.enterOuterAlt(localContext, 2); { this.state = 2157; this.executedAsSpec(); } break; case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: this.enterOuterAlt(localContext, 3); { this.state = 2158; this.enableSpecification(); } break; case HiveSqlParser.KW_AS: case HiveSqlParser.KW_DEFINED: this.enterOuterAlt(localContext, 4); { this.state = 2159; this.definedAsSpec(); } break; case HiveSqlParser.KW_EXECUTE: this.enterOuterAlt(localContext, 5); { this.state = 2160; this.match(HiveSqlParser.KW_EXECUTE); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public scheduleSpec(): ScheduleSpecContext { let localContext = new ScheduleSpecContext(this.context, this.state); this.enterRule(localContext, 210, HiveSqlParser.RULE_scheduleSpec); let _la: number; try { this.state = 2178; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_CRON: this.enterOuterAlt(localContext, 1); { this.state = 2163; this.match(HiveSqlParser.KW_CRON); this.state = 2164; localContext._cronString = this.match(HiveSqlParser.StringLiteral); } break; case HiveSqlParser.KW_EVERY: this.enterOuterAlt(localContext, 2); { this.state = 2165; this.match(HiveSqlParser.KW_EVERY); this.state = 2167; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 430) { { this.state = 2166; localContext._value = this.match(HiveSqlParser.Number); } } this.state = 2169; localContext._qualifier = this.intervalQualifiers(); this.state = 2176; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 20 || _la === 222) { { this.state = 2173; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_AT: { this.state = 2170; this.match(HiveSqlParser.KW_AT); } break; case HiveSqlParser.KW_OFFSET: { this.state = 2171; this.match(HiveSqlParser.KW_OFFSET); this.state = 2172; this.match(HiveSqlParser.KW_BY); } break; default: throw new antlr.NoViableAltException(this); } this.state = 2175; localContext._offsetTs = this.match(HiveSqlParser.StringLiteral); } } } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public executedAsSpec(): ExecutedAsSpecContext { let localContext = new ExecutedAsSpecContext(this.context, this.state); this.enterRule(localContext, 212, HiveSqlParser.RULE_executedAsSpec); try { this.enterOuterAlt(localContext, 1); { this.state = 2180; this.match(HiveSqlParser.KW_EXECUTED); this.state = 2181; this.match(HiveSqlParser.KW_AS); this.state = 2182; localContext._executedAs = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public definedAsSpec(): DefinedAsSpecContext { let localContext = new DefinedAsSpecContext(this.context, this.state); this.enterRule(localContext, 214, HiveSqlParser.RULE_definedAsSpec); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2185; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 85) { { this.state = 2184; this.match(HiveSqlParser.KW_DEFINED); } } this.state = 2187; this.match(HiveSqlParser.KW_AS); this.state = 2188; this.statement(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public showStmtIdentifier(): ShowStmtIdentifierContext { let localContext = new ShowStmtIdentifierContext(this.context, this.state); this.enterRule(localContext, 216, HiveSqlParser.RULE_showStmtIdentifier); try { this.state = 2192; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: case HiveSqlParser.Identifier: this.enterOuterAlt(localContext, 1); { this.state = 2190; this.id_(); } break; case HiveSqlParser.StringLiteral: this.enterOuterAlt(localContext, 2); { this.state = 2191; this.match(HiveSqlParser.StringLiteral); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableComment(): TableCommentContext { let localContext = new TableCommentContext(this.context, this.state); this.enterRule(localContext, 218, HiveSqlParser.RULE_tableComment); try { this.enterOuterAlt(localContext, 1); { this.state = 2194; this.match(HiveSqlParser.KW_COMMENT); this.state = 2195; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createTablePartitionSpec(): CreateTablePartitionSpecContext { let localContext = new CreateTablePartitionSpecContext(this.context, this.state); this.enterRule(localContext, 220, HiveSqlParser.RULE_createTablePartitionSpec); try { this.enterOuterAlt(localContext, 1); { this.state = 2197; this.match(HiveSqlParser.KW_PARTITIONED); this.state = 2198; this.match(HiveSqlParser.KW_BY); this.state = 2207; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.LPAREN: { this.state = 2199; this.match(HiveSqlParser.LPAREN); this.state = 2202; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 178, this.context) ) { case 1: { this.state = 2200; localContext._opt1 = this.createTablePartitionColumnTypeSpec(); } break; case 2: { this.state = 2201; localContext._opt2 = this.createTablePartitionColumnSpec(); } break; } } break; case HiveSqlParser.KW_SPEC: { this.state = 2204; this.match(HiveSqlParser.KW_SPEC); this.state = 2205; this.match(HiveSqlParser.LPAREN); this.state = 2206; localContext._spec = this.partitionTransformSpec(); } break; default: throw new antlr.NoViableAltException(this); } this.state = 2209; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createTablePartitionColumnTypeSpec(): CreateTablePartitionColumnTypeSpecContext { let localContext = new CreateTablePartitionColumnTypeSpecContext(this.context, this.state); this.enterRule(localContext, 222, HiveSqlParser.RULE_createTablePartitionColumnTypeSpec); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2211; this.columnNameTypeConstraint(); this.state = 2216; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2212; this.match(HiveSqlParser.COMMA); this.state = 2213; this.columnNameTypeConstraint(); } } this.state = 2218; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createTablePartitionColumnSpec(): CreateTablePartitionColumnSpecContext { let localContext = new CreateTablePartitionColumnSpecContext(this.context, this.state); this.enterRule(localContext, 224, HiveSqlParser.RULE_createTablePartitionColumnSpec); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2219; this.columnName(); this.state = 2224; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2220; this.match(HiveSqlParser.COMMA); this.state = 2221; this.columnName(); } } this.state = 2226; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionTransformSpec(): PartitionTransformSpecContext { let localContext = new PartitionTransformSpecContext(this.context, this.state); this.enterRule(localContext, 226, HiveSqlParser.RULE_partitionTransformSpec); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2227; this.columnNameTransformConstraint(); this.state = 2232; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2228; this.match(HiveSqlParser.COMMA); this.state = 2229; this.columnNameTransformConstraint(); } } this.state = 2234; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameTransformConstraint(): ColumnNameTransformConstraintContext { let localContext = new ColumnNameTransformConstraintContext(this.context, this.state); this.enterRule(localContext, 228, HiveSqlParser.RULE_columnNameTransformConstraint); try { this.enterOuterAlt(localContext, 1); { this.state = 2235; this.partitionTransformType(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionTransformType(): PartitionTransformTypeContext { let localContext = new PartitionTransformTypeContext(this.context, this.state); this.enterRule(localContext, 230, HiveSqlParser.RULE_partitionTransformType); let _la: number; try { this.state = 2255; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 184, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2237; this.columnName(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2242; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: { this.state = 2238; this.year(); } break; case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: { this.state = 2239; this.month(); } break; case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: { this.state = 2240; this.day(); } break; case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: { this.state = 2241; this.hour(); } break; default: throw new antlr.NoViableAltException(this); } this.state = 2244; this.match(HiveSqlParser.LPAREN); this.state = 2245; this.columnName(); this.state = 2246; this.match(HiveSqlParser.RPAREN); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 2248; _la = this.tokenStream.LA(1); if(!(_la === 30 || _la === 350)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 2249; this.match(HiveSqlParser.LPAREN); this.state = 2250; localContext._value = this.match(HiveSqlParser.Number); this.state = 2251; this.match(HiveSqlParser.COMMA); this.state = 2252; this.columnName(); this.state = 2253; this.match(HiveSqlParser.RPAREN); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableBuckets(): TableBucketsContext { let localContext = new TableBucketsContext(this.context, this.state); this.enterRule(localContext, 232, HiveSqlParser.RULE_tableBuckets); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2257; this.match(HiveSqlParser.KW_CLUSTERED); this.state = 2258; this.match(HiveSqlParser.KW_BY); this.state = 2259; this.match(HiveSqlParser.LPAREN); this.state = 2260; localContext._bucketCols = this.columnNameList(); this.state = 2261; this.match(HiveSqlParser.RPAREN); this.state = 2268; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 314) { { this.state = 2262; this.match(HiveSqlParser.KW_SORTED); this.state = 2263; this.match(HiveSqlParser.KW_BY); this.state = 2264; this.match(HiveSqlParser.LPAREN); this.state = 2265; localContext._sortCols = this.columnNameOrderList(); this.state = 2266; this.match(HiveSqlParser.RPAREN); } } this.state = 2270; this.match(HiveSqlParser.KW_INTO); this.state = 2271; localContext._num = this.match(HiveSqlParser.Number); this.state = 2272; this.match(HiveSqlParser.KW_BUCKETS); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableImplBuckets(): TableImplBucketsContext { let localContext = new TableImplBucketsContext(this.context, this.state); this.enterRule(localContext, 234, HiveSqlParser.RULE_tableImplBuckets); try { this.enterOuterAlt(localContext, 1); { this.state = 2274; this.match(HiveSqlParser.KW_CLUSTERED); this.state = 2275; this.match(HiveSqlParser.KW_INTO); this.state = 2276; localContext._num = this.match(HiveSqlParser.Number); this.state = 2277; this.match(HiveSqlParser.KW_BUCKETS); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableSkewed(): TableSkewedContext { let localContext = new TableSkewedContext(this.context, this.state); this.enterRule(localContext, 236, HiveSqlParser.RULE_tableSkewed); try { this.enterOuterAlt(localContext, 1); { this.state = 2279; this.match(HiveSqlParser.KW_SKEWED); this.state = 2280; this.match(HiveSqlParser.KW_BY); this.state = 2281; this.match(HiveSqlParser.LPAREN); this.state = 2282; localContext._skewedCols = this.columnNameList(); this.state = 2283; this.match(HiveSqlParser.RPAREN); this.state = 2284; this.match(HiveSqlParser.KW_ON); this.state = 2285; this.match(HiveSqlParser.LPAREN); this.state = 2286; localContext._skewedValues = this.skewedValueElement(); this.state = 2287; this.match(HiveSqlParser.RPAREN); this.state = 2289; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 186, this.context) ) { case 1: { this.state = 2288; this.storedAsDirs(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rowFormat(): RowFormatContext { let localContext = new RowFormatContext(this.context, this.state); this.enterRule(localContext, 238, HiveSqlParser.RULE_rowFormat); try { this.state = 2293; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 187, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2291; this.rowFormatSerde(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2292; this.rowFormatDelimited(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public recordReader(): RecordReaderContext { let localContext = new RecordReaderContext(this.context, this.state); this.enterRule(localContext, 240, HiveSqlParser.RULE_recordReader); try { this.enterOuterAlt(localContext, 1); { this.state = 2295; this.match(HiveSqlParser.KW_RECORDREADER); this.state = 2296; this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public recordWriter(): RecordWriterContext { let localContext = new RecordWriterContext(this.context, this.state); this.enterRule(localContext, 242, HiveSqlParser.RULE_recordWriter); try { this.enterOuterAlt(localContext, 1); { this.state = 2298; this.match(HiveSqlParser.KW_RECORDWRITER); this.state = 2299; this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rowFormatSerde(): RowFormatSerdeContext { let localContext = new RowFormatSerdeContext(this.context, this.state); this.enterRule(localContext, 244, HiveSqlParser.RULE_rowFormatSerde); try { this.enterOuterAlt(localContext, 1); { this.state = 2301; this.match(HiveSqlParser.KW_ROW); this.state = 2302; this.match(HiveSqlParser.KW_FORMAT); this.state = 2303; this.match(HiveSqlParser.KW_SERDE); this.state = 2304; localContext._name = this.match(HiveSqlParser.StringLiteral); this.state = 2308; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 188, this.context) ) { case 1: { this.state = 2305; this.match(HiveSqlParser.KW_WITH); this.state = 2306; this.match(HiveSqlParser.KW_SERDEPROPERTIES); this.state = 2307; localContext._serdeprops = this.tableProperties(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rowFormatDelimited(): RowFormatDelimitedContext { let localContext = new RowFormatDelimitedContext(this.context, this.state); this.enterRule(localContext, 246, HiveSqlParser.RULE_rowFormatDelimited); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2310; this.match(HiveSqlParser.KW_ROW); this.state = 2311; this.match(HiveSqlParser.KW_FORMAT); this.state = 2312; this.match(HiveSqlParser.KW_DELIMITED); this.state = 2314; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 127) { { this.state = 2313; this.tableRowFormatFieldIdentifier(); } } this.state = 2317; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 44) { { this.state = 2316; this.tableRowFormatCollItemsIdentifier(); } } this.state = 2320; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 191, this.context) ) { case 1: { this.state = 2319; this.tableRowFormatMapKeysIdentifier(); } break; } this.state = 2323; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 185) { { this.state = 2322; this.tableRowFormatLinesIdentifier(); } } this.state = 2326; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 218) { { this.state = 2325; this.tableRowNullFormat(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableRowFormat(): TableRowFormatContext { let localContext = new TableRowFormatContext(this.context, this.state); this.enterRule(localContext, 248, HiveSqlParser.RULE_tableRowFormat); try { this.state = 2330; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 194, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2328; this.rowFormatDelimited(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2329; this.rowFormatSerde(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tablePropertiesPrefixed(): TablePropertiesPrefixedContext { let localContext = new TablePropertiesPrefixedContext(this.context, this.state); this.enterRule(localContext, 250, HiveSqlParser.RULE_tablePropertiesPrefixed); try { this.enterOuterAlt(localContext, 1); { this.state = 2332; this.match(HiveSqlParser.KW_TBLPROPERTIES); this.state = 2333; this.tableProperties(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableProperties(): TablePropertiesContext { let localContext = new TablePropertiesContext(this.context, this.state); this.enterRule(localContext, 252, HiveSqlParser.RULE_tableProperties); try { this.enterOuterAlt(localContext, 1); { this.state = 2335; this.match(HiveSqlParser.LPAREN); this.state = 2336; this.tablePropertiesList(); this.state = 2337; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tablePropertiesList(): TablePropertiesListContext { let localContext = new TablePropertiesListContext(this.context, this.state); this.enterRule(localContext, 254, HiveSqlParser.RULE_tablePropertiesList); let _la: number; try { this.state = 2355; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 197, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2339; this.keyValueProperty(); this.state = 2344; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2340; this.match(HiveSqlParser.COMMA); this.state = 2341; this.keyValueProperty(); } } this.state = 2346; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2347; this.keyProperty(); this.state = 2352; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2348; this.match(HiveSqlParser.COMMA); this.state = 2349; this.keyProperty(); } } this.state = 2354; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public keyValueProperty(): KeyValuePropertyContext { let localContext = new KeyValuePropertyContext(this.context, this.state); this.enterRule(localContext, 256, HiveSqlParser.RULE_keyValueProperty); try { this.enterOuterAlt(localContext, 1); { this.state = 2357; localContext._key = this.match(HiveSqlParser.StringLiteral); this.state = 2358; this.match(HiveSqlParser.EQUAL); this.state = 2359; localContext._value = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public keyProperty(): KeyPropertyContext { let localContext = new KeyPropertyContext(this.context, this.state); this.enterRule(localContext, 258, HiveSqlParser.RULE_keyProperty); try { this.enterOuterAlt(localContext, 1); { this.state = 2361; localContext._key = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableRowFormatFieldIdentifier(): TableRowFormatFieldIdentifierContext { let localContext = new TableRowFormatFieldIdentifierContext(this.context, this.state); this.enterRule(localContext, 260, HiveSqlParser.RULE_tableRowFormatFieldIdentifier); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2363; this.match(HiveSqlParser.KW_FIELDS); this.state = 2364; this.match(HiveSqlParser.KW_TERMINATED); this.state = 2365; this.match(HiveSqlParser.KW_BY); this.state = 2366; localContext._fldIdnt = this.match(HiveSqlParser.StringLiteral); this.state = 2370; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 110) { { this.state = 2367; this.match(HiveSqlParser.KW_ESCAPED); this.state = 2368; this.match(HiveSqlParser.KW_BY); this.state = 2369; localContext._fldEscape = this.match(HiveSqlParser.StringLiteral); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableRowFormatCollItemsIdentifier(): TableRowFormatCollItemsIdentifierContext { let localContext = new TableRowFormatCollItemsIdentifierContext(this.context, this.state); this.enterRule(localContext, 262, HiveSqlParser.RULE_tableRowFormatCollItemsIdentifier); try { this.enterOuterAlt(localContext, 1); { this.state = 2372; this.match(HiveSqlParser.KW_COLLECTION); this.state = 2373; this.match(HiveSqlParser.KW_ITEMS); this.state = 2374; this.match(HiveSqlParser.KW_TERMINATED); this.state = 2375; this.match(HiveSqlParser.KW_BY); this.state = 2376; localContext._collIdnt = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableRowFormatMapKeysIdentifier(): TableRowFormatMapKeysIdentifierContext { let localContext = new TableRowFormatMapKeysIdentifierContext(this.context, this.state); this.enterRule(localContext, 264, HiveSqlParser.RULE_tableRowFormatMapKeysIdentifier); try { this.enterOuterAlt(localContext, 1); { this.state = 2378; this.match(HiveSqlParser.KW_MAP); this.state = 2379; this.match(HiveSqlParser.KW_KEYS); this.state = 2380; this.match(HiveSqlParser.KW_TERMINATED); this.state = 2381; this.match(HiveSqlParser.KW_BY); this.state = 2382; localContext._mapKeysIdnt = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableRowFormatLinesIdentifier(): TableRowFormatLinesIdentifierContext { let localContext = new TableRowFormatLinesIdentifierContext(this.context, this.state); this.enterRule(localContext, 266, HiveSqlParser.RULE_tableRowFormatLinesIdentifier); try { this.enterOuterAlt(localContext, 1); { this.state = 2384; this.match(HiveSqlParser.KW_LINES); this.state = 2385; this.match(HiveSqlParser.KW_TERMINATED); this.state = 2386; this.match(HiveSqlParser.KW_BY); this.state = 2387; localContext._linesIdnt = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableRowNullFormat(): TableRowNullFormatContext { let localContext = new TableRowNullFormatContext(this.context, this.state); this.enterRule(localContext, 268, HiveSqlParser.RULE_tableRowNullFormat); try { this.enterOuterAlt(localContext, 1); { this.state = 2389; this.match(HiveSqlParser.KW_NULL); this.state = 2390; this.match(HiveSqlParser.KW_DEFINED); this.state = 2391; this.match(HiveSqlParser.KW_AS); this.state = 2392; localContext._nullIdnt = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableFileFormat(): TableFileFormatContext { let localContext = new TableFileFormatContext(this.context, this.state); this.enterRule(localContext, 270, HiveSqlParser.RULE_tableFileFormat); let _la: number; try { this.state = 2435; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 204, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2394; this.match(HiveSqlParser.KW_STORED); this.state = 2395; this.match(HiveSqlParser.KW_AS); this.state = 2396; this.match(HiveSqlParser.KW_INPUTFORMAT); this.state = 2397; localContext._inFmt = this.match(HiveSqlParser.StringLiteral); this.state = 2398; this.match(HiveSqlParser.KW_OUTPUTFORMAT); this.state = 2399; localContext._outFmt = this.match(HiveSqlParser.StringLiteral); this.state = 2404; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 159) { { this.state = 2400; this.match(HiveSqlParser.KW_INPUTDRIVER); this.state = 2401; localContext._inDriver = this.match(HiveSqlParser.StringLiteral); this.state = 2402; this.match(HiveSqlParser.KW_OUTPUTDRIVER); this.state = 2403; localContext._outDriver = this.match(HiveSqlParser.StringLiteral); } } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2406; this.match(HiveSqlParser.KW_STORED); this.state = 2407; this.match(HiveSqlParser.KW_BY); this.state = 2408; localContext._storageHandler = this.match(HiveSqlParser.StringLiteral); this.state = 2412; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 200, this.context) ) { case 1: { this.state = 2409; this.match(HiveSqlParser.KW_WITH); this.state = 2410; this.match(HiveSqlParser.KW_SERDEPROPERTIES); this.state = 2411; localContext._serdeprops = this.tableProperties(); } break; } this.state = 2417; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 320) { { this.state = 2414; this.match(HiveSqlParser.KW_STORED); this.state = 2415; this.match(HiveSqlParser.KW_AS); this.state = 2416; localContext._fileformat = this.id_(); } } } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 2419; this.match(HiveSqlParser.KW_STORED); this.state = 2420; this.match(HiveSqlParser.KW_BY); this.state = 2421; localContext._genericSpec = this.id_(); this.state = 2425; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 202, this.context) ) { case 1: { this.state = 2422; this.match(HiveSqlParser.KW_WITH); this.state = 2423; this.match(HiveSqlParser.KW_SERDEPROPERTIES); this.state = 2424; localContext._serdeprops = this.tableProperties(); } break; } this.state = 2430; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 320) { { this.state = 2427; this.match(HiveSqlParser.KW_STORED); this.state = 2428; this.match(HiveSqlParser.KW_AS); this.state = 2429; localContext._fileformat = this.id_(); } } } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 2432; this.match(HiveSqlParser.KW_STORED); this.state = 2433; this.match(HiveSqlParser.KW_AS); this.state = 2434; localContext._genericSpec = this.id_(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableLocation(): TableLocationContext { let localContext = new TableLocationContext(this.context, this.state); this.enterRule(localContext, 272, HiveSqlParser.RULE_tableLocation); try { this.enterOuterAlt(localContext, 1); { this.state = 2437; this.match(HiveSqlParser.KW_LOCATION); this.state = 2438; localContext._locn = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameTypeList(): ColumnNameTypeListContext { let localContext = new ColumnNameTypeListContext(this.context, this.state); this.enterRule(localContext, 274, HiveSqlParser.RULE_columnNameTypeList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2440; this.columnNameType(); this.state = 2445; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2441; this.match(HiveSqlParser.COMMA); this.state = 2442; this.columnNameType(); } } this.state = 2447; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameTypeOrConstraintList(): ColumnNameTypeOrConstraintListContext { let localContext = new ColumnNameTypeOrConstraintListContext(this.context, this.state); this.enterRule(localContext, 276, HiveSqlParser.RULE_columnNameTypeOrConstraintList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2448; this.columnNameTypeOrConstraint(); this.state = 2453; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2449; this.match(HiveSqlParser.COMMA); this.state = 2450; this.columnNameTypeOrConstraint(); } } this.state = 2455; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameColonTypeList(): ColumnNameColonTypeListContext { let localContext = new ColumnNameColonTypeListContext(this.context, this.state); this.enterRule(localContext, 278, HiveSqlParser.RULE_columnNameColonTypeList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2456; this.columnNameColonType(); this.state = 2461; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2457; this.match(HiveSqlParser.COMMA); this.state = 2458; this.columnNameColonType(); } } this.state = 2463; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameList(): ColumnNameListContext { let localContext = new ColumnNameListContext(this.context, this.state); this.enterRule(localContext, 280, HiveSqlParser.RULE_columnNameList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2464; this.columnName(); this.state = 2469; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2465; this.match(HiveSqlParser.COMMA); this.state = 2466; this.columnName(); } } this.state = 2471; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnName(): ColumnNameContext { let localContext = new ColumnNameContext(this.context, this.state); this.enterRule(localContext, 282, HiveSqlParser.RULE_columnName); try { let alternative: number; this.state = 2481; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 210, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2472; this.id_(); this.state = 2477; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 209, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 2473; this.match(HiveSqlParser.DOT); this.state = 2474; this.id_(); } } } this.state = 2479; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 209, this.context); } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2480; if (!(this.shouldMatchEmpty())) { throw this.createFailedPredicateException("this.shouldMatchEmpty()"); } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameCreate(): ColumnNameCreateContext { let localContext = new ColumnNameCreateContext(this.context, this.state); this.enterRule(localContext, 284, HiveSqlParser.RULE_columnNameCreate); try { this.enterOuterAlt(localContext, 1); { this.state = 2483; this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public extColumnName(): ExtColumnNameContext { let localContext = new ExtColumnNameContext(this.context, this.state); this.enterRule(localContext, 286, HiveSqlParser.RULE_extColumnName); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2485; this.columnName(); this.state = 2495; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 394) { { { this.state = 2486; this.match(HiveSqlParser.DOT); this.state = 2491; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 211, this.context) ) { case 1: { this.state = 2487; this.match(HiveSqlParser.KW_ELEM_TYPE); } break; case 2: { this.state = 2488; this.match(HiveSqlParser.KW_KEY_TYPE); } break; case 3: { this.state = 2489; this.match(HiveSqlParser.KW_VALUE_TYPE); } break; case 4: { this.state = 2490; this.id_(); } break; } } } this.state = 2497; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameOrderList(): ColumnNameOrderListContext { let localContext = new ColumnNameOrderListContext(this.context, this.state); this.enterRule(localContext, 288, HiveSqlParser.RULE_columnNameOrderList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2498; this.columnNameOrder(); this.state = 2503; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2499; this.match(HiveSqlParser.COMMA); this.state = 2500; this.columnNameOrder(); } } this.state = 2505; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnParenthesesList(): ColumnParenthesesListContext { let localContext = new ColumnParenthesesListContext(this.context, this.state); this.enterRule(localContext, 290, HiveSqlParser.RULE_columnParenthesesList); try { this.enterOuterAlt(localContext, 1); { this.state = 2506; this.match(HiveSqlParser.LPAREN); this.state = 2507; this.columnNameList(); this.state = 2508; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public enableValidateSpecification(): EnableValidateSpecificationContext { let localContext = new EnableValidateSpecificationContext(this.context, this.state); this.enterRule(localContext, 292, HiveSqlParser.RULE_enableValidateSpecification); let _la: number; try { this.state = 2515; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: this.enterOuterAlt(localContext, 1); { this.state = 2510; this.enableSpecification(); this.state = 2512; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 216 || _la === 372) { { this.state = 2511; this.validateSpecification(); } } } break; case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_NOT: this.enterOuterAlt(localContext, 2); { this.state = 2514; this.enforcedSpecification(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public enableSpecification(): EnableSpecificationContext { let localContext = new EnableSpecificationContext(this.context, this.state); this.enterRule(localContext, 294, HiveSqlParser.RULE_enableSpecification); try { this.state = 2519; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: this.enterOuterAlt(localContext, 1); { this.state = 2517; this.enable(); } break; case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: this.enterOuterAlt(localContext, 2); { this.state = 2518; this.disable(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public validateSpecification(): ValidateSpecificationContext { let localContext = new ValidateSpecificationContext(this.context, this.state); this.enterRule(localContext, 296, HiveSqlParser.RULE_validateSpecification); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2521; _la = this.tokenStream.LA(1); if(!(_la === 216 || _la === 372)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public enforcedSpecification(): EnforcedSpecificationContext { let localContext = new EnforcedSpecificationContext(this.context, this.state); this.enterRule(localContext, 298, HiveSqlParser.RULE_enforcedSpecification); try { this.state = 2526; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ENFORCED: this.enterOuterAlt(localContext, 1); { this.state = 2523; this.match(HiveSqlParser.KW_ENFORCED); } break; case HiveSqlParser.KW_NOT: this.enterOuterAlt(localContext, 2); { this.state = 2524; this.match(HiveSqlParser.KW_NOT); this.state = 2525; this.match(HiveSqlParser.KW_ENFORCED); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public relySpecification(): RelySpecificationContext { let localContext = new RelySpecificationContext(this.context, this.state); this.enterRule(localContext, 300, HiveSqlParser.RULE_relySpecification); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2528; _la = this.tokenStream.LA(1); if(!(_la === 213 || _la === 271)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createConstraint(): CreateConstraintContext { let localContext = new CreateConstraintContext(this.context, this.state); this.enterRule(localContext, 302, HiveSqlParser.RULE_createConstraint); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2532; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 55) { { this.state = 2530; this.match(HiveSqlParser.KW_CONSTRAINT); this.state = 2531; localContext._constraintName = this.id_(); } } this.state = 2534; this.tableLevelConstraint(); this.state = 2536; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (((((_la - 94)) & ~0x1F) === 0 && ((1 << (_la - 94)) & 45059) !== 0) || _la === 215) { { this.state = 2535; this.constraintOptsCreate(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterConstraintWithName(): AlterConstraintWithNameContext { let localContext = new AlterConstraintWithNameContext(this.context, this.state); this.enterRule(localContext, 304, HiveSqlParser.RULE_alterConstraintWithName); try { this.enterOuterAlt(localContext, 1); { this.state = 2538; this.match(HiveSqlParser.KW_CONSTRAINT); this.state = 2539; localContext._constraintName = this.id_(); this.state = 2540; this.tableLevelConstraint(); this.state = 2542; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 220, this.context) ) { case 1: { this.state = 2541; this.constraintOptsAlter(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableLevelConstraint(): TableLevelConstraintContext { let localContext = new TableLevelConstraintContext(this.context, this.state); this.enterRule(localContext, 306, HiveSqlParser.RULE_tableLevelConstraint); try { this.state = 2546; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_PRIMARY: case HiveSqlParser.KW_UNIQUE: this.enterOuterAlt(localContext, 1); { this.state = 2544; this.pkUkConstraint(); } break; case HiveSqlParser.KW_CHECK: this.enterOuterAlt(localContext, 2); { this.state = 2545; this.checkConstraint(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public pkUkConstraint(): PkUkConstraintContext { let localContext = new PkUkConstraintContext(this.context, this.state); this.enterRule(localContext, 308, HiveSqlParser.RULE_pkUkConstraint); try { this.enterOuterAlt(localContext, 1); { this.state = 2548; this.tableConstraintType(); this.state = 2549; localContext._pkCols = this.columnParenthesesList(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public checkConstraint(): CheckConstraintContext { let localContext = new CheckConstraintContext(this.context, this.state); this.enterRule(localContext, 310, HiveSqlParser.RULE_checkConstraint); try { this.enterOuterAlt(localContext, 1); { this.state = 2551; this.match(HiveSqlParser.KW_CHECK); this.state = 2552; this.match(HiveSqlParser.LPAREN); this.state = 2553; this.expression(); this.state = 2554; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createForeignKey(): CreateForeignKeyContext { let localContext = new CreateForeignKeyContext(this.context, this.state); this.enterRule(localContext, 312, HiveSqlParser.RULE_createForeignKey); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2558; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 55) { { this.state = 2556; this.match(HiveSqlParser.KW_CONSTRAINT); this.state = 2557; localContext._constraintName = this.id_(); } } this.state = 2560; this.match(HiveSqlParser.KW_FOREIGN); this.state = 2561; this.match(HiveSqlParser.KW_KEY); this.state = 2562; localContext._fkCols = this.columnParenthesesList(); this.state = 2563; this.match(HiveSqlParser.KW_REFERENCES); this.state = 2564; localContext._tabName = this.tableName(); this.state = 2565; localContext._parCols = this.columnParenthesesList(); this.state = 2567; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (((((_la - 94)) & ~0x1F) === 0 && ((1 << (_la - 94)) & 45059) !== 0) || _la === 215) { { this.state = 2566; this.constraintOptsCreate(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterForeignKeyWithName(): AlterForeignKeyWithNameContext { let localContext = new AlterForeignKeyWithNameContext(this.context, this.state); this.enterRule(localContext, 314, HiveSqlParser.RULE_alterForeignKeyWithName); try { this.enterOuterAlt(localContext, 1); { this.state = 2569; this.match(HiveSqlParser.KW_CONSTRAINT); this.state = 2570; localContext._constraintName = this.id_(); this.state = 2571; this.match(HiveSqlParser.KW_FOREIGN); this.state = 2572; this.match(HiveSqlParser.KW_KEY); this.state = 2573; localContext._fkCols = this.columnParenthesesList(); this.state = 2574; this.match(HiveSqlParser.KW_REFERENCES); this.state = 2575; localContext._tabName = this.tableName(); this.state = 2576; localContext._parCols = this.columnParenthesesList(); this.state = 2578; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 224, this.context) ) { case 1: { this.state = 2577; this.constraintOptsAlter(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public skewedValueElement(): SkewedValueElementContext { let localContext = new SkewedValueElementContext(this.context, this.state); this.enterRule(localContext, 316, HiveSqlParser.RULE_skewedValueElement); try { this.state = 2582; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_CURRENT_DATE: case HiveSqlParser.KW_CURRENT_TIMESTAMP: case HiveSqlParser.KW_DATE: case HiveSqlParser.KW_FALSE: case HiveSqlParser.KW_NULL: case HiveSqlParser.KW_TIMESTAMP: case HiveSqlParser.KW_TIMESTAMPLOCALTZ: case HiveSqlParser.KW_TRUE: case HiveSqlParser.QUESTION: case HiveSqlParser.StringLiteral: case HiveSqlParser.IntegralLiteral: case HiveSqlParser.NumberLiteral: case HiveSqlParser.Number: case HiveSqlParser.CharSetName: this.enterOuterAlt(localContext, 1); { this.state = 2580; this.skewedColumnValues(); } break; case HiveSqlParser.LPAREN: this.enterOuterAlt(localContext, 2); { this.state = 2581; this.skewedColumnValuePairList(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public skewedColumnValuePairList(): SkewedColumnValuePairListContext { let localContext = new SkewedColumnValuePairListContext(this.context, this.state); this.enterRule(localContext, 318, HiveSqlParser.RULE_skewedColumnValuePairList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2584; this.skewedColumnValuePair(); this.state = 2589; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2585; this.match(HiveSqlParser.COMMA); this.state = 2586; this.skewedColumnValuePair(); } } this.state = 2591; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public skewedColumnValuePair(): SkewedColumnValuePairContext { let localContext = new SkewedColumnValuePairContext(this.context, this.state); this.enterRule(localContext, 320, HiveSqlParser.RULE_skewedColumnValuePair); try { this.enterOuterAlt(localContext, 1); { this.state = 2592; this.match(HiveSqlParser.LPAREN); this.state = 2593; localContext._colValues = this.skewedColumnValues(); this.state = 2594; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public skewedColumnValues(): SkewedColumnValuesContext { let localContext = new SkewedColumnValuesContext(this.context, this.state); this.enterRule(localContext, 322, HiveSqlParser.RULE_skewedColumnValues); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2596; this.skewedColumnValue(); this.state = 2601; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2597; this.match(HiveSqlParser.COMMA); this.state = 2598; this.skewedColumnValue(); } } this.state = 2603; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public skewedColumnValue(): SkewedColumnValueContext { let localContext = new SkewedColumnValueContext(this.context, this.state); this.enterRule(localContext, 324, HiveSqlParser.RULE_skewedColumnValue); try { this.enterOuterAlt(localContext, 1); { this.state = 2604; this.constant(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public skewedValueLocationElement(): SkewedValueLocationElementContext { let localContext = new SkewedValueLocationElementContext(this.context, this.state); this.enterRule(localContext, 326, HiveSqlParser.RULE_skewedValueLocationElement); try { this.state = 2608; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_CURRENT_DATE: case HiveSqlParser.KW_CURRENT_TIMESTAMP: case HiveSqlParser.KW_DATE: case HiveSqlParser.KW_FALSE: case HiveSqlParser.KW_NULL: case HiveSqlParser.KW_TIMESTAMP: case HiveSqlParser.KW_TIMESTAMPLOCALTZ: case HiveSqlParser.KW_TRUE: case HiveSqlParser.QUESTION: case HiveSqlParser.StringLiteral: case HiveSqlParser.IntegralLiteral: case HiveSqlParser.NumberLiteral: case HiveSqlParser.Number: case HiveSqlParser.CharSetName: this.enterOuterAlt(localContext, 1); { this.state = 2606; this.skewedColumnValue(); } break; case HiveSqlParser.LPAREN: this.enterOuterAlt(localContext, 2); { this.state = 2607; this.skewedColumnValuePair(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public orderSpecification(): OrderSpecificationContext { let localContext = new OrderSpecificationContext(this.context, this.state); this.enterRule(localContext, 328, HiveSqlParser.RULE_orderSpecification); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2610; _la = this.tokenStream.LA(1); if(!(_la === 18 || _la === 89)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public nullOrdering(): NullOrderingContext { let localContext = new NullOrderingContext(this.context, this.state); this.enterRule(localContext, 330, HiveSqlParser.RULE_nullOrdering); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2612; this.match(HiveSqlParser.KW_NULLS); this.state = 2613; _la = this.tokenStream.LA(1); if(!(_la === 130 || _la === 177)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameOrder(): ColumnNameOrderContext { let localContext = new ColumnNameOrderContext(this.context, this.state); this.enterRule(localContext, 332, HiveSqlParser.RULE_columnNameOrder); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2615; this.columnName(); this.state = 2617; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 18 || _la === 89) { { this.state = 2616; localContext._orderSpec = this.orderSpecification(); } } this.state = 2620; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 219) { { this.state = 2619; localContext._nullSpec = this.nullOrdering(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameCommentList(): ColumnNameCommentListContext { let localContext = new ColumnNameCommentListContext(this.context, this.state); this.enterRule(localContext, 334, HiveSqlParser.RULE_columnNameCommentList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2622; this.columnNameComment(); this.state = 2627; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2623; this.match(HiveSqlParser.COMMA); this.state = 2624; this.columnNameComment(); } } this.state = 2629; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameComment(): ColumnNameCommentContext { let localContext = new ColumnNameCommentContext(this.context, this.state); this.enterRule(localContext, 336, HiveSqlParser.RULE_columnNameComment); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2630; localContext._colName = this.columnNameCreate(); this.state = 2633; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 2631; this.match(HiveSqlParser.KW_COMMENT); this.state = 2632; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public orderSpecificationRewrite(): OrderSpecificationRewriteContext { let localContext = new OrderSpecificationRewriteContext(this.context, this.state); this.enterRule(localContext, 338, HiveSqlParser.RULE_orderSpecificationRewrite); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2635; _la = this.tokenStream.LA(1); if(!(_la === 18 || _la === 89)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnRefOrder(): ColumnRefOrderContext { let localContext = new ColumnRefOrderContext(this.context, this.state); this.enterRule(localContext, 340, HiveSqlParser.RULE_columnRefOrder); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2639; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 233, this.context) ) { case 1: { this.state = 2637; this.columnName(); } break; case 2: { this.state = 2638; this.expression(); } break; } this.state = 2642; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 234, this.context) ) { case 1: { this.state = 2641; localContext._orderSpec = this.orderSpecificationRewrite(); } break; } this.state = 2645; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 219) { { this.state = 2644; localContext._nullSpec = this.nullOrdering(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameType(): ColumnNameTypeContext { let localContext = new ColumnNameTypeContext(this.context, this.state); this.enterRule(localContext, 342, HiveSqlParser.RULE_columnNameType); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2647; localContext._colName = this.columnNameCreate(); this.state = 2648; this.colType(); this.state = 2651; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 2649; this.match(HiveSqlParser.KW_COMMENT); this.state = 2650; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameTypeOrConstraint(): ColumnNameTypeOrConstraintContext { let localContext = new ColumnNameTypeOrConstraintContext(this.context, this.state); this.enterRule(localContext, 344, HiveSqlParser.RULE_columnNameTypeOrConstraint); try { this.state = 2655; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 237, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2653; this.tableConstraint(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2654; this.columnNameTypeConstraint(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableConstraint(): TableConstraintContext { let localContext = new TableConstraintContext(this.context, this.state); this.enterRule(localContext, 346, HiveSqlParser.RULE_tableConstraint); try { this.state = 2659; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 238, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2657; this.createForeignKey(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2658; this.createConstraint(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameTypeConstraint(): ColumnNameTypeConstraintContext { let localContext = new ColumnNameTypeConstraintContext(this.context, this.state); this.enterRule(localContext, 348, HiveSqlParser.RULE_columnNameTypeConstraint); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2661; localContext._colName = this.columnNameCreate(); this.state = 2662; this.colType(); this.state = 2664; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 40 || _la === 55 || _la === 83 || _la === 215 || _la === 250 || _la === 268 || _la === 357) { { this.state = 2663; this.columnConstraint(); } } this.state = 2668; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 2666; this.match(HiveSqlParser.KW_COMMENT); this.state = 2667; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnConstraint(): ColumnConstraintContext { let localContext = new ColumnConstraintContext(this.context, this.state); this.enterRule(localContext, 350, HiveSqlParser.RULE_columnConstraint); try { this.state = 2672; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 241, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2670; this.foreignKeyConstraint(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2671; this.colConstraint(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public foreignKeyConstraint(): ForeignKeyConstraintContext { let localContext = new ForeignKeyConstraintContext(this.context, this.state); this.enterRule(localContext, 352, HiveSqlParser.RULE_foreignKeyConstraint); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2676; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 55) { { this.state = 2674; this.match(HiveSqlParser.KW_CONSTRAINT); this.state = 2675; localContext._constraintName = this.id_(); } } this.state = 2678; this.match(HiveSqlParser.KW_REFERENCES); this.state = 2679; localContext._tabName = this.tableName(); this.state = 2680; this.match(HiveSqlParser.LPAREN); this.state = 2681; localContext._colName = this.columnName(); this.state = 2682; this.match(HiveSqlParser.RPAREN); this.state = 2684; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (((((_la - 94)) & ~0x1F) === 0 && ((1 << (_la - 94)) & 45059) !== 0) || _la === 215) { { this.state = 2683; this.constraintOptsCreate(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public colConstraint(): ColConstraintContext { let localContext = new ColConstraintContext(this.context, this.state); this.enterRule(localContext, 354, HiveSqlParser.RULE_colConstraint); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2688; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 55) { { this.state = 2686; this.match(HiveSqlParser.KW_CONSTRAINT); this.state = 2687; localContext._constraintName = this.id_(); } } this.state = 2690; this.columnConstraintType(); this.state = 2692; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (((((_la - 94)) & ~0x1F) === 0 && ((1 << (_la - 94)) & 45059) !== 0) || _la === 215) { { this.state = 2691; this.constraintOptsCreate(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterColumnConstraint(): AlterColumnConstraintContext { let localContext = new AlterColumnConstraintContext(this.context, this.state); this.enterRule(localContext, 356, HiveSqlParser.RULE_alterColumnConstraint); try { this.state = 2696; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 246, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2694; this.alterForeignKeyConstraint(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2695; this.alterColConstraint(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterForeignKeyConstraint(): AlterForeignKeyConstraintContext { let localContext = new AlterForeignKeyConstraintContext(this.context, this.state); this.enterRule(localContext, 358, HiveSqlParser.RULE_alterForeignKeyConstraint); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2700; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 55) { { this.state = 2698; this.match(HiveSqlParser.KW_CONSTRAINT); this.state = 2699; localContext._constraintName = this.id_(); } } this.state = 2702; this.match(HiveSqlParser.KW_REFERENCES); this.state = 2703; localContext._tabName = this.tableName(); this.state = 2704; this.match(HiveSqlParser.LPAREN); this.state = 2705; localContext._colName = this.columnName(); this.state = 2706; this.match(HiveSqlParser.RPAREN); this.state = 2708; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 248, this.context) ) { case 1: { this.state = 2707; this.constraintOptsAlter(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterColConstraint(): AlterColConstraintContext { let localContext = new AlterColConstraintContext(this.context, this.state); this.enterRule(localContext, 360, HiveSqlParser.RULE_alterColConstraint); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2712; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 55) { { this.state = 2710; this.match(HiveSqlParser.KW_CONSTRAINT); this.state = 2711; localContext._constraintName = this.id_(); } } this.state = 2714; this.columnConstraintType(); this.state = 2716; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 250, this.context) ) { case 1: { this.state = 2715; this.constraintOptsAlter(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnConstraintType(): ColumnConstraintTypeContext { let localContext = new ColumnConstraintTypeContext(this.context, this.state); this.enterRule(localContext, 362, HiveSqlParser.RULE_columnConstraintType); try { this.state = 2724; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_NOT: this.enterOuterAlt(localContext, 1); { this.state = 2718; this.match(HiveSqlParser.KW_NOT); this.state = 2719; this.match(HiveSqlParser.KW_NULL); } break; case HiveSqlParser.KW_DEFAULT: this.enterOuterAlt(localContext, 2); { this.state = 2720; this.match(HiveSqlParser.KW_DEFAULT); this.state = 2721; this.defaultVal(); } break; case HiveSqlParser.KW_CHECK: this.enterOuterAlt(localContext, 3); { this.state = 2722; this.checkConstraint(); } break; case HiveSqlParser.KW_PRIMARY: case HiveSqlParser.KW_UNIQUE: this.enterOuterAlt(localContext, 4); { this.state = 2723; this.tableConstraintType(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public defaultVal(): DefaultValContext { let localContext = new DefaultValContext(this.context, this.state); this.enterRule(localContext, 364, HiveSqlParser.RULE_defaultVal); try { this.state = 2729; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 252, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2726; this.constant(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2727; this.function_(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 2728; this.castExpression(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableConstraintType(): TableConstraintTypeContext { let localContext = new TableConstraintTypeContext(this.context, this.state); this.enterRule(localContext, 366, HiveSqlParser.RULE_tableConstraintType); try { this.state = 2734; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_PRIMARY: this.enterOuterAlt(localContext, 1); { this.state = 2731; this.match(HiveSqlParser.KW_PRIMARY); this.state = 2732; this.match(HiveSqlParser.KW_KEY); } break; case HiveSqlParser.KW_UNIQUE: this.enterOuterAlt(localContext, 2); { this.state = 2733; this.match(HiveSqlParser.KW_UNIQUE); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public constraintOptsCreate(): ConstraintOptsCreateContext { let localContext = new ConstraintOptsCreateContext(this.context, this.state); this.enterRule(localContext, 368, HiveSqlParser.RULE_constraintOptsCreate); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2736; this.enableValidateSpecification(); this.state = 2738; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 213 || _la === 271) { { this.state = 2737; this.relySpecification(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public constraintOptsAlter(): ConstraintOptsAlterContext { let localContext = new ConstraintOptsAlterContext(this.context, this.state); this.enterRule(localContext, 370, HiveSqlParser.RULE_constraintOptsAlter); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2740; this.enableValidateSpecification(); this.state = 2742; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 213 || _la === 271) { { this.state = 2741; this.relySpecification(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnNameColonType(): ColumnNameColonTypeContext { let localContext = new ColumnNameColonTypeContext(this.context, this.state); this.enterRule(localContext, 372, HiveSqlParser.RULE_columnNameColonType); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2744; localContext._colName = this.columnNameCreate(); this.state = 2745; this.match(HiveSqlParser.COLON); this.state = 2746; this.colType(); this.state = 2749; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 2747; this.match(HiveSqlParser.KW_COMMENT); this.state = 2748; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public colType(): ColTypeContext { let localContext = new ColTypeContext(this.context, this.state); this.enterRule(localContext, 374, HiveSqlParser.RULE_colType); try { this.enterOuterAlt(localContext, 1); { this.state = 2751; this.type_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public colTypeList(): ColTypeListContext { let localContext = new ColTypeListContext(this.context, this.state); this.enterRule(localContext, 376, HiveSqlParser.RULE_colTypeList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2753; this.colType(); this.state = 2758; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2754; this.match(HiveSqlParser.COMMA); this.state = 2755; this.colType(); } } this.state = 2760; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public type_(): TypeContext { let localContext = new TypeContext(this.context, this.state); this.enterRule(localContext, 378, HiveSqlParser.RULE_type); try { this.state = 2766; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_BIGINT: case HiveSqlParser.KW_BINARY: case HiveSqlParser.KW_BOOLEAN: case HiveSqlParser.KW_CHAR: case HiveSqlParser.KW_DATE: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DEC: case HiveSqlParser.KW_DECIMAL: case HiveSqlParser.KW_NUMERIC: case HiveSqlParser.KW_DOUBLE: case HiveSqlParser.KW_FLOAT: case HiveSqlParser.KW_INT: case HiveSqlParser.KW_INTEGER: case HiveSqlParser.KW_REAL: case HiveSqlParser.KW_SMALLINT: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_TIMESTAMP: case HiveSqlParser.KW_TIMESTAMPLOCALTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_VARCHAR: this.enterOuterAlt(localContext, 1); { this.state = 2761; this.primitiveType(); } break; case HiveSqlParser.KW_ARRAY: this.enterOuterAlt(localContext, 2); { this.state = 2762; this.listType(); } break; case HiveSqlParser.KW_STRUCT: this.enterOuterAlt(localContext, 3); { this.state = 2763; this.structType(); } break; case HiveSqlParser.KW_MAP: this.enterOuterAlt(localContext, 4); { this.state = 2764; this.mapType(); } break; case HiveSqlParser.KW_UNIONTYPE: this.enterOuterAlt(localContext, 5); { this.state = 2765; this.unionType(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public primitiveType(): PrimitiveTypeContext { let localContext = new PrimitiveTypeContext(this.context, this.state); this.enterRule(localContext, 380, HiveSqlParser.RULE_primitiveType); let _la: number; try { this.state = 2805; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 262, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 2768; this.match(HiveSqlParser.KW_TINYINT); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 2769; this.match(HiveSqlParser.KW_SMALLINT); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 2770; this.match(HiveSqlParser.KW_INT); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 2771; this.match(HiveSqlParser.KW_INTEGER); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 2772; this.match(HiveSqlParser.KW_BIGINT); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 2773; this.match(HiveSqlParser.KW_BOOLEAN); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 2774; this.match(HiveSqlParser.KW_FLOAT); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 2775; this.match(HiveSqlParser.KW_REAL); } break; case 9: this.enterOuterAlt(localContext, 9); { this.state = 2776; this.match(HiveSqlParser.KW_DOUBLE); this.state = 2778; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 247) { { this.state = 2777; this.match(HiveSqlParser.KW_PRECISION); } } } break; case 10: this.enterOuterAlt(localContext, 10); { this.state = 2780; this.match(HiveSqlParser.KW_DATE); } break; case 11: this.enterOuterAlt(localContext, 11); { this.state = 2781; this.match(HiveSqlParser.KW_DATETIME); } break; case 12: this.enterOuterAlt(localContext, 12); { this.state = 2782; this.match(HiveSqlParser.KW_TIMESTAMP); } break; case 13: this.enterOuterAlt(localContext, 13); { this.state = 2783; this.match(HiveSqlParser.KW_TIMESTAMPLOCALTZ); } break; case 14: this.enterOuterAlt(localContext, 14); { this.state = 2784; this.match(HiveSqlParser.KW_TIMESTAMP); this.state = 2785; this.match(HiveSqlParser.KW_WITH); this.state = 2786; this.match(HiveSqlParser.KW_LOCAL); this.state = 2787; this.match(HiveSqlParser.KW_TIME); this.state = 2788; this.match(HiveSqlParser.KW_ZONE); } break; case 15: this.enterOuterAlt(localContext, 15); { this.state = 2789; this.match(HiveSqlParser.KW_STRING); } break; case 16: this.enterOuterAlt(localContext, 16); { this.state = 2790; this.match(HiveSqlParser.KW_BINARY); } break; case 17: this.enterOuterAlt(localContext, 17); { this.state = 2791; this.decimal(); this.state = 2799; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 261, this.context) ) { case 1: { this.state = 2792; this.match(HiveSqlParser.LPAREN); this.state = 2793; localContext._prec = this.match(HiveSqlParser.Number); this.state = 2796; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 396) { { this.state = 2794; this.match(HiveSqlParser.COMMA); this.state = 2795; localContext._scale = this.match(HiveSqlParser.Number); } } this.state = 2798; this.match(HiveSqlParser.RPAREN); } break; } } break; case 18: this.enterOuterAlt(localContext, 18); { this.state = 2801; _la = this.tokenStream.LA(1); if(!(_la === 39 || _la === 375)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 2802; this.match(HiveSqlParser.LPAREN); this.state = 2803; localContext._length = this.match(HiveSqlParser.Number); this.state = 2804; this.match(HiveSqlParser.RPAREN); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public listType(): ListTypeContext { let localContext = new ListTypeContext(this.context, this.state); this.enterRule(localContext, 382, HiveSqlParser.RULE_listType); try { this.enterOuterAlt(localContext, 1); { this.state = 2807; this.match(HiveSqlParser.KW_ARRAY); this.state = 2808; this.match(HiveSqlParser.LESSTHAN); this.state = 2809; this.type_(); this.state = 2810; this.match(HiveSqlParser.GREATERTHAN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public structType(): StructTypeContext { let localContext = new StructTypeContext(this.context, this.state); this.enterRule(localContext, 384, HiveSqlParser.RULE_structType); try { this.enterOuterAlt(localContext, 1); { this.state = 2812; this.match(HiveSqlParser.KW_STRUCT); this.state = 2813; this.match(HiveSqlParser.LESSTHAN); this.state = 2814; this.columnNameColonTypeList(); this.state = 2815; this.match(HiveSqlParser.GREATERTHAN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public mapType(): MapTypeContext { let localContext = new MapTypeContext(this.context, this.state); this.enterRule(localContext, 386, HiveSqlParser.RULE_mapType); try { this.enterOuterAlt(localContext, 1); { this.state = 2817; this.match(HiveSqlParser.KW_MAP); this.state = 2818; this.match(HiveSqlParser.LESSTHAN); this.state = 2819; localContext._left = this.primitiveType(); this.state = 2820; this.match(HiveSqlParser.COMMA); this.state = 2821; localContext._right = this.type_(); this.state = 2822; this.match(HiveSqlParser.GREATERTHAN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public unionType(): UnionTypeContext { let localContext = new UnionTypeContext(this.context, this.state); this.enterRule(localContext, 388, HiveSqlParser.RULE_unionType); try { this.enterOuterAlt(localContext, 1); { this.state = 2824; this.match(HiveSqlParser.KW_UNIONTYPE); this.state = 2825; this.match(HiveSqlParser.LESSTHAN); this.state = 2826; this.colTypeList(); this.state = 2827; this.match(HiveSqlParser.GREATERTHAN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public setOperator(): SetOperatorContext { let localContext = new SetOperatorContext(this.context, this.state); this.enterRule(localContext, 390, HiveSqlParser.RULE_setOperator); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2829; _la = this.tokenStream.LA(1); if(!(_la === 112 || _la === 164 || _la === 204 || _la === 355)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 2831; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 7 || _la === 96) { { this.state = 2830; _la = this.tokenStream.LA(1); if(!(_la === 7 || _la === 96)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public queryStatementExpression(): QueryStatementExpressionContext { let localContext = new QueryStatementExpressionContext(this.context, this.state); this.enterRule(localContext, 392, HiveSqlParser.RULE_queryStatementExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2834; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 386) { { this.state = 2833; localContext._w = this.withClause(); } } this.state = 2836; this.queryStatementExpressionBody(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public queryStatementExpressionBody(): QueryStatementExpressionBodyContext { let localContext = new QueryStatementExpressionBodyContext(this.context, this.state); this.enterRule(localContext, 394, HiveSqlParser.RULE_queryStatementExpressionBody); try { this.state = 2840; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_FROM: this.enterOuterAlt(localContext, 1); { this.state = 2838; this.fromStatement(); } break; case HiveSqlParser.KW_INSERT: case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_SELECT: case HiveSqlParser.KW_VALUES: case HiveSqlParser.LPAREN: this.enterOuterAlt(localContext, 2); { this.state = 2839; this.regularBody(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public withClause(): WithClauseContext { let localContext = new WithClauseContext(this.context, this.state); this.enterRule(localContext, 396, HiveSqlParser.RULE_withClause); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2842; this.match(HiveSqlParser.KW_WITH); this.state = 2843; this.cteStatement(); this.state = 2848; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 2844; this.match(HiveSqlParser.COMMA); this.state = 2845; this.cteStatement(); } } this.state = 2850; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public cteStatement(): CteStatementContext { let localContext = new CteStatementContext(this.context, this.state); this.enterRule(localContext, 398, HiveSqlParser.RULE_cteStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2851; this.id_(); this.state = 2856; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 398) { { this.state = 2852; this.match(HiveSqlParser.LPAREN); this.state = 2853; localContext._colAliases = this.columnNameList(); this.state = 2854; this.match(HiveSqlParser.RPAREN); } } this.state = 2858; this.match(HiveSqlParser.KW_AS); this.state = 2859; this.match(HiveSqlParser.LPAREN); this.state = 2860; this.queryStatementExpression(); this.state = 2861; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public fromStatement(): FromStatementContext { let localContext = new FromStatementContext(this.context, this.state); this.enterRule(localContext, 400, HiveSqlParser.RULE_fromStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2863; this.singleFromStatement(); this.state = 2869; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 112 || _la === 164 || _la === 204 || _la === 355) { { { this.state = 2864; localContext._u = this.setOperator(); this.state = 2865; localContext._r = this.singleFromStatement(); } } this.state = 2871; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public singleFromStatement(): SingleFromStatementContext { let localContext = new SingleFromStatementContext(this.context, this.state); this.enterRule(localContext, 402, HiveSqlParser.RULE_singleFromStatement); let _la: number; try { this.state = 2943; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 291, this.context) ) { case 1: localContext = new FromInsertStmtContext(localContext); this.enterOuterAlt(localContext, 1); { this.state = 2872; this.fromClause(); this.state = 2873; this.insertClause(); this.state = 2874; this.selectClause(); this.state = 2876; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 178 || _la === 396) { { this.state = 2875; this.lateralView(); } } this.state = 2879; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 383) { { this.state = 2878; this.whereClause(); } } this.state = 2882; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 144) { { this.state = 2881; this.groupByClause(); } } this.state = 2885; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 146) { { this.state = 2884; this.havingClause(); } } this.state = 2888; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 385) { { this.state = 2887; this.window_clause(); } } this.state = 2891; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 255) { { this.state = 2890; this.qualifyClause(); } } this.state = 2894; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 228) { { this.state = 2893; this.orderByClause(); } } this.state = 2897; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 41) { { this.state = 2896; this.clusterByClause(); } } this.state = 2900; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 97) { { this.state = 2899; this.distributeByClause(); } } this.state = 2903; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 313) { { this.state = 2902; this.sortByClause(); } } this.state = 2906; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 184) { { this.state = 2905; this.limitClause(); } } } break; case 2: localContext = new FromSelectStmtContext(localContext); this.enterOuterAlt(localContext, 2); { this.state = 2908; this.fromClause(); this.state = 2909; this.selectClause(); this.state = 2911; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 178 || _la === 396) { { this.state = 2910; this.lateralView(); } } this.state = 2914; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 383) { { this.state = 2913; this.whereClause(); } } this.state = 2917; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 144) { { this.state = 2916; this.groupByClause(); } } this.state = 2920; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 146) { { this.state = 2919; this.havingClause(); } } this.state = 2923; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 385) { { this.state = 2922; this.window_clause(); } } this.state = 2926; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 255) { { this.state = 2925; this.qualifyClause(); } } this.state = 2929; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 228) { { this.state = 2928; this.orderByClause(); } } this.state = 2932; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 41) { { this.state = 2931; this.clusterByClause(); } } this.state = 2935; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 97) { { this.state = 2934; this.distributeByClause(); } } this.state = 2938; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 313) { { this.state = 2937; this.sortByClause(); } } this.state = 2941; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 184) { { this.state = 2940; this.limitClause(); } } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public regularBody(): RegularBodyContext { let localContext = new RegularBodyContext(this.context, this.state); this.enterRule(localContext, 404, HiveSqlParser.RULE_regularBody); try { this.state = 2949; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_INSERT: localContext = new InsertStmtContext(localContext); this.enterOuterAlt(localContext, 1); { this.state = 2945; (localContext as InsertStmtContext)._i = this.insertClause(); this.state = 2946; (localContext as InsertStmtContext)._s = this.selectStatement(); } break; case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_SELECT: case HiveSqlParser.KW_VALUES: case HiveSqlParser.LPAREN: localContext = new SelectStmtContext(localContext); this.enterOuterAlt(localContext, 2); { this.state = 2948; this.selectStatement(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public atomSelectStatement(): AtomSelectStatementContext { let localContext = new AtomSelectStatementContext(this.context, this.state); this.enterRule(localContext, 406, HiveSqlParser.RULE_atomSelectStatement); let _la: number; try { this.state = 2975; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_SELECT: this.enterOuterAlt(localContext, 1); { this.state = 2951; localContext._s = this.selectClause(); this.state = 2953; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 293, this.context) ) { case 1: { this.state = 2952; localContext._f = this.fromClause(); } break; } this.state = 2956; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 383) { { this.state = 2955; localContext._w = this.whereClause(); } } this.state = 2959; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 144) { { this.state = 2958; localContext._g = this.groupByClause(); } } this.state = 2962; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 146) { { this.state = 2961; localContext._h = this.havingClause(); } } this.state = 2965; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 385) { { this.state = 2964; localContext._win = this.window_clause(); } } this.state = 2968; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 255) { { this.state = 2967; localContext._q = this.qualifyClause(); } } } break; case HiveSqlParser.LPAREN: this.enterOuterAlt(localContext, 2); { this.state = 2970; this.match(HiveSqlParser.LPAREN); this.state = 2971; this.selectStatement(); this.state = 2972; this.match(HiveSqlParser.RPAREN); } break; case HiveSqlParser.KW_VALUES: this.enterOuterAlt(localContext, 3); { this.state = 2974; this.valuesSource(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public selectStatement(): SelectStatementContext { let localContext = new SelectStatementContext(this.context, this.state); this.enterRule(localContext, 408, HiveSqlParser.RULE_selectStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2977; localContext._a = this.atomSelectStatement(); this.state = 2979; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 112 || _la === 164 || _la === 204 || _la === 355) { { this.state = 2978; localContext._set_ = this.setOpSelectStatement(); } } this.state = 2982; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 228) { { this.state = 2981; localContext._o = this.orderByClause(); } } this.state = 2985; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 41) { { this.state = 2984; localContext._c = this.clusterByClause(); } } this.state = 2988; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 97) { { this.state = 2987; localContext._d = this.distributeByClause(); } } this.state = 2991; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 313) { { this.state = 2990; localContext._sort = this.sortByClause(); } } this.state = 2994; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 184) { { this.state = 2993; localContext._l = this.limitClause(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public setOpSelectStatement(): SetOpSelectStatementContext { let localContext = new SetOpSelectStatementContext(this.context, this.state); this.enterRule(localContext, 410, HiveSqlParser.RULE_setOpSelectStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 2999; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 2996; localContext._u = this.setOperator(); this.state = 2997; localContext._b = this.atomSelectStatement(); } } this.state = 3001; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 112 || _la === 164 || _la === 204 || _la === 355); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public selectStatementWithCTE(): SelectStatementWithCTEContext { let localContext = new SelectStatementWithCTEContext(this.context, this.state); this.enterRule(localContext, 412, HiveSqlParser.RULE_selectStatementWithCTE); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3004; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 386) { { this.state = 3003; localContext._w = this.withClause(); } } this.state = 3006; this.selectStatement(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public insertClause(): InsertClauseContext { let localContext = new InsertClauseContext(this.context, this.state); this.enterRule(localContext, 414, HiveSqlParser.RULE_insertClause); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3008; this.match(HiveSqlParser.KW_INSERT); this.state = 3025; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_OVERWRITE: { this.state = 3009; this.match(HiveSqlParser.KW_OVERWRITE); this.state = 3010; this.destination(); this.state = 3012; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 3011; this.ifNotExists(); } } } break; case HiveSqlParser.KW_INTO: { this.state = 3014; this.match(HiveSqlParser.KW_INTO); this.state = 3016; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 328) { { this.state = 3015; this.match(HiveSqlParser.KW_TABLE); } } this.state = 3018; this.tableOrPartition(); this.state = 3023; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 310, this.context) ) { case 1: { this.state = 3019; this.match(HiveSqlParser.LPAREN); this.state = 3020; localContext._targetCols = this.columnNameList(); this.state = 3021; this.match(HiveSqlParser.RPAREN); } break; } } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public destination(): DestinationContext { let localContext = new DestinationContext(this.context, this.state); this.enterRule(localContext, 416, HiveSqlParser.RULE_destination); let _la: number; try { this.state = 3040; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_LOCAL: this.enterOuterAlt(localContext, 1); { this.state = 3028; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 187) { { this.state = 3027; localContext._local = this.match(HiveSqlParser.KW_LOCAL); } } this.state = 3030; this.match(HiveSqlParser.KW_DIRECTORY); this.state = 3031; this.match(HiveSqlParser.StringLiteral); this.state = 3033; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 290) { { this.state = 3032; this.tableRowFormat(); } } this.state = 3036; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 320) { { this.state = 3035; this.tableFileFormat(); } } } break; case HiveSqlParser.KW_TABLE: this.enterOuterAlt(localContext, 2); { this.state = 3038; this.match(HiveSqlParser.KW_TABLE); this.state = 3039; this.tableOrPartition(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public limitClause(): LimitClauseContext { let localContext = new LimitClauseContext(this.context, this.state); this.enterRule(localContext, 418, HiveSqlParser.RULE_limitClause); try { this.enterOuterAlt(localContext, 1); { this.state = 3042; this.match(HiveSqlParser.KW_LIMIT); this.state = 3051; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 317, this.context) ) { case 1: { this.state = 3045; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 316, this.context) ) { case 1: { this.state = 3043; localContext._offset = this.match(HiveSqlParser.Number); this.state = 3044; this.match(HiveSqlParser.COMMA); } break; } this.state = 3047; localContext._num = this.match(HiveSqlParser.Number); } break; case 2: { this.state = 3048; localContext._num = this.match(HiveSqlParser.Number); this.state = 3049; this.match(HiveSqlParser.KW_OFFSET); this.state = 3050; localContext._offset = this.match(HiveSqlParser.Number); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public deleteStatement(): DeleteStatementContext { let localContext = new DeleteStatementContext(this.context, this.state); this.enterRule(localContext, 420, HiveSqlParser.RULE_deleteStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3053; this.match(HiveSqlParser.KW_DELETE); this.state = 3054; this.match(HiveSqlParser.KW_FROM); this.state = 3055; this.tableName(); this.state = 3057; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 383) { { this.state = 3056; this.whereClause(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnAssignmentClause(): ColumnAssignmentClauseContext { let localContext = new ColumnAssignmentClauseContext(this.context, this.state); this.enterRule(localContext, 422, HiveSqlParser.RULE_columnAssignmentClause); try { this.enterOuterAlt(localContext, 1); { this.state = 3059; this.columnName(); this.state = 3060; this.match(HiveSqlParser.EQUAL); this.state = 3061; this.precedencePlusExpressionOrDefault(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedencePlusExpressionOrDefault(): PrecedencePlusExpressionOrDefaultContext { let localContext = new PrecedencePlusExpressionOrDefaultContext(this.context, this.state); this.enterRule(localContext, 424, HiveSqlParser.RULE_precedencePlusExpressionOrDefault); try { this.state = 3065; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 319, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3063; this.defaultValue(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3064; this.precedencePlusExpression(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public setColumnsClause(): SetColumnsClauseContext { let localContext = new SetColumnsClauseContext(this.context, this.state); this.enterRule(localContext, 426, HiveSqlParser.RULE_setColumnsClause); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3067; this.match(HiveSqlParser.KW_SET); this.state = 3068; this.columnAssignmentClause(); this.state = 3073; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 3069; this.match(HiveSqlParser.COMMA); this.state = 3070; this.columnAssignmentClause(); } } this.state = 3075; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public updateStatement(): UpdateStatementContext { let localContext = new UpdateStatementContext(this.context, this.state); this.enterRule(localContext, 428, HiveSqlParser.RULE_updateStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3076; this.match(HiveSqlParser.KW_UPDATE); this.state = 3077; this.tableName(); this.state = 3078; this.setColumnsClause(); this.state = 3080; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 383) { { this.state = 3079; this.whereClause(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public sqlTransactionStatement(): SqlTransactionStatementContext { let localContext = new SqlTransactionStatementContext(this.context, this.state); this.enterRule(localContext, 430, HiveSqlParser.RULE_sqlTransactionStatement); try { this.state = 3086; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_START: this.enterOuterAlt(localContext, 1); { this.state = 3082; this.startTransactionStatement(); } break; case HiveSqlParser.KW_COMMIT: this.enterOuterAlt(localContext, 2); { this.state = 3083; this.commitStatement(); } break; case HiveSqlParser.KW_ROLLBACK: this.enterOuterAlt(localContext, 3); { this.state = 3084; this.rollbackStatement(); } break; case HiveSqlParser.KW_SET: this.enterOuterAlt(localContext, 4); { this.state = 3085; this.setAutoCommitStatement(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public startTransactionStatement(): StartTransactionStatementContext { let localContext = new StartTransactionStatementContext(this.context, this.state); this.enterRule(localContext, 432, HiveSqlParser.RULE_startTransactionStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3088; this.match(HiveSqlParser.KW_START); this.state = 3089; this.match(HiveSqlParser.KW_TRANSACTION); this.state = 3098; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 168 || _la === 260) { { this.state = 3090; this.transactionMode(); this.state = 3095; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 3091; this.match(HiveSqlParser.COMMA); this.state = 3092; this.transactionMode(); } } this.state = 3097; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public transactionMode(): TransactionModeContext { let localContext = new TransactionModeContext(this.context, this.state); this.enterRule(localContext, 434, HiveSqlParser.RULE_transactionMode); try { this.state = 3102; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ISOLATION: this.enterOuterAlt(localContext, 1); { this.state = 3100; this.isolationLevel(); } break; case HiveSqlParser.KW_READ: this.enterOuterAlt(localContext, 2); { this.state = 3101; this.transactionAccessMode(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public transactionAccessMode(): TransactionAccessModeContext { let localContext = new TransactionAccessModeContext(this.context, this.state); this.enterRule(localContext, 436, HiveSqlParser.RULE_transactionAccessMode); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3104; this.match(HiveSqlParser.KW_READ); this.state = 3105; _la = this.tokenStream.LA(1); if(!(_la === 224 || _la === 390)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public isolationLevel(): IsolationLevelContext { let localContext = new IsolationLevelContext(this.context, this.state); this.enterRule(localContext, 438, HiveSqlParser.RULE_isolationLevel); try { this.enterOuterAlt(localContext, 1); { this.state = 3107; this.match(HiveSqlParser.KW_ISOLATION); this.state = 3108; this.match(HiveSqlParser.KW_LEVEL); this.state = 3109; this.levelOfIsolation(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public levelOfIsolation(): LevelOfIsolationContext { let localContext = new LevelOfIsolationContext(this.context, this.state); this.enterRule(localContext, 440, HiveSqlParser.RULE_levelOfIsolation); try { this.enterOuterAlt(localContext, 1); { this.state = 3111; this.match(HiveSqlParser.KW_SNAPSHOT); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public commitStatement(): CommitStatementContext { let localContext = new CommitStatementContext(this.context, this.state); this.enterRule(localContext, 442, HiveSqlParser.RULE_commitStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3113; this.match(HiveSqlParser.KW_COMMIT); this.state = 3115; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 388) { { this.state = 3114; this.match(HiveSqlParser.KW_WORK); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rollbackStatement(): RollbackStatementContext { let localContext = new RollbackStatementContext(this.context, this.state); this.enterRule(localContext, 444, HiveSqlParser.RULE_rollbackStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3117; this.match(HiveSqlParser.KW_ROLLBACK); this.state = 3119; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 388) { { this.state = 3118; this.match(HiveSqlParser.KW_WORK); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public setAutoCommitStatement(): SetAutoCommitStatementContext { let localContext = new SetAutoCommitStatementContext(this.context, this.state); this.enterRule(localContext, 446, HiveSqlParser.RULE_setAutoCommitStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 3121; this.match(HiveSqlParser.KW_SET); this.state = 3122; this.match(HiveSqlParser.KW_AUTOCOMMIT); this.state = 3123; this.booleanValueTok(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public abortTransactionStatement(): AbortTransactionStatementContext { let localContext = new AbortTransactionStatementContext(this.context, this.state); this.enterRule(localContext, 448, HiveSqlParser.RULE_abortTransactionStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3125; this.match(HiveSqlParser.KW_ABORT); this.state = 3126; this.match(HiveSqlParser.KW_TRANSACTIONS); this.state = 3128; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 3127; this.match(HiveSqlParser.Number); } } this.state = 3130; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 430); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public abortCompactionStatement(): AbortCompactionStatementContext { let localContext = new AbortCompactionStatementContext(this.context, this.state); this.enterRule(localContext, 450, HiveSqlParser.RULE_abortCompactionStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3132; this.match(HiveSqlParser.KW_ABORT); this.state = 3133; this.match(HiveSqlParser.KW_COMPACTIONS); this.state = 3135; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 3134; this.match(HiveSqlParser.Number); } } this.state = 3137; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 430); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public mergeStatement(): MergeStatementContext { let localContext = new MergeStatementContext(this.context, this.state); this.enterRule(localContext, 452, HiveSqlParser.RULE_mergeStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3139; this.match(HiveSqlParser.KW_MERGE); this.state = 3141; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 435) { { this.state = 3140; this.match(HiveSqlParser.QUERY_HINT); } } this.state = 3143; this.match(HiveSqlParser.KW_INTO); this.state = 3144; this.tableName(); this.state = 3149; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3252585854) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 94072755) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 3203280837) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 3774298979) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 1985876353) !== 0) || ((((_la - 168)) & ~0x1F) === 0 && ((1 << (_la - 168)) & 3723969527) !== 0) || ((((_la - 200)) & ~0x1F) === 0 && ((1 << (_la - 200)) & 2255187435) !== 0) || ((((_la - 232)) & ~0x1F) === 0 && ((1 << (_la - 232)) & 929578221) !== 0) || ((((_la - 264)) & ~0x1F) === 0 && ((1 << (_la - 264)) & 4039901127) !== 0) || ((((_la - 296)) & ~0x1F) === 0 && ((1 << (_la - 296)) & 3755917179) !== 0) || ((((_la - 329)) & ~0x1F) === 0 && ((1 << (_la - 329)) & 3402225181) !== 0) || ((((_la - 361)) & ~0x1F) === 0 && ((1 << (_la - 361)) & 4238323319) !== 0) || _la === 393 || _la === 431) { { this.state = 3146; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 3145; this.match(HiveSqlParser.KW_AS); } } this.state = 3148; this.id_(); } } this.state = 3151; this.match(HiveSqlParser.KW_USING); this.state = 3152; this.joinSourcePart(); this.state = 3153; this.match(HiveSqlParser.KW_ON); this.state = 3154; this.expression(); this.state = 3155; this.whenClauses(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public whenClauses(): WhenClausesContext { let localContext = new WhenClausesContext(this.context, this.state); this.enterRule(localContext, 454, HiveSqlParser.RULE_whenClauses); let _la: number; try { let alternative: number; this.enterOuterAlt(localContext, 1); { this.state = 3161; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 334, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { this.state = 3159; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 333, this.context) ) { case 1: { this.state = 3157; this.whenMatchedAndClause(); } break; case 2: { this.state = 3158; this.whenMatchedThenClause(); } break; } } } this.state = 3163; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 334, this.context); } this.state = 3165; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 382) { { this.state = 3164; this.whenNotMatchedClause(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public whenNotMatchedClause(): WhenNotMatchedClauseContext { let localContext = new WhenNotMatchedClauseContext(this.context, this.state); this.enterRule(localContext, 456, HiveSqlParser.RULE_whenNotMatchedClause); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3167; this.match(HiveSqlParser.KW_WHEN); this.state = 3168; this.match(HiveSqlParser.KW_NOT); this.state = 3169; this.match(HiveSqlParser.KW_MATCHED); this.state = 3172; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 11) { { this.state = 3170; this.match(HiveSqlParser.KW_AND); this.state = 3171; this.expression(); } } this.state = 3174; this.match(HiveSqlParser.KW_THEN); this.state = 3175; this.match(HiveSqlParser.KW_INSERT); this.state = 3177; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 398) { { this.state = 3176; localContext._targetCols = this.columnParenthesesList(); } } this.state = 3179; this.match(HiveSqlParser.KW_VALUES); this.state = 3180; this.valueRowConstructor(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public whenMatchedAndClause(): WhenMatchedAndClauseContext { let localContext = new WhenMatchedAndClauseContext(this.context, this.state); this.enterRule(localContext, 458, HiveSqlParser.RULE_whenMatchedAndClause); try { this.enterOuterAlt(localContext, 1); { this.state = 3182; this.match(HiveSqlParser.KW_WHEN); this.state = 3183; this.match(HiveSqlParser.KW_MATCHED); this.state = 3184; this.match(HiveSqlParser.KW_AND); this.state = 3185; this.expression(); this.state = 3186; this.match(HiveSqlParser.KW_THEN); this.state = 3187; this.updateOrDelete(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public whenMatchedThenClause(): WhenMatchedThenClauseContext { let localContext = new WhenMatchedThenClauseContext(this.context, this.state); this.enterRule(localContext, 460, HiveSqlParser.RULE_whenMatchedThenClause); try { this.enterOuterAlt(localContext, 1); { this.state = 3189; this.match(HiveSqlParser.KW_WHEN); this.state = 3190; this.match(HiveSqlParser.KW_MATCHED); this.state = 3191; this.match(HiveSqlParser.KW_THEN); this.state = 3192; this.updateOrDelete(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public updateOrDelete(): UpdateOrDeleteContext { let localContext = new UpdateOrDeleteContext(this.context, this.state); this.enterRule(localContext, 462, HiveSqlParser.RULE_updateOrDelete); try { this.state = 3197; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_UPDATE: this.enterOuterAlt(localContext, 1); { this.state = 3194; this.match(HiveSqlParser.KW_UPDATE); this.state = 3195; this.setColumnsClause(); } break; case HiveSqlParser.KW_DELETE: this.enterOuterAlt(localContext, 2); { this.state = 3196; this.match(HiveSqlParser.KW_DELETE); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public killQueryStatement(): KillQueryStatementContext { let localContext = new KillQueryStatementContext(this.context, this.state); this.enterRule(localContext, 464, HiveSqlParser.RULE_killQueryStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3199; this.match(HiveSqlParser.KW_KILL); this.state = 3200; this.match(HiveSqlParser.KW_QUERY); this.state = 3202; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 3201; this.match(HiveSqlParser.StringLiteral); } } this.state = 3204; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 425); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public compactionId(): CompactionIdContext { let localContext = new CompactionIdContext(this.context, this.state); this.enterRule(localContext, 466, HiveSqlParser.RULE_compactionId); try { this.enterOuterAlt(localContext, 1); { this.state = 3206; this.match(HiveSqlParser.KW_COMPACT_ID); this.state = 3207; this.match(HiveSqlParser.EQUAL); this.state = 3208; localContext._compactId = this.match(HiveSqlParser.Number); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public compactionPool(): CompactionPoolContext { let localContext = new CompactionPoolContext(this.context, this.state); this.enterRule(localContext, 468, HiveSqlParser.RULE_compactionPool); try { this.enterOuterAlt(localContext, 1); { this.state = 3210; this.match(HiveSqlParser.KW_POOL); this.state = 3211; localContext._poolName = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public compactionType(): CompactionTypeContext { let localContext = new CompactionTypeContext(this.context, this.state); this.enterRule(localContext, 470, HiveSqlParser.RULE_compactionType); try { this.enterOuterAlt(localContext, 1); { this.state = 3213; this.match(HiveSqlParser.KW_TYPE); this.state = 3214; localContext._compactType = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public compactionStatus(): CompactionStatusContext { let localContext = new CompactionStatusContext(this.context, this.state); this.enterRule(localContext, 472, HiveSqlParser.RULE_compactionStatus); try { this.enterOuterAlt(localContext, 1); { this.state = 3216; this.match(HiveSqlParser.KW_STATUS); this.state = 3217; localContext._status = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatement(): AlterStatementContext { let localContext = new AlterStatementContext(this.context, this.state); this.enterRule(localContext, 474, HiveSqlParser.RULE_alterStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3219; this.match(HiveSqlParser.KW_ALTER); this.state = 3243; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_TABLE: { this.state = 3220; this.match(HiveSqlParser.KW_TABLE); this.state = 3221; this.tableName(); this.state = 3222; this.alterTableStatementSuffix(); } break; case HiveSqlParser.KW_VIEW: { this.state = 3224; this.match(HiveSqlParser.KW_VIEW); this.state = 3225; this.viewName(); this.state = 3227; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 3226; this.match(HiveSqlParser.KW_AS); } } this.state = 3229; this.alterViewStatementSuffix(); } break; case HiveSqlParser.KW_MATERIALIZED: { this.state = 3231; this.match(HiveSqlParser.KW_MATERIALIZED); this.state = 3232; this.match(HiveSqlParser.KW_VIEW); this.state = 3233; localContext._tableNameTree = this.viewName(); this.state = 3234; this.alterMaterializedViewStatementSuffix(); } break; case HiveSqlParser.KW_DATABASE: case HiveSqlParser.KW_SCHEMA: { this.state = 3236; this.db_schema(); this.state = 3237; this.alterDatabaseStatementSuffix(); } break; case HiveSqlParser.KW_DATACONNECTOR: { this.state = 3239; this.match(HiveSqlParser.KW_DATACONNECTOR); this.state = 3240; this.alterDataConnectorStatementSuffix(); } break; case HiveSqlParser.KW_INDEX: { this.state = 3241; this.match(HiveSqlParser.KW_INDEX); this.state = 3242; this.alterIndexStatementSuffix(); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterTableStatementSuffix(): AlterTableStatementSuffixContext { let localContext = new AlterTableStatementSuffixContext(this.context, this.state); this.enterRule(localContext, 476, HiveSqlParser.RULE_alterTableStatementSuffix); let _la: number; try { this.state = 3266; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 343, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3245; this.alterStatementSuffixRename(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3246; this.alterStatementSuffixRecoverPartitions(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 3247; this.alterStatementSuffixDropPartitions(); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 3248; this.alterStatementSuffixAddPartitions(); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 3249; this.alterStatementSuffixTouch(); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 3250; this.alterStatementSuffixArchive(); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 3251; this.alterStatementSuffixUnArchive(); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 3252; this.alterStatementSuffixProperties(); } break; case 9: this.enterOuterAlt(localContext, 9); { this.state = 3253; this.alterStatementSuffixSkewedby(); } break; case 10: this.enterOuterAlt(localContext, 10); { this.state = 3254; this.alterStatementSuffixExchangePartition(); } break; case 11: this.enterOuterAlt(localContext, 11); { this.state = 3255; this.alterStatementPartitionKeyType(); } break; case 12: this.enterOuterAlt(localContext, 12); { this.state = 3256; this.alterStatementSuffixDropConstraint(); } break; case 13: this.enterOuterAlt(localContext, 13); { this.state = 3257; this.alterStatementSuffixAddConstraint(); } break; case 14: this.enterOuterAlt(localContext, 14); { this.state = 3258; this.alterTblPartitionStatementSuffix(); } break; case 15: this.enterOuterAlt(localContext, 15); { this.state = 3260; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 3259; this.partitionSpec(); } } this.state = 3262; this.alterTblPartitionStatementSuffix(); } break; case 16: this.enterOuterAlt(localContext, 16); { this.state = 3263; this.alterStatementSuffixSetOwner(); } break; case 17: this.enterOuterAlt(localContext, 17); { this.state = 3264; this.alterStatementSuffixSetPartSpec(); } break; case 18: this.enterOuterAlt(localContext, 18); { this.state = 3265; this.alterStatementSuffixExecute(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterTblPartitionStatementSuffix(): AlterTblPartitionStatementSuffixContext { let localContext = new AlterTblPartitionStatementSuffixContext(this.context, this.state); this.enterRule(localContext, 478, HiveSqlParser.RULE_alterTblPartitionStatementSuffix); try { this.state = 3283; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 344, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3268; this.alterStatementSuffixFileFormat(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3269; this.alterStatementSuffixLocation(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 3270; this.alterStatementSuffixMergeFiles(); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 3271; this.alterStatementSuffixSerdeProperties(); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 3272; this.alterStatementSuffixRenamePart(); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 3273; this.alterStatementSuffixBucketNum(); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 3274; this.alterTblPartitionStatementSuffixSkewedLocation(); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 3275; this.alterStatementSuffixClusterbySortby(); } break; case 9: this.enterOuterAlt(localContext, 9); { this.state = 3276; this.alterStatementSuffixCompact(); } break; case 10: this.enterOuterAlt(localContext, 10); { this.state = 3277; this.alterStatementSuffixUpdateStatsCol(); } break; case 11: this.enterOuterAlt(localContext, 11); { this.state = 3278; this.alterStatementSuffixUpdateStats(); } break; case 12: this.enterOuterAlt(localContext, 12); { this.state = 3279; this.alterStatementSuffixRenameCol(); } break; case 13: this.enterOuterAlt(localContext, 13); { this.state = 3280; this.alterStatementSuffixAddCol(); } break; case 14: this.enterOuterAlt(localContext, 14); { this.state = 3281; this.alterStatementSuffixUpdateColumns(); } break; case 15: this.enterOuterAlt(localContext, 15); { this.state = 3282; this.alterStatementSuffixProtections(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementPartitionKeyType(): AlterStatementPartitionKeyTypeContext { let localContext = new AlterStatementPartitionKeyTypeContext(this.context, this.state); this.enterRule(localContext, 480, HiveSqlParser.RULE_alterStatementPartitionKeyType); try { this.enterOuterAlt(localContext, 1); { this.state = 3285; this.match(HiveSqlParser.KW_PARTITION); this.state = 3286; this.match(HiveSqlParser.KW_COLUMN); this.state = 3287; this.match(HiveSqlParser.LPAREN); this.state = 3288; this.columnNameType(); this.state = 3289; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterViewStatementSuffix(): AlterViewStatementSuffixContext { let localContext = new AlterViewStatementSuffixContext(this.context, this.state); this.enterRule(localContext, 482, HiveSqlParser.RULE_alterViewStatementSuffix); try { this.state = 3296; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SET: case HiveSqlParser.KW_UNSET: this.enterOuterAlt(localContext, 1); { this.state = 3291; this.alterViewSuffixProperties(); } break; case HiveSqlParser.KW_RENAME: this.enterOuterAlt(localContext, 2); { this.state = 3292; this.alterStatementSuffixRename(); } break; case HiveSqlParser.KW_ADD: this.enterOuterAlt(localContext, 3); { this.state = 3293; this.alterStatementSuffixAddPartitions(); } break; case HiveSqlParser.KW_DROP: this.enterOuterAlt(localContext, 4); { this.state = 3294; this.alterStatementSuffixDropPartitions(); } break; case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_SELECT: case HiveSqlParser.KW_VALUES: case HiveSqlParser.KW_WITH: case HiveSqlParser.LPAREN: this.enterOuterAlt(localContext, 5); { this.state = 3295; this.selectStatementWithCTE(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterMaterializedViewStatementSuffix(): AlterMaterializedViewStatementSuffixContext { let localContext = new AlterMaterializedViewStatementSuffixContext(this.context, this.state); this.enterRule(localContext, 484, HiveSqlParser.RULE_alterMaterializedViewStatementSuffix); try { this.state = 3300; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: this.enterOuterAlt(localContext, 1); { this.state = 3298; this.alterMaterializedViewSuffixRewrite(); } break; case HiveSqlParser.KW_REBUILD: this.enterOuterAlt(localContext, 2); { this.state = 3299; this.alterMaterializedViewSuffixRebuild(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterMaterializedViewSuffixRewrite(): AlterMaterializedViewSuffixRewriteContext { let localContext = new AlterMaterializedViewSuffixRewriteContext(this.context, this.state); this.enterRule(localContext, 486, HiveSqlParser.RULE_alterMaterializedViewSuffixRewrite); try { this.state = 3304; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: this.enterOuterAlt(localContext, 1); { this.state = 3302; localContext._mvRewriteFlag = this.rewriteEnabled(); } break; case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: this.enterOuterAlt(localContext, 2); { this.state = 3303; localContext._mvRewriteFlag2 = this.rewriteDisabled(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterMaterializedViewSuffixRebuild(): AlterMaterializedViewSuffixRebuildContext { let localContext = new AlterMaterializedViewSuffixRebuildContext(this.context, this.state); this.enterRule(localContext, 488, HiveSqlParser.RULE_alterMaterializedViewSuffixRebuild); try { this.enterOuterAlt(localContext, 1); { this.state = 3306; this.match(HiveSqlParser.KW_REBUILD); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterDatabaseStatementSuffix(): AlterDatabaseStatementSuffixContext { let localContext = new AlterDatabaseStatementSuffixContext(this.context, this.state); this.enterRule(localContext, 490, HiveSqlParser.RULE_alterDatabaseStatementSuffix); try { this.state = 3311; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 348, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3308; this.alterDatabaseSuffixProperties(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3309; this.alterDatabaseSuffixSetOwner(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 3310; this.alterDatabaseSuffixSetLocation(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterDatabaseSuffixProperties(): AlterDatabaseSuffixPropertiesContext { let localContext = new AlterDatabaseSuffixPropertiesContext(this.context, this.state); this.enterRule(localContext, 492, HiveSqlParser.RULE_alterDatabaseSuffixProperties); try { this.enterOuterAlt(localContext, 1); { this.state = 3313; localContext._name = this.dbSchemaName(); this.state = 3314; this.match(HiveSqlParser.KW_SET); this.state = 3315; this.match(HiveSqlParser.KW_DBPROPERTIES); this.state = 3316; this.dbProperties(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterDatabaseSuffixSetOwner(): AlterDatabaseSuffixSetOwnerContext { let localContext = new AlterDatabaseSuffixSetOwnerContext(this.context, this.state); this.enterRule(localContext, 494, HiveSqlParser.RULE_alterDatabaseSuffixSetOwner); try { this.enterOuterAlt(localContext, 1); { this.state = 3318; localContext._dbName = this.dbSchemaName(); this.state = 3319; this.match(HiveSqlParser.KW_SET); this.state = 3320; this.match(HiveSqlParser.KW_OWNER); this.state = 3321; this.principalAlterName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterDatabaseSuffixSetLocation(): AlterDatabaseSuffixSetLocationContext { let localContext = new AlterDatabaseSuffixSetLocationContext(this.context, this.state); this.enterRule(localContext, 496, HiveSqlParser.RULE_alterDatabaseSuffixSetLocation); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3323; localContext._dbName = this.dbSchemaName(); this.state = 3324; this.match(HiveSqlParser.KW_SET); this.state = 3325; _la = this.tokenStream.LA(1); if(!(_la === 188 || _la === 195)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 3326; localContext._newLocation = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterDatabaseSuffixSetManagedLocation(): AlterDatabaseSuffixSetManagedLocationContext { let localContext = new AlterDatabaseSuffixSetManagedLocationContext(this.context, this.state); this.enterRule(localContext, 498, HiveSqlParser.RULE_alterDatabaseSuffixSetManagedLocation); try { this.enterOuterAlt(localContext, 1); { this.state = 3328; localContext._dbName = this.dbSchemaName(); this.state = 3329; this.match(HiveSqlParser.KW_SET); this.state = 3330; this.match(HiveSqlParser.KW_MANAGEDLOCATION); this.state = 3331; localContext._newLocation = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixRename(): AlterStatementSuffixRenameContext { let localContext = new AlterStatementSuffixRenameContext(this.context, this.state); this.enterRule(localContext, 500, HiveSqlParser.RULE_alterStatementSuffixRename); try { this.enterOuterAlt(localContext, 1); { this.state = 3333; this.match(HiveSqlParser.KW_RENAME); this.state = 3334; this.match(HiveSqlParser.KW_TO); this.state = 3335; this.tableNameCreate(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixAddCol(): AlterStatementSuffixAddColContext { let localContext = new AlterStatementSuffixAddColContext(this.context, this.state); this.enterRule(localContext, 502, HiveSqlParser.RULE_alterStatementSuffixAddCol); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3339; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ADD: { this.state = 3337; localContext._add = this.match(HiveSqlParser.KW_ADD); } break; case HiveSqlParser.KW_REPLACE: { this.state = 3338; localContext._replace = this.match(HiveSqlParser.KW_REPLACE); } break; default: throw new antlr.NoViableAltException(this); } this.state = 3341; this.match(HiveSqlParser.KW_COLUMNS); this.state = 3342; this.match(HiveSqlParser.LPAREN); this.state = 3343; this.columnNameTypeList(); this.state = 3344; this.match(HiveSqlParser.RPAREN); this.state = 3346; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 34 || _la === 281) { { this.state = 3345; this.restrictOrCascade(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixAddConstraint(): AlterStatementSuffixAddConstraintContext { let localContext = new AlterStatementSuffixAddConstraintContext(this.context, this.state); this.enterRule(localContext, 504, HiveSqlParser.RULE_alterStatementSuffixAddConstraint); try { this.enterOuterAlt(localContext, 1); { this.state = 3348; this.match(HiveSqlParser.KW_ADD); this.state = 3351; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 351, this.context) ) { case 1: { this.state = 3349; localContext._fk = this.alterForeignKeyWithName(); } break; case 2: { this.state = 3350; this.alterConstraintWithName(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixUpdateColumns(): AlterStatementSuffixUpdateColumnsContext { let localContext = new AlterStatementSuffixUpdateColumnsContext(this.context, this.state); this.enterRule(localContext, 506, HiveSqlParser.RULE_alterStatementSuffixUpdateColumns); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3353; this.match(HiveSqlParser.KW_UPDATE); this.state = 3354; this.match(HiveSqlParser.KW_COLUMNS); this.state = 3356; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 34 || _la === 281) { { this.state = 3355; this.restrictOrCascade(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixProtections(): AlterStatementSuffixProtectionsContext { let localContext = new AlterStatementSuffixProtectionsContext(this.context, this.state); this.enterRule(localContext, 508, HiveSqlParser.RULE_alterStatementSuffixProtections); let _la: number; try { this.state = 3366; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 354, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3358; this.enableSpecification(); this.state = 3359; this.match(HiveSqlParser.KW_NO_DROP); this.state = 3361; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 34) { { this.state = 3360; this.match(HiveSqlParser.KW_CASCADE); } } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3363; this.enableSpecification(); this.state = 3364; this.match(HiveSqlParser.KW_OFFLINE); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixDropConstraint(): AlterStatementSuffixDropConstraintContext { let localContext = new AlterStatementSuffixDropConstraintContext(this.context, this.state); this.enterRule(localContext, 510, HiveSqlParser.RULE_alterStatementSuffixDropConstraint); try { this.enterOuterAlt(localContext, 1); { this.state = 3368; this.match(HiveSqlParser.KW_DROP); this.state = 3369; this.match(HiveSqlParser.KW_CONSTRAINT); this.state = 3370; localContext._cName = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixRenameCol(): AlterStatementSuffixRenameColContext { let localContext = new AlterStatementSuffixRenameColContext(this.context, this.state); this.enterRule(localContext, 512, HiveSqlParser.RULE_alterStatementSuffixRenameCol); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3372; this.match(HiveSqlParser.KW_CHANGE); this.state = 3374; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 355, this.context) ) { case 1: { this.state = 3373; this.match(HiveSqlParser.KW_COLUMN); } break; } this.state = 3376; localContext._oldName = this.columnName(); this.state = 3377; localContext._newName = this.columnNameCreate(); this.state = 3378; this.colType(); this.state = 3380; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 40 || _la === 55 || _la === 83 || _la === 215 || _la === 250 || _la === 268 || _la === 357) { { this.state = 3379; this.alterColumnConstraint(); } } this.state = 3384; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 3382; this.match(HiveSqlParser.KW_COMMENT); this.state = 3383; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } this.state = 3387; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 6 || _la === 130) { { this.state = 3386; this.alterStatementChangeColPosition(); } } this.state = 3390; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 34 || _la === 281) { { this.state = 3389; this.restrictOrCascade(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixUpdateStatsCol(): AlterStatementSuffixUpdateStatsColContext { let localContext = new AlterStatementSuffixUpdateStatsColContext(this.context, this.state); this.enterRule(localContext, 514, HiveSqlParser.RULE_alterStatementSuffixUpdateStatsCol); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3392; this.match(HiveSqlParser.KW_UPDATE); this.state = 3393; this.match(HiveSqlParser.KW_STATISTICS); this.state = 3394; this.match(HiveSqlParser.KW_FOR); this.state = 3396; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 360, this.context) ) { case 1: { this.state = 3395; this.match(HiveSqlParser.KW_COLUMN); } break; } this.state = 3398; localContext._colName = this.columnName(); this.state = 3399; this.match(HiveSqlParser.KW_SET); this.state = 3400; this.tableProperties(); this.state = 3403; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 3401; this.match(HiveSqlParser.KW_COMMENT); this.state = 3402; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixUpdateStats(): AlterStatementSuffixUpdateStatsContext { let localContext = new AlterStatementSuffixUpdateStatsContext(this.context, this.state); this.enterRule(localContext, 516, HiveSqlParser.RULE_alterStatementSuffixUpdateStats); try { this.enterOuterAlt(localContext, 1); { this.state = 3405; this.match(HiveSqlParser.KW_UPDATE); this.state = 3406; this.match(HiveSqlParser.KW_STATISTICS); this.state = 3407; this.match(HiveSqlParser.KW_SET); this.state = 3408; this.tableProperties(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementChangeColPosition(): AlterStatementChangeColPositionContext { let localContext = new AlterStatementChangeColPositionContext(this.context, this.state); this.enterRule(localContext, 518, HiveSqlParser.RULE_alterStatementChangeColPosition); try { this.state = 3413; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_FIRST: this.enterOuterAlt(localContext, 1); { this.state = 3410; localContext._first = this.match(HiveSqlParser.KW_FIRST); } break; case HiveSqlParser.KW_AFTER: this.enterOuterAlt(localContext, 2); { this.state = 3411; this.match(HiveSqlParser.KW_AFTER); this.state = 3412; localContext._afterCol = this.id_(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixAddPartitions(): AlterStatementSuffixAddPartitionsContext { let localContext = new AlterStatementSuffixAddPartitionsContext(this.context, this.state); this.enterRule(localContext, 520, HiveSqlParser.RULE_alterStatementSuffixAddPartitions); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3415; this.match(HiveSqlParser.KW_ADD); this.state = 3417; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 3416; this.ifNotExists(); } } this.state = 3420; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 3419; this.alterStatementSuffixAddPartitionsElement(); } } this.state = 3422; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 236); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixAddPartitionsElement(): AlterStatementSuffixAddPartitionsElementContext { let localContext = new AlterStatementSuffixAddPartitionsElementContext(this.context, this.state); this.enterRule(localContext, 522, HiveSqlParser.RULE_alterStatementSuffixAddPartitionsElement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3424; this.partitionSpec(); this.state = 3426; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 188) { { this.state = 3425; this.partitionLocation(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixTouch(): AlterStatementSuffixTouchContext { let localContext = new AlterStatementSuffixTouchContext(this.context, this.state); this.enterRule(localContext, 524, HiveSqlParser.RULE_alterStatementSuffixTouch); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3428; this.match(HiveSqlParser.KW_TOUCH); this.state = 3432; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 236) { { { this.state = 3429; this.partitionSpec(); } } this.state = 3434; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixArchive(): AlterStatementSuffixArchiveContext { let localContext = new AlterStatementSuffixArchiveContext(this.context, this.state); this.enterRule(localContext, 526, HiveSqlParser.RULE_alterStatementSuffixArchive); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3435; this.match(HiveSqlParser.KW_ARCHIVE); this.state = 3439; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 236) { { { this.state = 3436; this.partitionSpec(); } } this.state = 3441; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixUnArchive(): AlterStatementSuffixUnArchiveContext { let localContext = new AlterStatementSuffixUnArchiveContext(this.context, this.state); this.enterRule(localContext, 528, HiveSqlParser.RULE_alterStatementSuffixUnArchive); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3442; this.match(HiveSqlParser.KW_UNARCHIVE); this.state = 3446; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 236) { { { this.state = 3443; this.partitionSpec(); } } this.state = 3448; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionLocation(): PartitionLocationContext { let localContext = new PartitionLocationContext(this.context, this.state); this.enterRule(localContext, 530, HiveSqlParser.RULE_partitionLocation); try { this.enterOuterAlt(localContext, 1); { this.state = 3449; this.match(HiveSqlParser.KW_LOCATION); this.state = 3450; localContext._locn = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixRecoverPartitions(): AlterStatementSuffixRecoverPartitionsContext { let localContext = new AlterStatementSuffixRecoverPartitionsContext(this.context, this.state); this.enterRule(localContext, 532, HiveSqlParser.RULE_alterStatementSuffixRecoverPartitions); try { this.enterOuterAlt(localContext, 1); { this.state = 3452; this.match(HiveSqlParser.KW_RECOVER); this.state = 3453; this.match(HiveSqlParser.KW_PARTITIONS); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixDropPartitions(): AlterStatementSuffixDropPartitionsContext { let localContext = new AlterStatementSuffixDropPartitionsContext(this.context, this.state); this.enterRule(localContext, 534, HiveSqlParser.RULE_alterStatementSuffixDropPartitions); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3455; this.match(HiveSqlParser.KW_DROP); this.state = 3457; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 3456; this.ifExists(); } } this.state = 3459; this.match(HiveSqlParser.KW_PARTITION); this.state = 3460; this.partitionSelectorSpec(); this.state = 3466; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 3461; this.match(HiveSqlParser.COMMA); this.state = 3462; this.match(HiveSqlParser.KW_PARTITION); this.state = 3463; this.partitionSelectorSpec(); } } this.state = 3468; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 3470; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 152) { { this.state = 3469; this.dropPartitionsIgnoreClause(); } } this.state = 3473; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 254) { { this.state = 3472; this.match(HiveSqlParser.KW_PURGE); } } this.state = 3476; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 134) { { this.state = 3475; this.replicationClause(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixProperties(): AlterStatementSuffixPropertiesContext { let localContext = new AlterStatementSuffixPropertiesContext(this.context, this.state); this.enterRule(localContext, 536, HiveSqlParser.RULE_alterStatementSuffixProperties); let _la: number; try { this.state = 3487; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SET: this.enterOuterAlt(localContext, 1); { this.state = 3478; this.match(HiveSqlParser.KW_SET); this.state = 3479; this.match(HiveSqlParser.KW_TBLPROPERTIES); this.state = 3480; this.tableProperties(); } break; case HiveSqlParser.KW_UNSET: this.enterOuterAlt(localContext, 2); { this.state = 3481; this.match(HiveSqlParser.KW_UNSET); this.state = 3482; this.match(HiveSqlParser.KW_TBLPROPERTIES); this.state = 3484; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 3483; this.ifExists(); } } this.state = 3486; this.tableProperties(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterViewSuffixProperties(): AlterViewSuffixPropertiesContext { let localContext = new AlterViewSuffixPropertiesContext(this.context, this.state); this.enterRule(localContext, 538, HiveSqlParser.RULE_alterViewSuffixProperties); let _la: number; try { this.state = 3498; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SET: this.enterOuterAlt(localContext, 1); { this.state = 3489; this.match(HiveSqlParser.KW_SET); this.state = 3490; this.match(HiveSqlParser.KW_TBLPROPERTIES); this.state = 3491; this.tableProperties(); } break; case HiveSqlParser.KW_UNSET: this.enterOuterAlt(localContext, 2); { this.state = 3492; this.match(HiveSqlParser.KW_UNSET); this.state = 3493; this.match(HiveSqlParser.KW_TBLPROPERTIES); this.state = 3495; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 3494; this.ifExists(); } } this.state = 3497; this.tableProperties(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixSerdeProperties(): AlterStatementSuffixSerdePropertiesContext { let localContext = new AlterStatementSuffixSerdePropertiesContext(this.context, this.state); this.enterRule(localContext, 540, HiveSqlParser.RULE_alterStatementSuffixSerdeProperties); try { this.state = 3515; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SET: this.enterOuterAlt(localContext, 1); { this.state = 3500; this.match(HiveSqlParser.KW_SET); this.state = 3510; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SERDE: { this.state = 3501; this.match(HiveSqlParser.KW_SERDE); this.state = 3502; localContext._serdeName = this.match(HiveSqlParser.StringLiteral); this.state = 3506; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 378, this.context) ) { case 1: { this.state = 3503; this.match(HiveSqlParser.KW_WITH); this.state = 3504; this.match(HiveSqlParser.KW_SERDEPROPERTIES); this.state = 3505; this.tableProperties(); } break; } } break; case HiveSqlParser.KW_SERDEPROPERTIES: { this.state = 3508; this.match(HiveSqlParser.KW_SERDEPROPERTIES); this.state = 3509; this.tableProperties(); } break; default: throw new antlr.NoViableAltException(this); } } break; case HiveSqlParser.KW_UNSET: this.enterOuterAlt(localContext, 2); { this.state = 3512; this.match(HiveSqlParser.KW_UNSET); this.state = 3513; this.match(HiveSqlParser.KW_SERDEPROPERTIES); this.state = 3514; this.tableProperties(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tablePartitionPrefix(): TablePartitionPrefixContext { let localContext = new TablePartitionPrefixContext(this.context, this.state); this.enterRule(localContext, 542, HiveSqlParser.RULE_tablePartitionPrefix); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3517; this.tableName(); this.state = 3519; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 3518; this.partitionSpec(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixFileFormat(): AlterStatementSuffixFileFormatContext { let localContext = new AlterStatementSuffixFileFormatContext(this.context, this.state); this.enterRule(localContext, 544, HiveSqlParser.RULE_alterStatementSuffixFileFormat); try { this.enterOuterAlt(localContext, 1); { this.state = 3521; this.match(HiveSqlParser.KW_SET); this.state = 3522; this.match(HiveSqlParser.KW_FILEFORMAT); this.state = 3523; this.fileFormat(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixClusterbySortby(): AlterStatementSuffixClusterbySortbyContext { let localContext = new AlterStatementSuffixClusterbySortbyContext(this.context, this.state); this.enterRule(localContext, 546, HiveSqlParser.RULE_alterStatementSuffixClusterbySortby); let _la: number; try { this.state = 3528; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_NOT: this.enterOuterAlt(localContext, 1); { this.state = 3525; this.match(HiveSqlParser.KW_NOT); this.state = 3526; _la = this.tokenStream.LA(1); if(!(_la === 42 || _la === 314)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } break; case HiveSqlParser.KW_CLUSTERED: this.enterOuterAlt(localContext, 2); { this.state = 3527; this.tableBuckets(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterTblPartitionStatementSuffixSkewedLocation(): AlterTblPartitionStatementSuffixSkewedLocationContext { let localContext = new AlterTblPartitionStatementSuffixSkewedLocationContext(this.context, this.state); this.enterRule(localContext, 548, HiveSqlParser.RULE_alterTblPartitionStatementSuffixSkewedLocation); try { this.enterOuterAlt(localContext, 1); { this.state = 3530; this.match(HiveSqlParser.KW_SET); this.state = 3531; this.match(HiveSqlParser.KW_SKEWED); this.state = 3532; this.match(HiveSqlParser.KW_LOCATION); this.state = 3533; this.skewedLocations(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public skewedLocations(): SkewedLocationsContext { let localContext = new SkewedLocationsContext(this.context, this.state); this.enterRule(localContext, 550, HiveSqlParser.RULE_skewedLocations); try { this.enterOuterAlt(localContext, 1); { this.state = 3535; this.match(HiveSqlParser.LPAREN); this.state = 3536; this.skewedLocationsList(); this.state = 3537; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public skewedLocationsList(): SkewedLocationsListContext { let localContext = new SkewedLocationsListContext(this.context, this.state); this.enterRule(localContext, 552, HiveSqlParser.RULE_skewedLocationsList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3539; this.skewedLocationMap(); this.state = 3544; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 3540; this.match(HiveSqlParser.COMMA); this.state = 3541; this.skewedLocationMap(); } } this.state = 3546; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public skewedLocationMap(): SkewedLocationMapContext { let localContext = new SkewedLocationMapContext(this.context, this.state); this.enterRule(localContext, 554, HiveSqlParser.RULE_skewedLocationMap); try { this.enterOuterAlt(localContext, 1); { this.state = 3547; localContext._key = this.skewedValueLocationElement(); this.state = 3548; this.match(HiveSqlParser.EQUAL); this.state = 3549; localContext._value = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixLocation(): AlterStatementSuffixLocationContext { let localContext = new AlterStatementSuffixLocationContext(this.context, this.state); this.enterRule(localContext, 556, HiveSqlParser.RULE_alterStatementSuffixLocation); try { this.enterOuterAlt(localContext, 1); { this.state = 3551; this.match(HiveSqlParser.KW_SET); this.state = 3552; this.match(HiveSqlParser.KW_LOCATION); this.state = 3553; localContext._newLoc = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixSkewedby(): AlterStatementSuffixSkewedbyContext { let localContext = new AlterStatementSuffixSkewedbyContext(this.context, this.state); this.enterRule(localContext, 558, HiveSqlParser.RULE_alterStatementSuffixSkewedby); try { this.state = 3561; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SKEWED: this.enterOuterAlt(localContext, 1); { this.state = 3555; this.tableSkewed(); } break; case HiveSqlParser.KW_NOT: this.enterOuterAlt(localContext, 2); { this.state = 3556; this.match(HiveSqlParser.KW_NOT); this.state = 3559; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SKEWED: { this.state = 3557; this.match(HiveSqlParser.KW_SKEWED); } break; case HiveSqlParser.KW_STORED: { this.state = 3558; this.storedAsDirs(); } break; default: throw new antlr.NoViableAltException(this); } } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixExchangePartition(): AlterStatementSuffixExchangePartitionContext { let localContext = new AlterStatementSuffixExchangePartitionContext(this.context, this.state); this.enterRule(localContext, 560, HiveSqlParser.RULE_alterStatementSuffixExchangePartition); try { this.enterOuterAlt(localContext, 1); { this.state = 3563; this.match(HiveSqlParser.KW_EXCHANGE); this.state = 3564; this.partitionSpec(); this.state = 3565; this.match(HiveSqlParser.KW_WITH); this.state = 3566; this.match(HiveSqlParser.KW_TABLE); this.state = 3567; localContext._exchangename = this.tableName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixRenamePart(): AlterStatementSuffixRenamePartContext { let localContext = new AlterStatementSuffixRenamePartContext(this.context, this.state); this.enterRule(localContext, 562, HiveSqlParser.RULE_alterStatementSuffixRenamePart); try { this.enterOuterAlt(localContext, 1); { this.state = 3569; this.match(HiveSqlParser.KW_RENAME); this.state = 3570; this.match(HiveSqlParser.KW_TO); this.state = 3571; this.partitionSpec(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixStatsPart(): AlterStatementSuffixStatsPartContext { let localContext = new AlterStatementSuffixStatsPartContext(this.context, this.state); this.enterRule(localContext, 564, HiveSqlParser.RULE_alterStatementSuffixStatsPart); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3573; this.match(HiveSqlParser.KW_UPDATE); this.state = 3574; this.match(HiveSqlParser.KW_STATISTICS); this.state = 3575; this.match(HiveSqlParser.KW_FOR); this.state = 3577; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 386, this.context) ) { case 1: { this.state = 3576; this.match(HiveSqlParser.KW_COLUMN); } break; } this.state = 3579; localContext._colName = this.columnName(); this.state = 3580; this.match(HiveSqlParser.KW_SET); this.state = 3581; this.tableProperties(); this.state = 3584; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 3582; this.match(HiveSqlParser.KW_COMMENT); this.state = 3583; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixMergeFiles(): AlterStatementSuffixMergeFilesContext { let localContext = new AlterStatementSuffixMergeFilesContext(this.context, this.state); this.enterRule(localContext, 566, HiveSqlParser.RULE_alterStatementSuffixMergeFiles); try { this.enterOuterAlt(localContext, 1); { this.state = 3586; this.match(HiveSqlParser.KW_CONCATENATE); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixBucketNum(): AlterStatementSuffixBucketNumContext { let localContext = new AlterStatementSuffixBucketNumContext(this.context, this.state); this.enterRule(localContext, 568, HiveSqlParser.RULE_alterStatementSuffixBucketNum); try { this.enterOuterAlt(localContext, 1); { this.state = 3588; this.match(HiveSqlParser.KW_INTO); this.state = 3589; localContext._num = this.match(HiveSqlParser.Number); this.state = 3590; this.match(HiveSqlParser.KW_BUCKETS); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public blocking(): BlockingContext { let localContext = new BlockingContext(this.context, this.state); this.enterRule(localContext, 570, HiveSqlParser.RULE_blocking); try { this.enterOuterAlt(localContext, 1); { this.state = 3592; this.match(HiveSqlParser.KW_AND); this.state = 3593; this.match(HiveSqlParser.KW_WAIT); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public compactPool(): CompactPoolContext { let localContext = new CompactPoolContext(this.context, this.state); this.enterRule(localContext, 572, HiveSqlParser.RULE_compactPool); try { this.enterOuterAlt(localContext, 1); { this.state = 3595; this.match(HiveSqlParser.KW_POOL); this.state = 3596; localContext._poolName = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixCompact(): AlterStatementSuffixCompactContext { let localContext = new AlterStatementSuffixCompactContext(this.context, this.state); this.enterRule(localContext, 574, HiveSqlParser.RULE_alterStatementSuffixCompact); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3598; this.match(HiveSqlParser.KW_COMPACT); this.state = 3599; localContext._compactType = this.match(HiveSqlParser.StringLiteral); this.state = 3601; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 11) { { this.state = 3600; this.blocking(); } } this.state = 3604; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 42) { { this.state = 3603; this.tableImplBuckets(); } } this.state = 3607; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 228) { { this.state = 3606; this.orderByClause(); } } this.state = 3610; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 245) { { this.state = 3609; this.compactPool(); } } this.state = 3616; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 392, this.context) ) { case 1: { this.state = 3612; this.match(HiveSqlParser.KW_WITH); this.state = 3613; this.match(HiveSqlParser.KW_OVERWRITE); this.state = 3614; this.match(HiveSqlParser.KW_TBLPROPERTIES); this.state = 3615; this.tableProperties(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixSetOwner(): AlterStatementSuffixSetOwnerContext { let localContext = new AlterStatementSuffixSetOwnerContext(this.context, this.state); this.enterRule(localContext, 576, HiveSqlParser.RULE_alterStatementSuffixSetOwner); try { this.enterOuterAlt(localContext, 1); { this.state = 3618; this.match(HiveSqlParser.KW_SET); this.state = 3619; this.match(HiveSqlParser.KW_OWNER); this.state = 3620; this.principalName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixSetPartSpec(): AlterStatementSuffixSetPartSpecContext { let localContext = new AlterStatementSuffixSetPartSpecContext(this.context, this.state); this.enterRule(localContext, 578, HiveSqlParser.RULE_alterStatementSuffixSetPartSpec); try { this.enterOuterAlt(localContext, 1); { this.state = 3622; this.match(HiveSqlParser.KW_SET); this.state = 3623; this.match(HiveSqlParser.KW_PARTITION); this.state = 3624; this.match(HiveSqlParser.KW_SPEC); this.state = 3625; this.match(HiveSqlParser.LPAREN); this.state = 3626; localContext._spec = this.partitionTransformSpec(); this.state = 3627; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterStatementSuffixExecute(): AlterStatementSuffixExecuteContext { let localContext = new AlterStatementSuffixExecuteContext(this.context, this.state); this.enterRule(localContext, 580, HiveSqlParser.RULE_alterStatementSuffixExecute); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3629; this.match(HiveSqlParser.KW_EXECUTE); this.state = 3639; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ROLLBACK: { this.state = 3630; this.match(HiveSqlParser.KW_ROLLBACK); this.state = 3631; this.match(HiveSqlParser.LPAREN); this.state = 3632; localContext._rollbackParam = this.tokenStream.LT(1); _la = this.tokenStream.LA(1); if(!(_la === 425 || _la === 430)) { localContext._rollbackParam = this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } break; case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: { this.state = 3633; this.match(HiveSqlParser.KW_EXPIRE_SNAPSHOTS); this.state = 3634; this.match(HiveSqlParser.LPAREN); this.state = 3635; localContext._expireParam = this.match(HiveSqlParser.StringLiteral); } break; case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: { this.state = 3636; this.match(HiveSqlParser.KW_SET_CURRENT_SNAPSHOT); this.state = 3637; this.match(HiveSqlParser.LPAREN); this.state = 3638; localContext._snapshotParam = this.match(HiveSqlParser.Number); } break; default: throw new antlr.NoViableAltException(this); } this.state = 3641; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterIndexStatementSuffix(): AlterIndexStatementSuffixContext { let localContext = new AlterIndexStatementSuffixContext(this.context, this.state); this.enterRule(localContext, 582, HiveSqlParser.RULE_alterIndexStatementSuffix); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3643; this.id_(); this.state = 3644; this.match(HiveSqlParser.KW_ON); this.state = 3645; this.tableName(); this.state = 3647; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 3646; this.partitionSpec(); } } this.state = 3649; this.match(HiveSqlParser.KW_REBUILD); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public fileFormat(): FileFormatContext { let localContext = new FileFormatContext(this.context, this.state); this.enterRule(localContext, 584, HiveSqlParser.RULE_fileFormat); let _la: number; try { this.state = 3664; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 396, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3651; this.match(HiveSqlParser.KW_INPUTFORMAT); this.state = 3652; localContext._inFmt = this.match(HiveSqlParser.StringLiteral); this.state = 3653; this.match(HiveSqlParser.KW_OUTPUTFORMAT); this.state = 3654; localContext._outFmt = this.match(HiveSqlParser.StringLiteral); this.state = 3655; this.match(HiveSqlParser.KW_SERDE); this.state = 3656; localContext._serdeCls = this.match(HiveSqlParser.StringLiteral); this.state = 3661; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 159) { { this.state = 3657; this.match(HiveSqlParser.KW_INPUTDRIVER); this.state = 3658; localContext._inDriver = this.match(HiveSqlParser.StringLiteral); this.state = 3659; this.match(HiveSqlParser.KW_OUTPUTDRIVER); this.state = 3660; localContext._outDriver = this.match(HiveSqlParser.StringLiteral); } } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3663; localContext._genericSpec = this.id_(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterDataConnectorStatementSuffix(): AlterDataConnectorStatementSuffixContext { let localContext = new AlterDataConnectorStatementSuffixContext(this.context, this.state); this.enterRule(localContext, 586, HiveSqlParser.RULE_alterDataConnectorStatementSuffix); try { this.state = 3669; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 397, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3666; this.alterDataConnectorSuffixProperties(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3667; this.alterDataConnectorSuffixSetOwner(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 3668; this.alterDataConnectorSuffixSetUrl(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterDataConnectorSuffixProperties(): AlterDataConnectorSuffixPropertiesContext { let localContext = new AlterDataConnectorSuffixPropertiesContext(this.context, this.state); this.enterRule(localContext, 588, HiveSqlParser.RULE_alterDataConnectorSuffixProperties); try { this.enterOuterAlt(localContext, 1); { this.state = 3671; localContext._name = this.dbSchemaName(); this.state = 3672; this.match(HiveSqlParser.KW_SET); this.state = 3673; this.match(HiveSqlParser.KW_DCPROPERTIES); this.state = 3674; this.dcProperties(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterDataConnectorSuffixSetOwner(): AlterDataConnectorSuffixSetOwnerContext { let localContext = new AlterDataConnectorSuffixSetOwnerContext(this.context, this.state); this.enterRule(localContext, 590, HiveSqlParser.RULE_alterDataConnectorSuffixSetOwner); try { this.enterOuterAlt(localContext, 1); { this.state = 3676; localContext._dcName = this.dbSchemaName(); this.state = 3677; this.match(HiveSqlParser.KW_SET); this.state = 3678; this.match(HiveSqlParser.KW_OWNER); this.state = 3679; this.principalAlterName(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterDataConnectorSuffixSetUrl(): AlterDataConnectorSuffixSetUrlContext { let localContext = new AlterDataConnectorSuffixSetUrlContext(this.context, this.state); this.enterRule(localContext, 592, HiveSqlParser.RULE_alterDataConnectorSuffixSetUrl); try { this.enterOuterAlt(localContext, 1); { this.state = 3681; localContext._dcName = this.dbSchemaName(); this.state = 3682; this.match(HiveSqlParser.KW_SET); this.state = 3683; this.match(HiveSqlParser.KW_URL); this.state = 3684; localContext._newUri = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public likeTableOrFile(): LikeTableOrFileContext { let localContext = new LikeTableOrFileContext(this.context, this.state); this.enterRule(localContext, 594, HiveSqlParser.RULE_likeTableOrFile); try { this.state = 3695; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 398, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3686; this.match(HiveSqlParser.KW_LIKE); this.state = 3687; this.match(HiveSqlParser.KW_FILE); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3688; this.match(HiveSqlParser.KW_LIKE); this.state = 3689; this.match(HiveSqlParser.KW_FILE); this.state = 3690; localContext._format = this.id_(); this.state = 3691; localContext._uri = this.match(HiveSqlParser.StringLiteral); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 3693; this.match(HiveSqlParser.KW_LIKE); this.state = 3694; localContext._likeName = this.tableName(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createTableStatement(): CreateTableStatementContext { let localContext = new CreateTableStatementContext(this.context, this.state); this.enterRule(localContext, 596, HiveSqlParser.RULE_createTableStatement); let _la: number; try { this.state = 3820; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 435, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3697; this.match(HiveSqlParser.KW_CREATE); this.state = 3699; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 332) { { this.state = 3698; localContext._temp = this.match(HiveSqlParser.KW_TEMPORARY); } } this.state = 3702; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 344) { { this.state = 3701; localContext._trans = this.match(HiveSqlParser.KW_TRANSACTIONAL); } } this.state = 3705; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 123) { { this.state = 3704; localContext._ext = this.match(HiveSqlParser.KW_EXTERNAL); } } this.state = 3707; this.match(HiveSqlParser.KW_TABLE); this.state = 3709; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 3708; this.ifNotExists(); } } this.state = 3711; localContext._name = this.tableNameCreate(); this.state = 3762; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_LIKE: { this.state = 3712; this.likeTableOrFile(); this.state = 3714; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 237) { { this.state = 3713; this.createTablePartitionSpec(); } } this.state = 3717; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 290) { { this.state = 3716; this.tableRowFormat(); } } this.state = 3720; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 320) { { this.state = 3719; this.tableFileFormat(); } } this.state = 3723; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 188) { { this.state = 3722; this.tableLocation(); } } this.state = 3726; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 331) { { this.state = 3725; this.tablePropertiesPrefixed(); } } } break; case HiveSqlParser.EOF: case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ALTER: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_AS: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMMIT: case HiveSqlParser.KW_CREATE: case HiveSqlParser.KW_DELETE: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DESCRIBE: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DROP: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_FROM: case HiveSqlParser.KW_GRANT: case HiveSqlParser.KW_IMPORT: case HiveSqlParser.KW_INSERT: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_MERGE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PREPARE: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REVOKE: case HiveSqlParser.KW_ROLLBACK: case HiveSqlParser.KW_ROW: case HiveSqlParser.KW_SELECT: case HiveSqlParser.KW_SET: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_START: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TRUNCATE: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UPDATE: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_VALUES: case HiveSqlParser.KW_WITH: case HiveSqlParser.SEMICOLON: case HiveSqlParser.LPAREN: { this.state = 3732; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 408, this.context) ) { case 1: { this.state = 3728; this.match(HiveSqlParser.LPAREN); this.state = 3729; this.columnNameTypeOrConstraintList(); this.state = 3730; this.match(HiveSqlParser.RPAREN); } break; } this.state = 3735; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 3734; this.tableComment(); } } this.state = 3738; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 237) { { this.state = 3737; this.createTablePartitionSpec(); } } this.state = 3741; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 42) { { this.state = 3740; this.tableBuckets(); } } this.state = 3744; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 309) { { this.state = 3743; this.tableSkewed(); } } this.state = 3747; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 290) { { this.state = 3746; this.tableRowFormat(); } } this.state = 3750; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 320) { { this.state = 3749; this.tableFileFormat(); } } this.state = 3753; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 188) { { this.state = 3752; this.tableLocation(); } } this.state = 3756; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 331) { { this.state = 3755; this.tablePropertiesPrefixed(); } } this.state = 3760; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 3758; this.match(HiveSqlParser.KW_AS); this.state = 3759; this.selectStatementWithCTE(); } } } break; default: throw new antlr.NoViableAltException(this); } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3764; this.match(HiveSqlParser.KW_CREATE); this.state = 3765; localContext._mgd = this.match(HiveSqlParser.KW_MANAGED); this.state = 3766; this.match(HiveSqlParser.KW_TABLE); this.state = 3768; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 3767; this.ifNotExists(); } } this.state = 3770; localContext._name = this.tableNameCreate(); this.state = 3818; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_LIKE: { this.state = 3771; this.likeTableOrFile(); this.state = 3773; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 290) { { this.state = 3772; this.tableRowFormat(); } } this.state = 3776; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 320) { { this.state = 3775; this.tableFileFormat(); } } this.state = 3779; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 188) { { this.state = 3778; this.tableLocation(); } } this.state = 3782; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 331) { { this.state = 3781; this.tablePropertiesPrefixed(); } } } break; case HiveSqlParser.EOF: case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ALTER: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_AS: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMMIT: case HiveSqlParser.KW_CREATE: case HiveSqlParser.KW_DELETE: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DESCRIBE: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DROP: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_FROM: case HiveSqlParser.KW_GRANT: case HiveSqlParser.KW_IMPORT: case HiveSqlParser.KW_INSERT: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_MERGE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PREPARE: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REVOKE: case HiveSqlParser.KW_ROLLBACK: case HiveSqlParser.KW_ROW: case HiveSqlParser.KW_SELECT: case HiveSqlParser.KW_SET: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_START: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TRUNCATE: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UPDATE: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_VALUES: case HiveSqlParser.KW_WITH: case HiveSqlParser.SEMICOLON: case HiveSqlParser.LPAREN: { this.state = 3788; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 424, this.context) ) { case 1: { this.state = 3784; this.match(HiveSqlParser.LPAREN); this.state = 3785; this.columnNameTypeOrConstraintList(); this.state = 3786; this.match(HiveSqlParser.RPAREN); } break; } this.state = 3791; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 3790; this.tableComment(); } } this.state = 3794; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 237) { { this.state = 3793; this.createTablePartitionSpec(); } } this.state = 3797; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 42) { { this.state = 3796; this.tableBuckets(); } } this.state = 3800; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 309) { { this.state = 3799; this.tableSkewed(); } } this.state = 3803; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 290) { { this.state = 3802; this.tableRowFormat(); } } this.state = 3806; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 320) { { this.state = 3805; this.tableFileFormat(); } } this.state = 3809; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 188) { { this.state = 3808; this.tableLocation(); } } this.state = 3812; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 331) { { this.state = 3811; this.tablePropertiesPrefixed(); } } this.state = 3816; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 3814; this.match(HiveSqlParser.KW_AS); this.state = 3815; this.selectStatementWithCTE(); } } } break; default: throw new antlr.NoViableAltException(this); } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createDataConnectorStatement(): CreateDataConnectorStatementContext { let localContext = new CreateDataConnectorStatementContext(this.context, this.state); this.enterRule(localContext, 598, HiveSqlParser.RULE_createDataConnectorStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3822; this.match(HiveSqlParser.KW_CREATE); this.state = 3823; this.match(HiveSqlParser.KW_DATACONNECTOR); this.state = 3825; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 3824; this.ifNotExists(); } } this.state = 3827; localContext._name = this.id_(); this.state = 3829; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 351) { { this.state = 3828; this.dataConnectorType(); } } this.state = 3832; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 366) { { this.state = 3831; this.dataConnectorUrl(); } } this.state = 3835; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 47) { { this.state = 3834; this.dataConnectorComment(); } } this.state = 3840; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 440, this.context) ) { case 1: { this.state = 3837; this.match(HiveSqlParser.KW_WITH); this.state = 3838; this.match(HiveSqlParser.KW_DCPROPERTIES); this.state = 3839; localContext._dcprops = this.dcProperties(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dataConnectorComment(): DataConnectorCommentContext { let localContext = new DataConnectorCommentContext(this.context, this.state); this.enterRule(localContext, 600, HiveSqlParser.RULE_dataConnectorComment); try { this.enterOuterAlt(localContext, 1); { this.state = 3842; this.match(HiveSqlParser.KW_COMMENT); this.state = 3843; localContext._comment = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dataConnectorUrl(): DataConnectorUrlContext { let localContext = new DataConnectorUrlContext(this.context, this.state); this.enterRule(localContext, 602, HiveSqlParser.RULE_dataConnectorUrl); try { this.enterOuterAlt(localContext, 1); { this.state = 3845; this.match(HiveSqlParser.KW_URL); this.state = 3846; localContext._url = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dataConnectorType(): DataConnectorTypeContext { let localContext = new DataConnectorTypeContext(this.context, this.state); this.enterRule(localContext, 604, HiveSqlParser.RULE_dataConnectorType); try { this.enterOuterAlt(localContext, 1); { this.state = 3848; this.match(HiveSqlParser.KW_TYPE); this.state = 3849; localContext._dcType = this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dcProperties(): DcPropertiesContext { let localContext = new DcPropertiesContext(this.context, this.state); this.enterRule(localContext, 606, HiveSqlParser.RULE_dcProperties); try { this.enterOuterAlt(localContext, 1); { this.state = 3851; this.match(HiveSqlParser.LPAREN); this.state = 3852; this.dbPropertiesList(); this.state = 3853; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropDataConnectorStatement(): DropDataConnectorStatementContext { let localContext = new DropDataConnectorStatementContext(this.context, this.state); this.enterRule(localContext, 608, HiveSqlParser.RULE_dropDataConnectorStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3855; this.match(HiveSqlParser.KW_DROP); this.state = 3856; this.match(HiveSqlParser.KW_DATACONNECTOR); this.state = 3858; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 3857; this.ifExists(); } } this.state = 3860; this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableAllColumns(): TableAllColumnsContext { let localContext = new TableAllColumnsContext(this.context, this.state); this.enterRule(localContext, 610, HiveSqlParser.RULE_tableAllColumns); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3867; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3252454782) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 94072755) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 3203280837) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 3774298979) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 1985876353) !== 0) || ((((_la - 168)) & ~0x1F) === 0 && ((1 << (_la - 168)) & 3723969527) !== 0) || ((((_la - 200)) & ~0x1F) === 0 && ((1 << (_la - 200)) & 2255187435) !== 0) || ((((_la - 232)) & ~0x1F) === 0 && ((1 << (_la - 232)) & 929578221) !== 0) || ((((_la - 264)) & ~0x1F) === 0 && ((1 << (_la - 264)) & 4039901127) !== 0) || ((((_la - 296)) & ~0x1F) === 0 && ((1 << (_la - 296)) & 3755917179) !== 0) || ((((_la - 329)) & ~0x1F) === 0 && ((1 << (_la - 329)) & 3402225181) !== 0) || ((((_la - 361)) & ~0x1F) === 0 && ((1 << (_la - 361)) & 4238323319) !== 0) || _la === 393 || _la === 431) { { { this.state = 3862; this.id_(); this.state = 3863; this.match(HiveSqlParser.DOT); } } this.state = 3869; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 3870; this.match(HiveSqlParser.STAR); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public defaultValue(): DefaultValueContext { let localContext = new DefaultValueContext(this.context, this.state); this.enterRule(localContext, 612, HiveSqlParser.RULE_defaultValue); try { this.enterOuterAlt(localContext, 1); { this.state = 3872; this.match(HiveSqlParser.KW_DEFAULT); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public expressionList(): ExpressionListContext { let localContext = new ExpressionListContext(this.context, this.state); this.enterRule(localContext, 614, HiveSqlParser.RULE_expressionList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3874; this.expression(); this.state = 3879; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 3875; this.match(HiveSqlParser.COMMA); this.state = 3876; this.expression(); } } this.state = 3881; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public aliasList(): AliasListContext { let localContext = new AliasListContext(this.context, this.state); this.enterRule(localContext, 616, HiveSqlParser.RULE_aliasList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3882; this.id_(); this.state = 3887; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 3883; this.match(HiveSqlParser.COMMA); this.state = 3884; this.id_(); } } this.state = 3889; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public fromClause(): FromClauseContext { let localContext = new FromClauseContext(this.context, this.state); this.enterRule(localContext, 618, HiveSqlParser.RULE_fromClause); try { this.enterOuterAlt(localContext, 1); { this.state = 3890; this.match(HiveSqlParser.KW_FROM); this.state = 3891; this.fromSource(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public fromSource(): FromSourceContext { let localContext = new FromSourceContext(this.context, this.state); this.enterRule(localContext, 620, HiveSqlParser.RULE_fromSource); let _la: number; try { this.state = 3902; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_UNIQUEJOIN: this.enterOuterAlt(localContext, 1); { this.state = 3893; this.uniqueJoinToken(); this.state = 3894; this.uniqueJoinSource(); this.state = 3897; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 3895; this.match(HiveSqlParser.COMMA); this.state = 3896; this.uniqueJoinSource(); } } this.state = 3899; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 396); } break; case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLE: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: case HiveSqlParser.LPAREN: case HiveSqlParser.Identifier: this.enterOuterAlt(localContext, 2); { this.state = 3901; this.joinSource(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public atomjoinSource(): AtomjoinSourceContext { let localContext = new AtomjoinSourceContext(this.context, this.state); this.enterRule(localContext, 622, HiveSqlParser.RULE_atomjoinSource); try { let alternative: number; this.state = 3936; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 451, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3904; this.tableSource(); this.state = 3908; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 447, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 3905; this.lateralView(); } } } this.state = 3910; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 447, this.context); } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 3911; this.virtualTableSource(); this.state = 3915; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 448, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 3912; this.lateralView(); } } } this.state = 3917; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 448, this.context); } } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 3918; this.subQuerySource(); this.state = 3922; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 449, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 3919; this.lateralView(); } } } this.state = 3924; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 449, this.context); } } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 3925; this.partitionedTableFunction(); this.state = 3929; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 450, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 3926; this.lateralView(); } } } this.state = 3931; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 450, this.context); } } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 3932; this.match(HiveSqlParser.LPAREN); this.state = 3933; this.joinSource(); this.state = 3934; this.match(HiveSqlParser.RPAREN); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public joinSource(): JoinSourceContext { let localContext = new JoinSourceContext(this.context, this.state); this.enterRule(localContext, 624, HiveSqlParser.RULE_joinSource); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3938; this.atomjoinSource(); this.state = 3949; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 60 || ((((_la - 140)) & ~0x1F) === 0 && ((1 << (_la - 140)) & 2147614721) !== 0) || _la === 180 || _la === 284 || _la === 396) { { { this.state = 3939; this.joinToken(); this.state = 3940; this.joinSourcePart(); this.state = 3945; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ON: { this.state = 3941; this.match(HiveSqlParser.KW_ON); this.state = 3942; this.expression(); } break; case HiveSqlParser.KW_USING: { this.state = 3943; this.match(HiveSqlParser.KW_USING); this.state = 3944; this.columnParenthesesList(); } break; case HiveSqlParser.EOF: case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ALTER: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_COMMIT: case HiveSqlParser.KW_CREATE: case HiveSqlParser.KW_CROSS: case HiveSqlParser.KW_DELETE: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DESCRIBE: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DROP: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_EXCEPT: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_FROM: case HiveSqlParser.KW_FULL: case HiveSqlParser.KW_GRANT: case HiveSqlParser.KW_GROUP: case HiveSqlParser.KW_HAVING: case HiveSqlParser.KW_IMPORT: case HiveSqlParser.KW_INNER: case HiveSqlParser.KW_INSERT: case HiveSqlParser.KW_INTERSECT: case HiveSqlParser.KW_JOIN: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LEFT: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_MERGE: case HiveSqlParser.KW_MINUS: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_ORDER: case HiveSqlParser.KW_PREPARE: case HiveSqlParser.KW_QUALIFY: case HiveSqlParser.KW_REDUCE: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REVOKE: case HiveSqlParser.KW_RIGHT: case HiveSqlParser.KW_ROLLBACK: case HiveSqlParser.KW_SELECT: case HiveSqlParser.KW_SET: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_START: case HiveSqlParser.KW_TRUNCATE: case HiveSqlParser.KW_UNION: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UPDATE: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_VALUES: case HiveSqlParser.KW_WHERE: case HiveSqlParser.KW_WINDOW: case HiveSqlParser.KW_WITH: case HiveSqlParser.COMMA: case HiveSqlParser.SEMICOLON: case HiveSqlParser.LPAREN: case HiveSqlParser.RPAREN: break; default: break; } } } this.state = 3951; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public joinSourcePart(): JoinSourcePartContext { let localContext = new JoinSourcePartContext(this.context, this.state); this.enterRule(localContext, 626, HiveSqlParser.RULE_joinSourcePart); try { let alternative: number; this.enterOuterAlt(localContext, 1); { this.state = 3956; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 454, this.context) ) { case 1: { this.state = 3952; this.tableSource(); } break; case 2: { this.state = 3953; this.virtualTableSource(); } break; case 3: { this.state = 3954; this.subQuerySource(); } break; case 4: { this.state = 3955; this.partitionedTableFunction(); } break; } this.state = 3961; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 455, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 3958; this.lateralView(); } } } this.state = 3963; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 455, this.context); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public uniqueJoinSource(): UniqueJoinSourceContext { let localContext = new UniqueJoinSourceContext(this.context, this.state); this.enterRule(localContext, 628, HiveSqlParser.RULE_uniqueJoinSource); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 3965; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 249) { { this.state = 3964; this.match(HiveSqlParser.KW_PRESERVE); } } this.state = 3967; this.uniqueJoinTableSource(); this.state = 3968; this.uniqueJoinExpr(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public uniqueJoinExpr(): UniqueJoinExprContext { let localContext = new UniqueJoinExprContext(this.context, this.state); this.enterRule(localContext, 630, HiveSqlParser.RULE_uniqueJoinExpr); try { this.enterOuterAlt(localContext, 1); { this.state = 3970; this.match(HiveSqlParser.LPAREN); this.state = 3971; this.expressionList(); this.state = 3972; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public uniqueJoinToken(): UniqueJoinTokenContext { let localContext = new UniqueJoinTokenContext(this.context, this.state); this.enterRule(localContext, 632, HiveSqlParser.RULE_uniqueJoinToken); try { this.enterOuterAlt(localContext, 1); { this.state = 3974; this.match(HiveSqlParser.KW_UNIQUEJOIN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public joinToken(): JoinTokenContext { let localContext = new JoinTokenContext(this.context, this.state); this.enterRule(localContext, 634, HiveSqlParser.RULE_joinToken); let _la: number; try { this.state = 3990; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.COMMA: this.enterOuterAlt(localContext, 1); { this.state = 3976; this.match(HiveSqlParser.COMMA); } break; case HiveSqlParser.KW_CROSS: case HiveSqlParser.KW_FULL: case HiveSqlParser.KW_INNER: case HiveSqlParser.KW_JOIN: case HiveSqlParser.KW_LEFT: case HiveSqlParser.KW_RIGHT: this.enterOuterAlt(localContext, 2); { this.state = 3987; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_INNER: { this.state = 3977; this.match(HiveSqlParser.KW_INNER); } break; case HiveSqlParser.KW_CROSS: { this.state = 3978; this.match(HiveSqlParser.KW_CROSS); } break; case HiveSqlParser.KW_FULL: case HiveSqlParser.KW_RIGHT: { this.state = 3979; _la = this.tokenStream.LA(1); if(!(_la === 140 || _la === 284)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 3981; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 230) { { this.state = 3980; this.match(HiveSqlParser.KW_OUTER); } } } break; case HiveSqlParser.KW_LEFT: { this.state = 3983; this.match(HiveSqlParser.KW_LEFT); this.state = 3985; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 12 || _la === 230 || _la === 299) { { this.state = 3984; _la = this.tokenStream.LA(1); if(!(_la === 12 || _la === 230 || _la === 299)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } } break; case HiveSqlParser.KW_JOIN: break; default: break; } this.state = 3989; this.match(HiveSqlParser.KW_JOIN); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public lateralView(): LateralViewContext { let localContext = new LateralViewContext(this.context, this.state); this.enterRule(localContext, 636, HiveSqlParser.RULE_lateralView); let _la: number; try { let alternative: number; this.state = 4049; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 470, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 3992; this.match(HiveSqlParser.KW_LATERAL); this.state = 3993; this.match(HiveSqlParser.KW_VIEW); this.state = 3994; this.match(HiveSqlParser.KW_OUTER); this.state = 3995; this.function_(); this.state = 3996; this.tableAlias(); this.state = 4006; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 3997; this.match(HiveSqlParser.KW_AS); this.state = 3998; this.id_(); this.state = 4003; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 461, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 3999; this.match(HiveSqlParser.COMMA); this.state = 4000; this.id_(); } } } this.state = 4005; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 461, this.context); } } } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4009; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 396) { { this.state = 4008; this.match(HiveSqlParser.COMMA); } } this.state = 4011; this.match(HiveSqlParser.KW_LATERAL); this.state = 4047; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_VIEW: { this.state = 4012; this.match(HiveSqlParser.KW_VIEW); this.state = 4013; this.function_(); this.state = 4014; this.tableAlias(); this.state = 4024; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4015; this.match(HiveSqlParser.KW_AS); this.state = 4016; this.id_(); this.state = 4021; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 464, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 4017; this.match(HiveSqlParser.COMMA); this.state = 4018; this.id_(); } } } this.state = 4023; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 464, this.context); } } } } break; case HiveSqlParser.KW_TABLE: { this.state = 4026; this.match(HiveSqlParser.KW_TABLE); this.state = 4027; this.match(HiveSqlParser.LPAREN); this.state = 4028; this.valuesClause(); this.state = 4029; this.match(HiveSqlParser.RPAREN); this.state = 4031; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4030; this.match(HiveSqlParser.KW_AS); } } this.state = 4033; this.tableAlias(); this.state = 4045; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 468, this.context) ) { case 1: { this.state = 4034; this.match(HiveSqlParser.LPAREN); this.state = 4035; this.id_(); this.state = 4040; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4036; this.match(HiveSqlParser.COMMA); this.state = 4037; this.id_(); } } this.state = 4042; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 4043; this.match(HiveSqlParser.RPAREN); } break; } } break; default: throw new antlr.NoViableAltException(this); } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableAlias(): TableAliasContext { let localContext = new TableAliasContext(this.context, this.state); this.enterRule(localContext, 638, HiveSqlParser.RULE_tableAlias); try { this.enterOuterAlt(localContext, 1); { this.state = 4051; this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableBucketSample(): TableBucketSampleContext { let localContext = new TableBucketSampleContext(this.context, this.state); this.enterRule(localContext, 640, HiveSqlParser.RULE_tableBucketSample); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4053; this.match(HiveSqlParser.KW_TABLESAMPLE); this.state = 4054; this.match(HiveSqlParser.LPAREN); this.state = 4055; this.match(HiveSqlParser.KW_BUCKET); this.state = 4056; localContext._numerator = this.match(HiveSqlParser.Number); this.state = 4057; this.match(HiveSqlParser.KW_OUT); this.state = 4058; this.match(HiveSqlParser.KW_OF); this.state = 4059; localContext._denominator = this.match(HiveSqlParser.Number); this.state = 4069; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 223) { { this.state = 4060; this.match(HiveSqlParser.KW_ON); this.state = 4061; localContext._expression = this.expression(); localContext._expr.push(localContext._expression); this.state = 4066; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4062; this.match(HiveSqlParser.COMMA); this.state = 4063; localContext._expression = this.expression(); localContext._expr.push(localContext._expression); } } this.state = 4068; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } this.state = 4071; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public splitSample(): SplitSampleContext { let localContext = new SplitSampleContext(this.context, this.state); this.enterRule(localContext, 642, HiveSqlParser.RULE_splitSample); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4073; this.match(HiveSqlParser.KW_TABLESAMPLE); this.state = 4074; this.match(HiveSqlParser.LPAREN); this.state = 4078; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.Number: { this.state = 4075; this.match(HiveSqlParser.Number); this.state = 4076; _la = this.tokenStream.LA(1); if(!(_la === 240 || _la === 291)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } break; case HiveSqlParser.ByteLengthLiteral: { this.state = 4077; this.match(HiveSqlParser.ByteLengthLiteral); } break; default: throw new antlr.NoViableAltException(this); } this.state = 4080; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableSample(): TableSampleContext { let localContext = new TableSampleContext(this.context, this.state); this.enterRule(localContext, 644, HiveSqlParser.RULE_tableSample); try { this.state = 4084; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 474, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4082; this.tableBucketSample(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4083; this.splitSample(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableSource(): TableSourceContext { let localContext = new TableSourceContext(this.context, this.state); this.enterRule(localContext, 646, HiveSqlParser.RULE_tableSource); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4086; localContext._tabname = this.tableOrView(); this.state = 4088; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 475, this.context) ) { case 1: { this.state = 4087; localContext._props = this.tableProperties(); } break; } this.state = 4091; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 330) { { this.state = 4090; localContext._ts = this.tableSample(); } } this.state = 4094; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 134) { { this.state = 4093; localContext._asOf = this.asOfClause(); } } this.state = 4100; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 479, this.context) ) { case 1: { this.state = 4097; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4096; this.match(HiveSqlParser.KW_AS); } } this.state = 4099; localContext._alias = this.id_(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public asOfClause(): AsOfClauseContext { let localContext = new AsOfClauseContext(this.context, this.state); this.enterRule(localContext, 648, HiveSqlParser.RULE_asOfClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4102; this.match(HiveSqlParser.KW_FOR); this.state = 4112; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SYSTEM_TIME: { this.state = 4103; this.match(HiveSqlParser.KW_SYSTEM_TIME); this.state = 4104; this.match(HiveSqlParser.KW_AS); this.state = 4105; this.match(HiveSqlParser.KW_OF); this.state = 4106; localContext._asOfTime = this.expression(); } break; case HiveSqlParser.KW_FOR: { this.state = 4107; this.match(HiveSqlParser.KW_FOR); this.state = 4108; this.match(HiveSqlParser.KW_SYSTEM_VERSION); this.state = 4109; this.match(HiveSqlParser.KW_AS); this.state = 4110; this.match(HiveSqlParser.KW_OF); this.state = 4111; localContext._asOfVersion = this.match(HiveSqlParser.Number); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public uniqueJoinTableSource(): UniqueJoinTableSourceContext { let localContext = new UniqueJoinTableSourceContext(this.context, this.state); this.enterRule(localContext, 650, HiveSqlParser.RULE_uniqueJoinTableSource); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4114; localContext._tabname = this.tableOrView(); this.state = 4116; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 330) { { this.state = 4115; localContext._ts = this.tableSample(); } } this.state = 4122; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3252585854) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 94072755) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 3203280837) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 3774298979) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 1985876353) !== 0) || ((((_la - 168)) & ~0x1F) === 0 && ((1 << (_la - 168)) & 3723969527) !== 0) || ((((_la - 200)) & ~0x1F) === 0 && ((1 << (_la - 200)) & 2255187435) !== 0) || ((((_la - 232)) & ~0x1F) === 0 && ((1 << (_la - 232)) & 929578221) !== 0) || ((((_la - 264)) & ~0x1F) === 0 && ((1 << (_la - 264)) & 4039901127) !== 0) || ((((_la - 296)) & ~0x1F) === 0 && ((1 << (_la - 296)) & 3755917179) !== 0) || ((((_la - 329)) & ~0x1F) === 0 && ((1 << (_la - 329)) & 3402225181) !== 0) || ((((_la - 361)) & ~0x1F) === 0 && ((1 << (_la - 361)) & 4238323319) !== 0) || _la === 393 || _la === 431) { { this.state = 4119; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4118; this.match(HiveSqlParser.KW_AS); } } this.state = 4121; localContext._alias = this.id_(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dbSchemaName(): DbSchemaNameContext { let localContext = new DbSchemaNameContext(this.context, this.state); this.enterRule(localContext, 652, HiveSqlParser.RULE_dbSchemaName); try { this.enterOuterAlt(localContext, 1); { this.state = 4124; this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dbSchemaNameCreate(): DbSchemaNameCreateContext { let localContext = new DbSchemaNameCreateContext(this.context, this.state); this.enterRule(localContext, 654, HiveSqlParser.RULE_dbSchemaNameCreate); try { this.enterOuterAlt(localContext, 1); { this.state = 4126; this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableOrView(): TableOrViewContext { let localContext = new TableOrViewContext(this.context, this.state); this.enterRule(localContext, 656, HiveSqlParser.RULE_tableOrView); try { this.state = 4130; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 484, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4128; this.tableName(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4129; this.viewName(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableName(): TableNameContext { let localContext = new TableNameContext(this.context, this.state); this.enterRule(localContext, 658, HiveSqlParser.RULE_tableName); try { this.state = 4140; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 486, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4132; localContext._db = this.id_(); this.state = 4133; this.match(HiveSqlParser.DOT); this.state = 4134; localContext._tab = this.id_(); this.state = 4137; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 485, this.context) ) { case 1: { this.state = 4135; this.match(HiveSqlParser.DOT); this.state = 4136; localContext._meta = this.id_(); } break; } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4139; localContext._tab = this.id_(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableNameCreate(): TableNameCreateContext { let localContext = new TableNameCreateContext(this.context, this.state); this.enterRule(localContext, 660, HiveSqlParser.RULE_tableNameCreate); let _la: number; try { this.state = 4150; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 488, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4142; localContext._db = this.id_(); this.state = 4143; this.match(HiveSqlParser.DOT); this.state = 4144; localContext._tab = this.id_(); this.state = 4147; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 394) { { this.state = 4145; this.match(HiveSqlParser.DOT); this.state = 4146; localContext._meta = this.id_(); } } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4149; localContext._tab = this.id_(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public viewName(): ViewNameContext { let localContext = new ViewNameContext(this.context, this.state); this.enterRule(localContext, 662, HiveSqlParser.RULE_viewName); try { this.enterOuterAlt(localContext, 1); { this.state = 4155; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 489, this.context) ) { case 1: { this.state = 4152; localContext._db = this.id_(); this.state = 4153; this.match(HiveSqlParser.DOT); } break; } this.state = 4157; localContext._view = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public viewNameCreate(): ViewNameCreateContext { let localContext = new ViewNameCreateContext(this.context, this.state); this.enterRule(localContext, 664, HiveSqlParser.RULE_viewNameCreate); try { this.enterOuterAlt(localContext, 1); { this.state = 4162; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 490, this.context) ) { case 1: { this.state = 4159; localContext._db = this.id_(); this.state = 4160; this.match(HiveSqlParser.DOT); } break; } this.state = 4164; localContext._view = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public subQuerySource(): SubQuerySourceContext { let localContext = new SubQuerySourceContext(this.context, this.state); this.enterRule(localContext, 666, HiveSqlParser.RULE_subQuerySource); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4166; this.match(HiveSqlParser.LPAREN); this.state = 4167; this.queryStatementExpression(); this.state = 4168; this.match(HiveSqlParser.RPAREN); this.state = 4170; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4169; this.match(HiveSqlParser.KW_AS); } } this.state = 4172; this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitioningSpec(): PartitioningSpecContext { let localContext = new PartitioningSpecContext(this.context, this.state); this.enterRule(localContext, 668, HiveSqlParser.RULE_partitioningSpec); let _la: number; try { this.state = 4185; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_PARTITION: this.enterOuterAlt(localContext, 1); { this.state = 4174; this.partitionByClause(); this.state = 4176; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 228) { { this.state = 4175; this.orderByClause(); } } } break; case HiveSqlParser.KW_ORDER: this.enterOuterAlt(localContext, 2); { this.state = 4178; this.orderByClause(); } break; case HiveSqlParser.KW_DISTRIBUTE: this.enterOuterAlt(localContext, 3); { this.state = 4179; this.distributeByClause(); this.state = 4181; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 313) { { this.state = 4180; this.sortByClause(); } } } break; case HiveSqlParser.KW_SORT: this.enterOuterAlt(localContext, 4); { this.state = 4183; this.sortByClause(); } break; case HiveSqlParser.KW_CLUSTER: this.enterOuterAlt(localContext, 5); { this.state = 4184; this.clusterByClause(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionTableFunctionSource(): PartitionTableFunctionSourceContext { let localContext = new PartitionTableFunctionSourceContext(this.context, this.state); this.enterRule(localContext, 670, HiveSqlParser.RULE_partitionTableFunctionSource); try { this.state = 4190; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 495, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4187; this.subQuerySource(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4188; this.tableSource(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 4189; this.partitionedTableFunction(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionedTableFunction(): PartitionedTableFunctionContext { let localContext = new PartitionedTableFunctionContext(this.context, this.state); this.enterRule(localContext, 672, HiveSqlParser.RULE_partitionedTableFunction); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4192; localContext._n = this.id_(); this.state = 4193; this.match(HiveSqlParser.LPAREN); this.state = 4194; this.match(HiveSqlParser.KW_ON); this.state = 4195; localContext._ptfsrc = this.partitionTableFunctionSource(); this.state = 4197; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 41 || _la === 97 || _la === 228 || _la === 236 || _la === 313) { { this.state = 4196; localContext._spec = this.partitioningSpec(); } } this.state = 4214; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 431) { { this.state = 4199; this.match(HiveSqlParser.Identifier); this.state = 4200; this.match(HiveSqlParser.LPAREN); this.state = 4201; this.expression(); this.state = 4202; this.match(HiveSqlParser.RPAREN); this.state = 4211; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4203; this.match(HiveSqlParser.COMMA); this.state = 4204; this.match(HiveSqlParser.Identifier); this.state = 4205; this.match(HiveSqlParser.LPAREN); this.state = 4206; this.expression(); this.state = 4207; this.match(HiveSqlParser.RPAREN); } } this.state = 4213; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } this.state = 4216; this.match(HiveSqlParser.RPAREN); this.state = 4218; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 499, this.context) ) { case 1: { this.state = 4217; localContext._alias = this.id_(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public whereClause(): WhereClauseContext { let localContext = new WhereClauseContext(this.context, this.state); this.enterRule(localContext, 674, HiveSqlParser.RULE_whereClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4220; this.match(HiveSqlParser.KW_WHERE); this.state = 4221; this.searchCondition(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public searchCondition(): SearchConditionContext { let localContext = new SearchConditionContext(this.context, this.state); this.enterRule(localContext, 676, HiveSqlParser.RULE_searchCondition); try { this.enterOuterAlt(localContext, 1); { this.state = 4223; this.expression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public valuesSource(): ValuesSourceContext { let localContext = new ValuesSourceContext(this.context, this.state); this.enterRule(localContext, 678, HiveSqlParser.RULE_valuesSource); try { this.enterOuterAlt(localContext, 1); { this.state = 4225; this.valuesClause(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public valuesClause(): ValuesClauseContext { let localContext = new ValuesClauseContext(this.context, this.state); this.enterRule(localContext, 680, HiveSqlParser.RULE_valuesClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4227; this.match(HiveSqlParser.KW_VALUES); this.state = 4228; this.valuesTableConstructor(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public valuesTableConstructor(): ValuesTableConstructorContext { let localContext = new ValuesTableConstructorContext(this.context, this.state); this.enterRule(localContext, 682, HiveSqlParser.RULE_valuesTableConstructor); let _la: number; try { this.state = 4246; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 502, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4230; this.valueRowConstructor(); this.state = 4235; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4231; this.match(HiveSqlParser.COMMA); this.state = 4232; this.valueRowConstructor(); } } this.state = 4237; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4238; this.firstValueRowConstructor(); this.state = 4243; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4239; this.match(HiveSqlParser.COMMA); this.state = 4240; this.valueRowConstructor(); } } this.state = 4245; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public valueRowConstructor(): ValueRowConstructorContext { let localContext = new ValueRowConstructorContext(this.context, this.state); this.enterRule(localContext, 684, HiveSqlParser.RULE_valueRowConstructor); try { this.enterOuterAlt(localContext, 1); { this.state = 4248; this.expressionsInParenthesis(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public firstValueRowConstructor(): FirstValueRowConstructorContext { let localContext = new FirstValueRowConstructorContext(this.context, this.state); this.enterRule(localContext, 686, HiveSqlParser.RULE_firstValueRowConstructor); try { this.enterOuterAlt(localContext, 1); { this.state = 4250; this.match(HiveSqlParser.LPAREN); this.state = 4251; this.firstExpressionsWithAlias(); this.state = 4252; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public virtualTableSource(): VirtualTableSourceContext { let localContext = new VirtualTableSourceContext(this.context, this.state); this.enterRule(localContext, 688, HiveSqlParser.RULE_virtualTableSource); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4254; this.match(HiveSqlParser.KW_TABLE); this.state = 4255; this.match(HiveSqlParser.LPAREN); this.state = 4256; this.valuesClause(); this.state = 4257; this.match(HiveSqlParser.RPAREN); this.state = 4259; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4258; this.match(HiveSqlParser.KW_AS); } } this.state = 4261; this.tableAlias(); this.state = 4271; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 398) { { this.state = 4262; this.match(HiveSqlParser.LPAREN); this.state = 4263; this.id_(); this.state = 4268; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4264; this.match(HiveSqlParser.COMMA); this.state = 4265; this.id_(); } } this.state = 4270; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } this.state = 4273; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public selectClause(): SelectClauseContext { let localContext = new SelectClauseContext(this.context, this.state); this.enterRule(localContext, 690, HiveSqlParser.RULE_selectClause); try { this.state = 4288; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SELECT: this.enterOuterAlt(localContext, 1); { this.state = 4275; this.match(HiveSqlParser.KW_SELECT); this.state = 4277; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 506, this.context) ) { case 1: { this.state = 4276; this.match(HiveSqlParser.QUERY_HINT); } break; } this.state = 4285; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 508, this.context) ) { case 1: { this.state = 4280; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 507, this.context) ) { case 1: { this.state = 4279; this.all_distinct(); } break; } this.state = 4282; this.selectList(); } break; case 2: { this.state = 4283; this.match(HiveSqlParser.KW_TRANSFORM); this.state = 4284; this.selectTrfmClause(); } break; } } break; case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_REDUCE: this.enterOuterAlt(localContext, 2); { this.state = 4287; this.trfmClause(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public all_distinct(): All_distinctContext { let localContext = new All_distinctContext(this.context, this.state); this.enterRule(localContext, 692, HiveSqlParser.RULE_all_distinct); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4290; _la = this.tokenStream.LA(1); if(!(_la === 7 || _la === 96)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public selectList(): SelectListContext { let localContext = new SelectListContext(this.context, this.state); this.enterRule(localContext, 694, HiveSqlParser.RULE_selectList); try { let alternative: number; this.enterOuterAlt(localContext, 1); { this.state = 4292; this.selectItem(); this.state = 4297; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 510, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 4293; this.match(HiveSqlParser.COMMA); this.state = 4294; this.selectItem(); } } } this.state = 4299; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 510, this.context); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public selectTrfmClause(): SelectTrfmClauseContext { let localContext = new SelectTrfmClauseContext(this.context, this.state); this.enterRule(localContext, 696, HiveSqlParser.RULE_selectTrfmClause); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4300; this.match(HiveSqlParser.LPAREN); this.state = 4301; this.selectExpressionList(); this.state = 4302; this.match(HiveSqlParser.RPAREN); this.state = 4303; this.rowFormat(); this.state = 4304; this.recordWriter(); this.state = 4305; this.match(HiveSqlParser.KW_USING); this.state = 4306; this.match(HiveSqlParser.StringLiteral); this.state = 4319; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4307; this.match(HiveSqlParser.KW_AS); this.state = 4317; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 512, this.context) ) { case 1: { this.state = 4308; this.match(HiveSqlParser.LPAREN); this.state = 4311; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 511, this.context) ) { case 1: { this.state = 4309; this.aliasList(); } break; case 2: { this.state = 4310; this.columnNameTypeList(); } break; } this.state = 4313; this.match(HiveSqlParser.RPAREN); } break; case 2: { this.state = 4315; this.aliasList(); } break; case 3: { this.state = 4316; this.columnNameTypeList(); } break; } } } this.state = 4321; this.rowFormat(); this.state = 4322; this.recordReader(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public selectItem(): SelectItemContext { let localContext = new SelectItemContext(this.context, this.state); this.enterRule(localContext, 698, HiveSqlParser.RULE_selectItem); let _la: number; try { this.state = 4347; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 518, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4324; this.tableAllColumns(); } break; case 2: this.enterOuterAlt(localContext, 2); { { this.state = 4327; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 514, this.context) ) { case 1: { this.state = 4325; this.columnName(); } break; case 2: { this.state = 4326; this.expression(); } break; } this.state = 4345; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 517, this.context) ) { case 1: { this.state = 4330; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4329; this.match(HiveSqlParser.KW_AS); } } this.state = 4332; this.id_(); } break; case 2: { this.state = 4333; this.match(HiveSqlParser.KW_AS); this.state = 4334; this.match(HiveSqlParser.LPAREN); this.state = 4335; this.id_(); this.state = 4340; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4336; this.match(HiveSqlParser.COMMA); this.state = 4337; this.id_(); } } this.state = 4342; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 4343; this.match(HiveSqlParser.RPAREN); } break; } } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public trfmClause(): TrfmClauseContext { let localContext = new TrfmClauseContext(this.context, this.state); this.enterRule(localContext, 700, HiveSqlParser.RULE_trfmClause); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4349; _la = this.tokenStream.LA(1); if(!(_la === 197 || _la === 267)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 4350; this.selectExpressionList(); this.state = 4351; this.rowFormat(); this.state = 4352; this.recordWriter(); this.state = 4353; this.match(HiveSqlParser.KW_USING); this.state = 4354; this.match(HiveSqlParser.StringLiteral); this.state = 4367; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4355; this.match(HiveSqlParser.KW_AS); this.state = 4365; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 520, this.context) ) { case 1: { this.state = 4356; this.match(HiveSqlParser.LPAREN); this.state = 4359; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 519, this.context) ) { case 1: { this.state = 4357; this.aliasList(); } break; case 2: { this.state = 4358; this.columnNameTypeList(); } break; } this.state = 4361; this.match(HiveSqlParser.RPAREN); } break; case 2: { this.state = 4363; this.aliasList(); } break; case 3: { this.state = 4364; this.columnNameTypeList(); } break; } } } this.state = 4369; this.rowFormat(); this.state = 4370; this.recordReader(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public selectExpression(): SelectExpressionContext { let localContext = new SelectExpressionContext(this.context, this.state); this.enterRule(localContext, 702, HiveSqlParser.RULE_selectExpression); try { this.state = 4374; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 522, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4372; this.tableAllColumns(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4373; this.expression(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public selectExpressionList(): SelectExpressionListContext { let localContext = new SelectExpressionListContext(this.context, this.state); this.enterRule(localContext, 704, HiveSqlParser.RULE_selectExpressionList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4376; this.selectExpression(); this.state = 4381; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4377; this.match(HiveSqlParser.COMMA); this.state = 4378; this.selectExpression(); } } this.state = 4383; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public window_clause(): Window_clauseContext { let localContext = new Window_clauseContext(this.context, this.state); this.enterRule(localContext, 706, HiveSqlParser.RULE_window_clause); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4384; this.match(HiveSqlParser.KW_WINDOW); this.state = 4385; this.window_defn(); this.state = 4390; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4386; this.match(HiveSqlParser.COMMA); this.state = 4387; this.window_defn(); } } this.state = 4392; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public window_defn(): Window_defnContext { let localContext = new Window_defnContext(this.context, this.state); this.enterRule(localContext, 708, HiveSqlParser.RULE_window_defn); try { this.enterOuterAlt(localContext, 1); { this.state = 4393; this.id_(); this.state = 4394; this.match(HiveSqlParser.KW_AS); this.state = 4395; this.window_specification(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public window_specification(): Window_specificationContext { let localContext = new Window_specificationContext(this.context, this.state); this.enterRule(localContext, 710, HiveSqlParser.RULE_window_specification); let _la: number; try { this.state = 4409; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: case HiveSqlParser.Identifier: this.enterOuterAlt(localContext, 1); { this.state = 4397; this.id_(); } break; case HiveSqlParser.LPAREN: this.enterOuterAlt(localContext, 2); { this.state = 4398; this.match(HiveSqlParser.LPAREN); this.state = 4400; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 525, this.context) ) { case 1: { this.state = 4399; this.id_(); } break; } this.state = 4403; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 41 || _la === 97 || _la === 228 || _la === 236 || _la === 313) { { this.state = 4402; this.partitioningSpec(); } } this.state = 4406; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 259 || _la === 291) { { this.state = 4405; this.window_frame(); } } this.state = 4408; this.match(HiveSqlParser.RPAREN); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public window_frame(): Window_frameContext { let localContext = new Window_frameContext(this.context, this.state); this.enterRule(localContext, 712, HiveSqlParser.RULE_window_frame); try { this.state = 4413; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ROWS: this.enterOuterAlt(localContext, 1); { this.state = 4411; this.window_range_expression(); } break; case HiveSqlParser.KW_RANGE: this.enterOuterAlt(localContext, 2); { this.state = 4412; this.window_value_expression(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public window_range_expression(): Window_range_expressionContext { let localContext = new Window_range_expressionContext(this.context, this.state); this.enterRule(localContext, 714, HiveSqlParser.RULE_window_range_expression); try { this.enterOuterAlt(localContext, 1); { this.state = 4415; this.match(HiveSqlParser.KW_ROWS); this.state = 4422; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_CURRENT: case HiveSqlParser.KW_UNBOUNDED: case HiveSqlParser.Number: { this.state = 4416; this.window_frame_start_boundary(); } break; case HiveSqlParser.KW_BETWEEN: { this.state = 4417; this.match(HiveSqlParser.KW_BETWEEN); this.state = 4418; this.window_frame_boundary(); this.state = 4419; this.match(HiveSqlParser.KW_AND); this.state = 4420; this.window_frame_boundary(); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public window_value_expression(): Window_value_expressionContext { let localContext = new Window_value_expressionContext(this.context, this.state); this.enterRule(localContext, 716, HiveSqlParser.RULE_window_value_expression); try { this.enterOuterAlt(localContext, 1); { this.state = 4424; this.match(HiveSqlParser.KW_RANGE); this.state = 4431; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_CURRENT: case HiveSqlParser.KW_UNBOUNDED: case HiveSqlParser.Number: { this.state = 4425; this.window_frame_start_boundary(); } break; case HiveSqlParser.KW_BETWEEN: { this.state = 4426; this.match(HiveSqlParser.KW_BETWEEN); this.state = 4427; this.window_frame_boundary(); this.state = 4428; this.match(HiveSqlParser.KW_AND); this.state = 4429; this.window_frame_boundary(); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public window_frame_start_boundary(): Window_frame_start_boundaryContext { let localContext = new Window_frame_start_boundaryContext(this.context, this.state); this.enterRule(localContext, 718, HiveSqlParser.RULE_window_frame_start_boundary); try { this.state = 4439; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_UNBOUNDED: this.enterOuterAlt(localContext, 1); { this.state = 4433; this.match(HiveSqlParser.KW_UNBOUNDED); this.state = 4434; this.match(HiveSqlParser.KW_PRECEDING); } break; case HiveSqlParser.KW_CURRENT: this.enterOuterAlt(localContext, 2); { this.state = 4435; this.match(HiveSqlParser.KW_CURRENT); this.state = 4436; this.match(HiveSqlParser.KW_ROW); } break; case HiveSqlParser.Number: this.enterOuterAlt(localContext, 3); { this.state = 4437; this.match(HiveSqlParser.Number); this.state = 4438; this.match(HiveSqlParser.KW_PRECEDING); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public window_frame_boundary(): Window_frame_boundaryContext { let localContext = new Window_frame_boundaryContext(this.context, this.state); this.enterRule(localContext, 720, HiveSqlParser.RULE_window_frame_boundary); let _la: number; try { this.state = 4445; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_UNBOUNDED: case HiveSqlParser.Number: this.enterOuterAlt(localContext, 1); { this.state = 4441; _la = this.tokenStream.LA(1); if(!(_la === 353 || _la === 430)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 4442; _la = this.tokenStream.LA(1); if(!(_la === 133 || _la === 246)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } break; case HiveSqlParser.KW_CURRENT: this.enterOuterAlt(localContext, 2); { this.state = 4443; this.match(HiveSqlParser.KW_CURRENT); this.state = 4444; this.match(HiveSqlParser.KW_ROW); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public groupByClause(): GroupByClauseContext { let localContext = new GroupByClauseContext(this.context, this.state); this.enterRule(localContext, 722, HiveSqlParser.RULE_groupByClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4447; this.match(HiveSqlParser.KW_GROUP); this.state = 4448; this.match(HiveSqlParser.KW_BY); this.state = 4449; this.groupby_expression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public groupby_expression(): Groupby_expressionContext { let localContext = new Groupby_expressionContext(this.context, this.state); this.enterRule(localContext, 724, HiveSqlParser.RULE_groupby_expression); try { this.state = 4455; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 534, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4451; this.columnName(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4452; this.rollupStandard(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 4453; this.rollupOldSyntax(); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 4454; this.groupByEmpty(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public groupByEmpty(): GroupByEmptyContext { let localContext = new GroupByEmptyContext(this.context, this.state); this.enterRule(localContext, 726, HiveSqlParser.RULE_groupByEmpty); try { this.enterOuterAlt(localContext, 1); { this.state = 4457; this.match(HiveSqlParser.LPAREN); this.state = 4458; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rollupStandard(): RollupStandardContext { let localContext = new RollupStandardContext(this.context, this.state); this.enterRule(localContext, 728, HiveSqlParser.RULE_rollupStandard); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4462; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ROLLUP: { this.state = 4460; localContext._rollup = this.match(HiveSqlParser.KW_ROLLUP); } break; case HiveSqlParser.KW_CUBE: { this.state = 4461; localContext._cube = this.match(HiveSqlParser.KW_CUBE); } break; default: throw new antlr.NoViableAltException(this); } this.state = 4464; this.match(HiveSqlParser.LPAREN); this.state = 4465; this.expression(); this.state = 4470; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4466; this.match(HiveSqlParser.COMMA); this.state = 4467; this.expression(); } } this.state = 4472; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 4473; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rollupOldSyntax(): RollupOldSyntaxContext { let localContext = new RollupOldSyntaxContext(this.context, this.state); this.enterRule(localContext, 730, HiveSqlParser.RULE_rollupOldSyntax); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4475; localContext._expr = this.expressionsNotInParenthesis(); this.state = 4480; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 537, this.context) ) { case 1: { this.state = 4476; localContext._rollup = this.match(HiveSqlParser.KW_WITH); this.state = 4477; this.match(HiveSqlParser.KW_ROLLUP); } break; case 2: { this.state = 4478; localContext._cube = this.match(HiveSqlParser.KW_WITH); this.state = 4479; this.match(HiveSqlParser.KW_CUBE); } break; } this.state = 4495; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 145) { { this.state = 4482; localContext._sets = this.match(HiveSqlParser.KW_GROUPING); this.state = 4483; this.match(HiveSqlParser.KW_SETS); this.state = 4484; this.match(HiveSqlParser.LPAREN); this.state = 4485; this.groupingSetExpression(); this.state = 4490; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4486; this.match(HiveSqlParser.COMMA); this.state = 4487; this.groupingSetExpression(); } } this.state = 4492; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 4493; this.match(HiveSqlParser.RPAREN); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public groupingSetExpression(): GroupingSetExpressionContext { let localContext = new GroupingSetExpressionContext(this.context, this.state); this.enterRule(localContext, 732, HiveSqlParser.RULE_groupingSetExpression); try { this.state = 4499; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 540, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4497; this.groupingSetExpressionMultiple(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4498; this.groupingExpressionSingle(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public groupingSetExpressionMultiple(): GroupingSetExpressionMultipleContext { let localContext = new GroupingSetExpressionMultipleContext(this.context, this.state); this.enterRule(localContext, 734, HiveSqlParser.RULE_groupingSetExpressionMultiple); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4501; this.match(HiveSqlParser.LPAREN); this.state = 4503; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3755838846) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 3315298239) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 3203280869) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 3976149863) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 2004783495) !== 0) || ((((_la - 162)) & ~0x1F) === 0 && ((1 << (_la - 162)) & 2112945611) !== 0) || ((((_la - 194)) & ~0x1F) === 0 && ((1 << (_la - 194)) & 2616949503) !== 0) || ((((_la - 226)) & ~0x1F) === 0 && ((1 << (_la - 226)) & 3658431331) !== 0) || ((((_la - 258)) & ~0x1F) === 0 && ((1 << (_la - 258)) & 989854189) !== 0) || ((((_la - 292)) & ~0x1F) === 0 && ((1 << (_la - 292)) & 4260362175) !== 0) || ((((_la - 324)) & ~0x1F) === 0 && ((1 << (_la - 324)) & 1530590125) !== 0) || ((((_la - 356)) & ~0x1F) === 0 && ((1 << (_la - 356)) & 2549468921) !== 0) || ((((_la - 388)) & ~0x1F) === 0 && ((1 << (_la - 388)) & 4294902847) !== 0) || ((((_la - 420)) & ~0x1F) === 0 && ((1 << (_la - 420)) & 7597) !== 0)) { { this.state = 4502; this.expression(); } } this.state = 4509; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4505; this.match(HiveSqlParser.COMMA); this.state = 4506; this.expression(); } } this.state = 4511; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 4512; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public groupingExpressionSingle(): GroupingExpressionSingleContext { let localContext = new GroupingExpressionSingleContext(this.context, this.state); this.enterRule(localContext, 736, HiveSqlParser.RULE_groupingExpressionSingle); try { this.enterOuterAlt(localContext, 1); { this.state = 4514; this.expression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public havingClause(): HavingClauseContext { let localContext = new HavingClauseContext(this.context, this.state); this.enterRule(localContext, 738, HiveSqlParser.RULE_havingClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4516; this.match(HiveSqlParser.KW_HAVING); this.state = 4517; this.havingCondition(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public qualifyClause(): QualifyClauseContext { let localContext = new QualifyClauseContext(this.context, this.state); this.enterRule(localContext, 740, HiveSqlParser.RULE_qualifyClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4519; this.match(HiveSqlParser.KW_QUALIFY); this.state = 4520; this.expression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public havingCondition(): HavingConditionContext { let localContext = new HavingConditionContext(this.context, this.state); this.enterRule(localContext, 742, HiveSqlParser.RULE_havingCondition); try { this.enterOuterAlt(localContext, 1); { this.state = 4522; this.expression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public expressionsInParenthesis(): ExpressionsInParenthesisContext { let localContext = new ExpressionsInParenthesisContext(this.context, this.state); this.enterRule(localContext, 744, HiveSqlParser.RULE_expressionsInParenthesis); try { this.enterOuterAlt(localContext, 1); { this.state = 4524; this.match(HiveSqlParser.LPAREN); this.state = 4525; this.expressionsNotInParenthesis(); this.state = 4526; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public expressionsNotInParenthesis(): ExpressionsNotInParenthesisContext { let localContext = new ExpressionsNotInParenthesisContext(this.context, this.state); this.enterRule(localContext, 746, HiveSqlParser.RULE_expressionsNotInParenthesis); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4528; localContext._first = this.expressionOrDefault(); this.state = 4530; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 396) { { this.state = 4529; localContext._more = this.expressionPart(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public expressionPart(): ExpressionPartContext { let localContext = new ExpressionPartContext(this.context, this.state); this.enterRule(localContext, 748, HiveSqlParser.RULE_expressionPart); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4534; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 4532; this.match(HiveSqlParser.COMMA); this.state = 4533; this.expressionOrDefault(); } } this.state = 4536; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 396); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public expressionOrDefault(): ExpressionOrDefaultContext { let localContext = new ExpressionOrDefaultContext(this.context, this.state); this.enterRule(localContext, 750, HiveSqlParser.RULE_expressionOrDefault); try { this.state = 4540; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 545, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4538; this.defaultValue(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4539; this.expression(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public firstExpressionsWithAlias(): FirstExpressionsWithAliasContext { let localContext = new FirstExpressionsWithAliasContext(this.context, this.state); this.enterRule(localContext, 752, HiveSqlParser.RULE_firstExpressionsWithAlias); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4542; localContext._first = this.expression(); this.state = 4544; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4543; this.match(HiveSqlParser.KW_AS); } } this.state = 4547; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3252454782) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 94072755) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 3203280837) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 3774298979) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 1985876353) !== 0) || ((((_la - 168)) & ~0x1F) === 0 && ((1 << (_la - 168)) & 3723969527) !== 0) || ((((_la - 200)) & ~0x1F) === 0 && ((1 << (_la - 200)) & 2255187435) !== 0) || ((((_la - 232)) & ~0x1F) === 0 && ((1 << (_la - 232)) & 929578221) !== 0) || ((((_la - 264)) & ~0x1F) === 0 && ((1 << (_la - 264)) & 4039901127) !== 0) || ((((_la - 296)) & ~0x1F) === 0 && ((1 << (_la - 296)) & 3755917179) !== 0) || ((((_la - 329)) & ~0x1F) === 0 && ((1 << (_la - 329)) & 3402225181) !== 0) || ((((_la - 361)) & ~0x1F) === 0 && ((1 << (_la - 361)) & 4238323319) !== 0) || _la === 393 || _la === 431) { { this.state = 4546; localContext._colAlias = this.id_(); } } this.state = 4553; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4549; this.match(HiveSqlParser.COMMA); this.state = 4550; this.expressionWithAlias(); } } this.state = 4555; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public expressionWithAlias(): ExpressionWithAliasContext { let localContext = new ExpressionWithAliasContext(this.context, this.state); this.enterRule(localContext, 754, HiveSqlParser.RULE_expressionWithAlias); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4556; this.expression(); this.state = 4558; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 17) { { this.state = 4557; this.match(HiveSqlParser.KW_AS); } } this.state = 4561; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3252454782) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 94072755) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 3203280837) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 3774298979) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 1985876353) !== 0) || ((((_la - 168)) & ~0x1F) === 0 && ((1 << (_la - 168)) & 3723969527) !== 0) || ((((_la - 200)) & ~0x1F) === 0 && ((1 << (_la - 200)) & 2255187435) !== 0) || ((((_la - 232)) & ~0x1F) === 0 && ((1 << (_la - 232)) & 929578221) !== 0) || ((((_la - 264)) & ~0x1F) === 0 && ((1 << (_la - 264)) & 4039901127) !== 0) || ((((_la - 296)) & ~0x1F) === 0 && ((1 << (_la - 296)) & 3755917179) !== 0) || ((((_la - 329)) & ~0x1F) === 0 && ((1 << (_la - 329)) & 3402225181) !== 0) || ((((_la - 361)) & ~0x1F) === 0 && ((1 << (_la - 361)) & 4238323319) !== 0) || _la === 393 || _la === 431) { { this.state = 4560; localContext._alias = this.id_(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public expressions(): ExpressionsContext { let localContext = new ExpressionsContext(this.context, this.state); this.enterRule(localContext, 756, HiveSqlParser.RULE_expressions); try { this.state = 4565; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 551, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4563; this.expressionsInParenthesis(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4564; this.expressionsNotInParenthesis(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnRefOrderInParenthesis(): ColumnRefOrderInParenthesisContext { let localContext = new ColumnRefOrderInParenthesisContext(this.context, this.state); this.enterRule(localContext, 758, HiveSqlParser.RULE_columnRefOrderInParenthesis); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4567; this.match(HiveSqlParser.LPAREN); this.state = 4568; this.columnRefOrder(); this.state = 4573; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4569; this.match(HiveSqlParser.COMMA); this.state = 4570; this.columnRefOrder(); } } this.state = 4575; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 4576; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public columnRefOrderNotInParenthesis(): ColumnRefOrderNotInParenthesisContext { let localContext = new ColumnRefOrderNotInParenthesisContext(this.context, this.state); this.enterRule(localContext, 760, HiveSqlParser.RULE_columnRefOrderNotInParenthesis); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4578; this.columnRefOrder(); this.state = 4583; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4579; this.match(HiveSqlParser.COMMA); this.state = 4580; this.columnRefOrder(); } } this.state = 4585; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public orderByClause(): OrderByClauseContext { let localContext = new OrderByClauseContext(this.context, this.state); this.enterRule(localContext, 762, HiveSqlParser.RULE_orderByClause); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4586; this.match(HiveSqlParser.KW_ORDER); this.state = 4587; this.match(HiveSqlParser.KW_BY); this.state = 4588; this.columnRefOrder(); this.state = 4593; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4589; this.match(HiveSqlParser.COMMA); this.state = 4590; this.columnRefOrder(); } } this.state = 4595; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public clusterByClause(): ClusterByClauseContext { let localContext = new ClusterByClauseContext(this.context, this.state); this.enterRule(localContext, 764, HiveSqlParser.RULE_clusterByClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4596; this.match(HiveSqlParser.KW_CLUSTER); this.state = 4597; this.match(HiveSqlParser.KW_BY); this.state = 4598; this.expressions(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionByClause(): PartitionByClauseContext { let localContext = new PartitionByClauseContext(this.context, this.state); this.enterRule(localContext, 766, HiveSqlParser.RULE_partitionByClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4600; this.match(HiveSqlParser.KW_PARTITION); this.state = 4601; this.match(HiveSqlParser.KW_BY); this.state = 4602; this.expressions(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public distributeByClause(): DistributeByClauseContext { let localContext = new DistributeByClauseContext(this.context, this.state); this.enterRule(localContext, 768, HiveSqlParser.RULE_distributeByClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4604; this.match(HiveSqlParser.KW_DISTRIBUTE); this.state = 4605; this.match(HiveSqlParser.KW_BY); this.state = 4606; this.expressions(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public sortByClause(): SortByClauseContext { let localContext = new SortByClauseContext(this.context, this.state); this.enterRule(localContext, 770, HiveSqlParser.RULE_sortByClause); try { this.enterOuterAlt(localContext, 1); { this.state = 4608; this.match(HiveSqlParser.KW_SORT); this.state = 4609; this.match(HiveSqlParser.KW_BY); this.state = 4612; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 555, this.context) ) { case 1: { this.state = 4610; this.columnRefOrderInParenthesis(); } break; case 2: { this.state = 4611; this.columnRefOrderNotInParenthesis(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public trimFunction(): TrimFunctionContext { let localContext = new TrimFunctionContext(this.context, this.state); this.enterRule(localContext, 772, HiveSqlParser.RULE_trimFunction); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4614; this.match(HiveSqlParser.KW_TRIM); this.state = 4615; this.match(HiveSqlParser.LPAREN); this.state = 4619; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_LEADING: { this.state = 4616; localContext._leading = this.match(HiveSqlParser.KW_LEADING); } break; case HiveSqlParser.KW_TRAILING: { this.state = 4617; localContext._trailing = this.match(HiveSqlParser.KW_TRAILING); } break; case HiveSqlParser.KW_BOTH: { this.state = 4618; this.match(HiveSqlParser.KW_BOTH); } break; case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_AND: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ARRAY: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BETWEEN: case HiveSqlParser.KW_BIGINT: case HiveSqlParser.KW_BINARY: case HiveSqlParser.KW_BOOLEAN: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CASE: case HiveSqlParser.KW_CAST: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_CURRENT_DATE: case HiveSqlParser.KW_CURRENT_TIMESTAMP: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATE: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DOUBLE: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXISTS: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_EXTRACT: case HiveSqlParser.KW_FALSE: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FLOAT: case HiveSqlParser.KW_FLOOR: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FROM: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_GROUPING: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IF: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_IN: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_INT: case HiveSqlParser.KW_INTEGER: case HiveSqlParser.KW_INTERVAL: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIKE: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOT: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULL: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OR: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REAL: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_REGEXP: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_RLIKE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SMALLINT: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMP: case HiveSqlParser.KW_TIMESTAMPLOCALTZ: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TRUE: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHEN: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: case HiveSqlParser.LPAREN: case HiveSqlParser.EQUAL: case HiveSqlParser.EQUAL_NS: case HiveSqlParser.NOTEQUAL: case HiveSqlParser.LESSTHANOREQUALTO: case HiveSqlParser.LESSTHAN: case HiveSqlParser.GREATERTHANOREQUALTO: case HiveSqlParser.GREATERTHAN: case HiveSqlParser.DIVIDE: case HiveSqlParser.PLUS: case HiveSqlParser.MINUS: case HiveSqlParser.STAR: case HiveSqlParser.MOD: case HiveSqlParser.DIV: case HiveSqlParser.BITWISENOT: case HiveSqlParser.AMPERSAND: case HiveSqlParser.TILDE: case HiveSqlParser.BITWISEOR: case HiveSqlParser.BITWISEXOR: case HiveSqlParser.QUESTION: case HiveSqlParser.StringLiteral: case HiveSqlParser.IntegralLiteral: case HiveSqlParser.NumberLiteral: case HiveSqlParser.Number: case HiveSqlParser.Identifier: case HiveSqlParser.CharSetName: break; default: break; } this.state = 4622; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3755838846) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 3315298239) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 3203280869) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 3976149863) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 2004783495) !== 0) || ((((_la - 162)) & ~0x1F) === 0 && ((1 << (_la - 162)) & 2112945611) !== 0) || ((((_la - 194)) & ~0x1F) === 0 && ((1 << (_la - 194)) & 2616949503) !== 0) || ((((_la - 226)) & ~0x1F) === 0 && ((1 << (_la - 226)) & 3658431331) !== 0) || ((((_la - 258)) & ~0x1F) === 0 && ((1 << (_la - 258)) & 989854189) !== 0) || ((((_la - 292)) & ~0x1F) === 0 && ((1 << (_la - 292)) & 4260362175) !== 0) || ((((_la - 324)) & ~0x1F) === 0 && ((1 << (_la - 324)) & 1530590125) !== 0) || ((((_la - 356)) & ~0x1F) === 0 && ((1 << (_la - 356)) & 2549468921) !== 0) || ((((_la - 388)) & ~0x1F) === 0 && ((1 << (_la - 388)) & 4294902847) !== 0) || ((((_la - 420)) & ~0x1F) === 0 && ((1 << (_la - 420)) & 7597) !== 0)) { { this.state = 4621; localContext._trim_characters = this.selectExpression(); } } this.state = 4624; this.match(HiveSqlParser.KW_FROM); this.state = 4625; localContext._str = this.selectExpression(); this.state = 4626; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public function_(): Function_Context { let localContext = new Function_Context(this.context, this.state); this.enterRule(localContext, 774, HiveSqlParser.RULE_function_); let _la: number; try { this.state = 4668; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 564, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4628; this.trimFunction(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4629; this.functionNameForInvoke(); this.state = 4630; this.match(HiveSqlParser.LPAREN); this.state = 4645; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 561, this.context) ) { case 1: { this.state = 4631; localContext._star = this.match(HiveSqlParser.STAR); } break; case 2: { this.state = 4633; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 7 || _la === 96) { { this.state = 4632; localContext._dist = this.all_distinct(); } } this.state = 4643; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 560, this.context) ) { case 1: { this.state = 4635; this.selectExpression(); this.state = 4640; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 4636; this.match(HiveSqlParser.COMMA); this.state = 4637; this.selectExpression(); } } this.state = 4642; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } break; } } break; } this.state = 4666; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 563, this.context) ) { case 1: { this.state = 4647; this.match(HiveSqlParser.RPAREN); this.state = 4648; localContext._within = this.match(HiveSqlParser.KW_WITHIN); this.state = 4649; this.match(HiveSqlParser.KW_GROUP); this.state = 4650; this.match(HiveSqlParser.LPAREN); this.state = 4651; localContext._ordBy = this.orderByClause(); this.state = 4652; this.match(HiveSqlParser.RPAREN); } break; case 2: { this.state = 4654; this.match(HiveSqlParser.RPAREN); this.state = 4656; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 152 || _la === 280) { { this.state = 4655; localContext._nt = this.null_treatment(); } } this.state = 4658; this.match(HiveSqlParser.KW_OVER); this.state = 4659; localContext._ws = this.window_specification(); } break; case 3: { this.state = 4660; localContext._nt = this.null_treatment(); this.state = 4661; this.match(HiveSqlParser.RPAREN); this.state = 4662; this.match(HiveSqlParser.KW_OVER); this.state = 4663; localContext._ws = this.window_specification(); } break; case 4: { this.state = 4665; this.match(HiveSqlParser.RPAREN); } break; } } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public null_treatment(): Null_treatmentContext { let localContext = new Null_treatmentContext(this.context, this.state); this.enterRule(localContext, 776, HiveSqlParser.RULE_null_treatment); try { this.state = 4674; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_RESPECT: this.enterOuterAlt(localContext, 1); { this.state = 4670; this.match(HiveSqlParser.KW_RESPECT); this.state = 4671; this.match(HiveSqlParser.KW_NULLS); } break; case HiveSqlParser.KW_IGNORE: this.enterOuterAlt(localContext, 2); { this.state = 4672; this.match(HiveSqlParser.KW_IGNORE); this.state = 4673; this.match(HiveSqlParser.KW_NULLS); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public functionNameCreate(): FunctionNameCreateContext { let localContext = new FunctionNameCreateContext(this.context, this.state); this.enterRule(localContext, 778, HiveSqlParser.RULE_functionNameCreate); try { this.enterOuterAlt(localContext, 1); { this.state = 4676; this.functionIdentifier(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public functionNameForDDL(): FunctionNameForDDLContext { let localContext = new FunctionNameForDDLContext(this.context, this.state); this.enterRule(localContext, 780, HiveSqlParser.RULE_functionNameForDDL); try { this.state = 4680; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: case HiveSqlParser.Identifier: this.enterOuterAlt(localContext, 1); { this.state = 4678; this.userDefinedFuncName(); } break; case HiveSqlParser.StringLiteral: this.enterOuterAlt(localContext, 2); { this.state = 4679; this.match(HiveSqlParser.StringLiteral); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public functionNameForInvoke(): FunctionNameForInvokeContext { let localContext = new FunctionNameForInvokeContext(this.context, this.state); this.enterRule(localContext, 782, HiveSqlParser.RULE_functionNameForInvoke); try { this.state = 4684; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 567, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4682; this.userDefinedFuncName(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4683; this.internalFunctionName(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public userDefinedFuncName(): UserDefinedFuncNameContext { let localContext = new UserDefinedFuncNameContext(this.context, this.state); this.enterRule(localContext, 784, HiveSqlParser.RULE_userDefinedFuncName); try { this.enterOuterAlt(localContext, 1); { this.state = 4686; this.functionIdentifier(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public internalFunctionName(): InternalFunctionNameContext { let localContext = new InternalFunctionNameContext(this.context, this.state); this.enterRule(localContext, 786, HiveSqlParser.RULE_internalFunctionName); try { this.state = 4690; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 568, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4688; this.sql11ReservedKeywordsUsedAsFunctionName(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4689; this.sysFuncNames(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public castExpression(): CastExpressionContext { let localContext = new CastExpressionContext(this.context, this.state); this.enterRule(localContext, 788, HiveSqlParser.RULE_castExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4692; this.match(HiveSqlParser.KW_CAST); this.state = 4693; this.match(HiveSqlParser.LPAREN); this.state = 4694; this.expression(); this.state = 4695; this.match(HiveSqlParser.KW_AS); this.state = 4696; localContext._toType = this.primitiveType(); this.state = 4699; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 137) { { this.state = 4697; localContext._fmt = this.match(HiveSqlParser.KW_FORMAT); this.state = 4698; this.match(HiveSqlParser.StringLiteral); } } this.state = 4701; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public caseExpression(): CaseExpressionContext { let localContext = new CaseExpressionContext(this.context, this.state); this.enterRule(localContext, 790, HiveSqlParser.RULE_caseExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4703; this.match(HiveSqlParser.KW_CASE); this.state = 4704; this.expression(); this.state = 4710; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 4705; this.match(HiveSqlParser.KW_WHEN); this.state = 4706; this.expression(); this.state = 4707; this.match(HiveSqlParser.KW_THEN); this.state = 4708; this.expression(); } } this.state = 4712; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 382); this.state = 4716; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 105) { { this.state = 4714; this.match(HiveSqlParser.KW_ELSE); this.state = 4715; this.expression(); } } this.state = 4718; this.match(HiveSqlParser.KW_END); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public whenExpression(): WhenExpressionContext { let localContext = new WhenExpressionContext(this.context, this.state); this.enterRule(localContext, 792, HiveSqlParser.RULE_whenExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4720; this.match(HiveSqlParser.KW_CASE); this.state = 4726; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 4721; this.match(HiveSqlParser.KW_WHEN); this.state = 4722; this.expression(); this.state = 4723; this.match(HiveSqlParser.KW_THEN); this.state = 4724; this.expression(); } } this.state = 4728; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 382); this.state = 4732; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 105) { { this.state = 4730; this.match(HiveSqlParser.KW_ELSE); this.state = 4731; this.expression(); } } this.state = 4734; this.match(HiveSqlParser.KW_END); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public floorExpression(): FloorExpressionContext { let localContext = new FloorExpressionContext(this.context, this.state); this.enterRule(localContext, 794, HiveSqlParser.RULE_floorExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4736; this.match(HiveSqlParser.KW_FLOOR); this.state = 4737; this.match(HiveSqlParser.LPAREN); this.state = 4738; this.expression(); this.state = 4741; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 340) { { this.state = 4739; this.match(HiveSqlParser.KW_TO); this.state = 4740; localContext._floorUnit = this.floorDateQualifiers(); } } this.state = 4743; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public floorDateQualifiers(): FloorDateQualifiersContext { let localContext = new FloorDateQualifiersContext(this.context, this.state); this.enterRule(localContext, 796, HiveSqlParser.RULE_floorDateQualifiers); try { this.state = 4753; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: this.enterOuterAlt(localContext, 1); { this.state = 4745; this.year(); } break; case HiveSqlParser.KW_QUARTER: this.enterOuterAlt(localContext, 2); { this.state = 4746; this.match(HiveSqlParser.KW_QUARTER); } break; case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: this.enterOuterAlt(localContext, 3); { this.state = 4747; this.month(); } break; case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: this.enterOuterAlt(localContext, 4); { this.state = 4748; this.week(); } break; case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: this.enterOuterAlt(localContext, 5); { this.state = 4749; this.day(); } break; case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: this.enterOuterAlt(localContext, 6); { this.state = 4750; this.hour(); } break; case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: this.enterOuterAlt(localContext, 7); { this.state = 4751; this.minute(); } break; case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: this.enterOuterAlt(localContext, 8); { this.state = 4752; this.second(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public extractExpression(): ExtractExpressionContext { let localContext = new ExtractExpressionContext(this.context, this.state); this.enterRule(localContext, 798, HiveSqlParser.RULE_extractExpression); try { this.enterOuterAlt(localContext, 1); { this.state = 4755; this.match(HiveSqlParser.KW_EXTRACT); this.state = 4756; this.match(HiveSqlParser.LPAREN); this.state = 4757; localContext._timeUnit = this.timeQualifiers(); this.state = 4758; this.match(HiveSqlParser.KW_FROM); this.state = 4759; this.expression(); this.state = 4760; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public timeQualifiers(): TimeQualifiersContext { let localContext = new TimeQualifiersContext(this.context, this.state); this.enterRule(localContext, 800, HiveSqlParser.RULE_timeQualifiers); try { this.state = 4770; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: this.enterOuterAlt(localContext, 1); { this.state = 4762; this.year(); } break; case HiveSqlParser.KW_QUARTER: this.enterOuterAlt(localContext, 2); { this.state = 4763; this.match(HiveSqlParser.KW_QUARTER); } break; case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: this.enterOuterAlt(localContext, 3); { this.state = 4764; this.month(); } break; case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: this.enterOuterAlt(localContext, 4); { this.state = 4765; this.week(); } break; case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: this.enterOuterAlt(localContext, 5); { this.state = 4766; this.day(); } break; case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: this.enterOuterAlt(localContext, 6); { this.state = 4767; this.hour(); } break; case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: this.enterOuterAlt(localContext, 7); { this.state = 4768; this.minute(); } break; case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: this.enterOuterAlt(localContext, 8); { this.state = 4769; this.second(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public constant(): ConstantContext { let localContext = new ConstantContext(this.context, this.state); this.enterRule(localContext, 802, HiveSqlParser.RULE_constant); try { this.state = 4785; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 577, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4772; this.intervalLiteral(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4773; this.match(HiveSqlParser.Number); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 4774; this.dateLiteral(); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 4775; this.timestampLiteral(); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 4776; this.timestampLocalTZLiteral(); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 4777; this.match(HiveSqlParser.StringLiteral); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 4778; this.stringLiteralSequence(); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 4779; this.match(HiveSqlParser.IntegralLiteral); } break; case 9: this.enterOuterAlt(localContext, 9); { this.state = 4780; this.match(HiveSqlParser.NumberLiteral); } break; case 10: this.enterOuterAlt(localContext, 10); { this.state = 4781; this.charSetStringLiteral(); } break; case 11: this.enterOuterAlt(localContext, 11); { this.state = 4782; this.booleanValue(); } break; case 12: this.enterOuterAlt(localContext, 12); { this.state = 4783; this.match(HiveSqlParser.KW_NULL); } break; case 13: this.enterOuterAlt(localContext, 13); { this.state = 4784; this.prepareStmtParam(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public prepareStmtParam(): PrepareStmtParamContext { let localContext = new PrepareStmtParamContext(this.context, this.state); this.enterRule(localContext, 804, HiveSqlParser.RULE_prepareStmtParam); try { this.enterOuterAlt(localContext, 1); { this.state = 4787; localContext._p = this.parameterIdx(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public parameterIdx(): ParameterIdxContext { let localContext = new ParameterIdxContext(this.context, this.state); this.enterRule(localContext, 806, HiveSqlParser.RULE_parameterIdx); try { this.enterOuterAlt(localContext, 1); { this.state = 4789; this.match(HiveSqlParser.QUESTION); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public stringLiteralSequence(): StringLiteralSequenceContext { let localContext = new StringLiteralSequenceContext(this.context, this.state); this.enterRule(localContext, 808, HiveSqlParser.RULE_stringLiteralSequence); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4791; this.match(HiveSqlParser.StringLiteral); this.state = 4793; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); do { { { this.state = 4792; this.match(HiveSqlParser.StringLiteral); } } this.state = 4795; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } while (_la === 425); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public charSetStringLiteral(): CharSetStringLiteralContext { let localContext = new CharSetStringLiteralContext(this.context, this.state); this.enterRule(localContext, 810, HiveSqlParser.RULE_charSetStringLiteral); try { this.enterOuterAlt(localContext, 1); { this.state = 4797; localContext._csName = this.match(HiveSqlParser.CharSetName); this.state = 4798; localContext._csLiteral = this.match(HiveSqlParser.CharSetLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dateLiteral(): DateLiteralContext { let localContext = new DateLiteralContext(this.context, this.state); this.enterRule(localContext, 812, HiveSqlParser.RULE_dateLiteral); try { this.state = 4803; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_DATE: this.enterOuterAlt(localContext, 1); { this.state = 4800; this.match(HiveSqlParser.KW_DATE); this.state = 4801; this.match(HiveSqlParser.StringLiteral); } break; case HiveSqlParser.KW_CURRENT_DATE: this.enterOuterAlt(localContext, 2); { this.state = 4802; this.match(HiveSqlParser.KW_CURRENT_DATE); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public timestampLiteral(): TimestampLiteralContext { let localContext = new TimestampLiteralContext(this.context, this.state); this.enterRule(localContext, 814, HiveSqlParser.RULE_timestampLiteral); try { this.state = 4808; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_TIMESTAMP: this.enterOuterAlt(localContext, 1); { this.state = 4805; this.match(HiveSqlParser.KW_TIMESTAMP); this.state = 4806; this.match(HiveSqlParser.StringLiteral); } break; case HiveSqlParser.KW_CURRENT_TIMESTAMP: this.enterOuterAlt(localContext, 2); { this.state = 4807; this.match(HiveSqlParser.KW_CURRENT_TIMESTAMP); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public timestampLocalTZLiteral(): TimestampLocalTZLiteralContext { let localContext = new TimestampLocalTZLiteralContext(this.context, this.state); this.enterRule(localContext, 816, HiveSqlParser.RULE_timestampLocalTZLiteral); try { this.enterOuterAlt(localContext, 1); { this.state = 4810; this.match(HiveSqlParser.KW_TIMESTAMPLOCALTZ); this.state = 4811; this.match(HiveSqlParser.StringLiteral); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public intervalValue(): IntervalValueContext { let localContext = new IntervalValueContext(this.context, this.state); this.enterRule(localContext, 818, HiveSqlParser.RULE_intervalValue); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4813; _la = this.tokenStream.LA(1); if(!(_la === 425 || _la === 430)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public intervalLiteral(): IntervalLiteralContext { let localContext = new IntervalLiteralContext(this.context, this.state); this.enterRule(localContext, 820, HiveSqlParser.RULE_intervalLiteral); try { this.enterOuterAlt(localContext, 1); { this.state = 4815; localContext._value = this.intervalValue(); this.state = 4816; localContext._qualifiers = this.intervalQualifiers(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public intervalExpression(): IntervalExpressionContext { let localContext = new IntervalExpressionContext(this.context, this.state); this.enterRule(localContext, 822, HiveSqlParser.RULE_intervalExpression); try { this.state = 4833; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.LPAREN: this.enterOuterAlt(localContext, 1); { this.state = 4818; this.match(HiveSqlParser.LPAREN); this.state = 4819; localContext._value = this.intervalValue(); this.state = 4820; this.match(HiveSqlParser.RPAREN); this.state = 4821; localContext._qualifiers = this.intervalQualifiers(); } break; case HiveSqlParser.KW_INTERVAL: this.enterOuterAlt(localContext, 2); { this.state = 4823; this.match(HiveSqlParser.KW_INTERVAL); this.state = 4829; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.StringLiteral: case HiveSqlParser.Number: { this.state = 4824; localContext._value = this.intervalValue(); } break; case HiveSqlParser.LPAREN: { this.state = 4825; this.match(HiveSqlParser.LPAREN); this.state = 4826; localContext._expr = this.expression(); this.state = 4827; this.match(HiveSqlParser.RPAREN); } break; default: throw new antlr.NoViableAltException(this); } this.state = 4831; localContext._qualifiers = this.intervalQualifiers(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public intervalQualifiers(): IntervalQualifiersContext { let localContext = new IntervalQualifiersContext(this.context, this.state); this.enterRule(localContext, 824, HiveSqlParser.RULE_intervalQualifiers); try { this.state = 4849; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 583, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4835; this.year(); this.state = 4836; this.match(HiveSqlParser.KW_TO); this.state = 4837; this.month(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4839; this.day(); this.state = 4840; this.match(HiveSqlParser.KW_TO); this.state = 4841; this.second(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 4843; this.year(); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 4844; this.month(); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 4845; this.day(); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 4846; this.hour(); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 4847; this.minute(); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 4848; this.second(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public expression(): ExpressionContext { let localContext = new ExpressionContext(this.context, this.state); this.enterRule(localContext, 826, HiveSqlParser.RULE_expression); try { this.enterOuterAlt(localContext, 1); { this.state = 4851; this.precedenceOrExpression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public atomExpression(): AtomExpressionContext { let localContext = new AtomExpressionContext(this.context, this.state); this.enterRule(localContext, 828, HiveSqlParser.RULE_atomExpression); try { this.state = 4864; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 584, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4853; this.constant(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4854; this.intervalExpression(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 4855; this.castExpression(); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 4856; this.extractExpression(); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 4857; this.floorExpression(); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 4858; this.caseExpression(); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 4859; this.whenExpression(); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 4860; this.subQueryExpression(); } break; case 9: this.enterOuterAlt(localContext, 9); { this.state = 4861; this.function_(); } break; case 10: this.enterOuterAlt(localContext, 10); { this.state = 4862; this.expressionsInParenthesis(); } break; case 11: this.enterOuterAlt(localContext, 11); { this.state = 4863; this.id_(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceFieldExpression(): PrecedenceFieldExpressionContext { let localContext = new PrecedenceFieldExpressionContext(this.context, this.state); this.enterRule(localContext, 830, HiveSqlParser.RULE_precedenceFieldExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4866; this.atomExpression(); this.state = 4875; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 394 || _la === 400) { { this.state = 4873; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.LSQUARE: { this.state = 4867; this.match(HiveSqlParser.LSQUARE); this.state = 4868; this.expression(); this.state = 4869; this.match(HiveSqlParser.RSQUARE); } break; case HiveSqlParser.DOT: { this.state = 4871; this.match(HiveSqlParser.DOT); this.state = 4872; this.id_(); } break; default: throw new antlr.NoViableAltException(this); } } this.state = 4877; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceUnaryOperator(): PrecedenceUnaryOperatorContext { let localContext = new PrecedenceUnaryOperatorContext(this.context, this.state); this.enterRule(localContext, 832, HiveSqlParser.RULE_precedenceUnaryOperator); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4878; _la = this.tokenStream.LA(1); if(!(((((_la - 412)) & ~0x1F) === 0 && ((1 << (_la - 412)) & 163) !== 0))) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceUnaryPrefixExpression(): PrecedenceUnaryPrefixExpressionContext { let localContext = new PrecedenceUnaryPrefixExpressionContext(this.context, this.state); this.enterRule(localContext, 834, HiveSqlParser.RULE_precedenceUnaryPrefixExpression); try { let alternative: number; this.enterOuterAlt(localContext, 1); { this.state = 4883; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 587, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 4880; this.precedenceUnaryOperator(); } } } this.state = 4885; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 587, this.context); } this.state = 4886; this.precedenceFieldExpression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceBitwiseXorOperator(): PrecedenceBitwiseXorOperatorContext { let localContext = new PrecedenceBitwiseXorOperatorContext(this.context, this.state); this.enterRule(localContext, 836, HiveSqlParser.RULE_precedenceBitwiseXorOperator); try { this.enterOuterAlt(localContext, 1); { this.state = 4888; this.match(HiveSqlParser.BITWISEXOR); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceBitwiseXorExpression(): PrecedenceBitwiseXorExpressionContext { let localContext = new PrecedenceBitwiseXorExpressionContext(this.context, this.state); this.enterRule(localContext, 838, HiveSqlParser.RULE_precedenceBitwiseXorExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4890; this.precedenceUnaryPrefixExpression(); this.state = 4896; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 422) { { { this.state = 4891; this.precedenceBitwiseXorOperator(); this.state = 4892; this.precedenceUnaryPrefixExpression(); } } this.state = 4898; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceStarOperator(): PrecedenceStarOperatorContext { let localContext = new PrecedenceStarOperatorContext(this.context, this.state); this.enterRule(localContext, 840, HiveSqlParser.RULE_precedenceStarOperator); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4899; _la = this.tokenStream.LA(1); if(!(((((_la - 411)) & ~0x1F) === 0 && ((1 << (_la - 411)) & 57) !== 0))) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceStarExpression(): PrecedenceStarExpressionContext { let localContext = new PrecedenceStarExpressionContext(this.context, this.state); this.enterRule(localContext, 842, HiveSqlParser.RULE_precedenceStarExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4901; this.precedenceBitwiseXorExpression(); this.state = 4907; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (((((_la - 411)) & ~0x1F) === 0 && ((1 << (_la - 411)) & 57) !== 0)) { { { this.state = 4902; this.precedenceStarOperator(); this.state = 4903; this.precedenceBitwiseXorExpression(); } } this.state = 4909; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedencePlusOperator(): PrecedencePlusOperatorContext { let localContext = new PrecedencePlusOperatorContext(this.context, this.state); this.enterRule(localContext, 844, HiveSqlParser.RULE_precedencePlusOperator); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4910; _la = this.tokenStream.LA(1); if(!(_la === 412 || _la === 413)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedencePlusExpression(): PrecedencePlusExpressionContext { let localContext = new PrecedencePlusExpressionContext(this.context, this.state); this.enterRule(localContext, 846, HiveSqlParser.RULE_precedencePlusExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4912; this.precedenceStarExpression(); this.state = 4918; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 412 || _la === 413) { { { this.state = 4913; this.precedencePlusOperator(); this.state = 4914; this.precedenceStarExpression(); } } this.state = 4920; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceConcatenateOperator(): PrecedenceConcatenateOperatorContext { let localContext = new PrecedenceConcatenateOperatorContext(this.context, this.state); this.enterRule(localContext, 848, HiveSqlParser.RULE_precedenceConcatenateOperator); try { this.enterOuterAlt(localContext, 1); { this.state = 4921; this.match(HiveSqlParser.CONCATENATE); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceConcatenateExpression(): PrecedenceConcatenateExpressionContext { let localContext = new PrecedenceConcatenateExpressionContext(this.context, this.state); this.enterRule(localContext, 850, HiveSqlParser.RULE_precedenceConcatenateExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4923; this.precedencePlusExpression(); this.state = 4929; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 421) { { { this.state = 4924; this.precedenceConcatenateOperator(); this.state = 4925; localContext._plus = this.precedencePlusExpression(); } } this.state = 4931; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceAmpersandOperator(): PrecedenceAmpersandOperatorContext { let localContext = new PrecedenceAmpersandOperatorContext(this.context, this.state); this.enterRule(localContext, 852, HiveSqlParser.RULE_precedenceAmpersandOperator); try { this.enterOuterAlt(localContext, 1); { this.state = 4932; this.match(HiveSqlParser.AMPERSAND); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceAmpersandExpression(): PrecedenceAmpersandExpressionContext { let localContext = new PrecedenceAmpersandExpressionContext(this.context, this.state); this.enterRule(localContext, 854, HiveSqlParser.RULE_precedenceAmpersandExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4934; this.precedenceConcatenateExpression(); this.state = 4940; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 418) { { { this.state = 4935; this.precedenceAmpersandOperator(); this.state = 4936; this.precedenceConcatenateExpression(); } } this.state = 4942; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceBitwiseOrOperator(): PrecedenceBitwiseOrOperatorContext { let localContext = new PrecedenceBitwiseOrOperatorContext(this.context, this.state); this.enterRule(localContext, 856, HiveSqlParser.RULE_precedenceBitwiseOrOperator); try { this.enterOuterAlt(localContext, 1); { this.state = 4943; this.match(HiveSqlParser.BITWISEOR); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceBitwiseOrExpression(): PrecedenceBitwiseOrExpressionContext { let localContext = new PrecedenceBitwiseOrExpressionContext(this.context, this.state); this.enterRule(localContext, 858, HiveSqlParser.RULE_precedenceBitwiseOrExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4945; this.precedenceAmpersandExpression(); this.state = 4951; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 420) { { { this.state = 4946; this.precedenceBitwiseOrOperator(); this.state = 4947; this.precedenceAmpersandExpression(); } } this.state = 4953; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceRegexpOperator(): PrecedenceRegexpOperatorContext { let localContext = new PrecedenceRegexpOperatorContext(this.context, this.state); this.enterRule(localContext, 860, HiveSqlParser.RULE_precedenceRegexpOperator); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 4954; _la = this.tokenStream.LA(1); if(!(_la === 183 || _la === 269 || _la === 285)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceSimilarOperator(): PrecedenceSimilarOperatorContext { let localContext = new PrecedenceSimilarOperatorContext(this.context, this.state); this.enterRule(localContext, 862, HiveSqlParser.RULE_precedenceSimilarOperator); try { this.state = 4961; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_LIKE: case HiveSqlParser.KW_REGEXP: case HiveSqlParser.KW_RLIKE: this.enterOuterAlt(localContext, 1); { this.state = 4956; this.precedenceRegexpOperator(); } break; case HiveSqlParser.LESSTHANOREQUALTO: this.enterOuterAlt(localContext, 2); { this.state = 4957; this.match(HiveSqlParser.LESSTHANOREQUALTO); } break; case HiveSqlParser.LESSTHAN: this.enterOuterAlt(localContext, 3); { this.state = 4958; this.match(HiveSqlParser.LESSTHAN); } break; case HiveSqlParser.GREATERTHANOREQUALTO: this.enterOuterAlt(localContext, 4); { this.state = 4959; this.match(HiveSqlParser.GREATERTHANOREQUALTO); } break; case HiveSqlParser.GREATERTHAN: this.enterOuterAlt(localContext, 5); { this.state = 4960; this.match(HiveSqlParser.GREATERTHAN); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public subQueryExpression(): SubQueryExpressionContext { let localContext = new SubQueryExpressionContext(this.context, this.state); this.enterRule(localContext, 864, HiveSqlParser.RULE_subQueryExpression); try { this.enterOuterAlt(localContext, 1); { this.state = 4963; this.match(HiveSqlParser.LPAREN); this.state = 4964; this.selectStatement(); this.state = 4965; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceSimilarExpression(): PrecedenceSimilarExpressionContext { let localContext = new PrecedenceSimilarExpressionContext(this.context, this.state); this.enterRule(localContext, 866, HiveSqlParser.RULE_precedenceSimilarExpression); try { this.state = 4970; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_AND: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ARRAY: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BETWEEN: case HiveSqlParser.KW_BIGINT: case HiveSqlParser.KW_BINARY: case HiveSqlParser.KW_BOOLEAN: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CASE: case HiveSqlParser.KW_CAST: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_CURRENT_DATE: case HiveSqlParser.KW_CURRENT_TIMESTAMP: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATE: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DOUBLE: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_EXTRACT: case HiveSqlParser.KW_FALSE: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FLOAT: case HiveSqlParser.KW_FLOOR: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_GROUPING: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IF: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_IN: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_INT: case HiveSqlParser.KW_INTEGER: case HiveSqlParser.KW_INTERVAL: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIKE: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAP: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOT: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULL: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OR: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REAL: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_REGEXP: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_RLIKE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SMALLINT: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMP: case HiveSqlParser.KW_TIMESTAMPLOCALTZ: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TRUE: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHEN: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: case HiveSqlParser.LPAREN: case HiveSqlParser.EQUAL: case HiveSqlParser.EQUAL_NS: case HiveSqlParser.NOTEQUAL: case HiveSqlParser.LESSTHANOREQUALTO: case HiveSqlParser.LESSTHAN: case HiveSqlParser.GREATERTHANOREQUALTO: case HiveSqlParser.GREATERTHAN: case HiveSqlParser.DIVIDE: case HiveSqlParser.PLUS: case HiveSqlParser.MINUS: case HiveSqlParser.STAR: case HiveSqlParser.MOD: case HiveSqlParser.DIV: case HiveSqlParser.BITWISENOT: case HiveSqlParser.AMPERSAND: case HiveSqlParser.TILDE: case HiveSqlParser.BITWISEOR: case HiveSqlParser.BITWISEXOR: case HiveSqlParser.QUESTION: case HiveSqlParser.StringLiteral: case HiveSqlParser.IntegralLiteral: case HiveSqlParser.NumberLiteral: case HiveSqlParser.Number: case HiveSqlParser.Identifier: case HiveSqlParser.CharSetName: this.enterOuterAlt(localContext, 1); { this.state = 4967; this.precedenceSimilarExpressionMain(); } break; case HiveSqlParser.KW_EXISTS: this.enterOuterAlt(localContext, 2); { this.state = 4968; this.match(HiveSqlParser.KW_EXISTS); this.state = 4969; this.subQueryExpression(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceSimilarExpressionMain(): PrecedenceSimilarExpressionMainContext { let localContext = new PrecedenceSimilarExpressionMainContext(this.context, this.state); this.enterRule(localContext, 868, HiveSqlParser.RULE_precedenceSimilarExpressionMain); try { this.enterOuterAlt(localContext, 1); { this.state = 4972; localContext._a = this.precedenceBitwiseOrExpression(); this.state = 4974; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 596, this.context) ) { case 1: { this.state = 4973; localContext._part = this.precedenceSimilarExpressionPart(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceSimilarExpressionPart(): PrecedenceSimilarExpressionPartContext { let localContext = new PrecedenceSimilarExpressionPartContext(this.context, this.state); this.enterRule(localContext, 870, HiveSqlParser.RULE_precedenceSimilarExpressionPart); try { this.state = 4982; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 597, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 4976; this.precedenceSimilarOperator(); this.state = 4977; localContext._equalExpr = this.precedenceBitwiseOrExpression(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 4979; this.precedenceSimilarExpressionAtom(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 4980; this.match(HiveSqlParser.KW_NOT); this.state = 4981; this.precedenceSimilarExpressionPartNot(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceSimilarExpressionAtom(): PrecedenceSimilarExpressionAtomContext { let localContext = new PrecedenceSimilarExpressionAtomContext(this.context, this.state); this.enterRule(localContext, 872, HiveSqlParser.RULE_precedenceSimilarExpressionAtom); let _la: number; try { this.state = 4995; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_IN: this.enterOuterAlt(localContext, 1); { this.state = 4984; this.match(HiveSqlParser.KW_IN); this.state = 4985; this.precedenceSimilarExpressionIn(); } break; case HiveSqlParser.KW_BETWEEN: this.enterOuterAlt(localContext, 2); { this.state = 4986; this.match(HiveSqlParser.KW_BETWEEN); this.state = 4987; localContext._min = this.precedenceBitwiseOrExpression(); this.state = 4988; this.match(HiveSqlParser.KW_AND); this.state = 4989; localContext._max = this.precedenceBitwiseOrExpression(); } break; case HiveSqlParser.KW_LIKE: this.enterOuterAlt(localContext, 3); { this.state = 4991; this.match(HiveSqlParser.KW_LIKE); this.state = 4992; _la = this.tokenStream.LA(1); if(!(_la === 7 || _la === 13)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 4993; localContext._expr = this.expressionsInParenthesis(); } break; case HiveSqlParser.EQUAL: case HiveSqlParser.NOTEQUAL: case HiveSqlParser.LESSTHANOREQUALTO: case HiveSqlParser.LESSTHAN: case HiveSqlParser.GREATERTHANOREQUALTO: case HiveSqlParser.GREATERTHAN: this.enterOuterAlt(localContext, 4); { this.state = 4994; this.precedenceSimilarExpressionQuantifierPredicate(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceSimilarExpressionQuantifierPredicate(): PrecedenceSimilarExpressionQuantifierPredicateContext { let localContext = new PrecedenceSimilarExpressionQuantifierPredicateContext(this.context, this.state); this.enterRule(localContext, 874, HiveSqlParser.RULE_precedenceSimilarExpressionQuantifierPredicate); try { this.enterOuterAlt(localContext, 1); { this.state = 4997; this.subQuerySelectorOperator(); this.state = 4998; this.quantifierType(); this.state = 4999; this.subQueryExpression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public quantifierType(): QuantifierTypeContext { let localContext = new QuantifierTypeContext(this.context, this.state); this.enterRule(localContext, 876, HiveSqlParser.RULE_quantifierType); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5001; _la = this.tokenStream.LA(1); if(!(_la === 7 || _la === 13 || _la === 312)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceSimilarExpressionIn(): PrecedenceSimilarExpressionInContext { let localContext = new PrecedenceSimilarExpressionInContext(this.context, this.state); this.enterRule(localContext, 878, HiveSqlParser.RULE_precedenceSimilarExpressionIn); try { this.state = 5005; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 599, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 5003; this.subQueryExpression(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 5004; localContext._expr = this.expressionsInParenthesis(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceSimilarExpressionPartNot(): PrecedenceSimilarExpressionPartNotContext { let localContext = new PrecedenceSimilarExpressionPartNotContext(this.context, this.state); this.enterRule(localContext, 880, HiveSqlParser.RULE_precedenceSimilarExpressionPartNot); try { this.state = 5011; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 600, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 5007; this.precedenceRegexpOperator(); this.state = 5008; localContext._notExpr = this.precedenceBitwiseOrExpression(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 5010; this.precedenceSimilarExpressionAtom(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceDistinctOperator(): PrecedenceDistinctOperatorContext { let localContext = new PrecedenceDistinctOperatorContext(this.context, this.state); this.enterRule(localContext, 882, HiveSqlParser.RULE_precedenceDistinctOperator); try { this.enterOuterAlt(localContext, 1); { this.state = 5013; this.match(HiveSqlParser.KW_IS); this.state = 5014; this.match(HiveSqlParser.KW_DISTINCT); this.state = 5015; this.match(HiveSqlParser.KW_FROM); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceEqualOperator(): PrecedenceEqualOperatorContext { let localContext = new PrecedenceEqualOperatorContext(this.context, this.state); this.enterRule(localContext, 884, HiveSqlParser.RULE_precedenceEqualOperator); try { this.state = 5024; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.EQUAL: this.enterOuterAlt(localContext, 1); { this.state = 5017; this.match(HiveSqlParser.EQUAL); } break; case HiveSqlParser.EQUAL_NS: this.enterOuterAlt(localContext, 2); { this.state = 5018; this.match(HiveSqlParser.EQUAL_NS); } break; case HiveSqlParser.NOTEQUAL: this.enterOuterAlt(localContext, 3); { this.state = 5019; this.match(HiveSqlParser.NOTEQUAL); } break; case HiveSqlParser.KW_IS: this.enterOuterAlt(localContext, 4); { this.state = 5020; this.match(HiveSqlParser.KW_IS); this.state = 5021; this.match(HiveSqlParser.KW_NOT); this.state = 5022; this.match(HiveSqlParser.KW_DISTINCT); this.state = 5023; this.match(HiveSqlParser.KW_FROM); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceEqualExpression(): PrecedenceEqualExpressionContext { let localContext = new PrecedenceEqualExpressionContext(this.context, this.state); this.enterRule(localContext, 886, HiveSqlParser.RULE_precedenceEqualExpression); try { let alternative: number; this.enterOuterAlt(localContext, 1); { this.state = 5026; this.precedenceSimilarExpression(); this.state = 5035; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 603, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { this.state = 5033; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 602, this.context) ) { case 1: { this.state = 5027; localContext._precedenceEqualOperator = this.precedenceEqualOperator(); localContext._equal.push(localContext._precedenceEqualOperator); this.state = 5028; localContext._precedenceSimilarExpression = this.precedenceSimilarExpression(); localContext._p.push(localContext._precedenceSimilarExpression); } break; case 2: { this.state = 5030; localContext._precedenceDistinctOperator = this.precedenceDistinctOperator(); localContext._dist.push(localContext._precedenceDistinctOperator); this.state = 5031; localContext._precedenceSimilarExpression = this.precedenceSimilarExpression(); localContext._p.push(localContext._precedenceSimilarExpression); } break; } } } this.state = 5037; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 603, this.context); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public isCondition(): IsConditionContext { let localContext = new IsConditionContext(this.context, this.state); this.enterRule(localContext, 888, HiveSqlParser.RULE_isCondition); try { this.state = 5050; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 604, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 5038; this.match(HiveSqlParser.KW_NULL); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 5039; this.match(HiveSqlParser.KW_TRUE); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 5040; this.match(HiveSqlParser.KW_FALSE); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 5041; this.match(HiveSqlParser.KW_UNKNOWN); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 5042; this.match(HiveSqlParser.KW_NOT); this.state = 5043; this.match(HiveSqlParser.KW_NULL); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 5044; this.match(HiveSqlParser.KW_NOT); this.state = 5045; this.match(HiveSqlParser.KW_TRUE); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 5046; this.match(HiveSqlParser.KW_NOT); this.state = 5047; this.match(HiveSqlParser.KW_FALSE); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 5048; this.match(HiveSqlParser.KW_NOT); this.state = 5049; this.match(HiveSqlParser.KW_UNKNOWN); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceUnarySuffixExpression(): PrecedenceUnarySuffixExpressionContext { let localContext = new PrecedenceUnarySuffixExpressionContext(this.context, this.state); this.enterRule(localContext, 890, HiveSqlParser.RULE_precedenceUnarySuffixExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5052; this.precedenceEqualExpression(); this.state = 5055; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 167) { { this.state = 5053; localContext._a = this.match(HiveSqlParser.KW_IS); this.state = 5054; this.isCondition(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceNotOperator(): PrecedenceNotOperatorContext { let localContext = new PrecedenceNotOperatorContext(this.context, this.state); this.enterRule(localContext, 892, HiveSqlParser.RULE_precedenceNotOperator); try { this.enterOuterAlt(localContext, 1); { this.state = 5057; this.match(HiveSqlParser.KW_NOT); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceNotExpression(): PrecedenceNotExpressionContext { let localContext = new PrecedenceNotExpressionContext(this.context, this.state); this.enterRule(localContext, 894, HiveSqlParser.RULE_precedenceNotExpression); try { let alternative: number; this.enterOuterAlt(localContext, 1); { this.state = 5062; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 606, this.context); while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) { if (alternative === 1) { { { this.state = 5059; this.precedenceNotOperator(); } } } this.state = 5064; this.errorHandler.sync(this); alternative = this.interpreter.adaptivePredict(this.tokenStream, 606, this.context); } this.state = 5065; this.precedenceUnarySuffixExpression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceAndOperator(): PrecedenceAndOperatorContext { let localContext = new PrecedenceAndOperatorContext(this.context, this.state); this.enterRule(localContext, 896, HiveSqlParser.RULE_precedenceAndOperator); try { this.enterOuterAlt(localContext, 1); { this.state = 5067; this.match(HiveSqlParser.KW_AND); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceAndExpression(): PrecedenceAndExpressionContext { let localContext = new PrecedenceAndExpressionContext(this.context, this.state); this.enterRule(localContext, 898, HiveSqlParser.RULE_precedenceAndExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5069; this.precedenceNotExpression(); this.state = 5075; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 11) { { { this.state = 5070; this.precedenceAndOperator(); this.state = 5071; this.precedenceNotExpression(); } } this.state = 5077; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceOrOperator(): PrecedenceOrOperatorContext { let localContext = new PrecedenceOrOperatorContext(this.context, this.state); this.enterRule(localContext, 900, HiveSqlParser.RULE_precedenceOrOperator); try { this.enterOuterAlt(localContext, 1); { this.state = 5078; this.match(HiveSqlParser.KW_OR); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public precedenceOrExpression(): PrecedenceOrExpressionContext { let localContext = new PrecedenceOrExpressionContext(this.context, this.state); this.enterRule(localContext, 902, HiveSqlParser.RULE_precedenceOrExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5080; this.precedenceAndExpression(); this.state = 5086; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 227) { { { this.state = 5081; this.precedenceOrOperator(); this.state = 5082; this.precedenceAndExpression(); } } this.state = 5088; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public booleanValue(): BooleanValueContext { let localContext = new BooleanValueContext(this.context, this.state); this.enterRule(localContext, 904, HiveSqlParser.RULE_booleanValue); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5089; _la = this.tokenStream.LA(1); if(!(_la === 125 || _la === 349)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public booleanValueTok(): BooleanValueTokContext { let localContext = new BooleanValueTokContext(this.context, this.state); this.enterRule(localContext, 906, HiveSqlParser.RULE_booleanValueTok); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5091; _la = this.tokenStream.LA(1); if(!(_la === 125 || _la === 349)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public tableOrPartition(): TableOrPartitionContext { let localContext = new TableOrPartitionContext(this.context, this.state); this.enterRule(localContext, 908, HiveSqlParser.RULE_tableOrPartition); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5093; this.tableName(); this.state = 5095; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 236) { { this.state = 5094; this.partitionSpec(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionSpec(): PartitionSpecContext { let localContext = new PartitionSpecContext(this.context, this.state); this.enterRule(localContext, 910, HiveSqlParser.RULE_partitionSpec); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5097; this.match(HiveSqlParser.KW_PARTITION); this.state = 5098; this.match(HiveSqlParser.LPAREN); this.state = 5099; this.partitionVal(); this.state = 5104; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 5100; this.match(HiveSqlParser.COMMA); this.state = 5101; this.partitionVal(); } } this.state = 5106; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 5107; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionVal(): PartitionValContext { let localContext = new PartitionValContext(this.context, this.state); this.enterRule(localContext, 912, HiveSqlParser.RULE_partitionVal); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5109; this.id_(); this.state = 5112; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 404) { { this.state = 5110; this.match(HiveSqlParser.EQUAL); this.state = 5111; this.constant(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionSelectorSpec(): PartitionSelectorSpecContext { let localContext = new PartitionSelectorSpecContext(this.context, this.state); this.enterRule(localContext, 914, HiveSqlParser.RULE_partitionSelectorSpec); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5114; this.match(HiveSqlParser.LPAREN); this.state = 5115; this.partitionSelectorVal(); this.state = 5120; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 5116; this.match(HiveSqlParser.COMMA); this.state = 5117; this.partitionSelectorVal(); } } this.state = 5122; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } this.state = 5123; this.match(HiveSqlParser.RPAREN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionSelectorVal(): PartitionSelectorValContext { let localContext = new PartitionSelectorValContext(this.context, this.state); this.enterRule(localContext, 916, HiveSqlParser.RULE_partitionSelectorVal); try { this.enterOuterAlt(localContext, 1); { this.state = 5125; this.id_(); this.state = 5126; this.partitionSelectorOperator(); this.state = 5127; this.constant(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public partitionSelectorOperator(): PartitionSelectorOperatorContext { let localContext = new PartitionSelectorOperatorContext(this.context, this.state); this.enterRule(localContext, 918, HiveSqlParser.RULE_partitionSelectorOperator); try { this.state = 5131; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_LIKE: this.enterOuterAlt(localContext, 1); { this.state = 5129; this.match(HiveSqlParser.KW_LIKE); } break; case HiveSqlParser.EQUAL: case HiveSqlParser.NOTEQUAL: case HiveSqlParser.LESSTHANOREQUALTO: case HiveSqlParser.LESSTHAN: case HiveSqlParser.GREATERTHANOREQUALTO: case HiveSqlParser.GREATERTHAN: this.enterOuterAlt(localContext, 2); { this.state = 5130; this.subQuerySelectorOperator(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public subQuerySelectorOperator(): SubQuerySelectorOperatorContext { let localContext = new SubQuerySelectorOperatorContext(this.context, this.state); this.enterRule(localContext, 920, HiveSqlParser.RULE_subQuerySelectorOperator); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5133; _la = this.tokenStream.LA(1); if(!(((((_la - 404)) & ~0x1F) === 0 && ((1 << (_la - 404)) & 125) !== 0))) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public sysFuncNames(): SysFuncNamesContext { let localContext = new SysFuncNamesContext(this.context, this.state); this.enterRule(localContext, 922, HiveSqlParser.RULE_sysFuncNames); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5135; _la = this.tokenStream.LA(1); if(!(((((_la - 11)) & ~0x1F) === 0 && ((1 << (_la - 11)) & 17023009) !== 0) || _la === 100 || _la === 131 || ((((_la - 132)) & ~0x1F) === 0 && ((1 << (_la - 132)) & 3225944065) !== 0) || _la === 183 || _la === 197 || _la === 215 || _la === 227 || ((((_la - 263)) & ~0x1F) === 0 && ((1 << (_la - 263)) & 4194369) !== 0) || ((((_la - 310)) & ~0x1F) === 0 && ((1 << (_la - 310)) & 536883201) !== 0) || _la === 356 || _la === 382 || ((((_la - 404)) & ~0x1F) === 0 && ((1 << (_la - 404)) & 385023) !== 0))) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public id_(): Id_Context { let localContext = new Id_Context(this.context, this.state); this.enterRule(localContext, 924, HiveSqlParser.RULE_id_); try { this.state = 5139; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.Identifier: this.enterOuterAlt(localContext, 1); { this.state = 5137; this.match(HiveSqlParser.Identifier); } break; case HiveSqlParser.KW_ABORT: case HiveSqlParser.KW_ACTIVATE: case HiveSqlParser.KW_ACTIVE: case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_ADMIN: case HiveSqlParser.KW_AFTER: case HiveSqlParser.KW_ALLOC_FRACTION: case HiveSqlParser.KW_ANALYZE: case HiveSqlParser.KW_ARCHIVE: case HiveSqlParser.KW_ASC: case HiveSqlParser.KW_AST: case HiveSqlParser.KW_AT: case HiveSqlParser.KW_AUTOCOMMIT: case HiveSqlParser.KW_BATCH: case HiveSqlParser.KW_BEFORE: case HiveSqlParser.KW_BUCKET: case HiveSqlParser.KW_BUCKETS: case HiveSqlParser.KW_CACHE: case HiveSqlParser.KW_CASCADE: case HiveSqlParser.KW_CBO: case HiveSqlParser.KW_CHANGE: case HiveSqlParser.KW_CHECK: case HiveSqlParser.KW_CLUSTER: case HiveSqlParser.KW_CLUSTERED: case HiveSqlParser.KW_CLUSTERSTATUS: case HiveSqlParser.KW_COLLECTION: case HiveSqlParser.KW_COLUMNS: case HiveSqlParser.KW_COMMENT: case HiveSqlParser.KW_COMPACT: case HiveSqlParser.KW_COMPACTIONS: case HiveSqlParser.KW_COMPUTE: case HiveSqlParser.KW_CONCATENATE: case HiveSqlParser.KW_CONTINUE: case HiveSqlParser.KW_COST: case HiveSqlParser.KW_CRON: case HiveSqlParser.KW_DATA: case HiveSqlParser.KW_DATABASES: case HiveSqlParser.KW_DATETIME: case HiveSqlParser.KW_DAY: case HiveSqlParser.KW_DAYS: case HiveSqlParser.KW_DAYOFWEEK: case HiveSqlParser.KW_DBPROPERTIES: case HiveSqlParser.KW_DCPROPERTIES: case HiveSqlParser.KW_DEBUG: case HiveSqlParser.KW_DEFAULT: case HiveSqlParser.KW_DEFERRED: case HiveSqlParser.KW_DEFINED: case HiveSqlParser.KW_DELIMITED: case HiveSqlParser.KW_DEPENDENCY: case HiveSqlParser.KW_DESC: case HiveSqlParser.KW_DETAIL: case HiveSqlParser.KW_DIRECTORIES: case HiveSqlParser.KW_DIRECTORY: case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: case HiveSqlParser.KW_DISTRIBUTE: case HiveSqlParser.KW_DISTRIBUTED: case HiveSqlParser.KW_DO: case HiveSqlParser.KW_DUMP: case HiveSqlParser.KW_ELEM_TYPE: case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: case HiveSqlParser.KW_ENFORCED: case HiveSqlParser.KW_ESCAPED: case HiveSqlParser.KW_EVERY: case HiveSqlParser.KW_EXCLUSIVE: case HiveSqlParser.KW_EXECUTE: case HiveSqlParser.KW_EXECUTED: case HiveSqlParser.KW_EXPIRE_SNAPSHOTS: case HiveSqlParser.KW_EXPLAIN: case HiveSqlParser.KW_EXPORT: case HiveSqlParser.KW_EXPRESSION: case HiveSqlParser.KW_FIELDS: case HiveSqlParser.KW_FILE: case HiveSqlParser.KW_FILEFORMAT: case HiveSqlParser.KW_FIRST: case HiveSqlParser.KW_FORMAT: case HiveSqlParser.KW_FORMATTED: case HiveSqlParser.KW_FUNCTIONS: case HiveSqlParser.KW_HOLD_DDLTIME: case HiveSqlParser.KW_HOUR: case HiveSqlParser.KW_HOURS: case HiveSqlParser.KW_IDXPROPERTIES: case HiveSqlParser.KW_IGNORE: case HiveSqlParser.KW_INDEX: case HiveSqlParser.KW_INDEXES: case HiveSqlParser.KW_INPATH: case HiveSqlParser.KW_INPUTDRIVER: case HiveSqlParser.KW_INPUTFORMAT: case HiveSqlParser.KW_ISOLATION: case HiveSqlParser.KW_ITEMS: case HiveSqlParser.KW_JAR: case HiveSqlParser.KW_JOINCOST: case HiveSqlParser.KW_KEY: case HiveSqlParser.KW_KEYS: case HiveSqlParser.KW_KEY_TYPE: case HiveSqlParser.KW_KILL: case HiveSqlParser.KW_LAST: case HiveSqlParser.KW_LEVEL: case HiveSqlParser.KW_LIMIT: case HiveSqlParser.KW_LINES: case HiveSqlParser.KW_LOAD: case HiveSqlParser.KW_LOCATION: case HiveSqlParser.KW_LOCK: case HiveSqlParser.KW_LOCKS: case HiveSqlParser.KW_LOGICAL: case HiveSqlParser.KW_LONG: case HiveSqlParser.KW_MANAGED: case HiveSqlParser.KW_MANAGEDLOCATION: case HiveSqlParser.KW_MANAGEMENT: case HiveSqlParser.KW_MAPJOIN: case HiveSqlParser.KW_MAPPING: case HiveSqlParser.KW_MATCHED: case HiveSqlParser.KW_MATERIALIZED: case HiveSqlParser.KW_METADATA: case HiveSqlParser.KW_MINUTE: case HiveSqlParser.KW_MINUTES: case HiveSqlParser.KW_MONTH: case HiveSqlParser.KW_MONTHS: case HiveSqlParser.KW_MOVE: case HiveSqlParser.KW_MSCK: case HiveSqlParser.KW_NORELY: case HiveSqlParser.KW_NOSCAN: case HiveSqlParser.KW_NOVALIDATE: case HiveSqlParser.KW_NO_DROP: case HiveSqlParser.KW_NULLS: case HiveSqlParser.KW_OFFLINE: case HiveSqlParser.KW_OFFSET: case HiveSqlParser.KW_OPERATOR: case HiveSqlParser.KW_OPTION: case HiveSqlParser.KW_OUTPUTDRIVER: case HiveSqlParser.KW_OUTPUTFORMAT: case HiveSqlParser.KW_OVERWRITE: case HiveSqlParser.KW_OWNER: case HiveSqlParser.KW_PARTITIONED: case HiveSqlParser.KW_PARTITIONS: case HiveSqlParser.KW_PATH: case HiveSqlParser.KW_PLAN: case HiveSqlParser.KW_PLANS: case HiveSqlParser.KW_PLUS: case HiveSqlParser.KW_POOL: case HiveSqlParser.KW_PRINCIPALS: case HiveSqlParser.KW_PROTECTION: case HiveSqlParser.KW_PURGE: case HiveSqlParser.KW_QUARTER: case HiveSqlParser.KW_QUERY: case HiveSqlParser.KW_QUERY_PARALLELISM: case HiveSqlParser.KW_READ: case HiveSqlParser.KW_READONLY: case HiveSqlParser.KW_REBUILD: case HiveSqlParser.KW_RECORDREADER: case HiveSqlParser.KW_RECORDWRITER: case HiveSqlParser.KW_RELOAD: case HiveSqlParser.KW_RELY: case HiveSqlParser.KW_REMOTE: case HiveSqlParser.KW_RENAME: case HiveSqlParser.KW_REOPTIMIZATION: case HiveSqlParser.KW_REPAIR: case HiveSqlParser.KW_REPL: case HiveSqlParser.KW_REPLACE: case HiveSqlParser.KW_REPLICATION: case HiveSqlParser.KW_RESOURCE: case HiveSqlParser.KW_RESPECT: case HiveSqlParser.KW_RESTRICT: case HiveSqlParser.KW_REWRITE: case HiveSqlParser.KW_ROLE: case HiveSqlParser.KW_ROLES: case HiveSqlParser.KW_SCHEDULED: case HiveSqlParser.KW_SCHEDULING_POLICY: case HiveSqlParser.KW_SCHEMA: case HiveSqlParser.KW_SCHEMAS: case HiveSqlParser.KW_SECOND: case HiveSqlParser.KW_SECONDS: case HiveSqlParser.KW_SEMI: case HiveSqlParser.KW_SERDE: case HiveSqlParser.KW_SERDEPROPERTIES: case HiveSqlParser.KW_SERVER: case HiveSqlParser.KW_SETS: case HiveSqlParser.KW_SET_CURRENT_SNAPSHOT: case HiveSqlParser.KW_SHARED: case HiveSqlParser.KW_SHOW: case HiveSqlParser.KW_SHOW_DATABASE: case HiveSqlParser.KW_SKEWED: case HiveSqlParser.KW_SNAPSHOT: case HiveSqlParser.KW_SORT: case HiveSqlParser.KW_SORTED: case HiveSqlParser.KW_SPEC: case HiveSqlParser.KW_SSL: case HiveSqlParser.KW_STATISTICS: case HiveSqlParser.KW_STATUS: case HiveSqlParser.KW_STORED: case HiveSqlParser.KW_STREAMTABLE: case HiveSqlParser.KW_STRING: case HiveSqlParser.KW_STRUCT: case HiveSqlParser.KW_SUMMARY: case HiveSqlParser.KW_SYSTEM_TIME: case HiveSqlParser.KW_SYSTEM_VERSION: case HiveSqlParser.KW_TABLES: case HiveSqlParser.KW_TBLPROPERTIES: case HiveSqlParser.KW_TEMPORARY: case HiveSqlParser.KW_TERMINATED: case HiveSqlParser.KW_TIMESTAMPTZ: case HiveSqlParser.KW_TINYINT: case HiveSqlParser.KW_TOUCH: case HiveSqlParser.KW_TRANSACTION: case HiveSqlParser.KW_TRANSACTIONAL: case HiveSqlParser.KW_TRANSACTIONS: case HiveSqlParser.KW_TRIM: case HiveSqlParser.KW_TYPE: case HiveSqlParser.KW_UNARCHIVE: case HiveSqlParser.KW_UNDO: case HiveSqlParser.KW_UNIONTYPE: case HiveSqlParser.KW_UNKNOWN: case HiveSqlParser.KW_UNLOCK: case HiveSqlParser.KW_UNMANAGED: case HiveSqlParser.KW_UNSET: case HiveSqlParser.KW_UNSIGNED: case HiveSqlParser.KW_URI: case HiveSqlParser.KW_URL: case HiveSqlParser.KW_USE: case HiveSqlParser.KW_UTC: case HiveSqlParser.KW_UTCTIMESTAMP: case HiveSqlParser.KW_VALIDATE: case HiveSqlParser.KW_VALUE_TYPE: case HiveSqlParser.KW_VECTORIZATION: case HiveSqlParser.KW_VIEW: case HiveSqlParser.KW_VIEWS: case HiveSqlParser.KW_WAIT: case HiveSqlParser.KW_WEEK: case HiveSqlParser.KW_WEEKS: case HiveSqlParser.KW_WHILE: case HiveSqlParser.KW_WITHIN: case HiveSqlParser.KW_WORK: case HiveSqlParser.KW_WORKLOAD: case HiveSqlParser.KW_WRITE: case HiveSqlParser.KW_YEAR: case HiveSqlParser.KW_YEARS: case HiveSqlParser.KW_ZONE: this.enterOuterAlt(localContext, 2); { this.state = 5138; this.nonReserved(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public functionIdentifier(): FunctionIdentifierContext { let localContext = new FunctionIdentifierContext(this.context, this.state); this.enterRule(localContext, 926, HiveSqlParser.RULE_functionIdentifier); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5141; this.id_(); this.state = 5144; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 394) { { this.state = 5142; this.match(HiveSqlParser.DOT); this.state = 5143; localContext._fn = this.id_(); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public principalIdentifier(): PrincipalIdentifierContext { let localContext = new PrincipalIdentifierContext(this.context, this.state); this.enterRule(localContext, 928, HiveSqlParser.RULE_principalIdentifier); try { this.enterOuterAlt(localContext, 1); { this.state = 5146; this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public nonReserved(): NonReservedContext { let localContext = new NonReservedContext(this.context, this.state); this.enterRule(localContext, 930, HiveSqlParser.RULE_nonReserved); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5148; _la = this.tokenStream.LA(1); if(!((((_la) & ~0x1F) === 0 && ((1 << _la) & 3252454782) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 94072755) !== 0) || ((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 3203280837) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 3774298979) !== 0) || ((((_la - 130)) & ~0x1F) === 0 && ((1 << (_la - 130)) & 1985876353) !== 0) || ((((_la - 168)) & ~0x1F) === 0 && ((1 << (_la - 168)) & 3723969527) !== 0) || ((((_la - 200)) & ~0x1F) === 0 && ((1 << (_la - 200)) & 2255187435) !== 0) || ((((_la - 232)) & ~0x1F) === 0 && ((1 << (_la - 232)) & 929578221) !== 0) || ((((_la - 264)) & ~0x1F) === 0 && ((1 << (_la - 264)) & 4039901127) !== 0) || ((((_la - 296)) & ~0x1F) === 0 && ((1 << (_la - 296)) & 3755917179) !== 0) || ((((_la - 329)) & ~0x1F) === 0 && ((1 << (_la - 329)) & 3402225181) !== 0) || ((((_la - 361)) & ~0x1F) === 0 && ((1 << (_la - 361)) & 4238323319) !== 0) || _la === 393)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public sql11ReservedKeywordsUsedAsFunctionName(): Sql11ReservedKeywordsUsedAsFunctionNameContext { let localContext = new Sql11ReservedKeywordsUsedAsFunctionNameContext(this.context, this.state); this.enterRule(localContext, 932, HiveSqlParser.RULE_sql11ReservedKeywordsUsedAsFunctionName); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5150; _la = this.tokenStream.LA(1); if(!((((_la) & ~0x1F) === 0 && ((1 << _la) & 469827584) !== 0) || ((((_la - 63)) & ~0x1F) === 0 && ((1 << (_la - 63)) & 259) !== 0) || _la === 100 || _la === 131 || ((((_la - 145)) & ~0x1F) === 0 && ((1 << (_la - 145)) & 393281) !== 0) || _la === 197 || _la === 263 || _la === 310 || _la === 336)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public hint(): HintContext { let localContext = new HintContext(this.context, this.state); this.enterRule(localContext, 934, HiveSqlParser.RULE_hint); try { this.enterOuterAlt(localContext, 1); { this.state = 5152; this.hintList(); this.state = 5153; this.match(HiveSqlParser.EOF); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public hintList(): HintListContext { let localContext = new HintListContext(this.context, this.state); this.enterRule(localContext, 936, HiveSqlParser.RULE_hintList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5155; this.hintItem(); this.state = 5160; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 5156; this.match(HiveSqlParser.COMMA); this.state = 5157; this.hintItem(); } } this.state = 5162; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public hintItem(): HintItemContext { let localContext = new HintItemContext(this.context, this.state); this.enterRule(localContext, 938, HiveSqlParser.RULE_hintItem); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5163; this.hintName(); this.state = 5168; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 398) { { this.state = 5164; this.match(HiveSqlParser.LPAREN); this.state = 5165; this.hintArgs(); this.state = 5166; this.match(HiveSqlParser.RPAREN); } } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public hintName(): HintNameContext { let localContext = new HintNameContext(this.context, this.state); this.enterRule(localContext, 940, HiveSqlParser.RULE_hintName); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5170; _la = this.tokenStream.LA(1); if(!(_la === 198 || _la === 241 || _la === 299 || _la === 321)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public hintArgs(): HintArgsContext { let localContext = new HintArgsContext(this.context, this.state); this.enterRule(localContext, 942, HiveSqlParser.RULE_hintArgs); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5172; this.hintArgName(); this.state = 5177; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 5173; this.match(HiveSqlParser.COMMA); this.state = 5174; this.hintArgName(); } } this.state = 5179; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public hintArgName(): HintArgNameContext { let localContext = new HintArgNameContext(this.context, this.state); this.enterRule(localContext, 944, HiveSqlParser.RULE_hintArgName); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5180; _la = this.tokenStream.LA(1); if(!(_la === 212 || _la === 430 || _la === 431)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public prepareStatement(): PrepareStatementContext { let localContext = new PrepareStatementContext(this.context, this.state); this.enterRule(localContext, 946, HiveSqlParser.RULE_prepareStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 5182; this.match(HiveSqlParser.KW_PREPARE); this.state = 5183; this.id_(); this.state = 5184; this.match(HiveSqlParser.KW_FROM); this.state = 5185; this.queryStatementExpression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public executeStatement(): ExecuteStatementContext { let localContext = new ExecuteStatementContext(this.context, this.state); this.enterRule(localContext, 948, HiveSqlParser.RULE_executeStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 5187; this.match(HiveSqlParser.KW_EXECUTE); this.state = 5188; this.id_(); this.state = 5189; this.match(HiveSqlParser.KW_USING); this.state = 5190; this.executeParamList(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public executeParamList(): ExecuteParamListContext { let localContext = new ExecuteParamListContext(this.context, this.state); this.enterRule(localContext, 950, HiveSqlParser.RULE_executeParamList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5192; this.constant(); this.state = 5197; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 5193; this.match(HiveSqlParser.COMMA); this.state = 5194; this.constant(); } } this.state = 5199; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public resourcePlanDdlStatements(): ResourcePlanDdlStatementsContext { let localContext = new ResourcePlanDdlStatementsContext(this.context, this.state); this.enterRule(localContext, 952, HiveSqlParser.RULE_resourcePlanDdlStatements); try { this.state = 5214; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 620, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { this.state = 5200; this.createResourcePlanStatement(); } break; case 2: this.enterOuterAlt(localContext, 2); { this.state = 5201; this.alterResourcePlanStatement(); } break; case 3: this.enterOuterAlt(localContext, 3); { this.state = 5202; this.dropResourcePlanStatement(); } break; case 4: this.enterOuterAlt(localContext, 4); { this.state = 5203; this.globalWmStatement(); } break; case 5: this.enterOuterAlt(localContext, 5); { this.state = 5204; this.replaceResourcePlanStatement(); } break; case 6: this.enterOuterAlt(localContext, 6); { this.state = 5205; this.createTriggerStatement(); } break; case 7: this.enterOuterAlt(localContext, 7); { this.state = 5206; this.alterTriggerStatement(); } break; case 8: this.enterOuterAlt(localContext, 8); { this.state = 5207; this.dropTriggerStatement(); } break; case 9: this.enterOuterAlt(localContext, 9); { this.state = 5208; this.createPoolStatement(); } break; case 10: this.enterOuterAlt(localContext, 10); { this.state = 5209; this.alterPoolStatement(); } break; case 11: this.enterOuterAlt(localContext, 11); { this.state = 5210; this.dropPoolStatement(); } break; case 12: this.enterOuterAlt(localContext, 12); { this.state = 5211; this.createMappingStatement(); } break; case 13: this.enterOuterAlt(localContext, 13); { this.state = 5212; this.alterMappingStatement(); } break; case 14: this.enterOuterAlt(localContext, 14); { this.state = 5213; this.dropMappingStatement(); } break; } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rpAssign(): RpAssignContext { let localContext = new RpAssignContext(this.context, this.state); this.enterRule(localContext, 954, HiveSqlParser.RULE_rpAssign); try { this.state = 5223; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_QUERY_PARALLELISM: this.enterOuterAlt(localContext, 1); { this.state = 5216; this.match(HiveSqlParser.KW_QUERY_PARALLELISM); this.state = 5217; this.match(HiveSqlParser.EQUAL); this.state = 5218; localContext._parallelism = this.match(HiveSqlParser.Number); } break; case HiveSqlParser.KW_DEFAULT: this.enterOuterAlt(localContext, 2); { this.state = 5219; this.match(HiveSqlParser.KW_DEFAULT); this.state = 5220; this.match(HiveSqlParser.KW_POOL); this.state = 5221; this.match(HiveSqlParser.EQUAL); this.state = 5222; this.poolPath(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rpAssignList(): RpAssignListContext { let localContext = new RpAssignListContext(this.context, this.state); this.enterRule(localContext, 956, HiveSqlParser.RULE_rpAssignList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5225; this.rpAssign(); this.state = 5230; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 5226; this.match(HiveSqlParser.COMMA); this.state = 5227; this.rpAssign(); } } this.state = 5232; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rpUnassign(): RpUnassignContext { let localContext = new RpUnassignContext(this.context, this.state); this.enterRule(localContext, 958, HiveSqlParser.RULE_rpUnassign); try { this.state = 5236; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_QUERY_PARALLELISM: this.enterOuterAlt(localContext, 1); { this.state = 5233; this.match(HiveSqlParser.KW_QUERY_PARALLELISM); } break; case HiveSqlParser.KW_DEFAULT: this.enterOuterAlt(localContext, 2); { this.state = 5234; this.match(HiveSqlParser.KW_DEFAULT); this.state = 5235; this.match(HiveSqlParser.KW_POOL); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public rpUnassignList(): RpUnassignListContext { let localContext = new RpUnassignListContext(this.context, this.state); this.enterRule(localContext, 960, HiveSqlParser.RULE_rpUnassignList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5238; this.rpUnassign(); this.state = 5243; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 5239; this.match(HiveSqlParser.COMMA); this.state = 5240; this.rpUnassign(); } } this.state = 5245; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createResourcePlanStatement(): CreateResourcePlanStatementContext { let localContext = new CreateResourcePlanStatementContext(this.context, this.state); this.enterRule(localContext, 962, HiveSqlParser.RULE_createResourcePlanStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5246; this.match(HiveSqlParser.KW_CREATE); this.state = 5247; this.match(HiveSqlParser.KW_RESOURCE); this.state = 5248; this.match(HiveSqlParser.KW_PLAN); this.state = 5250; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 5249; this.ifNotExists(); } } this.state = 5261; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 627, this.context) ) { case 1: { this.state = 5252; localContext._name = this.id_(); this.state = 5253; this.match(HiveSqlParser.KW_LIKE); this.state = 5254; localContext._likeName = this.id_(); } break; case 2: { this.state = 5256; localContext._name = this.id_(); this.state = 5259; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 626, this.context) ) { case 1: { this.state = 5257; this.match(HiveSqlParser.KW_WITH); this.state = 5258; this.rpAssignList(); } break; } } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public withReplace(): WithReplaceContext { let localContext = new WithReplaceContext(this.context, this.state); this.enterRule(localContext, 964, HiveSqlParser.RULE_withReplace); try { this.enterOuterAlt(localContext, 1); { this.state = 5263; this.match(HiveSqlParser.KW_WITH); this.state = 5264; this.match(HiveSqlParser.KW_REPLACE); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public activate(): ActivateContext { let localContext = new ActivateContext(this.context, this.state); this.enterRule(localContext, 966, HiveSqlParser.RULE_activate); try { this.enterOuterAlt(localContext, 1); { this.state = 5266; this.match(HiveSqlParser.KW_ACTIVATE); this.state = 5268; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 628, this.context) ) { case 1: { this.state = 5267; this.withReplace(); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public enable(): EnableContext { let localContext = new EnableContext(this.context, this.state); this.enterRule(localContext, 968, HiveSqlParser.RULE_enable); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5270; _la = this.tokenStream.LA(1); if(!(_la === 106 || _la === 107)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public disable(): DisableContext { let localContext = new DisableContext(this.context, this.state); this.enterRule(localContext, 970, HiveSqlParser.RULE_disable); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5272; _la = this.tokenStream.LA(1); if(!(_la === 94 || _la === 95)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public unmanaged(): UnmanagedContext { let localContext = new UnmanagedContext(this.context, this.state); this.enterRule(localContext, 972, HiveSqlParser.RULE_unmanaged); try { this.enterOuterAlt(localContext, 1); { this.state = 5274; this.match(HiveSqlParser.KW_UNMANAGED); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public year(): YearContext { let localContext = new YearContext(this.context, this.state); this.enterRule(localContext, 974, HiveSqlParser.RULE_year); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5276; _la = this.tokenStream.LA(1); if(!(_la === 391 || _la === 392)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public month(): MonthContext { let localContext = new MonthContext(this.context, this.state); this.enterRule(localContext, 976, HiveSqlParser.RULE_month); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5278; _la = this.tokenStream.LA(1); if(!(_la === 207 || _la === 208)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public week(): WeekContext { let localContext = new WeekContext(this.context, this.state); this.enterRule(localContext, 978, HiveSqlParser.RULE_week); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5280; _la = this.tokenStream.LA(1); if(!(_la === 380 || _la === 381)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public day(): DayContext { let localContext = new DayContext(this.context, this.state); this.enterRule(localContext, 980, HiveSqlParser.RULE_day); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5282; _la = this.tokenStream.LA(1); if(!(_la === 73 || _la === 74)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public hour(): HourContext { let localContext = new HourContext(this.context, this.state); this.enterRule(localContext, 982, HiveSqlParser.RULE_hour); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5284; _la = this.tokenStream.LA(1); if(!(_la === 148 || _la === 149)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public minute(): MinuteContext { let localContext = new MinuteContext(this.context, this.state); this.enterRule(localContext, 984, HiveSqlParser.RULE_minute); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5286; _la = this.tokenStream.LA(1); if(!(_la === 205 || _la === 206)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public second(): SecondContext { let localContext = new SecondContext(this.context, this.state); this.enterRule(localContext, 986, HiveSqlParser.RULE_second); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5288; _la = this.tokenStream.LA(1); if(!(_la === 296 || _la === 297)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public decimal(): DecimalContext { let localContext = new DecimalContext(this.context, this.state); this.enterRule(localContext, 988, HiveSqlParser.RULE_decimal); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5290; _la = this.tokenStream.LA(1); if(!(((((_la - 80)) & ~0x1F) === 0 && ((1 << (_la - 80)) & 7) !== 0))) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterResourcePlanStatement(): AlterResourcePlanStatementContext { let localContext = new AlterResourcePlanStatementContext(this.context, this.state); this.enterRule(localContext, 990, HiveSqlParser.RULE_alterResourcePlanStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5292; this.match(HiveSqlParser.KW_ALTER); this.state = 5293; this.match(HiveSqlParser.KW_RESOURCE); this.state = 5294; this.match(HiveSqlParser.KW_PLAN); this.state = 5295; localContext._name = this.id_(); this.state = 5313; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_VALIDATE: { this.state = 5296; this.match(HiveSqlParser.KW_VALIDATE); } break; case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: { this.state = 5297; this.disable(); } break; case HiveSqlParser.KW_SET: { this.state = 5298; this.match(HiveSqlParser.KW_SET); this.state = 5299; this.rpAssignList(); } break; case HiveSqlParser.KW_UNSET: { this.state = 5300; this.match(HiveSqlParser.KW_UNSET); this.state = 5301; this.rpUnassignList(); } break; case HiveSqlParser.KW_RENAME: { this.state = 5302; this.match(HiveSqlParser.KW_RENAME); this.state = 5303; this.match(HiveSqlParser.KW_TO); this.state = 5304; localContext._newName = this.id_(); } break; case HiveSqlParser.KW_ACTIVATE: { this.state = 5305; this.activate(); this.state = 5307; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 629, this.context) ) { case 1: { this.state = 5306; this.enable(); } break; } } break; case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: { this.state = 5309; this.enable(); this.state = 5311; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 2) { { this.state = 5310; this.activate(); } } } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public globalWmStatement(): GlobalWmStatementContext { let localContext = new GlobalWmStatementContext(this.context, this.state); this.enterRule(localContext, 992, HiveSqlParser.RULE_globalWmStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 5317; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ENABLE: case HiveSqlParser.KW_ENABLED: { this.state = 5315; this.enable(); } break; case HiveSqlParser.KW_DISABLE: case HiveSqlParser.KW_DISABLED: { this.state = 5316; this.disable(); } break; default: throw new antlr.NoViableAltException(this); } this.state = 5319; this.match(HiveSqlParser.KW_WORKLOAD); this.state = 5320; this.match(HiveSqlParser.KW_MANAGEMENT); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public replaceResourcePlanStatement(): ReplaceResourcePlanStatementContext { let localContext = new ReplaceResourcePlanStatementContext(this.context, this.state); this.enterRule(localContext, 994, HiveSqlParser.RULE_replaceResourcePlanStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 5322; this.match(HiveSqlParser.KW_REPLACE); this.state = 5334; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ACTIVE: { this.state = 5323; this.match(HiveSqlParser.KW_ACTIVE); this.state = 5324; this.match(HiveSqlParser.KW_RESOURCE); this.state = 5325; this.match(HiveSqlParser.KW_PLAN); this.state = 5326; this.match(HiveSqlParser.KW_WITH); this.state = 5327; localContext._src = this.id_(); } break; case HiveSqlParser.KW_RESOURCE: { this.state = 5328; this.match(HiveSqlParser.KW_RESOURCE); this.state = 5329; this.match(HiveSqlParser.KW_PLAN); this.state = 5330; localContext._dest = this.id_(); this.state = 5331; this.match(HiveSqlParser.KW_WITH); this.state = 5332; localContext._src = this.id_(); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropResourcePlanStatement(): DropResourcePlanStatementContext { let localContext = new DropResourcePlanStatementContext(this.context, this.state); this.enterRule(localContext, 996, HiveSqlParser.RULE_dropResourcePlanStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5336; this.match(HiveSqlParser.KW_DROP); this.state = 5337; this.match(HiveSqlParser.KW_RESOURCE); this.state = 5338; this.match(HiveSqlParser.KW_PLAN); this.state = 5340; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 151) { { this.state = 5339; this.ifExists(); } } this.state = 5342; localContext._name = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public poolPath(): PoolPathContext { let localContext = new PoolPathContext(this.context, this.state); this.enterRule(localContext, 998, HiveSqlParser.RULE_poolPath); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5344; this.id_(); this.state = 5349; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 394) { { { this.state = 5345; this.match(HiveSqlParser.DOT); this.state = 5346; this.id_(); } } this.state = 5351; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public triggerExpression(): TriggerExpressionContext { let localContext = new TriggerExpressionContext(this.context, this.state); this.enterRule(localContext, 1000, HiveSqlParser.RULE_triggerExpression); try { this.enterOuterAlt(localContext, 1); { this.state = 5352; this.triggerAtomExpression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public triggerExpressionStandalone(): TriggerExpressionStandaloneContext { let localContext = new TriggerExpressionStandaloneContext(this.context, this.state); this.enterRule(localContext, 1002, HiveSqlParser.RULE_triggerExpressionStandalone); try { this.enterOuterAlt(localContext, 1); { this.state = 5354; this.triggerExpression(); this.state = 5355; this.match(HiveSqlParser.EOF); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public triggerOrExpression(): TriggerOrExpressionContext { let localContext = new TriggerOrExpressionContext(this.context, this.state); this.enterRule(localContext, 1004, HiveSqlParser.RULE_triggerOrExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5357; this.triggerAndExpression(); this.state = 5362; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 227) { { { this.state = 5358; this.match(HiveSqlParser.KW_OR); this.state = 5359; this.triggerAndExpression(); } } this.state = 5364; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public triggerAndExpression(): TriggerAndExpressionContext { let localContext = new TriggerAndExpressionContext(this.context, this.state); this.enterRule(localContext, 1006, HiveSqlParser.RULE_triggerAndExpression); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5365; this.triggerAtomExpression(); this.state = 5370; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 11) { { { this.state = 5366; this.match(HiveSqlParser.KW_AND); this.state = 5367; this.triggerAtomExpression(); } } this.state = 5372; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public triggerAtomExpression(): TriggerAtomExpressionContext { let localContext = new TriggerAtomExpressionContext(this.context, this.state); this.enterRule(localContext, 1008, HiveSqlParser.RULE_triggerAtomExpression); try { this.enterOuterAlt(localContext, 1); { this.state = 5373; this.id_(); this.state = 5374; this.comparisionOperator(); this.state = 5375; this.triggerLiteral(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public triggerLiteral(): TriggerLiteralContext { let localContext = new TriggerLiteralContext(this.context, this.state); this.enterRule(localContext, 1010, HiveSqlParser.RULE_triggerLiteral); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5377; _la = this.tokenStream.LA(1); if(!(_la === 425 || _la === 430)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public comparisionOperator(): ComparisionOperatorContext { let localContext = new ComparisionOperatorContext(this.context, this.state); this.enterRule(localContext, 1012, HiveSqlParser.RULE_comparisionOperator); try { this.enterOuterAlt(localContext, 1); { this.state = 5379; this.match(HiveSqlParser.GREATERTHAN); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public triggerActionExpression(): TriggerActionExpressionContext { let localContext = new TriggerActionExpressionContext(this.context, this.state); this.enterRule(localContext, 1014, HiveSqlParser.RULE_triggerActionExpression); try { this.state = 5385; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_KILL: this.enterOuterAlt(localContext, 1); { this.state = 5381; this.match(HiveSqlParser.KW_KILL); } break; case HiveSqlParser.KW_MOVE: this.enterOuterAlt(localContext, 2); { this.state = 5382; this.match(HiveSqlParser.KW_MOVE); this.state = 5383; this.match(HiveSqlParser.KW_TO); this.state = 5384; this.poolPath(); } break; default: throw new antlr.NoViableAltException(this); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public triggerActionExpressionStandalone(): TriggerActionExpressionStandaloneContext { let localContext = new TriggerActionExpressionStandaloneContext(this.context, this.state); this.enterRule(localContext, 1016, HiveSqlParser.RULE_triggerActionExpressionStandalone); try { this.enterOuterAlt(localContext, 1); { this.state = 5387; this.triggerActionExpression(); this.state = 5388; this.match(HiveSqlParser.EOF); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createTriggerStatement(): CreateTriggerStatementContext { let localContext = new CreateTriggerStatementContext(this.context, this.state); this.enterRule(localContext, 1018, HiveSqlParser.RULE_createTriggerStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 5390; this.match(HiveSqlParser.KW_CREATE); this.state = 5391; this.match(HiveSqlParser.KW_TRIGGER); this.state = 5392; localContext._rpName = this.id_(); this.state = 5393; this.match(HiveSqlParser.DOT); this.state = 5394; localContext._triggerName = this.id_(); this.state = 5395; this.match(HiveSqlParser.KW_WHEN); this.state = 5396; this.triggerExpression(); this.state = 5397; this.match(HiveSqlParser.KW_DO); this.state = 5398; this.triggerActionExpression(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterTriggerStatement(): AlterTriggerStatementContext { let localContext = new AlterTriggerStatementContext(this.context, this.state); this.enterRule(localContext, 1020, HiveSqlParser.RULE_alterTriggerStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 5400; this.match(HiveSqlParser.KW_ALTER); this.state = 5401; this.match(HiveSqlParser.KW_TRIGGER); this.state = 5402; localContext._rpName = this.id_(); this.state = 5403; this.match(HiveSqlParser.DOT); this.state = 5404; localContext._triggerName = this.id_(); this.state = 5421; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_WHEN: { this.state = 5405; this.match(HiveSqlParser.KW_WHEN); this.state = 5406; this.triggerExpression(); this.state = 5407; this.match(HiveSqlParser.KW_DO); this.state = 5408; this.triggerActionExpression(); } break; case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_DROP: { this.state = 5414; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ADD: { this.state = 5410; this.match(HiveSqlParser.KW_ADD); this.state = 5411; this.match(HiveSqlParser.KW_TO); } break; case HiveSqlParser.KW_DROP: { this.state = 5412; this.match(HiveSqlParser.KW_DROP); this.state = 5413; this.match(HiveSqlParser.KW_FROM); } break; default: throw new antlr.NoViableAltException(this); } this.state = 5419; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_POOL: { this.state = 5416; this.match(HiveSqlParser.KW_POOL); this.state = 5417; localContext._poolName = this.poolPath(); } break; case HiveSqlParser.KW_UNMANAGED: { this.state = 5418; this.match(HiveSqlParser.KW_UNMANAGED); } break; default: throw new antlr.NoViableAltException(this); } } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropTriggerStatement(): DropTriggerStatementContext { let localContext = new DropTriggerStatementContext(this.context, this.state); this.enterRule(localContext, 1022, HiveSqlParser.RULE_dropTriggerStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 5423; this.match(HiveSqlParser.KW_DROP); this.state = 5424; this.match(HiveSqlParser.KW_TRIGGER); this.state = 5425; localContext._rpName = this.id_(); this.state = 5426; this.match(HiveSqlParser.DOT); this.state = 5427; localContext._triggerName = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public poolAssign(): PoolAssignContext { let localContext = new PoolAssignContext(this.context, this.state); this.enterRule(localContext, 1024, HiveSqlParser.RULE_poolAssign); try { this.enterOuterAlt(localContext, 1); { this.state = 5441; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_ALLOC_FRACTION: { this.state = 5429; this.match(HiveSqlParser.KW_ALLOC_FRACTION); this.state = 5430; this.match(HiveSqlParser.EQUAL); this.state = 5431; localContext._allocFraction = this.match(HiveSqlParser.Number); } break; case HiveSqlParser.KW_QUERY_PARALLELISM: { this.state = 5432; this.match(HiveSqlParser.KW_QUERY_PARALLELISM); this.state = 5433; this.match(HiveSqlParser.EQUAL); this.state = 5434; localContext._parallelism = this.match(HiveSqlParser.Number); } break; case HiveSqlParser.KW_SCHEDULING_POLICY: { this.state = 5435; this.match(HiveSqlParser.KW_SCHEDULING_POLICY); this.state = 5436; this.match(HiveSqlParser.EQUAL); this.state = 5437; localContext._policy = this.match(HiveSqlParser.StringLiteral); } break; case HiveSqlParser.KW_PATH: { this.state = 5438; this.match(HiveSqlParser.KW_PATH); this.state = 5439; this.match(HiveSqlParser.EQUAL); this.state = 5440; localContext._path = this.poolPath(); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public poolAssignList(): PoolAssignListContext { let localContext = new PoolAssignListContext(this.context, this.state); this.enterRule(localContext, 1026, HiveSqlParser.RULE_poolAssignList); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5443; this.poolAssign(); this.state = 5448; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); while (_la === 396) { { { this.state = 5444; this.match(HiveSqlParser.COMMA); this.state = 5445; this.poolAssign(); } } this.state = 5450; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createPoolStatement(): CreatePoolStatementContext { let localContext = new CreatePoolStatementContext(this.context, this.state); this.enterRule(localContext, 1028, HiveSqlParser.RULE_createPoolStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 5451; this.match(HiveSqlParser.KW_CREATE); this.state = 5452; this.match(HiveSqlParser.KW_POOL); this.state = 5453; localContext._rpName = this.id_(); this.state = 5454; this.match(HiveSqlParser.DOT); this.state = 5455; this.poolPath(); this.state = 5456; this.match(HiveSqlParser.KW_WITH); this.state = 5457; this.poolAssignList(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterPoolStatement(): AlterPoolStatementContext { let localContext = new AlterPoolStatementContext(this.context, this.state); this.enterRule(localContext, 1030, HiveSqlParser.RULE_alterPoolStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5459; this.match(HiveSqlParser.KW_ALTER); this.state = 5460; this.match(HiveSqlParser.KW_POOL); this.state = 5461; localContext._rpName = this.id_(); this.state = 5462; this.match(HiveSqlParser.DOT); this.state = 5463; this.poolPath(); this.state = 5471; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_SET: { this.state = 5464; this.match(HiveSqlParser.KW_SET); this.state = 5465; this.poolAssignList(); } break; case HiveSqlParser.KW_UNSET: { this.state = 5466; this.match(HiveSqlParser.KW_UNSET); this.state = 5467; this.match(HiveSqlParser.KW_SCHEDULING_POLICY); } break; case HiveSqlParser.KW_ADD: case HiveSqlParser.KW_DROP: { this.state = 5468; _la = this.tokenStream.LA(1); if(!(_la === 4 || _la === 101)) { this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 5469; this.match(HiveSqlParser.KW_TRIGGER); this.state = 5470; localContext._triggerName = this.id_(); } break; default: throw new antlr.NoViableAltException(this); } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropPoolStatement(): DropPoolStatementContext { let localContext = new DropPoolStatementContext(this.context, this.state); this.enterRule(localContext, 1032, HiveSqlParser.RULE_dropPoolStatement); try { this.enterOuterAlt(localContext, 1); { this.state = 5473; this.match(HiveSqlParser.KW_DROP); this.state = 5474; this.match(HiveSqlParser.KW_POOL); this.state = 5475; localContext._rpName = this.id_(); this.state = 5476; this.match(HiveSqlParser.DOT); this.state = 5477; this.poolPath(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public createMappingStatement(): CreateMappingStatementContext { let localContext = new CreateMappingStatementContext(this.context, this.state); this.enterRule(localContext, 1034, HiveSqlParser.RULE_createMappingStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5479; this.match(HiveSqlParser.KW_CREATE); this.state = 5480; localContext._mappingType = this.tokenStream.LT(1); _la = this.tokenStream.LA(1); if(!(_la === 14 || _la === 144 || _la === 368)) { localContext._mappingType = this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 5481; this.match(HiveSqlParser.KW_MAPPING); this.state = 5482; localContext._name = this.match(HiveSqlParser.StringLiteral); this.state = 5483; this.match(HiveSqlParser.KW_IN); this.state = 5484; localContext._rpName = this.id_(); this.state = 5488; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_TO: { this.state = 5485; this.match(HiveSqlParser.KW_TO); this.state = 5486; localContext._path = this.poolPath(); } break; case HiveSqlParser.KW_UNMANAGED: { this.state = 5487; this.unmanaged(); } break; default: throw new antlr.NoViableAltException(this); } this.state = 5493; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 646, this.context) ) { case 1: { this.state = 5490; this.match(HiveSqlParser.KW_WITH); this.state = 5491; this.match(HiveSqlParser.KW_ORDER); this.state = 5492; localContext._order = this.match(HiveSqlParser.Number); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public alterMappingStatement(): AlterMappingStatementContext { let localContext = new AlterMappingStatementContext(this.context, this.state); this.enterRule(localContext, 1036, HiveSqlParser.RULE_alterMappingStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5495; this.match(HiveSqlParser.KW_ALTER); this.state = 5496; localContext._mappingType = this.tokenStream.LT(1); _la = this.tokenStream.LA(1); if(!(_la === 14 || _la === 144 || _la === 368)) { localContext._mappingType = this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 5497; this.match(HiveSqlParser.KW_MAPPING); this.state = 5498; localContext._name = this.match(HiveSqlParser.StringLiteral); this.state = 5499; this.match(HiveSqlParser.KW_IN); this.state = 5500; localContext._rpName = this.id_(); this.state = 5504; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case HiveSqlParser.KW_TO: { this.state = 5501; this.match(HiveSqlParser.KW_TO); this.state = 5502; localContext._path = this.poolPath(); } break; case HiveSqlParser.KW_UNMANAGED: { this.state = 5503; this.unmanaged(); } break; default: throw new antlr.NoViableAltException(this); } this.state = 5509; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 648, this.context) ) { case 1: { this.state = 5506; this.match(HiveSqlParser.KW_WITH); this.state = 5507; this.match(HiveSqlParser.KW_ORDER); this.state = 5508; localContext._order = this.match(HiveSqlParser.Number); } break; } } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public dropMappingStatement(): DropMappingStatementContext { let localContext = new DropMappingStatementContext(this.context, this.state); this.enterRule(localContext, 1038, HiveSqlParser.RULE_dropMappingStatement); let _la: number; try { this.enterOuterAlt(localContext, 1); { this.state = 5511; this.match(HiveSqlParser.KW_DROP); this.state = 5512; localContext._mappingType = this.tokenStream.LT(1); _la = this.tokenStream.LA(1); if(!(_la === 14 || _la === 144 || _la === 368)) { localContext._mappingType = this.errorHandler.recoverInline(this); } else { this.errorHandler.reportMatch(this); this.consume(); } this.state = 5513; this.match(HiveSqlParser.KW_MAPPING); this.state = 5514; localContext._name = this.match(HiveSqlParser.StringLiteral); this.state = 5515; this.match(HiveSqlParser.KW_IN); this.state = 5516; localContext._rpName = this.id_(); } } catch (re) { if (re instanceof antlr.RecognitionException) { localContext.exception = re; this.errorHandler.reportError(this, re); this.errorHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localContext; } public override sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean { switch (ruleIndex) { case 141: return this.columnName_sempred(localContext as ColumnNameContext, predIndex); } return true; } private columnName_sempred(localContext: ColumnNameContext | null, predIndex: number): boolean { switch (predIndex) { case 0: return this.shouldMatchEmpty(); } return true; } public static readonly _serializedATN: number[] = [ 4,1,437,5519,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6, 7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7, 13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2, 20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7, 26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2, 33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7, 39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2, 46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7, 52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2, 59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7, 65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2, 72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7, 78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2, 85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7, 91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2, 98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103, 2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109, 7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114, 2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120, 7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125, 2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131, 7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136, 2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142, 7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147, 2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153, 7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158, 2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164, 7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169, 2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175, 7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180, 2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186, 7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191, 2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197, 7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202, 2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208, 7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213, 2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219, 7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224, 2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230, 7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235, 2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241, 7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246, 2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252, 7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257, 2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263, 7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268, 2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274, 7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279, 2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285, 7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290, 2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296, 7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301, 2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307, 7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312, 2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318, 7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323, 2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329, 7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334, 2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340, 7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345, 2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351, 7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356, 2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362, 7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367, 2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373, 7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378, 2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384, 7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389, 2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395, 7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400, 2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406, 7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411, 2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417, 7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422, 2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428, 7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433, 2,434,7,434,2,435,7,435,2,436,7,436,2,437,7,437,2,438,7,438,2,439, 7,439,2,440,7,440,2,441,7,441,2,442,7,442,2,443,7,443,2,444,7,444, 2,445,7,445,2,446,7,446,2,447,7,447,2,448,7,448,2,449,7,449,2,450, 7,450,2,451,7,451,2,452,7,452,2,453,7,453,2,454,7,454,2,455,7,455, 2,456,7,456,2,457,7,457,2,458,7,458,2,459,7,459,2,460,7,460,2,461, 7,461,2,462,7,462,2,463,7,463,2,464,7,464,2,465,7,465,2,466,7,466, 2,467,7,467,2,468,7,468,2,469,7,469,2,470,7,470,2,471,7,471,2,472, 7,472,2,473,7,473,2,474,7,474,2,475,7,475,2,476,7,476,2,477,7,477, 2,478,7,478,2,479,7,479,2,480,7,480,2,481,7,481,2,482,7,482,2,483, 7,483,2,484,7,484,2,485,7,485,2,486,7,486,2,487,7,487,2,488,7,488, 2,489,7,489,2,490,7,490,2,491,7,491,2,492,7,492,2,493,7,493,2,494, 7,494,2,495,7,495,2,496,7,496,2,497,7,497,2,498,7,498,2,499,7,499, 2,500,7,500,2,501,7,501,2,502,7,502,2,503,7,503,2,504,7,504,2,505, 7,505,2,506,7,506,2,507,7,507,2,508,7,508,2,509,7,509,2,510,7,510, 2,511,7,511,2,512,7,512,2,513,7,513,2,514,7,514,2,515,7,515,2,516, 7,516,2,517,7,517,2,518,7,518,2,519,7,519,1,0,5,0,1042,8,0,10,0, 12,0,1045,9,0,1,0,1,0,1,1,1,1,3,1,1051,8,1,1,1,3,1,1054,8,1,1,2, 1,2,5,2,1058,8,2,10,2,12,2,1061,9,2,1,2,1,2,1,2,3,2,1066,8,2,1,3, 1,3,1,3,1,3,1,3,3,3,1073,8,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,3,3, 1083,8,3,1,3,3,3,1086,8,3,1,3,1,3,3,3,1090,8,3,1,4,1,4,1,5,1,5,1, 6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,1110,8, 6,1,7,1,7,1,7,3,7,1115,8,7,1,7,1,7,1,7,3,7,1120,8,7,1,7,1,7,1,7, 1,7,3,7,1126,8,7,1,8,1,8,1,8,1,9,1,9,3,9,1133,8,9,1,9,1,9,1,9,1, 9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,3,10,1146,8,10,1,11,1,11,3,11, 1150,8,11,1,11,1,11,3,11,1154,8,11,1,11,1,11,1,11,3,11,1159,8,11, 1,12,1,12,1,12,1,12,1,12,3,12,1166,8,12,1,12,1,12,3,12,1170,8,12, 1,13,1,13,1,13,3,13,1175,8,13,1,14,1,14,1,14,1,14,1,14,3,14,1182, 8,14,1,14,1,14,3,14,1186,8,14,1,15,1,15,1,15,1,15,1,16,1,16,1,16, 5,16,1195,8,16,10,16,12,16,1198,9,16,1,17,1,17,1,17,3,17,1203,8, 17,1,18,1,18,1,18,1,18,1,18,3,18,1210,8,18,1,19,1,19,1,19,1,19,1, 19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1, 19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1, 19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1, 19,1,19,1,19,1,19,3,19,1259,8,19,1,20,1,20,1,20,1,21,1,21,1,22,1, 22,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1, 26,1,26,1,27,1,27,1,27,1,28,1,28,3,28,1287,8,28,1,28,1,28,3,28,1291, 8,28,1,28,1,28,3,28,1295,8,28,1,28,3,28,1298,8,28,1,28,3,28,1301, 8,28,1,28,1,28,1,28,3,28,1306,8,28,1,28,1,28,1,28,1,28,3,28,1312, 8,28,1,28,1,28,3,28,1316,8,28,1,28,1,28,1,28,1,28,3,28,1322,8,28, 3,28,1324,8,28,1,29,1,29,1,29,1,30,1,30,1,30,1,31,1,31,1,31,1,31, 1,32,1,32,1,32,5,32,1339,8,32,10,32,12,32,1342,9,32,1,33,1,33,1, 33,1,34,1,34,1,34,1,35,1,35,1,35,3,35,1353,8,35,1,35,1,35,3,35,1357, 8,35,1,36,1,36,1,36,1,37,1,37,3,37,1364,8,37,1,37,1,37,1,37,1,37, 1,37,1,37,3,37,1372,8,37,1,37,3,37,1375,8,37,1,38,1,38,1,38,3,38, 1380,8,38,1,38,1,38,3,38,1384,8,38,1,38,3,38,1387,8,38,1,39,1,39, 1,39,1,39,1,39,1,40,1,40,1,40,3,40,1397,8,40,1,40,1,40,1,40,1,40, 1,40,1,40,3,40,1405,8,40,5,40,1407,8,40,10,40,12,40,1410,9,40,3, 40,1412,8,40,1,41,1,41,3,41,1416,8,41,1,42,1,42,3,42,1420,8,42,1, 42,3,42,1423,8,42,1,43,1,43,1,43,3,43,1428,8,43,1,43,1,43,1,43,1, 43,3,43,1434,8,43,1,43,1,43,1,43,3,43,1439,8,43,1,43,1,43,1,43,3, 43,1444,8,43,1,43,1,43,3,43,1448,8,43,1,44,1,44,1,44,1,44,1,44,1, 44,1,44,1,44,1,44,3,44,1459,8,44,3,44,1461,8,44,1,44,1,44,3,44,1465, 8,44,1,45,1,45,1,46,1,46,1,47,1,47,1,47,1,47,3,47,1475,8,47,1,47, 1,47,3,47,1479,8,47,1,47,1,47,1,47,1,47,3,47,1485,8,47,1,47,3,47, 1488,8,47,1,47,1,47,1,47,1,47,1,47,3,47,1495,8,47,1,47,1,47,1,47, 3,47,1500,8,47,1,47,1,47,1,47,1,47,1,47,1,47,3,47,1508,8,47,1,47, 1,47,1,47,3,47,1513,8,47,1,47,1,47,3,47,1517,8,47,1,47,1,47,1,47, 1,47,1,47,1,47,3,47,1525,8,47,1,47,1,47,1,47,3,47,1530,8,47,1,47, 1,47,1,47,1,47,3,47,1536,8,47,1,47,1,47,1,47,1,47,3,47,1542,8,47, 1,47,3,47,1545,8,47,1,47,3,47,1548,8,47,1,47,3,47,1551,8,47,1,47, 1,47,1,47,1,47,1,47,1,47,1,47,3,47,1560,8,47,1,47,1,47,1,47,1,47, 1,47,1,47,3,47,1568,8,47,1,47,1,47,1,47,3,47,1573,8,47,1,47,1,47, 1,47,1,47,1,47,1,47,3,47,1581,8,47,1,47,1,47,1,47,1,47,1,47,3,47, 1588,8,47,1,47,3,47,1591,8,47,1,47,3,47,1594,8,47,3,47,1596,8,47, 1,47,1,47,1,47,1,47,1,47,1,47,3,47,1604,8,47,1,47,3,47,1607,8,47, 1,47,3,47,1610,8,47,1,47,3,47,1613,8,47,1,47,3,47,1616,8,47,1,47, 3,47,1619,8,47,1,47,3,47,1622,8,47,1,47,3,47,1625,8,47,1,47,3,47, 1628,8,47,1,47,3,47,1631,8,47,1,47,3,47,1634,8,47,3,47,1636,8,47, 1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,3,47,1648,8,47, 1,47,1,47,1,47,1,47,3,47,1654,8,47,1,47,1,47,1,47,1,47,1,47,1,47, 3,47,1662,8,47,3,47,1664,8,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48, 1,48,3,48,1674,8,48,1,49,1,49,1,49,1,49,3,49,1680,8,49,1,49,1,49, 1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,52,1,52,1,52,1,52,3,52,1695, 8,52,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55, 1,56,1,56,1,56,3,56,1712,8,56,1,56,1,56,1,56,3,56,1717,8,56,1,57, 1,57,3,57,1721,8,57,1,57,1,57,3,57,1725,8,57,1,57,1,57,1,57,1,58, 1,58,3,58,1732,8,58,1,58,1,58,1,58,5,58,1737,8,58,10,58,12,58,1740, 9,58,1,58,1,58,1,58,3,58,1745,8,58,1,59,1,59,3,59,1749,8,59,1,59, 3,59,1752,8,59,1,59,1,59,1,59,5,59,1757,8,59,10,59,12,59,1760,9, 59,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,62,1, 62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,3,63,1782,8,63,1,64,1,64,1, 64,3,64,1787,8,64,1,64,1,64,3,64,1791,8,64,1,65,1,65,1,65,1,65,1, 66,1,66,3,66,1799,8,66,1,67,1,67,1,67,1,68,1,68,1,68,1,68,3,68,1808, 8,68,1,68,1,68,3,68,1812,8,68,1,68,1,68,1,68,1,68,3,68,1818,8,68, 1,69,1,69,1,69,1,69,3,69,1824,8,69,1,69,1,69,1,69,1,69,1,69,3,69, 1831,8,69,1,69,3,69,1834,8,69,1,69,1,69,1,69,1,69,3,69,1840,8,69, 1,70,1,70,1,70,5,70,1845,8,70,10,70,12,70,1848,9,70,1,71,1,71,1, 71,1,71,1,71,3,71,1855,8,71,1,72,1,72,1,73,1,73,1,73,5,73,1862,8, 73,10,73,12,73,1865,9,73,1,74,1,74,1,74,1,74,1,74,1,74,3,74,1873, 8,74,1,75,1,75,1,75,1,75,1,75,3,75,1880,8,75,1,76,1,76,1,76,1,76, 1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,80, 1,80,3,80,1900,8,80,1,80,1,80,1,80,1,80,1,80,3,80,1907,8,80,3,80, 1909,8,80,1,81,1,81,1,81,5,81,1914,8,81,10,81,12,81,1917,9,81,1, 82,1,82,1,82,1,83,1,83,1,84,1,84,3,84,1926,8,84,1,84,1,84,1,84,1, 84,1,84,1,84,3,84,1934,8,84,1,85,1,85,3,85,1938,8,85,1,85,1,85,3, 85,1942,8,85,1,85,1,85,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1, 87,3,87,1955,8,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,3,88,1964,8, 88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1, 89,1,89,3,89,1980,8,89,1,89,1,89,3,89,1984,8,89,1,89,1,89,1,89,3, 89,1989,8,89,1,89,1,89,1,89,3,89,1994,8,89,1,89,3,89,1997,8,89,1, 89,3,89,2000,8,89,1,89,1,89,3,89,2004,8,89,1,89,3,89,2007,8,89,1, 89,3,89,2010,8,89,1,90,1,90,1,90,3,90,2015,8,90,1,90,1,90,1,90,1, 90,1,91,1,91,3,91,2023,8,91,1,91,1,91,3,91,2027,8,91,1,91,1,91,1, 91,1,91,1,91,3,91,2034,8,91,1,91,3,91,2037,8,91,1,91,3,91,2040,8, 91,1,91,3,91,2043,8,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1, 92,1,92,3,92,2055,8,92,1,92,1,92,1,93,1,93,3,93,2061,8,93,1,94,1, 94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1, 96,1,97,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,3,98,2087,8,98,1, 98,1,98,1,99,1,99,1,99,1,99,3,99,2095,8,99,1,99,1,99,3,99,2099,8, 99,1,99,3,99,2102,8,99,1,99,3,99,2105,8,99,1,99,3,99,2108,8,99,1, 99,3,99,2111,8,99,1,99,3,99,2114,8,99,1,99,3,99,2117,8,99,1,99,3, 99,2120,8,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,3,100,2129,8, 100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,101,3,101,2139,8, 101,1,101,3,101,2142,8,101,1,101,1,101,1,102,1,102,1,102,1,102,1, 102,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104, 1,104,3,104,2162,8,104,1,105,1,105,1,105,1,105,3,105,2168,8,105, 1,105,1,105,1,105,1,105,3,105,2174,8,105,1,105,3,105,2177,8,105, 3,105,2179,8,105,1,106,1,106,1,106,1,106,1,107,3,107,2186,8,107, 1,107,1,107,1,107,1,108,1,108,3,108,2193,8,108,1,109,1,109,1,109, 1,110,1,110,1,110,1,110,1,110,3,110,2203,8,110,1,110,1,110,1,110, 3,110,2208,8,110,1,110,1,110,1,111,1,111,1,111,5,111,2215,8,111, 10,111,12,111,2218,9,111,1,112,1,112,1,112,5,112,2223,8,112,10,112, 12,112,2226,9,112,1,113,1,113,1,113,5,113,2231,8,113,10,113,12,113, 2234,9,113,1,114,1,114,1,115,1,115,1,115,1,115,1,115,3,115,2243, 8,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115, 1,115,3,115,2256,8,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116, 1,116,1,116,1,116,1,116,3,116,2269,8,116,1,116,1,116,1,116,1,116, 1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118, 1,118,1,118,1,118,1,118,3,118,2290,8,118,1,119,1,119,3,119,2294, 8,119,1,120,1,120,1,120,1,121,1,121,1,121,1,122,1,122,1,122,1,122, 1,122,1,122,1,122,3,122,2309,8,122,1,123,1,123,1,123,1,123,3,123, 2315,8,123,1,123,3,123,2318,8,123,1,123,3,123,2321,8,123,1,123,3, 123,2324,8,123,1,123,3,123,2327,8,123,1,124,1,124,3,124,2331,8,124, 1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,127,1,127,1,127,5,127, 2343,8,127,10,127,12,127,2346,9,127,1,127,1,127,1,127,5,127,2351, 8,127,10,127,12,127,2354,9,127,3,127,2356,8,127,1,128,1,128,1,128, 1,128,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130, 2371,8,130,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132, 1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134, 1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135, 1,135,3,135,2405,8,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135, 2413,8,135,1,135,1,135,1,135,3,135,2418,8,135,1,135,1,135,1,135, 1,135,1,135,1,135,3,135,2426,8,135,1,135,1,135,1,135,3,135,2431, 8,135,1,135,1,135,1,135,3,135,2436,8,135,1,136,1,136,1,136,1,137, 1,137,1,137,5,137,2444,8,137,10,137,12,137,2447,9,137,1,138,1,138, 1,138,5,138,2452,8,138,10,138,12,138,2455,9,138,1,139,1,139,1,139, 5,139,2460,8,139,10,139,12,139,2463,9,139,1,140,1,140,1,140,5,140, 2468,8,140,10,140,12,140,2471,9,140,1,141,1,141,1,141,5,141,2476, 8,141,10,141,12,141,2479,9,141,1,141,3,141,2482,8,141,1,142,1,142, 1,143,1,143,1,143,1,143,1,143,1,143,3,143,2492,8,143,5,143,2494, 8,143,10,143,12,143,2497,9,143,1,144,1,144,1,144,5,144,2502,8,144, 10,144,12,144,2505,9,144,1,145,1,145,1,145,1,145,1,146,1,146,3,146, 2513,8,146,1,146,3,146,2516,8,146,1,147,1,147,3,147,2520,8,147,1, 148,1,148,1,149,1,149,1,149,3,149,2527,8,149,1,150,1,150,1,151,1, 151,3,151,2533,8,151,1,151,1,151,3,151,2537,8,151,1,152,1,152,1, 152,1,152,3,152,2543,8,152,1,153,1,153,3,153,2547,8,153,1,154,1, 154,1,154,1,155,1,155,1,155,1,155,1,155,1,156,1,156,3,156,2559,8, 156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,3,156,2568,8,156,1, 157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,157,3,157,2579,8, 157,1,158,1,158,3,158,2583,8,158,1,159,1,159,1,159,5,159,2588,8, 159,10,159,12,159,2591,9,159,1,160,1,160,1,160,1,160,1,161,1,161, 1,161,5,161,2600,8,161,10,161,12,161,2603,9,161,1,162,1,162,1,163, 1,163,3,163,2609,8,163,1,164,1,164,1,165,1,165,1,165,1,166,1,166, 3,166,2618,8,166,1,166,3,166,2621,8,166,1,167,1,167,1,167,5,167, 2626,8,167,10,167,12,167,2629,9,167,1,168,1,168,1,168,3,168,2634, 8,168,1,169,1,169,1,170,1,170,3,170,2640,8,170,1,170,3,170,2643, 8,170,1,170,3,170,2646,8,170,1,171,1,171,1,171,1,171,3,171,2652, 8,171,1,172,1,172,3,172,2656,8,172,1,173,1,173,3,173,2660,8,173, 1,174,1,174,1,174,3,174,2665,8,174,1,174,1,174,3,174,2669,8,174, 1,175,1,175,3,175,2673,8,175,1,176,1,176,3,176,2677,8,176,1,176, 1,176,1,176,1,176,1,176,1,176,3,176,2685,8,176,1,177,1,177,3,177, 2689,8,177,1,177,1,177,3,177,2693,8,177,1,178,1,178,3,178,2697,8, 178,1,179,1,179,3,179,2701,8,179,1,179,1,179,1,179,1,179,1,179,1, 179,3,179,2709,8,179,1,180,1,180,3,180,2713,8,180,1,180,1,180,3, 180,2717,8,180,1,181,1,181,1,181,1,181,1,181,1,181,3,181,2725,8, 181,1,182,1,182,1,182,3,182,2730,8,182,1,183,1,183,1,183,3,183,2735, 8,183,1,184,1,184,3,184,2739,8,184,1,185,1,185,3,185,2743,8,185, 1,186,1,186,1,186,1,186,1,186,3,186,2750,8,186,1,187,1,187,1,188, 1,188,1,188,5,188,2757,8,188,10,188,12,188,2760,9,188,1,189,1,189, 1,189,1,189,1,189,3,189,2767,8,189,1,190,1,190,1,190,1,190,1,190, 1,190,1,190,1,190,1,190,1,190,3,190,2779,8,190,1,190,1,190,1,190, 1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190,1,190, 1,190,1,190,3,190,2797,8,190,1,190,3,190,2800,8,190,1,190,1,190, 1,190,1,190,3,190,2806,8,190,1,191,1,191,1,191,1,191,1,191,1,192, 1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193, 1,194,1,194,1,194,1,194,1,194,1,195,1,195,3,195,2832,8,195,1,196, 3,196,2835,8,196,1,196,1,196,1,197,1,197,3,197,2841,8,197,1,198, 1,198,1,198,1,198,5,198,2847,8,198,10,198,12,198,2850,9,198,1,199, 1,199,1,199,1,199,1,199,3,199,2857,8,199,1,199,1,199,1,199,1,199, 1,199,1,200,1,200,1,200,1,200,5,200,2868,8,200,10,200,12,200,2871, 9,200,1,201,1,201,1,201,1,201,3,201,2877,8,201,1,201,3,201,2880, 8,201,1,201,3,201,2883,8,201,1,201,3,201,2886,8,201,1,201,3,201, 2889,8,201,1,201,3,201,2892,8,201,1,201,3,201,2895,8,201,1,201,3, 201,2898,8,201,1,201,3,201,2901,8,201,1,201,3,201,2904,8,201,1,201, 3,201,2907,8,201,1,201,1,201,1,201,3,201,2912,8,201,1,201,3,201, 2915,8,201,1,201,3,201,2918,8,201,1,201,3,201,2921,8,201,1,201,3, 201,2924,8,201,1,201,3,201,2927,8,201,1,201,3,201,2930,8,201,1,201, 3,201,2933,8,201,1,201,3,201,2936,8,201,1,201,3,201,2939,8,201,1, 201,3,201,2942,8,201,3,201,2944,8,201,1,202,1,202,1,202,1,202,3, 202,2950,8,202,1,203,1,203,3,203,2954,8,203,1,203,3,203,2957,8,203, 1,203,3,203,2960,8,203,1,203,3,203,2963,8,203,1,203,3,203,2966,8, 203,1,203,3,203,2969,8,203,1,203,1,203,1,203,1,203,1,203,3,203,2976, 8,203,1,204,1,204,3,204,2980,8,204,1,204,3,204,2983,8,204,1,204, 3,204,2986,8,204,1,204,3,204,2989,8,204,1,204,3,204,2992,8,204,1, 204,3,204,2995,8,204,1,205,1,205,1,205,4,205,3000,8,205,11,205,12, 205,3001,1,206,3,206,3005,8,206,1,206,1,206,1,207,1,207,1,207,1, 207,3,207,3013,8,207,1,207,1,207,3,207,3017,8,207,1,207,1,207,1, 207,1,207,1,207,3,207,3024,8,207,3,207,3026,8,207,1,208,3,208,3029, 8,208,1,208,1,208,1,208,3,208,3034,8,208,1,208,3,208,3037,8,208, 1,208,1,208,3,208,3041,8,208,1,209,1,209,1,209,3,209,3046,8,209, 1,209,1,209,1,209,1,209,3,209,3052,8,209,1,210,1,210,1,210,1,210, 3,210,3058,8,210,1,211,1,211,1,211,1,211,1,212,1,212,3,212,3066, 8,212,1,213,1,213,1,213,1,213,5,213,3072,8,213,10,213,12,213,3075, 9,213,1,214,1,214,1,214,1,214,3,214,3081,8,214,1,215,1,215,1,215, 1,215,3,215,3087,8,215,1,216,1,216,1,216,1,216,1,216,5,216,3094, 8,216,10,216,12,216,3097,9,216,3,216,3099,8,216,1,217,1,217,3,217, 3103,8,217,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,220,1,220, 1,221,1,221,3,221,3116,8,221,1,222,1,222,3,222,3120,8,222,1,223, 1,223,1,223,1,223,1,224,1,224,1,224,4,224,3129,8,224,11,224,12,224, 3130,1,225,1,225,1,225,4,225,3136,8,225,11,225,12,225,3137,1,226, 1,226,3,226,3142,8,226,1,226,1,226,1,226,3,226,3147,8,226,1,226, 3,226,3150,8,226,1,226,1,226,1,226,1,226,1,226,1,226,1,227,1,227, 5,227,3160,8,227,10,227,12,227,3163,9,227,1,227,3,227,3166,8,227, 1,228,1,228,1,228,1,228,1,228,3,228,3173,8,228,1,228,1,228,1,228, 3,228,3178,8,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,229, 1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,3,231, 3198,8,231,1,232,1,232,1,232,4,232,3203,8,232,11,232,12,232,3204, 1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,235,1,235,1,235,1,236, 1,236,1,236,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,237,3,237, 3228,8,237,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,237, 1,237,1,237,1,237,1,237,1,237,3,237,3244,8,237,1,238,1,238,1,238, 1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238, 1,238,3,238,3261,8,238,1,238,1,238,1,238,1,238,3,238,3267,8,238, 1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239,1,239, 1,239,1,239,1,239,1,239,3,239,3284,8,239,1,240,1,240,1,240,1,240, 1,240,1,240,1,241,1,241,1,241,1,241,1,241,3,241,3297,8,241,1,242, 1,242,3,242,3301,8,242,1,243,1,243,3,243,3305,8,243,1,244,1,244, 1,245,1,245,1,245,3,245,3312,8,245,1,246,1,246,1,246,1,246,1,246, 1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,249, 1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,251,1,251,3,251, 3340,8,251,1,251,1,251,1,251,1,251,1,251,3,251,3347,8,251,1,252, 1,252,1,252,3,252,3352,8,252,1,253,1,253,1,253,3,253,3357,8,253, 1,254,1,254,1,254,3,254,3362,8,254,1,254,1,254,1,254,3,254,3367, 8,254,1,255,1,255,1,255,1,255,1,256,1,256,3,256,3375,8,256,1,256, 1,256,1,256,1,256,3,256,3381,8,256,1,256,1,256,3,256,3385,8,256, 1,256,3,256,3388,8,256,1,256,3,256,3391,8,256,1,257,1,257,1,257, 1,257,3,257,3397,8,257,1,257,1,257,1,257,1,257,1,257,3,257,3404, 8,257,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,3,259,3414, 8,259,1,260,1,260,3,260,3418,8,260,1,260,4,260,3421,8,260,11,260, 12,260,3422,1,261,1,261,3,261,3427,8,261,1,262,1,262,5,262,3431, 8,262,10,262,12,262,3434,9,262,1,263,1,263,5,263,3438,8,263,10,263, 12,263,3441,9,263,1,264,1,264,5,264,3445,8,264,10,264,12,264,3448, 9,264,1,265,1,265,1,265,1,266,1,266,1,266,1,267,1,267,3,267,3458, 8,267,1,267,1,267,1,267,1,267,1,267,5,267,3465,8,267,10,267,12,267, 3468,9,267,1,267,3,267,3471,8,267,1,267,3,267,3474,8,267,1,267,3, 267,3477,8,267,1,268,1,268,1,268,1,268,1,268,1,268,3,268,3485,8, 268,1,268,3,268,3488,8,268,1,269,1,269,1,269,1,269,1,269,1,269,3, 269,3496,8,269,1,269,3,269,3499,8,269,1,270,1,270,1,270,1,270,1, 270,1,270,3,270,3507,8,270,1,270,1,270,3,270,3511,8,270,1,270,1, 270,1,270,3,270,3516,8,270,1,271,1,271,3,271,3520,8,271,1,272,1, 272,1,272,1,272,1,273,1,273,1,273,3,273,3529,8,273,1,274,1,274,1, 274,1,274,1,274,1,275,1,275,1,275,1,275,1,276,1,276,1,276,5,276, 3543,8,276,10,276,12,276,3546,9,276,1,277,1,277,1,277,1,277,1,278, 1,278,1,278,1,278,1,279,1,279,1,279,1,279,3,279,3560,8,279,3,279, 3562,8,279,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281, 1,281,1,282,1,282,1,282,1,282,3,282,3578,8,282,1,282,1,282,1,282, 1,282,1,282,3,282,3585,8,282,1,283,1,283,1,284,1,284,1,284,1,284, 1,285,1,285,1,285,1,286,1,286,1,286,1,287,1,287,1,287,3,287,3602, 8,287,1,287,3,287,3605,8,287,1,287,3,287,3608,8,287,1,287,3,287, 3611,8,287,1,287,1,287,1,287,1,287,3,287,3617,8,287,1,288,1,288, 1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290, 1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,3,290,3640,8,290, 1,290,1,290,1,291,1,291,1,291,1,291,3,291,3648,8,291,1,291,1,291, 1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,3,292, 3662,8,292,1,292,3,292,3665,8,292,1,293,1,293,1,293,3,293,3670,8, 293,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295, 1,296,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,297, 1,297,1,297,1,297,3,297,3696,8,297,1,298,1,298,3,298,3700,8,298, 1,298,3,298,3703,8,298,1,298,3,298,3706,8,298,1,298,1,298,3,298, 3710,8,298,1,298,1,298,1,298,3,298,3715,8,298,1,298,3,298,3718,8, 298,1,298,3,298,3721,8,298,1,298,3,298,3724,8,298,1,298,3,298,3727, 8,298,1,298,1,298,1,298,1,298,3,298,3733,8,298,1,298,3,298,3736, 8,298,1,298,3,298,3739,8,298,1,298,3,298,3742,8,298,1,298,3,298, 3745,8,298,1,298,3,298,3748,8,298,1,298,3,298,3751,8,298,1,298,3, 298,3754,8,298,1,298,3,298,3757,8,298,1,298,1,298,3,298,3761,8,298, 3,298,3763,8,298,1,298,1,298,1,298,1,298,3,298,3769,8,298,1,298, 1,298,1,298,3,298,3774,8,298,1,298,3,298,3777,8,298,1,298,3,298, 3780,8,298,1,298,3,298,3783,8,298,1,298,1,298,1,298,1,298,3,298, 3789,8,298,1,298,3,298,3792,8,298,1,298,3,298,3795,8,298,1,298,3, 298,3798,8,298,1,298,3,298,3801,8,298,1,298,3,298,3804,8,298,1,298, 3,298,3807,8,298,1,298,3,298,3810,8,298,1,298,3,298,3813,8,298,1, 298,1,298,3,298,3817,8,298,3,298,3819,8,298,3,298,3821,8,298,1,299, 1,299,1,299,3,299,3826,8,299,1,299,1,299,3,299,3830,8,299,1,299, 3,299,3833,8,299,1,299,3,299,3836,8,299,1,299,1,299,1,299,3,299, 3841,8,299,1,300,1,300,1,300,1,301,1,301,1,301,1,302,1,302,1,302, 1,303,1,303,1,303,1,303,1,304,1,304,1,304,3,304,3859,8,304,1,304, 1,304,1,305,1,305,1,305,5,305,3866,8,305,10,305,12,305,3869,9,305, 1,305,1,305,1,306,1,306,1,307,1,307,1,307,5,307,3878,8,307,10,307, 12,307,3881,9,307,1,308,1,308,1,308,5,308,3886,8,308,10,308,12,308, 3889,9,308,1,309,1,309,1,309,1,310,1,310,1,310,1,310,4,310,3898, 8,310,11,310,12,310,3899,1,310,3,310,3903,8,310,1,311,1,311,5,311, 3907,8,311,10,311,12,311,3910,9,311,1,311,1,311,5,311,3914,8,311, 10,311,12,311,3917,9,311,1,311,1,311,5,311,3921,8,311,10,311,12, 311,3924,9,311,1,311,1,311,5,311,3928,8,311,10,311,12,311,3931,9, 311,1,311,1,311,1,311,1,311,3,311,3937,8,311,1,312,1,312,1,312,1, 312,1,312,1,312,1,312,3,312,3946,8,312,5,312,3948,8,312,10,312,12, 312,3951,9,312,1,313,1,313,1,313,1,313,3,313,3957,8,313,1,313,5, 313,3960,8,313,10,313,12,313,3963,9,313,1,314,3,314,3966,8,314,1, 314,1,314,1,314,1,315,1,315,1,315,1,315,1,316,1,316,1,317,1,317, 1,317,1,317,1,317,3,317,3982,8,317,1,317,1,317,3,317,3986,8,317, 3,317,3988,8,317,1,317,3,317,3991,8,317,1,318,1,318,1,318,1,318, 1,318,1,318,1,318,1,318,1,318,5,318,4002,8,318,10,318,12,318,4005, 9,318,3,318,4007,8,318,1,318,3,318,4010,8,318,1,318,1,318,1,318, 1,318,1,318,1,318,1,318,1,318,5,318,4020,8,318,10,318,12,318,4023, 9,318,3,318,4025,8,318,1,318,1,318,1,318,1,318,1,318,3,318,4032, 8,318,1,318,1,318,1,318,1,318,1,318,5,318,4039,8,318,10,318,12,318, 4042,9,318,1,318,1,318,3,318,4046,8,318,3,318,4048,8,318,3,318,4050, 8,318,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320, 1,320,1,320,1,320,5,320,4065,8,320,10,320,12,320,4068,9,320,3,320, 4070,8,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,3,321,4079, 8,321,1,321,1,321,1,322,1,322,3,322,4085,8,322,1,323,1,323,3,323, 4089,8,323,1,323,3,323,4092,8,323,1,323,3,323,4095,8,323,1,323,3, 323,4098,8,323,1,323,3,323,4101,8,323,1,324,1,324,1,324,1,324,1, 324,1,324,1,324,1,324,1,324,1,324,3,324,4113,8,324,1,325,1,325,3, 325,4117,8,325,1,325,3,325,4120,8,325,1,325,3,325,4123,8,325,1,326, 1,326,1,327,1,327,1,328,1,328,3,328,4131,8,328,1,329,1,329,1,329, 1,329,1,329,3,329,4138,8,329,1,329,3,329,4141,8,329,1,330,1,330, 1,330,1,330,1,330,3,330,4148,8,330,1,330,3,330,4151,8,330,1,331, 1,331,1,331,3,331,4156,8,331,1,331,1,331,1,332,1,332,1,332,3,332, 4163,8,332,1,332,1,332,1,333,1,333,1,333,1,333,3,333,4171,8,333, 1,333,1,333,1,334,1,334,3,334,4177,8,334,1,334,1,334,1,334,3,334, 4182,8,334,1,334,1,334,3,334,4186,8,334,1,335,1,335,1,335,3,335, 4191,8,335,1,336,1,336,1,336,1,336,1,336,3,336,4198,8,336,1,336, 1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,336,5,336,4210, 8,336,10,336,12,336,4213,9,336,3,336,4215,8,336,1,336,1,336,3,336, 4219,8,336,1,337,1,337,1,337,1,338,1,338,1,339,1,339,1,340,1,340, 1,340,1,341,1,341,1,341,5,341,4234,8,341,10,341,12,341,4237,9,341, 1,341,1,341,1,341,5,341,4242,8,341,10,341,12,341,4245,9,341,3,341, 4247,8,341,1,342,1,342,1,343,1,343,1,343,1,343,1,344,1,344,1,344, 1,344,1,344,3,344,4260,8,344,1,344,1,344,1,344,1,344,1,344,5,344, 4267,8,344,10,344,12,344,4270,9,344,3,344,4272,8,344,1,344,1,344, 1,345,1,345,3,345,4278,8,345,1,345,3,345,4281,8,345,1,345,1,345, 1,345,3,345,4286,8,345,1,345,3,345,4289,8,345,1,346,1,346,1,347, 1,347,1,347,5,347,4296,8,347,10,347,12,347,4299,9,347,1,348,1,348, 1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,348,1,348,3,348,4312, 8,348,1,348,1,348,1,348,1,348,3,348,4318,8,348,3,348,4320,8,348, 1,348,1,348,1,348,1,349,1,349,1,349,3,349,4328,8,349,1,349,3,349, 4331,8,349,1,349,1,349,1,349,1,349,1,349,1,349,5,349,4339,8,349, 10,349,12,349,4342,9,349,1,349,1,349,3,349,4346,8,349,3,349,4348, 8,349,1,350,1,350,1,350,1,350,1,350,1,350,1,350,1,350,1,350,1,350, 3,350,4360,8,350,1,350,1,350,1,350,1,350,3,350,4366,8,350,3,350, 4368,8,350,1,350,1,350,1,350,1,351,1,351,3,351,4375,8,351,1,352, 1,352,1,352,5,352,4380,8,352,10,352,12,352,4383,9,352,1,353,1,353, 1,353,1,353,5,353,4389,8,353,10,353,12,353,4392,9,353,1,354,1,354, 1,354,1,354,1,355,1,355,1,355,3,355,4401,8,355,1,355,3,355,4404, 8,355,1,355,3,355,4407,8,355,1,355,3,355,4410,8,355,1,356,1,356, 3,356,4414,8,356,1,357,1,357,1,357,1,357,1,357,1,357,1,357,3,357, 4423,8,357,1,358,1,358,1,358,1,358,1,358,1,358,1,358,3,358,4432, 8,358,1,359,1,359,1,359,1,359,1,359,1,359,3,359,4440,8,359,1,360, 1,360,1,360,1,360,3,360,4446,8,360,1,361,1,361,1,361,1,361,1,362, 1,362,1,362,1,362,3,362,4456,8,362,1,363,1,363,1,363,1,364,1,364, 3,364,4463,8,364,1,364,1,364,1,364,1,364,5,364,4469,8,364,10,364, 12,364,4472,9,364,1,364,1,364,1,365,1,365,1,365,1,365,1,365,3,365, 4481,8,365,1,365,1,365,1,365,1,365,1,365,1,365,5,365,4489,8,365, 10,365,12,365,4492,9,365,1,365,1,365,3,365,4496,8,365,1,366,1,366, 3,366,4500,8,366,1,367,1,367,3,367,4504,8,367,1,367,1,367,5,367, 4508,8,367,10,367,12,367,4511,9,367,1,367,1,367,1,368,1,368,1,369, 1,369,1,369,1,370,1,370,1,370,1,371,1,371,1,372,1,372,1,372,1,372, 1,373,1,373,3,373,4531,8,373,1,374,1,374,4,374,4535,8,374,11,374, 12,374,4536,1,375,1,375,3,375,4541,8,375,1,376,1,376,3,376,4545, 8,376,1,376,3,376,4548,8,376,1,376,1,376,5,376,4552,8,376,10,376, 12,376,4555,9,376,1,377,1,377,3,377,4559,8,377,1,377,3,377,4562, 8,377,1,378,1,378,3,378,4566,8,378,1,379,1,379,1,379,1,379,5,379, 4572,8,379,10,379,12,379,4575,9,379,1,379,1,379,1,380,1,380,1,380, 5,380,4582,8,380,10,380,12,380,4585,9,380,1,381,1,381,1,381,1,381, 1,381,5,381,4592,8,381,10,381,12,381,4595,9,381,1,382,1,382,1,382, 1,382,1,383,1,383,1,383,1,383,1,384,1,384,1,384,1,384,1,385,1,385, 1,385,1,385,3,385,4613,8,385,1,386,1,386,1,386,1,386,1,386,3,386, 4620,8,386,1,386,3,386,4623,8,386,1,386,1,386,1,386,1,386,1,387, 1,387,1,387,1,387,1,387,3,387,4634,8,387,1,387,1,387,1,387,5,387, 4639,8,387,10,387,12,387,4642,9,387,3,387,4644,8,387,3,387,4646, 8,387,1,387,1,387,1,387,1,387,1,387,1,387,1,387,1,387,1,387,3,387, 4657,8,387,1,387,1,387,1,387,1,387,1,387,1,387,1,387,1,387,3,387, 4667,8,387,3,387,4669,8,387,1,388,1,388,1,388,1,388,3,388,4675,8, 388,1,389,1,389,1,390,1,390,3,390,4681,8,390,1,391,1,391,3,391,4685, 8,391,1,392,1,392,1,393,1,393,3,393,4691,8,393,1,394,1,394,1,394, 1,394,1,394,1,394,1,394,3,394,4700,8,394,1,394,1,394,1,395,1,395, 1,395,1,395,1,395,1,395,1,395,4,395,4711,8,395,11,395,12,395,4712, 1,395,1,395,3,395,4717,8,395,1,395,1,395,1,396,1,396,1,396,1,396, 1,396,1,396,4,396,4727,8,396,11,396,12,396,4728,1,396,1,396,3,396, 4733,8,396,1,396,1,396,1,397,1,397,1,397,1,397,1,397,3,397,4742, 8,397,1,397,1,397,1,398,1,398,1,398,1,398,1,398,1,398,1,398,1,398, 3,398,4754,8,398,1,399,1,399,1,399,1,399,1,399,1,399,1,399,1,400, 1,400,1,400,1,400,1,400,1,400,1,400,1,400,3,400,4771,8,400,1,401, 1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401,1,401, 1,401,3,401,4786,8,401,1,402,1,402,1,403,1,403,1,404,1,404,4,404, 4794,8,404,11,404,12,404,4795,1,405,1,405,1,405,1,406,1,406,1,406, 3,406,4804,8,406,1,407,1,407,1,407,3,407,4809,8,407,1,408,1,408, 1,408,1,409,1,409,1,410,1,410,1,410,1,411,1,411,1,411,1,411,1,411, 1,411,1,411,1,411,1,411,1,411,1,411,3,411,4830,8,411,1,411,1,411, 3,411,4834,8,411,1,412,1,412,1,412,1,412,1,412,1,412,1,412,1,412, 1,412,1,412,1,412,1,412,1,412,1,412,3,412,4850,8,412,1,413,1,413, 1,414,1,414,1,414,1,414,1,414,1,414,1,414,1,414,1,414,1,414,1,414, 3,414,4865,8,414,1,415,1,415,1,415,1,415,1,415,1,415,1,415,5,415, 4874,8,415,10,415,12,415,4877,9,415,1,416,1,416,1,417,5,417,4882, 8,417,10,417,12,417,4885,9,417,1,417,1,417,1,418,1,418,1,419,1,419, 1,419,1,419,5,419,4895,8,419,10,419,12,419,4898,9,419,1,420,1,420, 1,421,1,421,1,421,1,421,5,421,4906,8,421,10,421,12,421,4909,9,421, 1,422,1,422,1,423,1,423,1,423,1,423,5,423,4917,8,423,10,423,12,423, 4920,9,423,1,424,1,424,1,425,1,425,1,425,1,425,5,425,4928,8,425, 10,425,12,425,4931,9,425,1,426,1,426,1,427,1,427,1,427,1,427,5,427, 4939,8,427,10,427,12,427,4942,9,427,1,428,1,428,1,429,1,429,1,429, 1,429,5,429,4950,8,429,10,429,12,429,4953,9,429,1,430,1,430,1,431, 1,431,1,431,1,431,1,431,3,431,4962,8,431,1,432,1,432,1,432,1,432, 1,433,1,433,1,433,3,433,4971,8,433,1,434,1,434,3,434,4975,8,434, 1,435,1,435,1,435,1,435,1,435,1,435,3,435,4983,8,435,1,436,1,436, 1,436,1,436,1,436,1,436,1,436,1,436,1,436,1,436,1,436,3,436,4996, 8,436,1,437,1,437,1,437,1,437,1,438,1,438,1,439,1,439,3,439,5006, 8,439,1,440,1,440,1,440,1,440,3,440,5012,8,440,1,441,1,441,1,441, 1,441,1,442,1,442,1,442,1,442,1,442,1,442,1,442,3,442,5025,8,442, 1,443,1,443,1,443,1,443,1,443,1,443,1,443,5,443,5034,8,443,10,443, 12,443,5037,9,443,1,444,1,444,1,444,1,444,1,444,1,444,1,444,1,444, 1,444,1,444,1,444,1,444,3,444,5051,8,444,1,445,1,445,1,445,3,445, 5056,8,445,1,446,1,446,1,447,5,447,5061,8,447,10,447,12,447,5064, 9,447,1,447,1,447,1,448,1,448,1,449,1,449,1,449,1,449,5,449,5074, 8,449,10,449,12,449,5077,9,449,1,450,1,450,1,451,1,451,1,451,1,451, 5,451,5085,8,451,10,451,12,451,5088,9,451,1,452,1,452,1,453,1,453, 1,454,1,454,3,454,5096,8,454,1,455,1,455,1,455,1,455,1,455,5,455, 5103,8,455,10,455,12,455,5106,9,455,1,455,1,455,1,456,1,456,1,456, 3,456,5113,8,456,1,457,1,457,1,457,1,457,5,457,5119,8,457,10,457, 12,457,5122,9,457,1,457,1,457,1,458,1,458,1,458,1,458,1,459,1,459, 3,459,5132,8,459,1,460,1,460,1,461,1,461,1,462,1,462,3,462,5140, 8,462,1,463,1,463,1,463,3,463,5145,8,463,1,464,1,464,1,465,1,465, 1,466,1,466,1,467,1,467,1,467,1,468,1,468,1,468,5,468,5159,8,468, 10,468,12,468,5162,9,468,1,469,1,469,1,469,1,469,1,469,3,469,5169, 8,469,1,470,1,470,1,471,1,471,1,471,5,471,5176,8,471,10,471,12,471, 5179,9,471,1,472,1,472,1,473,1,473,1,473,1,473,1,473,1,474,1,474, 1,474,1,474,1,474,1,475,1,475,1,475,5,475,5196,8,475,10,475,12,475, 5199,9,475,1,476,1,476,1,476,1,476,1,476,1,476,1,476,1,476,1,476, 1,476,1,476,1,476,1,476,1,476,3,476,5215,8,476,1,477,1,477,1,477, 1,477,1,477,1,477,1,477,3,477,5224,8,477,1,478,1,478,1,478,5,478, 5229,8,478,10,478,12,478,5232,9,478,1,479,1,479,1,479,3,479,5237, 8,479,1,480,1,480,1,480,5,480,5242,8,480,10,480,12,480,5245,9,480, 1,481,1,481,1,481,1,481,3,481,5251,8,481,1,481,1,481,1,481,1,481, 1,481,1,481,1,481,3,481,5260,8,481,3,481,5262,8,481,1,482,1,482, 1,482,1,483,1,483,3,483,5269,8,483,1,484,1,484,1,485,1,485,1,486, 1,486,1,487,1,487,1,488,1,488,1,489,1,489,1,490,1,490,1,491,1,491, 1,492,1,492,1,493,1,493,1,494,1,494,1,495,1,495,1,495,1,495,1,495, 1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,1,495,3,495, 5308,8,495,1,495,1,495,3,495,5312,8,495,3,495,5314,8,495,1,496,1, 496,3,496,5318,8,496,1,496,1,496,1,496,1,497,1,497,1,497,1,497,1, 497,1,497,1,497,1,497,1,497,1,497,1,497,1,497,3,497,5335,8,497,1, 498,1,498,1,498,1,498,3,498,5341,8,498,1,498,1,498,1,499,1,499,1, 499,5,499,5348,8,499,10,499,12,499,5351,9,499,1,500,1,500,1,501, 1,501,1,501,1,502,1,502,1,502,5,502,5361,8,502,10,502,12,502,5364, 9,502,1,503,1,503,1,503,5,503,5369,8,503,10,503,12,503,5372,9,503, 1,504,1,504,1,504,1,504,1,505,1,505,1,506,1,506,1,507,1,507,1,507, 1,507,3,507,5386,8,507,1,508,1,508,1,508,1,509,1,509,1,509,1,509, 1,509,1,509,1,509,1,509,1,509,1,509,1,510,1,510,1,510,1,510,1,510, 1,510,1,510,1,510,1,510,1,510,1,510,1,510,1,510,1,510,3,510,5415, 8,510,1,510,1,510,1,510,3,510,5420,8,510,3,510,5422,8,510,1,511, 1,511,1,511,1,511,1,511,1,511,1,512,1,512,1,512,1,512,1,512,1,512, 1,512,1,512,1,512,1,512,1,512,1,512,3,512,5442,8,512,1,513,1,513, 1,513,5,513,5447,8,513,10,513,12,513,5450,9,513,1,514,1,514,1,514, 1,514,1,514,1,514,1,514,1,514,1,515,1,515,1,515,1,515,1,515,1,515, 1,515,1,515,1,515,1,515,1,515,1,515,3,515,5472,8,515,1,516,1,516, 1,516,1,516,1,516,1,516,1,517,1,517,1,517,1,517,1,517,1,517,1,517, 1,517,1,517,3,517,5489,8,517,1,517,1,517,1,517,3,517,5494,8,517, 1,518,1,518,1,518,1,518,1,518,1,518,1,518,1,518,1,518,3,518,5505, 8,518,1,518,1,518,1,518,3,518,5510,8,518,1,519,1,519,1,519,1,519, 1,519,1,519,1,519,1,519,0,0,520,0,2,4,6,8,10,12,14,16,18,20,22,24, 26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68, 70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108, 110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140, 142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172, 174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204, 206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236, 238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268, 270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300, 302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332, 334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364, 366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396, 398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428, 430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460, 462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492, 494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524, 526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556, 558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588, 590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620, 622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652, 654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684, 686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716, 718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748, 750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780, 782,784,786,788,790,792,794,796,798,800,802,804,806,808,810,812, 814,816,818,820,822,824,826,828,830,832,834,836,838,840,842,844, 846,848,850,852,854,856,858,860,862,864,866,868,870,872,874,876, 878,880,882,884,886,888,890,892,894,896,898,900,902,904,906,908, 910,912,914,916,918,920,922,924,926,928,930,932,934,936,938,940, 942,944,946,948,950,952,954,956,958,960,962,964,966,968,970,972, 974,976,978,980,982,984,986,988,990,992,994,996,998,1000,1002,1004, 1006,1008,1010,1012,1014,1016,1018,1020,1022,1024,1026,1028,1030, 1032,1034,1036,1038,0,56,2,0,57,57,172,172,4,0,91,91,121,121,225, 225,324,324,2,0,34,34,281,281,1,0,89,90,2,0,139,139,154,154,2,0, 67,67,294,294,2,0,68,68,295,295,1,0,155,156,2,0,114,114,306,306, 11,0,7,7,9,9,58,58,86,86,101,101,155,155,161,161,189,189,298,298, 308,308,364,364,3,0,4,4,101,101,325,325,3,0,15,15,128,128,170,170, 1,0,141,142,2,0,30,30,350,350,2,0,216,216,372,372,2,0,213,213,271, 271,2,0,18,18,89,89,2,0,130,130,177,177,2,0,39,39,375,375,4,0,112, 112,164,164,204,204,355,355,2,0,7,7,96,96,2,0,224,224,390,390,2, 0,188,188,195,195,2,0,42,42,314,314,2,0,425,425,430,430,2,0,140, 140,284,284,3,0,12,12,230,230,299,299,2,0,240,240,291,291,2,0,197, 197,267,267,2,0,353,353,430,430,2,0,133,133,246,246,3,0,412,413, 417,417,419,419,2,0,411,411,414,416,1,0,412,413,3,0,183,183,269, 269,285,285,2,0,7,7,13,13,3,0,7,7,13,13,312,312,2,0,125,125,349, 349,2,0,404,404,406,410,24,0,11,11,16,16,25,28,35,35,100,100,131, 132,151,151,154,154,162,163,183,183,197,197,215,215,227,227,263, 263,269,269,285,285,310,310,322,323,339,339,356,356,382,382,404, 416,418,420,422,422,85,0,1,6,8,8,10,10,15,15,18,20,22,24,30,31,33, 34,37,38,40,44,46,47,49,50,52,53,56,57,59,59,66,66,68,68,72,77,79, 79,83,85,87,89,91,95,97,99,103,104,106,107,109,111,114,116,118,121, 127,130,137,138,142,142,147,150,152,152,155,156,158,160,168,170, 172,177,182,182,184,186,188,192,194,196,198,201,203,203,205,208, 210,211,213,214,216,217,219,219,221,222,225,226,231,232,234,235, 237,239,242,245,251,251,253,254,256,258,260,261,264,266,270,281, 283,283,286,287,292,297,299,302,304,309,311,311,313,316,318,324, 326,327,329,329,331,333,338,339,341,341,343,345,348,348,351,352, 354,354,356,356,359,363,365,367,370,372,374,374,376,381,384,384, 387,393,13,0,16,16,26,28,63,64,71,71,100,100,131,131,145,145,151, 151,162,163,197,197,263,263,310,310,336,336,4,0,198,198,241,241, 299,299,321,321,2,0,212,212,430,431,1,0,106,107,1,0,94,95,1,0,391, 392,1,0,207,208,1,0,380,381,1,0,73,74,1,0,148,149,1,0,205,206,1, 0,296,297,1,0,80,82,2,0,4,4,101,101,3,0,14,14,144,144,368,368,5919, 0,1043,1,0,0,0,2,1050,1,0,0,0,4,1055,1,0,0,0,6,1089,1,0,0,0,8,1091, 1,0,0,0,10,1093,1,0,0,0,12,1109,1,0,0,0,14,1111,1,0,0,0,16,1127, 1,0,0,0,18,1130,1,0,0,0,20,1139,1,0,0,0,22,1147,1,0,0,0,24,1160, 1,0,0,0,26,1171,1,0,0,0,28,1176,1,0,0,0,30,1187,1,0,0,0,32,1191, 1,0,0,0,34,1199,1,0,0,0,36,1204,1,0,0,0,38,1258,1,0,0,0,40,1260, 1,0,0,0,42,1263,1,0,0,0,44,1265,1,0,0,0,46,1269,1,0,0,0,48,1271, 1,0,0,0,50,1274,1,0,0,0,52,1277,1,0,0,0,54,1281,1,0,0,0,56,1323, 1,0,0,0,58,1325,1,0,0,0,60,1328,1,0,0,0,62,1331,1,0,0,0,64,1335, 1,0,0,0,66,1343,1,0,0,0,68,1346,1,0,0,0,70,1349,1,0,0,0,72,1358, 1,0,0,0,74,1361,1,0,0,0,76,1376,1,0,0,0,78,1388,1,0,0,0,80,1393, 1,0,0,0,82,1413,1,0,0,0,84,1417,1,0,0,0,86,1424,1,0,0,0,88,1449, 1,0,0,0,90,1466,1,0,0,0,92,1468,1,0,0,0,94,1663,1,0,0,0,96,1673, 1,0,0,0,98,1675,1,0,0,0,100,1683,1,0,0,0,102,1688,1,0,0,0,104,1690, 1,0,0,0,106,1696,1,0,0,0,108,1700,1,0,0,0,110,1704,1,0,0,0,112,1708, 1,0,0,0,114,1718,1,0,0,0,116,1729,1,0,0,0,118,1746,1,0,0,0,120,1764, 1,0,0,0,122,1769,1,0,0,0,124,1772,1,0,0,0,126,1776,1,0,0,0,128,1783, 1,0,0,0,130,1792,1,0,0,0,132,1798,1,0,0,0,134,1800,1,0,0,0,136,1817, 1,0,0,0,138,1839,1,0,0,0,140,1841,1,0,0,0,142,1849,1,0,0,0,144,1856, 1,0,0,0,146,1858,1,0,0,0,148,1872,1,0,0,0,150,1879,1,0,0,0,152,1881, 1,0,0,0,154,1885,1,0,0,0,156,1889,1,0,0,0,158,1893,1,0,0,0,160,1897, 1,0,0,0,162,1910,1,0,0,0,164,1918,1,0,0,0,166,1921,1,0,0,0,168,1923, 1,0,0,0,170,1935,1,0,0,0,172,1945,1,0,0,0,174,1948,1,0,0,0,176,1959, 1,0,0,0,178,1967,1,0,0,0,180,2011,1,0,0,0,182,2020,1,0,0,0,184,2047, 1,0,0,0,186,2060,1,0,0,0,188,2062,1,0,0,0,190,2068,1,0,0,0,192,2071, 1,0,0,0,194,2077,1,0,0,0,196,2083,1,0,0,0,198,2090,1,0,0,0,200,2124, 1,0,0,0,202,2132,1,0,0,0,204,2145,1,0,0,0,206,2150,1,0,0,0,208,2161, 1,0,0,0,210,2178,1,0,0,0,212,2180,1,0,0,0,214,2185,1,0,0,0,216,2192, 1,0,0,0,218,2194,1,0,0,0,220,2197,1,0,0,0,222,2211,1,0,0,0,224,2219, 1,0,0,0,226,2227,1,0,0,0,228,2235,1,0,0,0,230,2255,1,0,0,0,232,2257, 1,0,0,0,234,2274,1,0,0,0,236,2279,1,0,0,0,238,2293,1,0,0,0,240,2295, 1,0,0,0,242,2298,1,0,0,0,244,2301,1,0,0,0,246,2310,1,0,0,0,248,2330, 1,0,0,0,250,2332,1,0,0,0,252,2335,1,0,0,0,254,2355,1,0,0,0,256,2357, 1,0,0,0,258,2361,1,0,0,0,260,2363,1,0,0,0,262,2372,1,0,0,0,264,2378, 1,0,0,0,266,2384,1,0,0,0,268,2389,1,0,0,0,270,2435,1,0,0,0,272,2437, 1,0,0,0,274,2440,1,0,0,0,276,2448,1,0,0,0,278,2456,1,0,0,0,280,2464, 1,0,0,0,282,2481,1,0,0,0,284,2483,1,0,0,0,286,2485,1,0,0,0,288,2498, 1,0,0,0,290,2506,1,0,0,0,292,2515,1,0,0,0,294,2519,1,0,0,0,296,2521, 1,0,0,0,298,2526,1,0,0,0,300,2528,1,0,0,0,302,2532,1,0,0,0,304,2538, 1,0,0,0,306,2546,1,0,0,0,308,2548,1,0,0,0,310,2551,1,0,0,0,312,2558, 1,0,0,0,314,2569,1,0,0,0,316,2582,1,0,0,0,318,2584,1,0,0,0,320,2592, 1,0,0,0,322,2596,1,0,0,0,324,2604,1,0,0,0,326,2608,1,0,0,0,328,2610, 1,0,0,0,330,2612,1,0,0,0,332,2615,1,0,0,0,334,2622,1,0,0,0,336,2630, 1,0,0,0,338,2635,1,0,0,0,340,2639,1,0,0,0,342,2647,1,0,0,0,344,2655, 1,0,0,0,346,2659,1,0,0,0,348,2661,1,0,0,0,350,2672,1,0,0,0,352,2676, 1,0,0,0,354,2688,1,0,0,0,356,2696,1,0,0,0,358,2700,1,0,0,0,360,2712, 1,0,0,0,362,2724,1,0,0,0,364,2729,1,0,0,0,366,2734,1,0,0,0,368,2736, 1,0,0,0,370,2740,1,0,0,0,372,2744,1,0,0,0,374,2751,1,0,0,0,376,2753, 1,0,0,0,378,2766,1,0,0,0,380,2805,1,0,0,0,382,2807,1,0,0,0,384,2812, 1,0,0,0,386,2817,1,0,0,0,388,2824,1,0,0,0,390,2829,1,0,0,0,392,2834, 1,0,0,0,394,2840,1,0,0,0,396,2842,1,0,0,0,398,2851,1,0,0,0,400,2863, 1,0,0,0,402,2943,1,0,0,0,404,2949,1,0,0,0,406,2975,1,0,0,0,408,2977, 1,0,0,0,410,2999,1,0,0,0,412,3004,1,0,0,0,414,3008,1,0,0,0,416,3040, 1,0,0,0,418,3042,1,0,0,0,420,3053,1,0,0,0,422,3059,1,0,0,0,424,3065, 1,0,0,0,426,3067,1,0,0,0,428,3076,1,0,0,0,430,3086,1,0,0,0,432,3088, 1,0,0,0,434,3102,1,0,0,0,436,3104,1,0,0,0,438,3107,1,0,0,0,440,3111, 1,0,0,0,442,3113,1,0,0,0,444,3117,1,0,0,0,446,3121,1,0,0,0,448,3125, 1,0,0,0,450,3132,1,0,0,0,452,3139,1,0,0,0,454,3161,1,0,0,0,456,3167, 1,0,0,0,458,3182,1,0,0,0,460,3189,1,0,0,0,462,3197,1,0,0,0,464,3199, 1,0,0,0,466,3206,1,0,0,0,468,3210,1,0,0,0,470,3213,1,0,0,0,472,3216, 1,0,0,0,474,3219,1,0,0,0,476,3266,1,0,0,0,478,3283,1,0,0,0,480,3285, 1,0,0,0,482,3296,1,0,0,0,484,3300,1,0,0,0,486,3304,1,0,0,0,488,3306, 1,0,0,0,490,3311,1,0,0,0,492,3313,1,0,0,0,494,3318,1,0,0,0,496,3323, 1,0,0,0,498,3328,1,0,0,0,500,3333,1,0,0,0,502,3339,1,0,0,0,504,3348, 1,0,0,0,506,3353,1,0,0,0,508,3366,1,0,0,0,510,3368,1,0,0,0,512,3372, 1,0,0,0,514,3392,1,0,0,0,516,3405,1,0,0,0,518,3413,1,0,0,0,520,3415, 1,0,0,0,522,3424,1,0,0,0,524,3428,1,0,0,0,526,3435,1,0,0,0,528,3442, 1,0,0,0,530,3449,1,0,0,0,532,3452,1,0,0,0,534,3455,1,0,0,0,536,3487, 1,0,0,0,538,3498,1,0,0,0,540,3515,1,0,0,0,542,3517,1,0,0,0,544,3521, 1,0,0,0,546,3528,1,0,0,0,548,3530,1,0,0,0,550,3535,1,0,0,0,552,3539, 1,0,0,0,554,3547,1,0,0,0,556,3551,1,0,0,0,558,3561,1,0,0,0,560,3563, 1,0,0,0,562,3569,1,0,0,0,564,3573,1,0,0,0,566,3586,1,0,0,0,568,3588, 1,0,0,0,570,3592,1,0,0,0,572,3595,1,0,0,0,574,3598,1,0,0,0,576,3618, 1,0,0,0,578,3622,1,0,0,0,580,3629,1,0,0,0,582,3643,1,0,0,0,584,3664, 1,0,0,0,586,3669,1,0,0,0,588,3671,1,0,0,0,590,3676,1,0,0,0,592,3681, 1,0,0,0,594,3695,1,0,0,0,596,3820,1,0,0,0,598,3822,1,0,0,0,600,3842, 1,0,0,0,602,3845,1,0,0,0,604,3848,1,0,0,0,606,3851,1,0,0,0,608,3855, 1,0,0,0,610,3867,1,0,0,0,612,3872,1,0,0,0,614,3874,1,0,0,0,616,3882, 1,0,0,0,618,3890,1,0,0,0,620,3902,1,0,0,0,622,3936,1,0,0,0,624,3938, 1,0,0,0,626,3956,1,0,0,0,628,3965,1,0,0,0,630,3970,1,0,0,0,632,3974, 1,0,0,0,634,3990,1,0,0,0,636,4049,1,0,0,0,638,4051,1,0,0,0,640,4053, 1,0,0,0,642,4073,1,0,0,0,644,4084,1,0,0,0,646,4086,1,0,0,0,648,4102, 1,0,0,0,650,4114,1,0,0,0,652,4124,1,0,0,0,654,4126,1,0,0,0,656,4130, 1,0,0,0,658,4140,1,0,0,0,660,4150,1,0,0,0,662,4155,1,0,0,0,664,4162, 1,0,0,0,666,4166,1,0,0,0,668,4185,1,0,0,0,670,4190,1,0,0,0,672,4192, 1,0,0,0,674,4220,1,0,0,0,676,4223,1,0,0,0,678,4225,1,0,0,0,680,4227, 1,0,0,0,682,4246,1,0,0,0,684,4248,1,0,0,0,686,4250,1,0,0,0,688,4254, 1,0,0,0,690,4288,1,0,0,0,692,4290,1,0,0,0,694,4292,1,0,0,0,696,4300, 1,0,0,0,698,4347,1,0,0,0,700,4349,1,0,0,0,702,4374,1,0,0,0,704,4376, 1,0,0,0,706,4384,1,0,0,0,708,4393,1,0,0,0,710,4409,1,0,0,0,712,4413, 1,0,0,0,714,4415,1,0,0,0,716,4424,1,0,0,0,718,4439,1,0,0,0,720,4445, 1,0,0,0,722,4447,1,0,0,0,724,4455,1,0,0,0,726,4457,1,0,0,0,728,4462, 1,0,0,0,730,4475,1,0,0,0,732,4499,1,0,0,0,734,4501,1,0,0,0,736,4514, 1,0,0,0,738,4516,1,0,0,0,740,4519,1,0,0,0,742,4522,1,0,0,0,744,4524, 1,0,0,0,746,4528,1,0,0,0,748,4534,1,0,0,0,750,4540,1,0,0,0,752,4542, 1,0,0,0,754,4556,1,0,0,0,756,4565,1,0,0,0,758,4567,1,0,0,0,760,4578, 1,0,0,0,762,4586,1,0,0,0,764,4596,1,0,0,0,766,4600,1,0,0,0,768,4604, 1,0,0,0,770,4608,1,0,0,0,772,4614,1,0,0,0,774,4668,1,0,0,0,776,4674, 1,0,0,0,778,4676,1,0,0,0,780,4680,1,0,0,0,782,4684,1,0,0,0,784,4686, 1,0,0,0,786,4690,1,0,0,0,788,4692,1,0,0,0,790,4703,1,0,0,0,792,4720, 1,0,0,0,794,4736,1,0,0,0,796,4753,1,0,0,0,798,4755,1,0,0,0,800,4770, 1,0,0,0,802,4785,1,0,0,0,804,4787,1,0,0,0,806,4789,1,0,0,0,808,4791, 1,0,0,0,810,4797,1,0,0,0,812,4803,1,0,0,0,814,4808,1,0,0,0,816,4810, 1,0,0,0,818,4813,1,0,0,0,820,4815,1,0,0,0,822,4833,1,0,0,0,824,4849, 1,0,0,0,826,4851,1,0,0,0,828,4864,1,0,0,0,830,4866,1,0,0,0,832,4878, 1,0,0,0,834,4883,1,0,0,0,836,4888,1,0,0,0,838,4890,1,0,0,0,840,4899, 1,0,0,0,842,4901,1,0,0,0,844,4910,1,0,0,0,846,4912,1,0,0,0,848,4921, 1,0,0,0,850,4923,1,0,0,0,852,4932,1,0,0,0,854,4934,1,0,0,0,856,4943, 1,0,0,0,858,4945,1,0,0,0,860,4954,1,0,0,0,862,4961,1,0,0,0,864,4963, 1,0,0,0,866,4970,1,0,0,0,868,4972,1,0,0,0,870,4982,1,0,0,0,872,4995, 1,0,0,0,874,4997,1,0,0,0,876,5001,1,0,0,0,878,5005,1,0,0,0,880,5011, 1,0,0,0,882,5013,1,0,0,0,884,5024,1,0,0,0,886,5026,1,0,0,0,888,5050, 1,0,0,0,890,5052,1,0,0,0,892,5057,1,0,0,0,894,5062,1,0,0,0,896,5067, 1,0,0,0,898,5069,1,0,0,0,900,5078,1,0,0,0,902,5080,1,0,0,0,904,5089, 1,0,0,0,906,5091,1,0,0,0,908,5093,1,0,0,0,910,5097,1,0,0,0,912,5109, 1,0,0,0,914,5114,1,0,0,0,916,5125,1,0,0,0,918,5131,1,0,0,0,920,5133, 1,0,0,0,922,5135,1,0,0,0,924,5139,1,0,0,0,926,5141,1,0,0,0,928,5146, 1,0,0,0,930,5148,1,0,0,0,932,5150,1,0,0,0,934,5152,1,0,0,0,936,5155, 1,0,0,0,938,5163,1,0,0,0,940,5170,1,0,0,0,942,5172,1,0,0,0,944,5180, 1,0,0,0,946,5182,1,0,0,0,948,5187,1,0,0,0,950,5192,1,0,0,0,952,5214, 1,0,0,0,954,5223,1,0,0,0,956,5225,1,0,0,0,958,5236,1,0,0,0,960,5238, 1,0,0,0,962,5246,1,0,0,0,964,5263,1,0,0,0,966,5266,1,0,0,0,968,5270, 1,0,0,0,970,5272,1,0,0,0,972,5274,1,0,0,0,974,5276,1,0,0,0,976,5278, 1,0,0,0,978,5280,1,0,0,0,980,5282,1,0,0,0,982,5284,1,0,0,0,984,5286, 1,0,0,0,986,5288,1,0,0,0,988,5290,1,0,0,0,990,5292,1,0,0,0,992,5317, 1,0,0,0,994,5322,1,0,0,0,996,5336,1,0,0,0,998,5344,1,0,0,0,1000, 5352,1,0,0,0,1002,5354,1,0,0,0,1004,5357,1,0,0,0,1006,5365,1,0,0, 0,1008,5373,1,0,0,0,1010,5377,1,0,0,0,1012,5379,1,0,0,0,1014,5385, 1,0,0,0,1016,5387,1,0,0,0,1018,5390,1,0,0,0,1020,5400,1,0,0,0,1022, 5423,1,0,0,0,1024,5441,1,0,0,0,1026,5443,1,0,0,0,1028,5451,1,0,0, 0,1030,5459,1,0,0,0,1032,5473,1,0,0,0,1034,5479,1,0,0,0,1036,5495, 1,0,0,0,1038,5511,1,0,0,0,1040,1042,3,2,1,0,1041,1040,1,0,0,0,1042, 1045,1,0,0,0,1043,1041,1,0,0,0,1043,1044,1,0,0,0,1044,1046,1,0,0, 0,1045,1043,1,0,0,0,1046,1047,5,0,0,1,1047,1,1,0,0,0,1048,1051,3, 4,2,0,1049,1051,3,12,6,0,1050,1048,1,0,0,0,1050,1049,1,0,0,0,1051, 1053,1,0,0,0,1052,1054,5,397,0,0,1053,1052,1,0,0,0,1053,1054,1,0, 0,0,1054,3,1,0,0,0,1055,1065,5,119,0,0,1056,1058,3,6,3,0,1057,1056, 1,0,0,0,1058,1061,1,0,0,0,1059,1057,1,0,0,0,1059,1060,1,0,0,0,1060, 1062,1,0,0,0,1061,1059,1,0,0,0,1062,1066,3,12,6,0,1063,1064,5,283, 0,0,1064,1066,3,392,196,0,1065,1059,1,0,0,0,1065,1063,1,0,0,0,1066, 5,1,0,0,0,1067,1090,5,122,0,0,1068,1090,5,138,0,0,1069,1090,5,88, 0,0,1070,1072,5,37,0,0,1071,1073,7,0,0,0,1072,1071,1,0,0,0,1072, 1073,1,0,0,0,1073,1090,1,0,0,0,1074,1090,5,191,0,0,1075,1090,5,21, 0,0,1076,1090,5,10,0,0,1077,1090,5,274,0,0,1078,1090,5,190,0,0,1079, 1090,5,19,0,0,1080,1082,5,376,0,0,1081,1083,3,8,4,0,1082,1081,1, 0,0,0,1082,1083,1,0,0,0,1083,1085,1,0,0,0,1084,1086,3,10,5,0,1085, 1084,1,0,0,0,1085,1086,1,0,0,0,1086,1090,1,0,0,0,1087,1090,5,79, 0,0,1088,1090,5,78,0,0,1089,1067,1,0,0,0,1089,1068,1,0,0,0,1089, 1069,1,0,0,0,1089,1070,1,0,0,0,1089,1074,1,0,0,0,1089,1075,1,0,0, 0,1089,1076,1,0,0,0,1089,1077,1,0,0,0,1089,1078,1,0,0,0,1089,1079, 1,0,0,0,1089,1080,1,0,0,0,1089,1087,1,0,0,0,1089,1088,1,0,0,0,1090, 7,1,0,0,0,1091,1092,5,224,0,0,1092,9,1,0,0,0,1093,1094,7,1,0,0,1094, 11,1,0,0,0,1095,1110,3,392,196,0,1096,1110,3,14,7,0,1097,1110,3, 20,10,0,1098,1110,3,22,11,0,1099,1110,3,24,12,0,1100,1110,3,28,14, 0,1101,1110,3,36,18,0,1102,1110,3,38,19,0,1103,1110,3,420,210,0, 1104,1110,3,428,214,0,1105,1110,3,430,215,0,1106,1110,3,452,226, 0,1107,1110,3,946,473,0,1108,1110,3,948,474,0,1109,1095,1,0,0,0, 1109,1096,1,0,0,0,1109,1097,1,0,0,0,1109,1098,1,0,0,0,1109,1099, 1,0,0,0,1109,1100,1,0,0,0,1109,1101,1,0,0,0,1109,1102,1,0,0,0,1109, 1103,1,0,0,0,1109,1104,1,0,0,0,1109,1105,1,0,0,0,1109,1106,1,0,0, 0,1109,1107,1,0,0,0,1109,1108,1,0,0,0,1110,13,1,0,0,0,1111,1112, 5,186,0,0,1112,1114,5,66,0,0,1113,1115,5,187,0,0,1114,1113,1,0,0, 0,1114,1115,1,0,0,0,1115,1116,1,0,0,0,1116,1117,5,158,0,0,1117,1119, 5,425,0,0,1118,1120,5,234,0,0,1119,1118,1,0,0,0,1119,1120,1,0,0, 0,1120,1121,1,0,0,0,1121,1122,5,166,0,0,1122,1123,5,328,0,0,1123, 1125,3,908,454,0,1124,1126,3,78,39,0,1125,1124,1,0,0,0,1125,1126, 1,0,0,0,1126,15,1,0,0,0,1127,1128,5,152,0,0,1128,1129,5,253,0,0, 1129,17,1,0,0,0,1130,1132,5,134,0,0,1131,1133,5,203,0,0,1132,1131, 1,0,0,0,1132,1133,1,0,0,0,1133,1134,1,0,0,0,1134,1135,5,278,0,0, 1135,1136,5,398,0,0,1136,1137,5,425,0,0,1137,1138,5,399,0,0,1138, 19,1,0,0,0,1139,1140,5,120,0,0,1140,1141,5,328,0,0,1141,1142,3,908, 454,0,1142,1143,5,340,0,0,1143,1145,5,425,0,0,1144,1146,3,18,9,0, 1145,1144,1,0,0,0,1145,1146,1,0,0,0,1146,21,1,0,0,0,1147,1153,5, 153,0,0,1148,1150,5,123,0,0,1149,1148,1,0,0,0,1149,1150,1,0,0,0, 1150,1151,1,0,0,0,1151,1152,5,328,0,0,1152,1154,3,908,454,0,1153, 1149,1,0,0,0,1153,1154,1,0,0,0,1154,1155,1,0,0,0,1155,1156,5,139, 0,0,1156,1158,5,425,0,0,1157,1159,3,272,136,0,1158,1157,1,0,0,0, 1158,1159,1,0,0,0,1159,23,1,0,0,0,1160,1161,5,276,0,0,1161,1162, 5,103,0,0,1162,1165,3,26,13,0,1163,1164,5,277,0,0,1164,1166,3,26, 13,0,1165,1163,1,0,0,0,1165,1166,1,0,0,0,1166,1169,1,0,0,0,1167, 1168,5,386,0,0,1168,1170,3,30,15,0,1169,1167,1,0,0,0,1169,1170,1, 0,0,0,1170,25,1,0,0,0,1171,1174,3,652,326,0,1172,1173,5,394,0,0, 1173,1175,3,34,17,0,1174,1172,1,0,0,0,1174,1175,1,0,0,0,1175,27, 1,0,0,0,1176,1177,5,276,0,0,1177,1178,5,186,0,0,1178,1181,3,26,13, 0,1179,1180,5,166,0,0,1180,1182,3,652,326,0,1181,1179,1,0,0,0,1181, 1182,1,0,0,0,1182,1185,1,0,0,0,1183,1184,5,386,0,0,1184,1186,3,30, 15,0,1185,1183,1,0,0,0,1185,1186,1,0,0,0,1186,29,1,0,0,0,1187,1188, 5,398,0,0,1188,1189,3,32,16,0,1189,1190,5,399,0,0,1190,31,1,0,0, 0,1191,1196,3,256,128,0,1192,1193,5,396,0,0,1193,1195,3,256,128, 0,1194,1192,1,0,0,0,1195,1198,1,0,0,0,1196,1194,1,0,0,0,1196,1197, 1,0,0,0,1197,33,1,0,0,0,1198,1196,1,0,0,0,1199,1202,5,425,0,0,1200, 1201,5,394,0,0,1201,1203,5,425,0,0,1202,1200,1,0,0,0,1202,1203,1, 0,0,0,1203,35,1,0,0,0,1204,1205,5,276,0,0,1205,1206,5,319,0,0,1206, 1209,3,652,326,0,1207,1208,5,386,0,0,1208,1210,3,30,15,0,1209,1207, 1,0,0,0,1209,1210,1,0,0,0,1210,37,1,0,0,0,1211,1259,3,56,28,0,1212, 1259,3,68,34,0,1213,1259,3,70,35,0,1214,1259,3,596,298,0,1215,1259, 3,76,38,0,1216,1259,3,74,37,0,1217,1259,3,474,237,0,1218,1259,3, 86,43,0,1219,1259,3,94,47,0,1220,1259,3,160,80,0,1221,1259,3,182, 91,0,1222,1259,3,198,99,0,1223,1259,3,202,101,0,1224,1259,3,206, 103,0,1225,1259,3,204,102,0,1226,1259,3,196,98,0,1227,1259,3,200, 100,0,1228,1259,3,168,84,0,1229,1259,3,174,87,0,1230,1259,3,170, 85,0,1231,1259,3,172,86,0,1232,1259,3,176,88,0,1233,1259,3,178,89, 0,1234,1259,3,180,90,0,1235,1259,3,88,44,0,1236,1259,3,98,49,0,1237, 1259,3,104,52,0,1238,1259,3,100,50,0,1239,1259,3,106,53,0,1240,1259, 3,108,54,0,1241,1259,3,110,55,0,1242,1259,3,112,56,0,1243,1259,3, 114,57,0,1244,1259,3,128,64,0,1245,1259,3,120,60,0,1246,1259,3,130, 65,0,1247,1259,3,122,61,0,1248,1259,3,116,58,0,1249,1259,3,118,59, 0,1250,1259,3,126,63,0,1251,1259,3,124,62,0,1252,1259,3,448,224, 0,1253,1259,3,450,225,0,1254,1259,3,464,232,0,1255,1259,3,952,476, 0,1256,1259,3,598,299,0,1257,1259,3,608,304,0,1258,1211,1,0,0,0, 1258,1212,1,0,0,0,1258,1213,1,0,0,0,1258,1214,1,0,0,0,1258,1215, 1,0,0,0,1258,1216,1,0,0,0,1258,1217,1,0,0,0,1258,1218,1,0,0,0,1258, 1219,1,0,0,0,1258,1220,1,0,0,0,1258,1221,1,0,0,0,1258,1222,1,0,0, 0,1258,1223,1,0,0,0,1258,1224,1,0,0,0,1258,1225,1,0,0,0,1258,1226, 1,0,0,0,1258,1227,1,0,0,0,1258,1228,1,0,0,0,1258,1229,1,0,0,0,1258, 1230,1,0,0,0,1258,1231,1,0,0,0,1258,1232,1,0,0,0,1258,1233,1,0,0, 0,1258,1234,1,0,0,0,1258,1235,1,0,0,0,1258,1236,1,0,0,0,1258,1237, 1,0,0,0,1258,1238,1,0,0,0,1258,1239,1,0,0,0,1258,1240,1,0,0,0,1258, 1241,1,0,0,0,1258,1242,1,0,0,0,1258,1243,1,0,0,0,1258,1244,1,0,0, 0,1258,1245,1,0,0,0,1258,1246,1,0,0,0,1258,1247,1,0,0,0,1258,1248, 1,0,0,0,1258,1249,1,0,0,0,1258,1250,1,0,0,0,1258,1251,1,0,0,0,1258, 1252,1,0,0,0,1258,1253,1,0,0,0,1258,1254,1,0,0,0,1258,1255,1,0,0, 0,1258,1256,1,0,0,0,1258,1257,1,0,0,0,1259,39,1,0,0,0,1260,1261, 5,151,0,0,1261,1262,5,117,0,0,1262,41,1,0,0,0,1263,1264,7,2,0,0, 1264,43,1,0,0,0,1265,1266,5,151,0,0,1266,1267,5,215,0,0,1267,1268, 5,117,0,0,1268,45,1,0,0,0,1269,1270,5,135,0,0,1270,47,1,0,0,0,1271, 1272,3,968,484,0,1272,1273,5,283,0,0,1273,49,1,0,0,0,1274,1275,3, 970,485,0,1275,1276,5,283,0,0,1276,51,1,0,0,0,1277,1278,5,320,0, 0,1278,1279,5,17,0,0,1279,1280,5,92,0,0,1280,53,1,0,0,0,1281,1282, 5,227,0,0,1282,1283,5,277,0,0,1283,55,1,0,0,0,1284,1286,5,58,0,0, 1285,1287,5,272,0,0,1286,1285,1,0,0,0,1286,1287,1,0,0,0,1287,1288, 1,0,0,0,1288,1290,3,92,46,0,1289,1291,3,44,22,0,1290,1289,1,0,0, 0,1290,1291,1,0,0,0,1291,1292,1,0,0,0,1292,1294,3,654,327,0,1293, 1295,3,72,36,0,1294,1293,1,0,0,0,1294,1295,1,0,0,0,1295,1297,1,0, 0,0,1296,1298,3,58,29,0,1297,1296,1,0,0,0,1297,1298,1,0,0,0,1298, 1300,1,0,0,0,1299,1301,3,60,30,0,1300,1299,1,0,0,0,1300,1301,1,0, 0,0,1301,1305,1,0,0,0,1302,1303,5,386,0,0,1303,1304,5,76,0,0,1304, 1306,3,62,31,0,1305,1302,1,0,0,0,1305,1306,1,0,0,0,1306,1324,1,0, 0,0,1307,1308,5,58,0,0,1308,1309,5,272,0,0,1309,1311,3,92,46,0,1310, 1312,3,44,22,0,1311,1310,1,0,0,0,1311,1312,1,0,0,0,1312,1313,1,0, 0,0,1313,1315,3,654,327,0,1314,1316,3,72,36,0,1315,1314,1,0,0,0, 1315,1316,1,0,0,0,1316,1317,1,0,0,0,1317,1321,3,66,33,0,1318,1319, 5,386,0,0,1319,1320,5,76,0,0,1320,1322,3,62,31,0,1321,1318,1,0,0, 0,1321,1322,1,0,0,0,1322,1324,1,0,0,0,1323,1284,1,0,0,0,1323,1307, 1,0,0,0,1324,57,1,0,0,0,1325,1326,5,188,0,0,1326,1327,5,425,0,0, 1327,59,1,0,0,0,1328,1329,5,195,0,0,1329,1330,5,425,0,0,1330,61, 1,0,0,0,1331,1332,5,398,0,0,1332,1333,3,64,32,0,1333,1334,5,399, 0,0,1334,63,1,0,0,0,1335,1340,3,256,128,0,1336,1337,5,396,0,0,1337, 1339,3,256,128,0,1338,1336,1,0,0,0,1339,1342,1,0,0,0,1340,1338,1, 0,0,0,1340,1341,1,0,0,0,1341,65,1,0,0,0,1342,1340,1,0,0,0,1343,1344, 5,369,0,0,1344,1345,3,652,326,0,1345,67,1,0,0,0,1346,1347,5,367, 0,0,1347,1348,3,652,326,0,1348,69,1,0,0,0,1349,1350,5,101,0,0,1350, 1352,3,92,46,0,1351,1353,3,40,20,0,1352,1351,1,0,0,0,1352,1353,1, 0,0,0,1353,1354,1,0,0,0,1354,1356,3,652,326,0,1355,1357,3,42,21, 0,1356,1355,1,0,0,0,1356,1357,1,0,0,0,1357,71,1,0,0,0,1358,1359, 5,47,0,0,1359,1360,5,425,0,0,1360,73,1,0,0,0,1361,1363,5,350,0,0, 1362,1364,5,328,0,0,1363,1362,1,0,0,0,1363,1364,1,0,0,0,1364,1365, 1,0,0,0,1365,1371,3,542,271,0,1366,1367,5,46,0,0,1367,1368,5,398, 0,0,1368,1369,3,280,140,0,1369,1370,5,399,0,0,1370,1372,1,0,0,0, 1371,1366,1,0,0,0,1371,1372,1,0,0,0,1372,1374,1,0,0,0,1373,1375, 3,46,23,0,1374,1373,1,0,0,0,1374,1375,1,0,0,0,1375,75,1,0,0,0,1376, 1377,5,101,0,0,1377,1379,5,328,0,0,1378,1380,3,40,20,0,1379,1378, 1,0,0,0,1379,1380,1,0,0,0,1380,1381,1,0,0,0,1381,1383,3,658,329, 0,1382,1384,5,254,0,0,1383,1382,1,0,0,0,1383,1384,1,0,0,0,1384,1386, 1,0,0,0,1385,1387,3,18,9,0,1386,1385,1,0,0,0,1386,1387,1,0,0,0,1387, 77,1,0,0,0,1388,1389,5,160,0,0,1389,1390,5,425,0,0,1390,1391,5,300, 0,0,1391,1392,5,425,0,0,1392,79,1,0,0,0,1393,1396,3,924,462,0,1394, 1395,5,394,0,0,1395,1397,3,924,462,0,1396,1394,1,0,0,0,1396,1397, 1,0,0,0,1397,1411,1,0,0,0,1398,1408,3,924,462,0,1399,1404,5,394, 0,0,1400,1405,5,104,0,0,1401,1405,5,175,0,0,1402,1405,5,374,0,0, 1403,1405,3,924,462,0,1404,1400,1,0,0,0,1404,1401,1,0,0,0,1404,1402, 1,0,0,0,1404,1403,1,0,0,0,1405,1407,1,0,0,0,1406,1399,1,0,0,0,1407, 1410,1,0,0,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1412,1,0,0, 0,1410,1408,1,0,0,0,1411,1398,1,0,0,0,1411,1412,1,0,0,0,1412,81, 1,0,0,0,1413,1415,3,80,40,0,1414,1416,3,910,455,0,1415,1414,1,0, 0,0,1415,1416,1,0,0,0,1416,83,1,0,0,0,1417,1419,3,656,328,0,1418, 1420,3,910,455,0,1419,1418,1,0,0,0,1419,1420,1,0,0,0,1420,1422,1, 0,0,0,1421,1423,3,286,143,0,1422,1421,1,0,0,0,1422,1423,1,0,0,0, 1423,85,1,0,0,0,1424,1447,7,3,0,0,1425,1427,3,92,46,0,1426,1428, 5,122,0,0,1427,1426,1,0,0,0,1427,1428,1,0,0,0,1428,1429,1,0,0,0, 1429,1430,3,652,326,0,1430,1448,1,0,0,0,1431,1433,5,69,0,0,1432, 1434,5,122,0,0,1433,1432,1,0,0,0,1433,1434,1,0,0,0,1434,1435,1,0, 0,0,1435,1448,3,652,326,0,1436,1438,5,141,0,0,1437,1439,5,122,0, 0,1438,1437,1,0,0,0,1438,1439,1,0,0,0,1439,1440,1,0,0,0,1440,1448, 3,780,390,0,1441,1444,5,138,0,0,1442,1444,5,122,0,0,1443,1441,1, 0,0,0,1443,1442,1,0,0,0,1444,1445,1,0,0,0,1445,1448,3,84,42,0,1446, 1448,3,84,42,0,1447,1425,1,0,0,0,1447,1431,1,0,0,0,1447,1436,1,0, 0,0,1447,1443,1,0,0,0,1447,1446,1,0,0,0,1448,87,1,0,0,0,1449,1450, 5,10,0,0,1450,1451,5,328,0,0,1451,1464,3,908,454,0,1452,1453,5,52, 0,0,1453,1460,5,318,0,0,1454,1461,5,214,0,0,1455,1456,5,134,0,0, 1456,1458,5,46,0,0,1457,1459,3,280,140,0,1458,1457,1,0,0,0,1458, 1459,1,0,0,0,1459,1461,1,0,0,0,1460,1454,1,0,0,0,1460,1455,1,0,0, 0,1460,1461,1,0,0,0,1461,1465,1,0,0,0,1462,1463,5,33,0,0,1463,1465, 5,203,0,0,1464,1452,1,0,0,0,1464,1462,1,0,0,0,1465,89,1,0,0,0,1466, 1467,7,4,0,0,1467,91,1,0,0,0,1468,1469,7,5,0,0,1469,93,1,0,0,0,1470, 1471,5,307,0,0,1471,1474,7,6,0,0,1472,1473,5,183,0,0,1473,1475,3, 216,108,0,1474,1472,1,0,0,0,1474,1475,1,0,0,0,1475,1664,1,0,0,0, 1476,1478,5,307,0,0,1477,1479,5,122,0,0,1478,1477,1,0,0,0,1478,1479, 1,0,0,0,1479,1480,1,0,0,0,1480,1484,5,329,0,0,1481,1482,3,90,45, 0,1482,1483,3,652,326,0,1483,1485,1,0,0,0,1484,1481,1,0,0,0,1484, 1485,1,0,0,0,1485,1487,1,0,0,0,1486,1488,3,96,48,0,1487,1486,1,0, 0,0,1487,1488,1,0,0,0,1488,1664,1,0,0,0,1489,1490,5,307,0,0,1490, 1494,5,378,0,0,1491,1492,3,90,45,0,1492,1493,3,652,326,0,1493,1495, 1,0,0,0,1494,1491,1,0,0,0,1494,1495,1,0,0,0,1495,1499,1,0,0,0,1496, 1497,5,183,0,0,1497,1500,3,216,108,0,1498,1500,3,216,108,0,1499, 1496,1,0,0,0,1499,1498,1,0,0,0,1499,1500,1,0,0,0,1500,1664,1,0,0, 0,1501,1502,5,307,0,0,1502,1503,5,201,0,0,1503,1507,5,378,0,0,1504, 1505,3,90,45,0,1505,1506,3,652,326,0,1506,1508,1,0,0,0,1507,1504, 1,0,0,0,1507,1508,1,0,0,0,1508,1512,1,0,0,0,1509,1510,5,183,0,0, 1510,1513,3,216,108,0,1511,1513,3,216,108,0,1512,1509,1,0,0,0,1512, 1511,1,0,0,0,1512,1513,1,0,0,0,1513,1664,1,0,0,0,1514,1516,5,307, 0,0,1515,1517,5,314,0,0,1516,1515,1,0,0,0,1516,1517,1,0,0,0,1517, 1518,1,0,0,0,1518,1519,5,46,0,0,1519,1520,3,90,45,0,1520,1524,3, 656,328,0,1521,1522,3,90,45,0,1522,1523,3,652,326,0,1523,1525,1, 0,0,0,1524,1521,1,0,0,0,1524,1525,1,0,0,0,1525,1529,1,0,0,0,1526, 1527,5,183,0,0,1527,1530,3,216,108,0,1528,1530,3,216,108,0,1529, 1526,1,0,0,0,1529,1528,1,0,0,0,1529,1530,1,0,0,0,1530,1664,1,0,0, 0,1531,1532,5,307,0,0,1532,1535,5,142,0,0,1533,1534,5,183,0,0,1534, 1536,3,780,390,0,1535,1533,1,0,0,0,1535,1536,1,0,0,0,1536,1664,1, 0,0,0,1537,1538,5,307,0,0,1538,1539,5,238,0,0,1539,1541,3,656,328, 0,1540,1542,3,910,455,0,1541,1540,1,0,0,0,1541,1542,1,0,0,0,1542, 1544,1,0,0,0,1543,1545,3,674,337,0,1544,1543,1,0,0,0,1544,1545,1, 0,0,0,1545,1547,1,0,0,0,1546,1548,3,762,381,0,1547,1546,1,0,0,0, 1547,1548,1,0,0,0,1548,1550,1,0,0,0,1549,1551,3,418,209,0,1550,1549, 1,0,0,0,1550,1551,1,0,0,0,1551,1664,1,0,0,0,1552,1553,5,307,0,0, 1553,1559,5,58,0,0,1554,1555,3,92,46,0,1555,1556,3,652,326,0,1556, 1560,1,0,0,0,1557,1558,5,328,0,0,1558,1560,3,658,329,0,1559,1554, 1,0,0,0,1559,1557,1,0,0,0,1560,1664,1,0,0,0,1561,1562,5,307,0,0, 1562,1563,5,328,0,0,1563,1567,5,122,0,0,1564,1565,3,90,45,0,1565, 1566,3,652,326,0,1566,1568,1,0,0,0,1567,1564,1,0,0,0,1567,1568,1, 0,0,0,1568,1569,1,0,0,0,1569,1570,5,183,0,0,1570,1572,3,216,108, 0,1571,1573,3,910,455,0,1572,1571,1,0,0,0,1572,1573,1,0,0,0,1573, 1664,1,0,0,0,1574,1575,5,307,0,0,1575,1576,5,331,0,0,1576,1580,3, 658,329,0,1577,1578,5,398,0,0,1578,1579,5,425,0,0,1579,1581,5,399, 0,0,1580,1577,1,0,0,0,1580,1581,1,0,0,0,1581,1664,1,0,0,0,1582,1583, 5,307,0,0,1583,1595,5,190,0,0,1584,1585,3,92,46,0,1585,1587,3,652, 326,0,1586,1588,5,122,0,0,1587,1586,1,0,0,0,1587,1588,1,0,0,0,1588, 1596,1,0,0,0,1589,1591,3,82,41,0,1590,1589,1,0,0,0,1590,1591,1,0, 0,0,1591,1593,1,0,0,0,1592,1594,5,122,0,0,1593,1592,1,0,0,0,1593, 1594,1,0,0,0,1594,1596,1,0,0,0,1595,1584,1,0,0,0,1595,1590,1,0,0, 0,1596,1664,1,0,0,0,1597,1598,5,307,0,0,1598,1635,5,50,0,0,1599, 1636,3,466,233,0,1600,1601,3,92,46,0,1601,1603,3,652,326,0,1602, 1604,3,468,234,0,1603,1602,1,0,0,0,1603,1604,1,0,0,0,1604,1606,1, 0,0,0,1605,1607,3,470,235,0,1606,1605,1,0,0,0,1606,1607,1,0,0,0, 1607,1609,1,0,0,0,1608,1610,3,472,236,0,1609,1608,1,0,0,0,1609,1610, 1,0,0,0,1610,1612,1,0,0,0,1611,1613,3,762,381,0,1612,1611,1,0,0, 0,1612,1613,1,0,0,0,1613,1615,1,0,0,0,1614,1616,3,418,209,0,1615, 1614,1,0,0,0,1615,1616,1,0,0,0,1616,1636,1,0,0,0,1617,1619,3,82, 41,0,1618,1617,1,0,0,0,1618,1619,1,0,0,0,1619,1621,1,0,0,0,1620, 1622,3,468,234,0,1621,1620,1,0,0,0,1621,1622,1,0,0,0,1622,1624,1, 0,0,0,1623,1625,3,470,235,0,1624,1623,1,0,0,0,1624,1625,1,0,0,0, 1625,1627,1,0,0,0,1626,1628,3,472,236,0,1627,1626,1,0,0,0,1627,1628, 1,0,0,0,1628,1630,1,0,0,0,1629,1631,3,762,381,0,1630,1629,1,0,0, 0,1630,1631,1,0,0,0,1631,1633,1,0,0,0,1632,1634,3,418,209,0,1633, 1632,1,0,0,0,1633,1634,1,0,0,0,1634,1636,1,0,0,0,1635,1599,1,0,0, 0,1635,1600,1,0,0,0,1635,1618,1,0,0,0,1636,1664,1,0,0,0,1637,1638, 5,307,0,0,1638,1664,5,345,0,0,1639,1640,5,307,0,0,1640,1641,5,54, 0,0,1641,1664,5,425,0,0,1642,1643,5,307,0,0,1643,1647,5,279,0,0, 1644,1645,5,242,0,0,1645,1648,3,924,462,0,1646,1648,5,243,0,0,1647, 1644,1,0,0,0,1647,1646,1,0,0,0,1648,1664,1,0,0,0,1649,1650,5,307, 0,0,1650,1664,5,70,0,0,1651,1653,5,307,0,0,1652,1654,5,138,0,0,1653, 1652,1,0,0,0,1653,1654,1,0,0,0,1654,1655,1,0,0,0,1655,1656,7,7,0, 0,1656,1657,5,223,0,0,1657,1661,3,658,329,0,1658,1659,3,90,45,0, 1659,1660,3,652,326,0,1660,1662,1,0,0,0,1661,1658,1,0,0,0,1661,1662, 1,0,0,0,1662,1664,1,0,0,0,1663,1470,1,0,0,0,1663,1476,1,0,0,0,1663, 1489,1,0,0,0,1663,1501,1,0,0,0,1663,1514,1,0,0,0,1663,1531,1,0,0, 0,1663,1537,1,0,0,0,1663,1552,1,0,0,0,1663,1561,1,0,0,0,1663,1574, 1,0,0,0,1663,1582,1,0,0,0,1663,1597,1,0,0,0,1663,1637,1,0,0,0,1663, 1639,1,0,0,0,1663,1642,1,0,0,0,1663,1649,1,0,0,0,1663,1651,1,0,0, 0,1664,95,1,0,0,0,1665,1666,5,383,0,0,1666,1667,3,924,462,0,1667, 1668,5,404,0,0,1668,1669,5,425,0,0,1669,1674,1,0,0,0,1670,1671,5, 183,0,0,1671,1674,3,216,108,0,1672,1674,3,216,108,0,1673,1665,1, 0,0,0,1673,1670,1,0,0,0,1673,1672,1,0,0,0,1674,97,1,0,0,0,1675,1676, 5,189,0,0,1676,1677,5,328,0,0,1677,1679,3,658,329,0,1678,1680,3, 910,455,0,1679,1678,1,0,0,0,1679,1680,1,0,0,0,1680,1681,1,0,0,0, 1681,1682,3,102,51,0,1682,99,1,0,0,0,1683,1684,5,189,0,0,1684,1685, 3,92,46,0,1685,1686,3,652,326,0,1686,1687,3,102,51,0,1687,101,1, 0,0,0,1688,1689,7,8,0,0,1689,103,1,0,0,0,1690,1691,5,360,0,0,1691, 1692,5,328,0,0,1692,1694,3,658,329,0,1693,1695,3,910,455,0,1694, 1693,1,0,0,0,1694,1695,1,0,0,0,1695,105,1,0,0,0,1696,1697,5,360, 0,0,1697,1698,3,92,46,0,1698,1699,3,652,326,0,1699,107,1,0,0,0,1700, 1701,5,58,0,0,1701,1702,5,286,0,0,1702,1703,3,924,462,0,1703,109, 1,0,0,0,1704,1705,5,101,0,0,1705,1706,5,286,0,0,1706,1707,3,924, 462,0,1707,111,1,0,0,0,1708,1709,5,143,0,0,1709,1711,3,140,70,0, 1710,1712,3,134,67,0,1711,1710,1,0,0,0,1711,1712,1,0,0,0,1712,1713, 1,0,0,0,1713,1714,5,340,0,0,1714,1716,3,146,73,0,1715,1717,3,152, 76,0,1716,1715,1,0,0,0,1716,1717,1,0,0,0,1717,113,1,0,0,0,1718,1720, 5,282,0,0,1719,1721,3,154,77,0,1720,1719,1,0,0,0,1720,1721,1,0,0, 0,1721,1722,1,0,0,0,1722,1724,3,140,70,0,1723,1725,3,134,67,0,1724, 1723,1,0,0,0,1724,1725,1,0,0,0,1725,1726,1,0,0,0,1726,1727,5,139, 0,0,1727,1728,3,146,73,0,1728,115,1,0,0,0,1729,1731,5,143,0,0,1730, 1732,5,286,0,0,1731,1730,1,0,0,0,1731,1732,1,0,0,0,1732,1733,1,0, 0,0,1733,1738,3,924,462,0,1734,1735,5,396,0,0,1735,1737,3,924,462, 0,1736,1734,1,0,0,0,1737,1740,1,0,0,0,1738,1736,1,0,0,0,1738,1739, 1,0,0,0,1739,1741,1,0,0,0,1740,1738,1,0,0,0,1741,1742,5,340,0,0, 1742,1744,3,146,73,0,1743,1745,3,158,79,0,1744,1743,1,0,0,0,1744, 1745,1,0,0,0,1745,117,1,0,0,0,1746,1748,5,282,0,0,1747,1749,3,156, 78,0,1748,1747,1,0,0,0,1748,1749,1,0,0,0,1749,1751,1,0,0,0,1750, 1752,5,286,0,0,1751,1750,1,0,0,0,1751,1752,1,0,0,0,1752,1753,1,0, 0,0,1753,1758,3,924,462,0,1754,1755,5,396,0,0,1755,1757,3,924,462, 0,1756,1754,1,0,0,0,1757,1760,1,0,0,0,1758,1756,1,0,0,0,1758,1759, 1,0,0,0,1759,1761,1,0,0,0,1760,1758,1,0,0,0,1761,1762,5,139,0,0, 1762,1763,3,146,73,0,1763,119,1,0,0,0,1764,1765,5,307,0,0,1765,1766, 5,286,0,0,1766,1767,5,143,0,0,1767,1768,3,148,74,0,1768,121,1,0, 0,0,1769,1770,5,307,0,0,1770,1771,5,287,0,0,1771,123,1,0,0,0,1772, 1773,5,307,0,0,1773,1774,5,62,0,0,1774,1775,5,287,0,0,1775,125,1, 0,0,0,1776,1777,5,303,0,0,1777,1781,5,286,0,0,1778,1782,5,7,0,0, 1779,1782,5,212,0,0,1780,1782,3,924,462,0,1781,1778,1,0,0,0,1781, 1779,1,0,0,0,1781,1780,1,0,0,0,1782,127,1,0,0,0,1783,1784,5,307, 0,0,1784,1786,5,143,0,0,1785,1787,3,148,74,0,1786,1785,1,0,0,0,1786, 1787,1,0,0,0,1787,1790,1,0,0,0,1788,1789,5,223,0,0,1789,1791,3,132, 66,0,1790,1788,1,0,0,0,1790,1791,1,0,0,0,1791,129,1,0,0,0,1792,1793, 5,307,0,0,1793,1794,5,251,0,0,1794,1795,3,924,462,0,1795,131,1,0, 0,0,1796,1799,5,7,0,0,1797,1799,3,138,69,0,1798,1796,1,0,0,0,1798, 1797,1,0,0,0,1799,133,1,0,0,0,1800,1801,5,223,0,0,1801,1802,3,136, 68,0,1802,135,1,0,0,0,1803,1804,3,92,46,0,1804,1805,3,652,326,0, 1805,1818,1,0,0,0,1806,1808,5,328,0,0,1807,1806,1,0,0,0,1807,1808, 1,0,0,0,1808,1809,1,0,0,0,1809,1811,3,658,329,0,1810,1812,3,910, 455,0,1811,1810,1,0,0,0,1811,1812,1,0,0,0,1812,1818,1,0,0,0,1813, 1814,5,365,0,0,1814,1818,5,425,0,0,1815,1816,5,302,0,0,1816,1818, 3,924,462,0,1817,1803,1,0,0,0,1817,1807,1,0,0,0,1817,1813,1,0,0, 0,1817,1815,1,0,0,0,1818,137,1,0,0,0,1819,1820,3,92,46,0,1820,1821, 3,652,326,0,1821,1840,1,0,0,0,1822,1824,5,328,0,0,1823,1822,1,0, 0,0,1823,1824,1,0,0,0,1824,1825,1,0,0,0,1825,1830,3,658,329,0,1826, 1827,5,398,0,0,1827,1828,3,280,140,0,1828,1829,5,399,0,0,1829,1831, 1,0,0,0,1830,1826,1,0,0,0,1830,1831,1,0,0,0,1831,1833,1,0,0,0,1832, 1834,3,910,455,0,1833,1832,1,0,0,0,1833,1834,1,0,0,0,1834,1840,1, 0,0,0,1835,1836,5,365,0,0,1836,1840,5,425,0,0,1837,1838,5,302,0, 0,1838,1840,3,924,462,0,1839,1819,1,0,0,0,1839,1823,1,0,0,0,1839, 1835,1,0,0,0,1839,1837,1,0,0,0,1840,139,1,0,0,0,1841,1846,3,142, 71,0,1842,1843,5,396,0,0,1843,1845,3,142,71,0,1844,1842,1,0,0,0, 1845,1848,1,0,0,0,1846,1844,1,0,0,0,1846,1847,1,0,0,0,1847,141,1, 0,0,0,1848,1846,1,0,0,0,1849,1854,3,144,72,0,1850,1851,5,398,0,0, 1851,1852,3,280,140,0,1852,1853,5,399,0,0,1853,1855,1,0,0,0,1854, 1850,1,0,0,0,1854,1855,1,0,0,0,1855,143,1,0,0,0,1856,1857,7,9,0, 0,1857,145,1,0,0,0,1858,1863,3,148,74,0,1859,1860,5,396,0,0,1860, 1862,3,148,74,0,1861,1859,1,0,0,0,1862,1865,1,0,0,0,1863,1861,1, 0,0,0,1863,1864,1,0,0,0,1864,147,1,0,0,0,1865,1863,1,0,0,0,1866, 1867,5,368,0,0,1867,1873,3,928,464,0,1868,1869,5,144,0,0,1869,1873, 3,928,464,0,1870,1871,5,286,0,0,1871,1873,3,924,462,0,1872,1866, 1,0,0,0,1872,1868,1,0,0,0,1872,1870,1,0,0,0,1873,149,1,0,0,0,1874, 1875,5,368,0,0,1875,1880,3,928,464,0,1876,1877,5,286,0,0,1877,1880, 3,924,462,0,1878,1880,3,924,462,0,1879,1874,1,0,0,0,1879,1876,1, 0,0,0,1879,1878,1,0,0,0,1880,151,1,0,0,0,1881,1882,5,386,0,0,1882, 1883,5,143,0,0,1883,1884,5,226,0,0,1884,153,1,0,0,0,1885,1886,5, 143,0,0,1886,1887,5,226,0,0,1887,1888,5,134,0,0,1888,155,1,0,0,0, 1889,1890,5,5,0,0,1890,1891,5,226,0,0,1891,1892,5,134,0,0,1892,157, 1,0,0,0,1893,1894,5,386,0,0,1894,1895,5,5,0,0,1895,1896,5,226,0, 0,1896,159,1,0,0,0,1897,1899,5,211,0,0,1898,1900,5,275,0,0,1899, 1898,1,0,0,0,1899,1900,1,0,0,0,1900,1901,1,0,0,0,1901,1902,5,328, 0,0,1902,1908,3,658,329,0,1903,1904,7,10,0,0,1904,1906,5,238,0,0, 1905,1907,3,914,457,0,1906,1905,1,0,0,0,1906,1907,1,0,0,0,1907,1909, 1,0,0,0,1908,1903,1,0,0,0,1908,1909,1,0,0,0,1909,161,1,0,0,0,1910, 1915,3,164,82,0,1911,1912,5,396,0,0,1912,1914,3,164,82,0,1913,1911, 1,0,0,0,1914,1917,1,0,0,0,1915,1913,1,0,0,0,1915,1916,1,0,0,0,1916, 163,1,0,0,0,1917,1915,1,0,0,0,1918,1919,3,166,83,0,1919,1920,5,425, 0,0,1920,165,1,0,0,0,1921,1922,7,11,0,0,1922,167,1,0,0,0,1923,1925, 5,58,0,0,1924,1926,5,332,0,0,1925,1924,1,0,0,0,1925,1926,1,0,0,0, 1926,1927,1,0,0,0,1927,1928,5,141,0,0,1928,1929,3,778,389,0,1929, 1930,5,17,0,0,1930,1933,5,425,0,0,1931,1932,5,369,0,0,1932,1934, 3,162,81,0,1933,1931,1,0,0,0,1933,1934,1,0,0,0,1934,169,1,0,0,0, 1935,1937,5,101,0,0,1936,1938,5,332,0,0,1937,1936,1,0,0,0,1937,1938, 1,0,0,0,1938,1939,1,0,0,0,1939,1941,5,141,0,0,1940,1942,3,40,20, 0,1941,1940,1,0,0,0,1941,1942,1,0,0,0,1942,1943,1,0,0,0,1943,1944, 3,780,390,0,1944,171,1,0,0,0,1945,1946,5,270,0,0,1946,1947,7,12, 0,0,1947,173,1,0,0,0,1948,1949,5,58,0,0,1949,1950,5,332,0,0,1950, 1951,5,193,0,0,1951,1952,5,431,0,0,1952,1954,5,398,0,0,1953,1955, 3,274,137,0,1954,1953,1,0,0,0,1954,1955,1,0,0,0,1955,1956,1,0,0, 0,1956,1957,5,399,0,0,1957,1958,3,826,413,0,1958,175,1,0,0,0,1959, 1960,5,101,0,0,1960,1961,5,332,0,0,1961,1963,5,193,0,0,1962,1964, 3,40,20,0,1963,1962,1,0,0,0,1963,1964,1,0,0,0,1964,1965,1,0,0,0, 1965,1966,5,431,0,0,1966,177,1,0,0,0,1967,1968,5,58,0,0,1968,1969, 5,155,0,0,1969,1970,3,924,462,0,1970,1971,5,223,0,0,1971,1972,5, 328,0,0,1972,1973,3,658,329,0,1973,1974,3,290,145,0,1974,1975,5, 17,0,0,1975,1979,5,425,0,0,1976,1977,5,386,0,0,1977,1978,5,84,0, 0,1978,1980,5,264,0,0,1979,1976,1,0,0,0,1979,1980,1,0,0,0,1980,1983, 1,0,0,0,1981,1982,5,150,0,0,1982,1984,3,252,126,0,1983,1981,1,0, 0,0,1983,1984,1,0,0,0,1984,1988,1,0,0,0,1985,1986,5,154,0,0,1986, 1987,5,328,0,0,1987,1989,3,658,329,0,1988,1985,1,0,0,0,1988,1989, 1,0,0,0,1989,1993,1,0,0,0,1990,1991,5,237,0,0,1991,1992,5,32,0,0, 1992,1994,3,290,145,0,1993,1990,1,0,0,0,1993,1994,1,0,0,0,1994,1999, 1,0,0,0,1995,1997,3,248,124,0,1996,1995,1,0,0,0,1996,1997,1,0,0, 0,1997,1998,1,0,0,0,1998,2000,3,270,135,0,1999,1996,1,0,0,0,1999, 2000,1,0,0,0,2000,2003,1,0,0,0,2001,2002,5,188,0,0,2002,2004,5,425, 0,0,2003,2001,1,0,0,0,2003,2004,1,0,0,0,2004,2006,1,0,0,0,2005,2007, 3,250,125,0,2006,2005,1,0,0,0,2006,2007,1,0,0,0,2007,2009,1,0,0, 0,2008,2010,3,218,109,0,2009,2008,1,0,0,0,2009,2010,1,0,0,0,2010, 179,1,0,0,0,2011,2012,5,101,0,0,2012,2014,5,155,0,0,2013,2015,3, 40,20,0,2014,2013,1,0,0,0,2014,2015,1,0,0,0,2015,2016,1,0,0,0,2016, 2017,3,924,462,0,2017,2018,5,223,0,0,2018,2019,3,658,329,0,2019, 181,1,0,0,0,2020,2022,5,58,0,0,2021,2023,3,54,27,0,2022,2021,1,0, 0,0,2022,2023,1,0,0,0,2023,2024,1,0,0,0,2024,2026,5,377,0,0,2025, 2027,3,44,22,0,2026,2025,1,0,0,0,2026,2027,1,0,0,0,2027,2028,1,0, 0,0,2028,2033,3,664,332,0,2029,2030,5,398,0,0,2030,2031,3,334,167, 0,2031,2032,5,399,0,0,2032,2034,1,0,0,0,2033,2029,1,0,0,0,2033,2034, 1,0,0,0,2034,2036,1,0,0,0,2035,2037,3,218,109,0,2036,2035,1,0,0, 0,2036,2037,1,0,0,0,2037,2039,1,0,0,0,2038,2040,3,184,92,0,2039, 2038,1,0,0,0,2039,2040,1,0,0,0,2040,2042,1,0,0,0,2041,2043,3,250, 125,0,2042,2041,1,0,0,0,2042,2043,1,0,0,0,2043,2044,1,0,0,0,2044, 2045,5,17,0,0,2045,2046,3,412,206,0,2046,183,1,0,0,0,2047,2048,5, 237,0,0,2048,2054,5,223,0,0,2049,2050,5,398,0,0,2050,2055,3,280, 140,0,2051,2052,5,315,0,0,2052,2053,5,398,0,0,2053,2055,3,226,113, 0,2054,2049,1,0,0,0,2054,2051,1,0,0,0,2055,2056,1,0,0,0,2056,2057, 5,399,0,0,2057,185,1,0,0,0,2058,2061,3,188,94,0,2059,2061,3,190, 95,0,2060,2058,1,0,0,0,2060,2059,1,0,0,0,2061,187,1,0,0,0,2062,2063, 5,42,0,0,2063,2064,5,223,0,0,2064,2065,5,398,0,0,2065,2066,3,280, 140,0,2066,2067,5,399,0,0,2067,189,1,0,0,0,2068,2069,3,192,96,0, 2069,2070,3,194,97,0,2070,191,1,0,0,0,2071,2072,5,98,0,0,2072,2073, 5,223,0,0,2073,2074,5,398,0,0,2074,2075,3,280,140,0,2075,2076,5, 399,0,0,2076,193,1,0,0,0,2077,2078,5,314,0,0,2078,2079,5,223,0,0, 2079,2080,5,398,0,0,2080,2081,3,280,140,0,2081,2082,5,399,0,0,2082, 195,1,0,0,0,2083,2084,5,101,0,0,2084,2086,5,377,0,0,2085,2087,3, 40,20,0,2086,2085,1,0,0,0,2086,2087,1,0,0,0,2087,2088,1,0,0,0,2088, 2089,3,662,331,0,2089,197,1,0,0,0,2090,2091,5,58,0,0,2091,2092,5, 201,0,0,2092,2094,5,377,0,0,2093,2095,3,44,22,0,2094,2093,1,0,0, 0,2094,2095,1,0,0,0,2095,2096,1,0,0,0,2096,2098,3,664,332,0,2097, 2099,3,50,25,0,2098,2097,1,0,0,0,2098,2099,1,0,0,0,2099,2101,1,0, 0,0,2100,2102,3,218,109,0,2101,2100,1,0,0,0,2101,2102,1,0,0,0,2102, 2104,1,0,0,0,2103,2105,3,184,92,0,2104,2103,1,0,0,0,2104,2105,1, 0,0,0,2105,2107,1,0,0,0,2106,2108,3,186,93,0,2107,2106,1,0,0,0,2107, 2108,1,0,0,0,2108,2110,1,0,0,0,2109,2111,3,248,124,0,2110,2109,1, 0,0,0,2110,2111,1,0,0,0,2111,2113,1,0,0,0,2112,2114,3,270,135,0, 2113,2112,1,0,0,0,2113,2114,1,0,0,0,2114,2116,1,0,0,0,2115,2117, 3,272,136,0,2116,2115,1,0,0,0,2116,2117,1,0,0,0,2117,2119,1,0,0, 0,2118,2120,3,250,125,0,2119,2118,1,0,0,0,2119,2120,1,0,0,0,2120, 2121,1,0,0,0,2121,2122,5,17,0,0,2122,2123,3,412,206,0,2123,199,1, 0,0,0,2124,2125,5,101,0,0,2125,2126,5,201,0,0,2126,2128,5,377,0, 0,2127,2129,3,40,20,0,2128,2127,1,0,0,0,2128,2129,1,0,0,0,2129,2130, 1,0,0,0,2130,2131,3,662,331,0,2131,201,1,0,0,0,2132,2133,5,58,0, 0,2133,2134,5,292,0,0,2134,2135,5,257,0,0,2135,2136,3,924,462,0, 2136,2138,3,210,105,0,2137,2139,3,212,106,0,2138,2137,1,0,0,0,2138, 2139,1,0,0,0,2139,2141,1,0,0,0,2140,2142,3,294,147,0,2141,2140,1, 0,0,0,2141,2142,1,0,0,0,2142,2143,1,0,0,0,2143,2144,3,214,107,0, 2144,203,1,0,0,0,2145,2146,5,101,0,0,2146,2147,5,292,0,0,2147,2148, 5,257,0,0,2148,2149,3,924,462,0,2149,205,1,0,0,0,2150,2151,5,9,0, 0,2151,2152,5,292,0,0,2152,2153,5,257,0,0,2153,2154,3,924,462,0, 2154,2155,3,208,104,0,2155,207,1,0,0,0,2156,2162,3,210,105,0,2157, 2162,3,212,106,0,2158,2162,3,294,147,0,2159,2162,3,214,107,0,2160, 2162,5,115,0,0,2161,2156,1,0,0,0,2161,2157,1,0,0,0,2161,2158,1,0, 0,0,2161,2159,1,0,0,0,2161,2160,1,0,0,0,2162,209,1,0,0,0,2163,2164, 5,59,0,0,2164,2179,5,425,0,0,2165,2167,5,111,0,0,2166,2168,5,430, 0,0,2167,2166,1,0,0,0,2167,2168,1,0,0,0,2168,2169,1,0,0,0,2169,2176, 3,824,412,0,2170,2174,5,20,0,0,2171,2172,5,222,0,0,2172,2174,5,32, 0,0,2173,2170,1,0,0,0,2173,2171,1,0,0,0,2174,2175,1,0,0,0,2175,2177, 5,425,0,0,2176,2173,1,0,0,0,2176,2177,1,0,0,0,2177,2179,1,0,0,0, 2178,2163,1,0,0,0,2178,2165,1,0,0,0,2179,211,1,0,0,0,2180,2181,5, 116,0,0,2181,2182,5,17,0,0,2182,2183,5,425,0,0,2183,213,1,0,0,0, 2184,2186,5,85,0,0,2185,2184,1,0,0,0,2185,2186,1,0,0,0,2186,2187, 1,0,0,0,2187,2188,5,17,0,0,2188,2189,3,2,1,0,2189,215,1,0,0,0,2190, 2193,3,924,462,0,2191,2193,5,425,0,0,2192,2190,1,0,0,0,2192,2191, 1,0,0,0,2193,217,1,0,0,0,2194,2195,5,47,0,0,2195,2196,5,425,0,0, 2196,219,1,0,0,0,2197,2198,5,237,0,0,2198,2207,5,32,0,0,2199,2202, 5,398,0,0,2200,2203,3,222,111,0,2201,2203,3,224,112,0,2202,2200, 1,0,0,0,2202,2201,1,0,0,0,2203,2208,1,0,0,0,2204,2205,5,315,0,0, 2205,2206,5,398,0,0,2206,2208,3,226,113,0,2207,2199,1,0,0,0,2207, 2204,1,0,0,0,2208,2209,1,0,0,0,2209,2210,5,399,0,0,2210,221,1,0, 0,0,2211,2216,3,348,174,0,2212,2213,5,396,0,0,2213,2215,3,348,174, 0,2214,2212,1,0,0,0,2215,2218,1,0,0,0,2216,2214,1,0,0,0,2216,2217, 1,0,0,0,2217,223,1,0,0,0,2218,2216,1,0,0,0,2219,2224,3,282,141,0, 2220,2221,5,396,0,0,2221,2223,3,282,141,0,2222,2220,1,0,0,0,2223, 2226,1,0,0,0,2224,2222,1,0,0,0,2224,2225,1,0,0,0,2225,225,1,0,0, 0,2226,2224,1,0,0,0,2227,2232,3,228,114,0,2228,2229,5,396,0,0,2229, 2231,3,228,114,0,2230,2228,1,0,0,0,2231,2234,1,0,0,0,2232,2230,1, 0,0,0,2232,2233,1,0,0,0,2233,227,1,0,0,0,2234,2232,1,0,0,0,2235, 2236,3,230,115,0,2236,229,1,0,0,0,2237,2256,3,282,141,0,2238,2243, 3,974,487,0,2239,2243,3,976,488,0,2240,2243,3,980,490,0,2241,2243, 3,982,491,0,2242,2238,1,0,0,0,2242,2239,1,0,0,0,2242,2240,1,0,0, 0,2242,2241,1,0,0,0,2243,2244,1,0,0,0,2244,2245,5,398,0,0,2245,2246, 3,282,141,0,2246,2247,5,399,0,0,2247,2256,1,0,0,0,2248,2249,7,13, 0,0,2249,2250,5,398,0,0,2250,2251,5,430,0,0,2251,2252,5,396,0,0, 2252,2253,3,282,141,0,2253,2254,5,399,0,0,2254,2256,1,0,0,0,2255, 2237,1,0,0,0,2255,2242,1,0,0,0,2255,2248,1,0,0,0,2256,231,1,0,0, 0,2257,2258,5,42,0,0,2258,2259,5,32,0,0,2259,2260,5,398,0,0,2260, 2261,3,280,140,0,2261,2268,5,399,0,0,2262,2263,5,314,0,0,2263,2264, 5,32,0,0,2264,2265,5,398,0,0,2265,2266,3,288,144,0,2266,2267,5,399, 0,0,2267,2269,1,0,0,0,2268,2262,1,0,0,0,2268,2269,1,0,0,0,2269,2270, 1,0,0,0,2270,2271,5,166,0,0,2271,2272,5,430,0,0,2272,2273,5,31,0, 0,2273,233,1,0,0,0,2274,2275,5,42,0,0,2275,2276,5,166,0,0,2276,2277, 5,430,0,0,2277,2278,5,31,0,0,2278,235,1,0,0,0,2279,2280,5,309,0, 0,2280,2281,5,32,0,0,2281,2282,5,398,0,0,2282,2283,3,280,140,0,2283, 2284,5,399,0,0,2284,2285,5,223,0,0,2285,2286,5,398,0,0,2286,2287, 3,316,158,0,2287,2289,5,399,0,0,2288,2290,3,52,26,0,2289,2288,1, 0,0,0,2289,2290,1,0,0,0,2290,237,1,0,0,0,2291,2294,3,244,122,0,2292, 2294,3,246,123,0,2293,2291,1,0,0,0,2293,2292,1,0,0,0,2294,239,1, 0,0,0,2295,2296,5,265,0,0,2296,2297,5,425,0,0,2297,241,1,0,0,0,2298, 2299,5,266,0,0,2299,2300,5,425,0,0,2300,243,1,0,0,0,2301,2302,5, 290,0,0,2302,2303,5,137,0,0,2303,2304,5,300,0,0,2304,2308,5,425, 0,0,2305,2306,5,386,0,0,2306,2307,5,301,0,0,2307,2309,3,252,126, 0,2308,2305,1,0,0,0,2308,2309,1,0,0,0,2309,245,1,0,0,0,2310,2311, 5,290,0,0,2311,2312,5,137,0,0,2312,2314,5,87,0,0,2313,2315,3,260, 130,0,2314,2313,1,0,0,0,2314,2315,1,0,0,0,2315,2317,1,0,0,0,2316, 2318,3,262,131,0,2317,2316,1,0,0,0,2317,2318,1,0,0,0,2318,2320,1, 0,0,0,2319,2321,3,264,132,0,2320,2319,1,0,0,0,2320,2321,1,0,0,0, 2321,2323,1,0,0,0,2322,2324,3,266,133,0,2323,2322,1,0,0,0,2323,2324, 1,0,0,0,2324,2326,1,0,0,0,2325,2327,3,268,134,0,2326,2325,1,0,0, 0,2326,2327,1,0,0,0,2327,247,1,0,0,0,2328,2331,3,246,123,0,2329, 2331,3,244,122,0,2330,2328,1,0,0,0,2330,2329,1,0,0,0,2331,249,1, 0,0,0,2332,2333,5,331,0,0,2333,2334,3,252,126,0,2334,251,1,0,0,0, 2335,2336,5,398,0,0,2336,2337,3,254,127,0,2337,2338,5,399,0,0,2338, 253,1,0,0,0,2339,2344,3,256,128,0,2340,2341,5,396,0,0,2341,2343, 3,256,128,0,2342,2340,1,0,0,0,2343,2346,1,0,0,0,2344,2342,1,0,0, 0,2344,2345,1,0,0,0,2345,2356,1,0,0,0,2346,2344,1,0,0,0,2347,2352, 3,258,129,0,2348,2349,5,396,0,0,2349,2351,3,258,129,0,2350,2348, 1,0,0,0,2351,2354,1,0,0,0,2352,2350,1,0,0,0,2352,2353,1,0,0,0,2353, 2356,1,0,0,0,2354,2352,1,0,0,0,2355,2339,1,0,0,0,2355,2347,1,0,0, 0,2356,255,1,0,0,0,2357,2358,5,425,0,0,2358,2359,5,404,0,0,2359, 2360,5,425,0,0,2360,257,1,0,0,0,2361,2362,5,425,0,0,2362,259,1,0, 0,0,2363,2364,5,127,0,0,2364,2365,5,333,0,0,2365,2366,5,32,0,0,2366, 2370,5,425,0,0,2367,2368,5,110,0,0,2368,2369,5,32,0,0,2369,2371, 5,425,0,0,2370,2367,1,0,0,0,2370,2371,1,0,0,0,2371,261,1,0,0,0,2372, 2373,5,44,0,0,2373,2374,5,169,0,0,2374,2375,5,333,0,0,2375,2376, 5,32,0,0,2376,2377,5,425,0,0,2377,263,1,0,0,0,2378,2379,5,197,0, 0,2379,2380,5,174,0,0,2380,2381,5,333,0,0,2381,2382,5,32,0,0,2382, 2383,5,425,0,0,2383,265,1,0,0,0,2384,2385,5,185,0,0,2385,2386,5, 333,0,0,2386,2387,5,32,0,0,2387,2388,5,425,0,0,2388,267,1,0,0,0, 2389,2390,5,218,0,0,2390,2391,5,85,0,0,2391,2392,5,17,0,0,2392,2393, 5,425,0,0,2393,269,1,0,0,0,2394,2395,5,320,0,0,2395,2396,5,17,0, 0,2396,2397,5,160,0,0,2397,2398,5,425,0,0,2398,2399,5,232,0,0,2399, 2404,5,425,0,0,2400,2401,5,159,0,0,2401,2402,5,425,0,0,2402,2403, 5,231,0,0,2403,2405,5,425,0,0,2404,2400,1,0,0,0,2404,2405,1,0,0, 0,2405,2436,1,0,0,0,2406,2407,5,320,0,0,2407,2408,5,32,0,0,2408, 2412,5,425,0,0,2409,2410,5,386,0,0,2410,2411,5,301,0,0,2411,2413, 3,252,126,0,2412,2409,1,0,0,0,2412,2413,1,0,0,0,2413,2417,1,0,0, 0,2414,2415,5,320,0,0,2415,2416,5,17,0,0,2416,2418,3,924,462,0,2417, 2414,1,0,0,0,2417,2418,1,0,0,0,2418,2436,1,0,0,0,2419,2420,5,320, 0,0,2420,2421,5,32,0,0,2421,2425,3,924,462,0,2422,2423,5,386,0,0, 2423,2424,5,301,0,0,2424,2426,3,252,126,0,2425,2422,1,0,0,0,2425, 2426,1,0,0,0,2426,2430,1,0,0,0,2427,2428,5,320,0,0,2428,2429,5,17, 0,0,2429,2431,3,924,462,0,2430,2427,1,0,0,0,2430,2431,1,0,0,0,2431, 2436,1,0,0,0,2432,2433,5,320,0,0,2433,2434,5,17,0,0,2434,2436,3, 924,462,0,2435,2394,1,0,0,0,2435,2406,1,0,0,0,2435,2419,1,0,0,0, 2435,2432,1,0,0,0,2436,271,1,0,0,0,2437,2438,5,188,0,0,2438,2439, 5,425,0,0,2439,273,1,0,0,0,2440,2445,3,342,171,0,2441,2442,5,396, 0,0,2442,2444,3,342,171,0,2443,2441,1,0,0,0,2444,2447,1,0,0,0,2445, 2443,1,0,0,0,2445,2446,1,0,0,0,2446,275,1,0,0,0,2447,2445,1,0,0, 0,2448,2453,3,344,172,0,2449,2450,5,396,0,0,2450,2452,3,344,172, 0,2451,2449,1,0,0,0,2452,2455,1,0,0,0,2453,2451,1,0,0,0,2453,2454, 1,0,0,0,2454,277,1,0,0,0,2455,2453,1,0,0,0,2456,2461,3,372,186,0, 2457,2458,5,396,0,0,2458,2460,3,372,186,0,2459,2457,1,0,0,0,2460, 2463,1,0,0,0,2461,2459,1,0,0,0,2461,2462,1,0,0,0,2462,279,1,0,0, 0,2463,2461,1,0,0,0,2464,2469,3,282,141,0,2465,2466,5,396,0,0,2466, 2468,3,282,141,0,2467,2465,1,0,0,0,2468,2471,1,0,0,0,2469,2467,1, 0,0,0,2469,2470,1,0,0,0,2470,281,1,0,0,0,2471,2469,1,0,0,0,2472, 2477,3,924,462,0,2473,2474,5,394,0,0,2474,2476,3,924,462,0,2475, 2473,1,0,0,0,2476,2479,1,0,0,0,2477,2475,1,0,0,0,2477,2478,1,0,0, 0,2478,2482,1,0,0,0,2479,2477,1,0,0,0,2480,2482,4,141,0,0,2481,2472, 1,0,0,0,2481,2480,1,0,0,0,2482,283,1,0,0,0,2483,2484,3,924,462,0, 2484,285,1,0,0,0,2485,2495,3,282,141,0,2486,2491,5,394,0,0,2487, 2492,5,104,0,0,2488,2492,5,175,0,0,2489,2492,5,374,0,0,2490,2492, 3,924,462,0,2491,2487,1,0,0,0,2491,2488,1,0,0,0,2491,2489,1,0,0, 0,2491,2490,1,0,0,0,2492,2494,1,0,0,0,2493,2486,1,0,0,0,2494,2497, 1,0,0,0,2495,2493,1,0,0,0,2495,2496,1,0,0,0,2496,287,1,0,0,0,2497, 2495,1,0,0,0,2498,2503,3,332,166,0,2499,2500,5,396,0,0,2500,2502, 3,332,166,0,2501,2499,1,0,0,0,2502,2505,1,0,0,0,2503,2501,1,0,0, 0,2503,2504,1,0,0,0,2504,289,1,0,0,0,2505,2503,1,0,0,0,2506,2507, 5,398,0,0,2507,2508,3,280,140,0,2508,2509,5,399,0,0,2509,291,1,0, 0,0,2510,2512,3,294,147,0,2511,2513,3,296,148,0,2512,2511,1,0,0, 0,2512,2513,1,0,0,0,2513,2516,1,0,0,0,2514,2516,3,298,149,0,2515, 2510,1,0,0,0,2515,2514,1,0,0,0,2516,293,1,0,0,0,2517,2520,3,968, 484,0,2518,2520,3,970,485,0,2519,2517,1,0,0,0,2519,2518,1,0,0,0, 2520,295,1,0,0,0,2521,2522,7,14,0,0,2522,297,1,0,0,0,2523,2527,5, 109,0,0,2524,2525,5,215,0,0,2525,2527,5,109,0,0,2526,2523,1,0,0, 0,2526,2524,1,0,0,0,2527,299,1,0,0,0,2528,2529,7,15,0,0,2529,301, 1,0,0,0,2530,2531,5,55,0,0,2531,2533,3,924,462,0,2532,2530,1,0,0, 0,2532,2533,1,0,0,0,2533,2534,1,0,0,0,2534,2536,3,306,153,0,2535, 2537,3,368,184,0,2536,2535,1,0,0,0,2536,2537,1,0,0,0,2537,303,1, 0,0,0,2538,2539,5,55,0,0,2539,2540,3,924,462,0,2540,2542,3,306,153, 0,2541,2543,3,370,185,0,2542,2541,1,0,0,0,2542,2543,1,0,0,0,2543, 305,1,0,0,0,2544,2547,3,308,154,0,2545,2547,3,310,155,0,2546,2544, 1,0,0,0,2546,2545,1,0,0,0,2547,307,1,0,0,0,2548,2549,3,366,183,0, 2549,2550,3,290,145,0,2550,309,1,0,0,0,2551,2552,5,40,0,0,2552,2553, 5,398,0,0,2553,2554,3,826,413,0,2554,2555,5,399,0,0,2555,311,1,0, 0,0,2556,2557,5,55,0,0,2557,2559,3,924,462,0,2558,2556,1,0,0,0,2558, 2559,1,0,0,0,2559,2560,1,0,0,0,2560,2561,5,136,0,0,2561,2562,5,173, 0,0,2562,2563,3,290,145,0,2563,2564,5,268,0,0,2564,2565,3,658,329, 0,2565,2567,3,290,145,0,2566,2568,3,368,184,0,2567,2566,1,0,0,0, 2567,2568,1,0,0,0,2568,313,1,0,0,0,2569,2570,5,55,0,0,2570,2571, 3,924,462,0,2571,2572,5,136,0,0,2572,2573,5,173,0,0,2573,2574,3, 290,145,0,2574,2575,5,268,0,0,2575,2576,3,658,329,0,2576,2578,3, 290,145,0,2577,2579,3,370,185,0,2578,2577,1,0,0,0,2578,2579,1,0, 0,0,2579,315,1,0,0,0,2580,2583,3,322,161,0,2581,2583,3,318,159,0, 2582,2580,1,0,0,0,2582,2581,1,0,0,0,2583,317,1,0,0,0,2584,2589,3, 320,160,0,2585,2586,5,396,0,0,2586,2588,3,320,160,0,2587,2585,1, 0,0,0,2588,2591,1,0,0,0,2589,2587,1,0,0,0,2589,2590,1,0,0,0,2590, 319,1,0,0,0,2591,2589,1,0,0,0,2592,2593,5,398,0,0,2593,2594,3,322, 161,0,2594,2595,5,399,0,0,2595,321,1,0,0,0,2596,2601,3,324,162,0, 2597,2598,5,396,0,0,2598,2600,3,324,162,0,2599,2597,1,0,0,0,2600, 2603,1,0,0,0,2601,2599,1,0,0,0,2601,2602,1,0,0,0,2602,323,1,0,0, 0,2603,2601,1,0,0,0,2604,2605,3,802,401,0,2605,325,1,0,0,0,2606, 2609,3,324,162,0,2607,2609,3,320,160,0,2608,2606,1,0,0,0,2608,2607, 1,0,0,0,2609,327,1,0,0,0,2610,2611,7,16,0,0,2611,329,1,0,0,0,2612, 2613,5,219,0,0,2613,2614,7,17,0,0,2614,331,1,0,0,0,2615,2617,3,282, 141,0,2616,2618,3,328,164,0,2617,2616,1,0,0,0,2617,2618,1,0,0,0, 2618,2620,1,0,0,0,2619,2621,3,330,165,0,2620,2619,1,0,0,0,2620,2621, 1,0,0,0,2621,333,1,0,0,0,2622,2627,3,336,168,0,2623,2624,5,396,0, 0,2624,2626,3,336,168,0,2625,2623,1,0,0,0,2626,2629,1,0,0,0,2627, 2625,1,0,0,0,2627,2628,1,0,0,0,2628,335,1,0,0,0,2629,2627,1,0,0, 0,2630,2633,3,284,142,0,2631,2632,5,47,0,0,2632,2634,5,425,0,0,2633, 2631,1,0,0,0,2633,2634,1,0,0,0,2634,337,1,0,0,0,2635,2636,7,16,0, 0,2636,339,1,0,0,0,2637,2640,3,282,141,0,2638,2640,3,826,413,0,2639, 2637,1,0,0,0,2639,2638,1,0,0,0,2640,2642,1,0,0,0,2641,2643,3,338, 169,0,2642,2641,1,0,0,0,2642,2643,1,0,0,0,2643,2645,1,0,0,0,2644, 2646,3,330,165,0,2645,2644,1,0,0,0,2645,2646,1,0,0,0,2646,341,1, 0,0,0,2647,2648,3,284,142,0,2648,2651,3,374,187,0,2649,2650,5,47, 0,0,2650,2652,5,425,0,0,2651,2649,1,0,0,0,2651,2652,1,0,0,0,2652, 343,1,0,0,0,2653,2656,3,346,173,0,2654,2656,3,348,174,0,2655,2653, 1,0,0,0,2655,2654,1,0,0,0,2656,345,1,0,0,0,2657,2660,3,312,156,0, 2658,2660,3,302,151,0,2659,2657,1,0,0,0,2659,2658,1,0,0,0,2660,347, 1,0,0,0,2661,2662,3,284,142,0,2662,2664,3,374,187,0,2663,2665,3, 350,175,0,2664,2663,1,0,0,0,2664,2665,1,0,0,0,2665,2668,1,0,0,0, 2666,2667,5,47,0,0,2667,2669,5,425,0,0,2668,2666,1,0,0,0,2668,2669, 1,0,0,0,2669,349,1,0,0,0,2670,2673,3,352,176,0,2671,2673,3,354,177, 0,2672,2670,1,0,0,0,2672,2671,1,0,0,0,2673,351,1,0,0,0,2674,2675, 5,55,0,0,2675,2677,3,924,462,0,2676,2674,1,0,0,0,2676,2677,1,0,0, 0,2677,2678,1,0,0,0,2678,2679,5,268,0,0,2679,2680,3,658,329,0,2680, 2681,5,398,0,0,2681,2682,3,282,141,0,2682,2684,5,399,0,0,2683,2685, 3,368,184,0,2684,2683,1,0,0,0,2684,2685,1,0,0,0,2685,353,1,0,0,0, 2686,2687,5,55,0,0,2687,2689,3,924,462,0,2688,2686,1,0,0,0,2688, 2689,1,0,0,0,2689,2690,1,0,0,0,2690,2692,3,362,181,0,2691,2693,3, 368,184,0,2692,2691,1,0,0,0,2692,2693,1,0,0,0,2693,355,1,0,0,0,2694, 2697,3,358,179,0,2695,2697,3,360,180,0,2696,2694,1,0,0,0,2696,2695, 1,0,0,0,2697,357,1,0,0,0,2698,2699,5,55,0,0,2699,2701,3,924,462, 0,2700,2698,1,0,0,0,2700,2701,1,0,0,0,2701,2702,1,0,0,0,2702,2703, 5,268,0,0,2703,2704,3,658,329,0,2704,2705,5,398,0,0,2705,2706,3, 282,141,0,2706,2708,5,399,0,0,2707,2709,3,370,185,0,2708,2707,1, 0,0,0,2708,2709,1,0,0,0,2709,359,1,0,0,0,2710,2711,5,55,0,0,2711, 2713,3,924,462,0,2712,2710,1,0,0,0,2712,2713,1,0,0,0,2713,2714,1, 0,0,0,2714,2716,3,362,181,0,2715,2717,3,370,185,0,2716,2715,1,0, 0,0,2716,2717,1,0,0,0,2717,361,1,0,0,0,2718,2719,5,215,0,0,2719, 2725,5,218,0,0,2720,2721,5,83,0,0,2721,2725,3,364,182,0,2722,2725, 3,310,155,0,2723,2725,3,366,183,0,2724,2718,1,0,0,0,2724,2720,1, 0,0,0,2724,2722,1,0,0,0,2724,2723,1,0,0,0,2725,363,1,0,0,0,2726, 2730,3,802,401,0,2727,2730,3,774,387,0,2728,2730,3,788,394,0,2729, 2726,1,0,0,0,2729,2727,1,0,0,0,2729,2728,1,0,0,0,2730,365,1,0,0, 0,2731,2732,5,250,0,0,2732,2735,5,173,0,0,2733,2735,5,357,0,0,2734, 2731,1,0,0,0,2734,2733,1,0,0,0,2735,367,1,0,0,0,2736,2738,3,292, 146,0,2737,2739,3,300,150,0,2738,2737,1,0,0,0,2738,2739,1,0,0,0, 2739,369,1,0,0,0,2740,2742,3,292,146,0,2741,2743,3,300,150,0,2742, 2741,1,0,0,0,2742,2743,1,0,0,0,2743,371,1,0,0,0,2744,2745,3,284, 142,0,2745,2746,5,395,0,0,2746,2749,3,374,187,0,2747,2748,5,47,0, 0,2748,2750,5,425,0,0,2749,2747,1,0,0,0,2749,2750,1,0,0,0,2750,373, 1,0,0,0,2751,2752,3,378,189,0,2752,375,1,0,0,0,2753,2758,3,374,187, 0,2754,2755,5,396,0,0,2755,2757,3,374,187,0,2756,2754,1,0,0,0,2757, 2760,1,0,0,0,2758,2756,1,0,0,0,2758,2759,1,0,0,0,2759,377,1,0,0, 0,2760,2758,1,0,0,0,2761,2767,3,380,190,0,2762,2767,3,382,191,0, 2763,2767,3,384,192,0,2764,2767,3,386,193,0,2765,2767,3,388,194, 0,2766,2761,1,0,0,0,2766,2762,1,0,0,0,2766,2763,1,0,0,0,2766,2764, 1,0,0,0,2766,2765,1,0,0,0,2767,379,1,0,0,0,2768,2806,5,339,0,0,2769, 2806,5,310,0,0,2770,2806,5,162,0,0,2771,2806,5,163,0,0,2772,2806, 5,26,0,0,2773,2806,5,28,0,0,2774,2806,5,131,0,0,2775,2806,5,263, 0,0,2776,2778,5,100,0,0,2777,2779,5,247,0,0,2778,2777,1,0,0,0,2778, 2779,1,0,0,0,2779,2806,1,0,0,0,2780,2806,5,71,0,0,2781,2806,5,72, 0,0,2782,2806,5,336,0,0,2783,2806,5,337,0,0,2784,2785,5,336,0,0, 2785,2786,5,386,0,0,2786,2787,5,187,0,0,2787,2788,5,335,0,0,2788, 2806,5,393,0,0,2789,2806,5,322,0,0,2790,2806,5,27,0,0,2791,2799, 3,988,494,0,2792,2793,5,398,0,0,2793,2796,5,430,0,0,2794,2795,5, 396,0,0,2795,2797,5,430,0,0,2796,2794,1,0,0,0,2796,2797,1,0,0,0, 2797,2798,1,0,0,0,2798,2800,5,399,0,0,2799,2792,1,0,0,0,2799,2800, 1,0,0,0,2800,2806,1,0,0,0,2801,2802,7,18,0,0,2802,2803,5,398,0,0, 2803,2804,5,430,0,0,2804,2806,5,399,0,0,2805,2768,1,0,0,0,2805,2769, 1,0,0,0,2805,2770,1,0,0,0,2805,2771,1,0,0,0,2805,2772,1,0,0,0,2805, 2773,1,0,0,0,2805,2774,1,0,0,0,2805,2775,1,0,0,0,2805,2776,1,0,0, 0,2805,2780,1,0,0,0,2805,2781,1,0,0,0,2805,2782,1,0,0,0,2805,2783, 1,0,0,0,2805,2784,1,0,0,0,2805,2789,1,0,0,0,2805,2790,1,0,0,0,2805, 2791,1,0,0,0,2805,2801,1,0,0,0,2806,381,1,0,0,0,2807,2808,5,16,0, 0,2808,2809,5,408,0,0,2809,2810,3,378,189,0,2810,2811,5,410,0,0, 2811,383,1,0,0,0,2812,2813,5,323,0,0,2813,2814,5,408,0,0,2814,2815, 3,278,139,0,2815,2816,5,410,0,0,2816,385,1,0,0,0,2817,2818,5,197, 0,0,2818,2819,5,408,0,0,2819,2820,3,380,190,0,2820,2821,5,396,0, 0,2821,2822,3,378,189,0,2822,2823,5,410,0,0,2823,387,1,0,0,0,2824, 2825,5,356,0,0,2825,2826,5,408,0,0,2826,2827,3,376,188,0,2827,2828, 5,410,0,0,2828,389,1,0,0,0,2829,2831,7,19,0,0,2830,2832,7,20,0,0, 2831,2830,1,0,0,0,2831,2832,1,0,0,0,2832,391,1,0,0,0,2833,2835,3, 396,198,0,2834,2833,1,0,0,0,2834,2835,1,0,0,0,2835,2836,1,0,0,0, 2836,2837,3,394,197,0,2837,393,1,0,0,0,2838,2841,3,400,200,0,2839, 2841,3,404,202,0,2840,2838,1,0,0,0,2840,2839,1,0,0,0,2841,395,1, 0,0,0,2842,2843,5,386,0,0,2843,2848,3,398,199,0,2844,2845,5,396, 0,0,2845,2847,3,398,199,0,2846,2844,1,0,0,0,2847,2850,1,0,0,0,2848, 2846,1,0,0,0,2848,2849,1,0,0,0,2849,397,1,0,0,0,2850,2848,1,0,0, 0,2851,2856,3,924,462,0,2852,2853,5,398,0,0,2853,2854,3,280,140, 0,2854,2855,5,399,0,0,2855,2857,1,0,0,0,2856,2852,1,0,0,0,2856,2857, 1,0,0,0,2857,2858,1,0,0,0,2858,2859,5,17,0,0,2859,2860,5,398,0,0, 2860,2861,3,392,196,0,2861,2862,5,399,0,0,2862,399,1,0,0,0,2863, 2869,3,402,201,0,2864,2865,3,390,195,0,2865,2866,3,402,201,0,2866, 2868,1,0,0,0,2867,2864,1,0,0,0,2868,2871,1,0,0,0,2869,2867,1,0,0, 0,2869,2870,1,0,0,0,2870,401,1,0,0,0,2871,2869,1,0,0,0,2872,2873, 3,618,309,0,2873,2874,3,414,207,0,2874,2876,3,690,345,0,2875,2877, 3,636,318,0,2876,2875,1,0,0,0,2876,2877,1,0,0,0,2877,2879,1,0,0, 0,2878,2880,3,674,337,0,2879,2878,1,0,0,0,2879,2880,1,0,0,0,2880, 2882,1,0,0,0,2881,2883,3,722,361,0,2882,2881,1,0,0,0,2882,2883,1, 0,0,0,2883,2885,1,0,0,0,2884,2886,3,738,369,0,2885,2884,1,0,0,0, 2885,2886,1,0,0,0,2886,2888,1,0,0,0,2887,2889,3,706,353,0,2888,2887, 1,0,0,0,2888,2889,1,0,0,0,2889,2891,1,0,0,0,2890,2892,3,740,370, 0,2891,2890,1,0,0,0,2891,2892,1,0,0,0,2892,2894,1,0,0,0,2893,2895, 3,762,381,0,2894,2893,1,0,0,0,2894,2895,1,0,0,0,2895,2897,1,0,0, 0,2896,2898,3,764,382,0,2897,2896,1,0,0,0,2897,2898,1,0,0,0,2898, 2900,1,0,0,0,2899,2901,3,768,384,0,2900,2899,1,0,0,0,2900,2901,1, 0,0,0,2901,2903,1,0,0,0,2902,2904,3,770,385,0,2903,2902,1,0,0,0, 2903,2904,1,0,0,0,2904,2906,1,0,0,0,2905,2907,3,418,209,0,2906,2905, 1,0,0,0,2906,2907,1,0,0,0,2907,2944,1,0,0,0,2908,2909,3,618,309, 0,2909,2911,3,690,345,0,2910,2912,3,636,318,0,2911,2910,1,0,0,0, 2911,2912,1,0,0,0,2912,2914,1,0,0,0,2913,2915,3,674,337,0,2914,2913, 1,0,0,0,2914,2915,1,0,0,0,2915,2917,1,0,0,0,2916,2918,3,722,361, 0,2917,2916,1,0,0,0,2917,2918,1,0,0,0,2918,2920,1,0,0,0,2919,2921, 3,738,369,0,2920,2919,1,0,0,0,2920,2921,1,0,0,0,2921,2923,1,0,0, 0,2922,2924,3,706,353,0,2923,2922,1,0,0,0,2923,2924,1,0,0,0,2924, 2926,1,0,0,0,2925,2927,3,740,370,0,2926,2925,1,0,0,0,2926,2927,1, 0,0,0,2927,2929,1,0,0,0,2928,2930,3,762,381,0,2929,2928,1,0,0,0, 2929,2930,1,0,0,0,2930,2932,1,0,0,0,2931,2933,3,764,382,0,2932,2931, 1,0,0,0,2932,2933,1,0,0,0,2933,2935,1,0,0,0,2934,2936,3,768,384, 0,2935,2934,1,0,0,0,2935,2936,1,0,0,0,2936,2938,1,0,0,0,2937,2939, 3,770,385,0,2938,2937,1,0,0,0,2938,2939,1,0,0,0,2939,2941,1,0,0, 0,2940,2942,3,418,209,0,2941,2940,1,0,0,0,2941,2942,1,0,0,0,2942, 2944,1,0,0,0,2943,2872,1,0,0,0,2943,2908,1,0,0,0,2944,403,1,0,0, 0,2945,2946,3,414,207,0,2946,2947,3,408,204,0,2947,2950,1,0,0,0, 2948,2950,3,408,204,0,2949,2945,1,0,0,0,2949,2948,1,0,0,0,2950,405, 1,0,0,0,2951,2953,3,690,345,0,2952,2954,3,618,309,0,2953,2952,1, 0,0,0,2953,2954,1,0,0,0,2954,2956,1,0,0,0,2955,2957,3,674,337,0, 2956,2955,1,0,0,0,2956,2957,1,0,0,0,2957,2959,1,0,0,0,2958,2960, 3,722,361,0,2959,2958,1,0,0,0,2959,2960,1,0,0,0,2960,2962,1,0,0, 0,2961,2963,3,738,369,0,2962,2961,1,0,0,0,2962,2963,1,0,0,0,2963, 2965,1,0,0,0,2964,2966,3,706,353,0,2965,2964,1,0,0,0,2965,2966,1, 0,0,0,2966,2968,1,0,0,0,2967,2969,3,740,370,0,2968,2967,1,0,0,0, 2968,2969,1,0,0,0,2969,2976,1,0,0,0,2970,2971,5,398,0,0,2971,2972, 3,408,204,0,2972,2973,5,399,0,0,2973,2976,1,0,0,0,2974,2976,3,678, 339,0,2975,2951,1,0,0,0,2975,2970,1,0,0,0,2975,2974,1,0,0,0,2976, 407,1,0,0,0,2977,2979,3,406,203,0,2978,2980,3,410,205,0,2979,2978, 1,0,0,0,2979,2980,1,0,0,0,2980,2982,1,0,0,0,2981,2983,3,762,381, 0,2982,2981,1,0,0,0,2982,2983,1,0,0,0,2983,2985,1,0,0,0,2984,2986, 3,764,382,0,2985,2984,1,0,0,0,2985,2986,1,0,0,0,2986,2988,1,0,0, 0,2987,2989,3,768,384,0,2988,2987,1,0,0,0,2988,2989,1,0,0,0,2989, 2991,1,0,0,0,2990,2992,3,770,385,0,2991,2990,1,0,0,0,2991,2992,1, 0,0,0,2992,2994,1,0,0,0,2993,2995,3,418,209,0,2994,2993,1,0,0,0, 2994,2995,1,0,0,0,2995,409,1,0,0,0,2996,2997,3,390,195,0,2997,2998, 3,406,203,0,2998,3000,1,0,0,0,2999,2996,1,0,0,0,3000,3001,1,0,0, 0,3001,2999,1,0,0,0,3001,3002,1,0,0,0,3002,411,1,0,0,0,3003,3005, 3,396,198,0,3004,3003,1,0,0,0,3004,3005,1,0,0,0,3005,3006,1,0,0, 0,3006,3007,3,408,204,0,3007,413,1,0,0,0,3008,3025,5,161,0,0,3009, 3010,5,234,0,0,3010,3012,3,416,208,0,3011,3013,3,44,22,0,3012,3011, 1,0,0,0,3012,3013,1,0,0,0,3013,3026,1,0,0,0,3014,3016,5,166,0,0, 3015,3017,5,328,0,0,3016,3015,1,0,0,0,3016,3017,1,0,0,0,3017,3018, 1,0,0,0,3018,3023,3,908,454,0,3019,3020,5,398,0,0,3020,3021,3,280, 140,0,3021,3022,5,399,0,0,3022,3024,1,0,0,0,3023,3019,1,0,0,0,3023, 3024,1,0,0,0,3024,3026,1,0,0,0,3025,3009,1,0,0,0,3025,3014,1,0,0, 0,3026,415,1,0,0,0,3027,3029,5,187,0,0,3028,3027,1,0,0,0,3028,3029, 1,0,0,0,3029,3030,1,0,0,0,3030,3031,5,93,0,0,3031,3033,5,425,0,0, 3032,3034,3,248,124,0,3033,3032,1,0,0,0,3033,3034,1,0,0,0,3034,3036, 1,0,0,0,3035,3037,3,270,135,0,3036,3035,1,0,0,0,3036,3037,1,0,0, 0,3037,3041,1,0,0,0,3038,3039,5,328,0,0,3039,3041,3,908,454,0,3040, 3028,1,0,0,0,3040,3038,1,0,0,0,3041,417,1,0,0,0,3042,3051,5,184, 0,0,3043,3044,5,430,0,0,3044,3046,5,396,0,0,3045,3043,1,0,0,0,3045, 3046,1,0,0,0,3046,3047,1,0,0,0,3047,3052,5,430,0,0,3048,3049,5,430, 0,0,3049,3050,5,222,0,0,3050,3052,5,430,0,0,3051,3045,1,0,0,0,3051, 3048,1,0,0,0,3052,419,1,0,0,0,3053,3054,5,86,0,0,3054,3055,5,139, 0,0,3055,3057,3,658,329,0,3056,3058,3,674,337,0,3057,3056,1,0,0, 0,3057,3058,1,0,0,0,3058,421,1,0,0,0,3059,3060,3,282,141,0,3060, 3061,5,404,0,0,3061,3062,3,424,212,0,3062,423,1,0,0,0,3063,3066, 3,612,306,0,3064,3066,3,846,423,0,3065,3063,1,0,0,0,3065,3064,1, 0,0,0,3066,425,1,0,0,0,3067,3068,5,303,0,0,3068,3073,3,422,211,0, 3069,3070,5,396,0,0,3070,3072,3,422,211,0,3071,3069,1,0,0,0,3072, 3075,1,0,0,0,3073,3071,1,0,0,0,3073,3074,1,0,0,0,3074,427,1,0,0, 0,3075,3073,1,0,0,0,3076,3077,5,364,0,0,3077,3078,3,658,329,0,3078, 3080,3,426,213,0,3079,3081,3,674,337,0,3080,3079,1,0,0,0,3080,3081, 1,0,0,0,3081,429,1,0,0,0,3082,3087,3,432,216,0,3083,3087,3,442,221, 0,3084,3087,3,444,222,0,3085,3087,3,446,223,0,3086,3082,1,0,0,0, 3086,3083,1,0,0,0,3086,3084,1,0,0,0,3086,3085,1,0,0,0,3087,431,1, 0,0,0,3088,3089,5,317,0,0,3089,3098,5,343,0,0,3090,3095,3,434,217, 0,3091,3092,5,396,0,0,3092,3094,3,434,217,0,3093,3091,1,0,0,0,3094, 3097,1,0,0,0,3095,3093,1,0,0,0,3095,3096,1,0,0,0,3096,3099,1,0,0, 0,3097,3095,1,0,0,0,3098,3090,1,0,0,0,3098,3099,1,0,0,0,3099,433, 1,0,0,0,3100,3103,3,438,219,0,3101,3103,3,436,218,0,3102,3100,1, 0,0,0,3102,3101,1,0,0,0,3103,435,1,0,0,0,3104,3105,5,260,0,0,3105, 3106,7,21,0,0,3106,437,1,0,0,0,3107,3108,5,168,0,0,3108,3109,5,182, 0,0,3109,3110,3,440,220,0,3110,439,1,0,0,0,3111,3112,5,311,0,0,3112, 441,1,0,0,0,3113,3115,5,48,0,0,3114,3116,5,388,0,0,3115,3114,1,0, 0,0,3115,3116,1,0,0,0,3116,443,1,0,0,0,3117,3119,5,288,0,0,3118, 3120,5,388,0,0,3119,3118,1,0,0,0,3119,3120,1,0,0,0,3120,445,1,0, 0,0,3121,3122,5,303,0,0,3122,3123,5,22,0,0,3123,3124,3,906,453,0, 3124,447,1,0,0,0,3125,3126,5,1,0,0,3126,3128,5,345,0,0,3127,3129, 5,430,0,0,3128,3127,1,0,0,0,3129,3130,1,0,0,0,3130,3128,1,0,0,0, 3130,3131,1,0,0,0,3131,449,1,0,0,0,3132,3133,5,1,0,0,3133,3135,5, 50,0,0,3134,3136,5,430,0,0,3135,3134,1,0,0,0,3136,3137,1,0,0,0,3137, 3135,1,0,0,0,3137,3138,1,0,0,0,3138,451,1,0,0,0,3139,3141,5,202, 0,0,3140,3142,5,435,0,0,3141,3140,1,0,0,0,3141,3142,1,0,0,0,3142, 3143,1,0,0,0,3143,3144,5,166,0,0,3144,3149,3,658,329,0,3145,3147, 5,17,0,0,3146,3145,1,0,0,0,3146,3147,1,0,0,0,3147,3148,1,0,0,0,3148, 3150,3,924,462,0,3149,3146,1,0,0,0,3149,3150,1,0,0,0,3150,3151,1, 0,0,0,3151,3152,5,369,0,0,3152,3153,3,626,313,0,3153,3154,5,223, 0,0,3154,3155,3,826,413,0,3155,3156,3,454,227,0,3156,453,1,0,0,0, 3157,3160,3,458,229,0,3158,3160,3,460,230,0,3159,3157,1,0,0,0,3159, 3158,1,0,0,0,3160,3163,1,0,0,0,3161,3159,1,0,0,0,3161,3162,1,0,0, 0,3162,3165,1,0,0,0,3163,3161,1,0,0,0,3164,3166,3,456,228,0,3165, 3164,1,0,0,0,3165,3166,1,0,0,0,3166,455,1,0,0,0,3167,3168,5,382, 0,0,3168,3169,5,215,0,0,3169,3172,5,200,0,0,3170,3171,5,11,0,0,3171, 3173,3,826,413,0,3172,3170,1,0,0,0,3172,3173,1,0,0,0,3173,3174,1, 0,0,0,3174,3175,5,334,0,0,3175,3177,5,161,0,0,3176,3178,3,290,145, 0,3177,3176,1,0,0,0,3177,3178,1,0,0,0,3178,3179,1,0,0,0,3179,3180, 5,373,0,0,3180,3181,3,684,342,0,3181,457,1,0,0,0,3182,3183,5,382, 0,0,3183,3184,5,200,0,0,3184,3185,5,11,0,0,3185,3186,3,826,413,0, 3186,3187,5,334,0,0,3187,3188,3,462,231,0,3188,459,1,0,0,0,3189, 3190,5,382,0,0,3190,3191,5,200,0,0,3191,3192,5,334,0,0,3192,3193, 3,462,231,0,3193,461,1,0,0,0,3194,3195,5,364,0,0,3195,3198,3,426, 213,0,3196,3198,5,86,0,0,3197,3194,1,0,0,0,3197,3196,1,0,0,0,3198, 463,1,0,0,0,3199,3200,5,176,0,0,3200,3202,5,257,0,0,3201,3203,5, 425,0,0,3202,3201,1,0,0,0,3203,3204,1,0,0,0,3204,3202,1,0,0,0,3204, 3205,1,0,0,0,3205,465,1,0,0,0,3206,3207,5,51,0,0,3207,3208,5,404, 0,0,3208,3209,5,430,0,0,3209,467,1,0,0,0,3210,3211,5,245,0,0,3211, 3212,5,425,0,0,3212,469,1,0,0,0,3213,3214,5,351,0,0,3214,3215,5, 425,0,0,3215,471,1,0,0,0,3216,3217,5,319,0,0,3217,3218,5,425,0,0, 3218,473,1,0,0,0,3219,3243,5,9,0,0,3220,3221,5,328,0,0,3221,3222, 3,658,329,0,3222,3223,3,476,238,0,3223,3244,1,0,0,0,3224,3225,5, 377,0,0,3225,3227,3,662,331,0,3226,3228,5,17,0,0,3227,3226,1,0,0, 0,3227,3228,1,0,0,0,3228,3229,1,0,0,0,3229,3230,3,482,241,0,3230, 3244,1,0,0,0,3231,3232,5,201,0,0,3232,3233,5,377,0,0,3233,3234,3, 662,331,0,3234,3235,3,484,242,0,3235,3244,1,0,0,0,3236,3237,3,92, 46,0,3237,3238,3,490,245,0,3238,3244,1,0,0,0,3239,3240,5,69,0,0, 3240,3244,3,586,293,0,3241,3242,5,155,0,0,3242,3244,3,582,291,0, 3243,3220,1,0,0,0,3243,3224,1,0,0,0,3243,3231,1,0,0,0,3243,3236, 1,0,0,0,3243,3239,1,0,0,0,3243,3241,1,0,0,0,3244,475,1,0,0,0,3245, 3267,3,500,250,0,3246,3267,3,532,266,0,3247,3267,3,534,267,0,3248, 3267,3,520,260,0,3249,3267,3,524,262,0,3250,3267,3,526,263,0,3251, 3267,3,528,264,0,3252,3267,3,536,268,0,3253,3267,3,558,279,0,3254, 3267,3,560,280,0,3255,3267,3,480,240,0,3256,3267,3,510,255,0,3257, 3267,3,504,252,0,3258,3267,3,478,239,0,3259,3261,3,910,455,0,3260, 3259,1,0,0,0,3260,3261,1,0,0,0,3261,3262,1,0,0,0,3262,3267,3,478, 239,0,3263,3267,3,576,288,0,3264,3267,3,578,289,0,3265,3267,3,580, 290,0,3266,3245,1,0,0,0,3266,3246,1,0,0,0,3266,3247,1,0,0,0,3266, 3248,1,0,0,0,3266,3249,1,0,0,0,3266,3250,1,0,0,0,3266,3251,1,0,0, 0,3266,3252,1,0,0,0,3266,3253,1,0,0,0,3266,3254,1,0,0,0,3266,3255, 1,0,0,0,3266,3256,1,0,0,0,3266,3257,1,0,0,0,3266,3258,1,0,0,0,3266, 3260,1,0,0,0,3266,3263,1,0,0,0,3266,3264,1,0,0,0,3266,3265,1,0,0, 0,3267,477,1,0,0,0,3268,3284,3,544,272,0,3269,3284,3,556,278,0,3270, 3284,3,566,283,0,3271,3284,3,540,270,0,3272,3284,3,562,281,0,3273, 3284,3,568,284,0,3274,3284,3,548,274,0,3275,3284,3,546,273,0,3276, 3284,3,574,287,0,3277,3284,3,514,257,0,3278,3284,3,516,258,0,3279, 3284,3,512,256,0,3280,3284,3,502,251,0,3281,3284,3,506,253,0,3282, 3284,3,508,254,0,3283,3268,1,0,0,0,3283,3269,1,0,0,0,3283,3270,1, 0,0,0,3283,3271,1,0,0,0,3283,3272,1,0,0,0,3283,3273,1,0,0,0,3283, 3274,1,0,0,0,3283,3275,1,0,0,0,3283,3276,1,0,0,0,3283,3277,1,0,0, 0,3283,3278,1,0,0,0,3283,3279,1,0,0,0,3283,3280,1,0,0,0,3283,3281, 1,0,0,0,3283,3282,1,0,0,0,3284,479,1,0,0,0,3285,3286,5,236,0,0,3286, 3287,5,45,0,0,3287,3288,5,398,0,0,3288,3289,3,342,171,0,3289,3290, 5,399,0,0,3290,481,1,0,0,0,3291,3297,3,538,269,0,3292,3297,3,500, 250,0,3293,3297,3,520,260,0,3294,3297,3,534,267,0,3295,3297,3,412, 206,0,3296,3291,1,0,0,0,3296,3292,1,0,0,0,3296,3293,1,0,0,0,3296, 3294,1,0,0,0,3296,3295,1,0,0,0,3297,483,1,0,0,0,3298,3301,3,486, 243,0,3299,3301,3,488,244,0,3300,3298,1,0,0,0,3300,3299,1,0,0,0, 3301,485,1,0,0,0,3302,3305,3,48,24,0,3303,3305,3,50,25,0,3304,3302, 1,0,0,0,3304,3303,1,0,0,0,3305,487,1,0,0,0,3306,3307,5,264,0,0,3307, 489,1,0,0,0,3308,3312,3,492,246,0,3309,3312,3,494,247,0,3310,3312, 3,496,248,0,3311,3308,1,0,0,0,3311,3309,1,0,0,0,3311,3310,1,0,0, 0,3312,491,1,0,0,0,3313,3314,3,652,326,0,3314,3315,5,303,0,0,3315, 3316,5,76,0,0,3316,3317,3,62,31,0,3317,493,1,0,0,0,3318,3319,3,652, 326,0,3319,3320,5,303,0,0,3320,3321,5,235,0,0,3321,3322,3,150,75, 0,3322,495,1,0,0,0,3323,3324,3,652,326,0,3324,3325,5,303,0,0,3325, 3326,7,22,0,0,3326,3327,5,425,0,0,3327,497,1,0,0,0,3328,3329,3,652, 326,0,3329,3330,5,303,0,0,3330,3331,5,195,0,0,3331,3332,5,425,0, 0,3332,499,1,0,0,0,3333,3334,5,273,0,0,3334,3335,5,340,0,0,3335, 3336,3,660,330,0,3336,501,1,0,0,0,3337,3340,5,4,0,0,3338,3340,5, 277,0,0,3339,3337,1,0,0,0,3339,3338,1,0,0,0,3340,3341,1,0,0,0,3341, 3342,5,46,0,0,3342,3343,5,398,0,0,3343,3344,3,274,137,0,3344,3346, 5,399,0,0,3345,3347,3,42,21,0,3346,3345,1,0,0,0,3346,3347,1,0,0, 0,3347,503,1,0,0,0,3348,3351,5,4,0,0,3349,3352,3,314,157,0,3350, 3352,3,304,152,0,3351,3349,1,0,0,0,3351,3350,1,0,0,0,3352,505,1, 0,0,0,3353,3354,5,364,0,0,3354,3356,5,46,0,0,3355,3357,3,42,21,0, 3356,3355,1,0,0,0,3356,3357,1,0,0,0,3357,507,1,0,0,0,3358,3359,3, 294,147,0,3359,3361,5,217,0,0,3360,3362,5,34,0,0,3361,3360,1,0,0, 0,3361,3362,1,0,0,0,3362,3367,1,0,0,0,3363,3364,3,294,147,0,3364, 3365,5,221,0,0,3365,3367,1,0,0,0,3366,3358,1,0,0,0,3366,3363,1,0, 0,0,3367,509,1,0,0,0,3368,3369,5,101,0,0,3369,3370,5,55,0,0,3370, 3371,3,924,462,0,3371,511,1,0,0,0,3372,3374,5,38,0,0,3373,3375,5, 45,0,0,3374,3373,1,0,0,0,3374,3375,1,0,0,0,3375,3376,1,0,0,0,3376, 3377,3,282,141,0,3377,3378,3,284,142,0,3378,3380,3,374,187,0,3379, 3381,3,356,178,0,3380,3379,1,0,0,0,3380,3381,1,0,0,0,3381,3384,1, 0,0,0,3382,3383,5,47,0,0,3383,3385,5,425,0,0,3384,3382,1,0,0,0,3384, 3385,1,0,0,0,3385,3387,1,0,0,0,3386,3388,3,518,259,0,3387,3386,1, 0,0,0,3387,3388,1,0,0,0,3388,3390,1,0,0,0,3389,3391,3,42,21,0,3390, 3389,1,0,0,0,3390,3391,1,0,0,0,3391,513,1,0,0,0,3392,3393,5,364, 0,0,3393,3394,5,318,0,0,3394,3396,5,134,0,0,3395,3397,5,45,0,0,3396, 3395,1,0,0,0,3396,3397,1,0,0,0,3397,3398,1,0,0,0,3398,3399,3,282, 141,0,3399,3400,5,303,0,0,3400,3403,3,252,126,0,3401,3402,5,47,0, 0,3402,3404,5,425,0,0,3403,3401,1,0,0,0,3403,3404,1,0,0,0,3404,515, 1,0,0,0,3405,3406,5,364,0,0,3406,3407,5,318,0,0,3407,3408,5,303, 0,0,3408,3409,3,252,126,0,3409,517,1,0,0,0,3410,3414,5,130,0,0,3411, 3412,5,6,0,0,3412,3414,3,924,462,0,3413,3410,1,0,0,0,3413,3411,1, 0,0,0,3414,519,1,0,0,0,3415,3417,5,4,0,0,3416,3418,3,44,22,0,3417, 3416,1,0,0,0,3417,3418,1,0,0,0,3418,3420,1,0,0,0,3419,3421,3,522, 261,0,3420,3419,1,0,0,0,3421,3422,1,0,0,0,3422,3420,1,0,0,0,3422, 3423,1,0,0,0,3423,521,1,0,0,0,3424,3426,3,910,455,0,3425,3427,3, 530,265,0,3426,3425,1,0,0,0,3426,3427,1,0,0,0,3427,523,1,0,0,0,3428, 3432,5,341,0,0,3429,3431,3,910,455,0,3430,3429,1,0,0,0,3431,3434, 1,0,0,0,3432,3430,1,0,0,0,3432,3433,1,0,0,0,3433,525,1,0,0,0,3434, 3432,1,0,0,0,3435,3439,5,15,0,0,3436,3438,3,910,455,0,3437,3436, 1,0,0,0,3438,3441,1,0,0,0,3439,3437,1,0,0,0,3439,3440,1,0,0,0,3440, 527,1,0,0,0,3441,3439,1,0,0,0,3442,3446,5,352,0,0,3443,3445,3,910, 455,0,3444,3443,1,0,0,0,3445,3448,1,0,0,0,3446,3444,1,0,0,0,3446, 3447,1,0,0,0,3447,529,1,0,0,0,3448,3446,1,0,0,0,3449,3450,5,188, 0,0,3450,3451,5,425,0,0,3451,531,1,0,0,0,3452,3453,5,102,0,0,3453, 3454,5,238,0,0,3454,533,1,0,0,0,3455,3457,5,101,0,0,3456,3458,3, 40,20,0,3457,3456,1,0,0,0,3457,3458,1,0,0,0,3458,3459,1,0,0,0,3459, 3460,5,236,0,0,3460,3466,3,914,457,0,3461,3462,5,396,0,0,3462,3463, 5,236,0,0,3463,3465,3,914,457,0,3464,3461,1,0,0,0,3465,3468,1,0, 0,0,3466,3464,1,0,0,0,3466,3467,1,0,0,0,3467,3470,1,0,0,0,3468,3466, 1,0,0,0,3469,3471,3,16,8,0,3470,3469,1,0,0,0,3470,3471,1,0,0,0,3471, 3473,1,0,0,0,3472,3474,5,254,0,0,3473,3472,1,0,0,0,3473,3474,1,0, 0,0,3474,3476,1,0,0,0,3475,3477,3,18,9,0,3476,3475,1,0,0,0,3476, 3477,1,0,0,0,3477,535,1,0,0,0,3478,3479,5,303,0,0,3479,3480,5,331, 0,0,3480,3488,3,252,126,0,3481,3482,5,362,0,0,3482,3484,5,331,0, 0,3483,3485,3,40,20,0,3484,3483,1,0,0,0,3484,3485,1,0,0,0,3485,3486, 1,0,0,0,3486,3488,3,252,126,0,3487,3478,1,0,0,0,3487,3481,1,0,0, 0,3488,537,1,0,0,0,3489,3490,5,303,0,0,3490,3491,5,331,0,0,3491, 3499,3,252,126,0,3492,3493,5,362,0,0,3493,3495,5,331,0,0,3494,3496, 3,40,20,0,3495,3494,1,0,0,0,3495,3496,1,0,0,0,3496,3497,1,0,0,0, 3497,3499,3,252,126,0,3498,3489,1,0,0,0,3498,3492,1,0,0,0,3499,539, 1,0,0,0,3500,3510,5,303,0,0,3501,3502,5,300,0,0,3502,3506,5,425, 0,0,3503,3504,5,386,0,0,3504,3505,5,301,0,0,3505,3507,3,252,126, 0,3506,3503,1,0,0,0,3506,3507,1,0,0,0,3507,3511,1,0,0,0,3508,3509, 5,301,0,0,3509,3511,3,252,126,0,3510,3501,1,0,0,0,3510,3508,1,0, 0,0,3511,3516,1,0,0,0,3512,3513,5,362,0,0,3513,3514,5,301,0,0,3514, 3516,3,252,126,0,3515,3500,1,0,0,0,3515,3512,1,0,0,0,3516,541,1, 0,0,0,3517,3519,3,658,329,0,3518,3520,3,910,455,0,3519,3518,1,0, 0,0,3519,3520,1,0,0,0,3520,543,1,0,0,0,3521,3522,5,303,0,0,3522, 3523,5,129,0,0,3523,3524,3,584,292,0,3524,545,1,0,0,0,3525,3526, 5,215,0,0,3526,3529,7,23,0,0,3527,3529,3,232,116,0,3528,3525,1,0, 0,0,3528,3527,1,0,0,0,3529,547,1,0,0,0,3530,3531,5,303,0,0,3531, 3532,5,309,0,0,3532,3533,5,188,0,0,3533,3534,3,550,275,0,3534,549, 1,0,0,0,3535,3536,5,398,0,0,3536,3537,3,552,276,0,3537,3538,5,399, 0,0,3538,551,1,0,0,0,3539,3544,3,554,277,0,3540,3541,5,396,0,0,3541, 3543,3,554,277,0,3542,3540,1,0,0,0,3543,3546,1,0,0,0,3544,3542,1, 0,0,0,3544,3545,1,0,0,0,3545,553,1,0,0,0,3546,3544,1,0,0,0,3547, 3548,3,326,163,0,3548,3549,5,404,0,0,3549,3550,5,425,0,0,3550,555, 1,0,0,0,3551,3552,5,303,0,0,3552,3553,5,188,0,0,3553,3554,5,425, 0,0,3554,557,1,0,0,0,3555,3562,3,236,118,0,3556,3559,5,215,0,0,3557, 3560,5,309,0,0,3558,3560,3,52,26,0,3559,3557,1,0,0,0,3559,3558,1, 0,0,0,3560,3562,1,0,0,0,3561,3555,1,0,0,0,3561,3556,1,0,0,0,3562, 559,1,0,0,0,3563,3564,5,113,0,0,3564,3565,3,910,455,0,3565,3566, 5,386,0,0,3566,3567,5,328,0,0,3567,3568,3,658,329,0,3568,561,1,0, 0,0,3569,3570,5,273,0,0,3570,3571,5,340,0,0,3571,3572,3,910,455, 0,3572,563,1,0,0,0,3573,3574,5,364,0,0,3574,3575,5,318,0,0,3575, 3577,5,134,0,0,3576,3578,5,45,0,0,3577,3576,1,0,0,0,3577,3578,1, 0,0,0,3578,3579,1,0,0,0,3579,3580,3,282,141,0,3580,3581,5,303,0, 0,3581,3584,3,252,126,0,3582,3583,5,47,0,0,3583,3585,5,425,0,0,3584, 3582,1,0,0,0,3584,3585,1,0,0,0,3585,565,1,0,0,0,3586,3587,5,53,0, 0,3587,567,1,0,0,0,3588,3589,5,166,0,0,3589,3590,5,430,0,0,3590, 3591,5,31,0,0,3591,569,1,0,0,0,3592,3593,5,11,0,0,3593,3594,5,379, 0,0,3594,571,1,0,0,0,3595,3596,5,245,0,0,3596,3597,5,425,0,0,3597, 573,1,0,0,0,3598,3599,5,49,0,0,3599,3601,5,425,0,0,3600,3602,3,570, 285,0,3601,3600,1,0,0,0,3601,3602,1,0,0,0,3602,3604,1,0,0,0,3603, 3605,3,234,117,0,3604,3603,1,0,0,0,3604,3605,1,0,0,0,3605,3607,1, 0,0,0,3606,3608,3,762,381,0,3607,3606,1,0,0,0,3607,3608,1,0,0,0, 3608,3610,1,0,0,0,3609,3611,3,572,286,0,3610,3609,1,0,0,0,3610,3611, 1,0,0,0,3611,3616,1,0,0,0,3612,3613,5,386,0,0,3613,3614,5,234,0, 0,3614,3615,5,331,0,0,3615,3617,3,252,126,0,3616,3612,1,0,0,0,3616, 3617,1,0,0,0,3617,575,1,0,0,0,3618,3619,5,303,0,0,3619,3620,5,235, 0,0,3620,3621,3,148,74,0,3621,577,1,0,0,0,3622,3623,5,303,0,0,3623, 3624,5,236,0,0,3624,3625,5,315,0,0,3625,3626,5,398,0,0,3626,3627, 3,226,113,0,3627,3628,5,399,0,0,3628,579,1,0,0,0,3629,3639,5,115, 0,0,3630,3631,5,288,0,0,3631,3632,5,398,0,0,3632,3640,7,24,0,0,3633, 3634,5,118,0,0,3634,3635,5,398,0,0,3635,3640,5,425,0,0,3636,3637, 5,305,0,0,3637,3638,5,398,0,0,3638,3640,5,430,0,0,3639,3630,1,0, 0,0,3639,3633,1,0,0,0,3639,3636,1,0,0,0,3640,3641,1,0,0,0,3641,3642, 5,399,0,0,3642,581,1,0,0,0,3643,3644,3,924,462,0,3644,3645,5,223, 0,0,3645,3647,3,658,329,0,3646,3648,3,910,455,0,3647,3646,1,0,0, 0,3647,3648,1,0,0,0,3648,3649,1,0,0,0,3649,3650,5,264,0,0,3650,583, 1,0,0,0,3651,3652,5,160,0,0,3652,3653,5,425,0,0,3653,3654,5,232, 0,0,3654,3655,5,425,0,0,3655,3656,5,300,0,0,3656,3661,5,425,0,0, 3657,3658,5,159,0,0,3658,3659,5,425,0,0,3659,3660,5,231,0,0,3660, 3662,5,425,0,0,3661,3657,1,0,0,0,3661,3662,1,0,0,0,3662,3665,1,0, 0,0,3663,3665,3,924,462,0,3664,3651,1,0,0,0,3664,3663,1,0,0,0,3665, 585,1,0,0,0,3666,3670,3,588,294,0,3667,3670,3,590,295,0,3668,3670, 3,592,296,0,3669,3666,1,0,0,0,3669,3667,1,0,0,0,3669,3668,1,0,0, 0,3670,587,1,0,0,0,3671,3672,3,652,326,0,3672,3673,5,303,0,0,3673, 3674,5,77,0,0,3674,3675,3,606,303,0,3675,589,1,0,0,0,3676,3677,3, 652,326,0,3677,3678,5,303,0,0,3678,3679,5,235,0,0,3679,3680,3,150, 75,0,3680,591,1,0,0,0,3681,3682,3,652,326,0,3682,3683,5,303,0,0, 3683,3684,5,366,0,0,3684,3685,5,425,0,0,3685,593,1,0,0,0,3686,3687, 5,183,0,0,3687,3696,5,128,0,0,3688,3689,5,183,0,0,3689,3690,5,128, 0,0,3690,3691,3,924,462,0,3691,3692,5,425,0,0,3692,3696,1,0,0,0, 3693,3694,5,183,0,0,3694,3696,3,658,329,0,3695,3686,1,0,0,0,3695, 3688,1,0,0,0,3695,3693,1,0,0,0,3696,595,1,0,0,0,3697,3699,5,58,0, 0,3698,3700,5,332,0,0,3699,3698,1,0,0,0,3699,3700,1,0,0,0,3700,3702, 1,0,0,0,3701,3703,5,344,0,0,3702,3701,1,0,0,0,3702,3703,1,0,0,0, 3703,3705,1,0,0,0,3704,3706,5,123,0,0,3705,3704,1,0,0,0,3705,3706, 1,0,0,0,3706,3707,1,0,0,0,3707,3709,5,328,0,0,3708,3710,3,44,22, 0,3709,3708,1,0,0,0,3709,3710,1,0,0,0,3710,3711,1,0,0,0,3711,3762, 3,660,330,0,3712,3714,3,594,297,0,3713,3715,3,220,110,0,3714,3713, 1,0,0,0,3714,3715,1,0,0,0,3715,3717,1,0,0,0,3716,3718,3,248,124, 0,3717,3716,1,0,0,0,3717,3718,1,0,0,0,3718,3720,1,0,0,0,3719,3721, 3,270,135,0,3720,3719,1,0,0,0,3720,3721,1,0,0,0,3721,3723,1,0,0, 0,3722,3724,3,272,136,0,3723,3722,1,0,0,0,3723,3724,1,0,0,0,3724, 3726,1,0,0,0,3725,3727,3,250,125,0,3726,3725,1,0,0,0,3726,3727,1, 0,0,0,3727,3763,1,0,0,0,3728,3729,5,398,0,0,3729,3730,3,276,138, 0,3730,3731,5,399,0,0,3731,3733,1,0,0,0,3732,3728,1,0,0,0,3732,3733, 1,0,0,0,3733,3735,1,0,0,0,3734,3736,3,218,109,0,3735,3734,1,0,0, 0,3735,3736,1,0,0,0,3736,3738,1,0,0,0,3737,3739,3,220,110,0,3738, 3737,1,0,0,0,3738,3739,1,0,0,0,3739,3741,1,0,0,0,3740,3742,3,232, 116,0,3741,3740,1,0,0,0,3741,3742,1,0,0,0,3742,3744,1,0,0,0,3743, 3745,3,236,118,0,3744,3743,1,0,0,0,3744,3745,1,0,0,0,3745,3747,1, 0,0,0,3746,3748,3,248,124,0,3747,3746,1,0,0,0,3747,3748,1,0,0,0, 3748,3750,1,0,0,0,3749,3751,3,270,135,0,3750,3749,1,0,0,0,3750,3751, 1,0,0,0,3751,3753,1,0,0,0,3752,3754,3,272,136,0,3753,3752,1,0,0, 0,3753,3754,1,0,0,0,3754,3756,1,0,0,0,3755,3757,3,250,125,0,3756, 3755,1,0,0,0,3756,3757,1,0,0,0,3757,3760,1,0,0,0,3758,3759,5,17, 0,0,3759,3761,3,412,206,0,3760,3758,1,0,0,0,3760,3761,1,0,0,0,3761, 3763,1,0,0,0,3762,3712,1,0,0,0,3762,3732,1,0,0,0,3763,3821,1,0,0, 0,3764,3765,5,58,0,0,3765,3766,5,194,0,0,3766,3768,5,328,0,0,3767, 3769,3,44,22,0,3768,3767,1,0,0,0,3768,3769,1,0,0,0,3769,3770,1,0, 0,0,3770,3818,3,660,330,0,3771,3773,3,594,297,0,3772,3774,3,248, 124,0,3773,3772,1,0,0,0,3773,3774,1,0,0,0,3774,3776,1,0,0,0,3775, 3777,3,270,135,0,3776,3775,1,0,0,0,3776,3777,1,0,0,0,3777,3779,1, 0,0,0,3778,3780,3,272,136,0,3779,3778,1,0,0,0,3779,3780,1,0,0,0, 3780,3782,1,0,0,0,3781,3783,3,250,125,0,3782,3781,1,0,0,0,3782,3783, 1,0,0,0,3783,3819,1,0,0,0,3784,3785,5,398,0,0,3785,3786,3,276,138, 0,3786,3787,5,399,0,0,3787,3789,1,0,0,0,3788,3784,1,0,0,0,3788,3789, 1,0,0,0,3789,3791,1,0,0,0,3790,3792,3,218,109,0,3791,3790,1,0,0, 0,3791,3792,1,0,0,0,3792,3794,1,0,0,0,3793,3795,3,220,110,0,3794, 3793,1,0,0,0,3794,3795,1,0,0,0,3795,3797,1,0,0,0,3796,3798,3,232, 116,0,3797,3796,1,0,0,0,3797,3798,1,0,0,0,3798,3800,1,0,0,0,3799, 3801,3,236,118,0,3800,3799,1,0,0,0,3800,3801,1,0,0,0,3801,3803,1, 0,0,0,3802,3804,3,248,124,0,3803,3802,1,0,0,0,3803,3804,1,0,0,0, 3804,3806,1,0,0,0,3805,3807,3,270,135,0,3806,3805,1,0,0,0,3806,3807, 1,0,0,0,3807,3809,1,0,0,0,3808,3810,3,272,136,0,3809,3808,1,0,0, 0,3809,3810,1,0,0,0,3810,3812,1,0,0,0,3811,3813,3,250,125,0,3812, 3811,1,0,0,0,3812,3813,1,0,0,0,3813,3816,1,0,0,0,3814,3815,5,17, 0,0,3815,3817,3,412,206,0,3816,3814,1,0,0,0,3816,3817,1,0,0,0,3817, 3819,1,0,0,0,3818,3771,1,0,0,0,3818,3788,1,0,0,0,3819,3821,1,0,0, 0,3820,3697,1,0,0,0,3820,3764,1,0,0,0,3821,597,1,0,0,0,3822,3823, 5,58,0,0,3823,3825,5,69,0,0,3824,3826,3,44,22,0,3825,3824,1,0,0, 0,3825,3826,1,0,0,0,3826,3827,1,0,0,0,3827,3829,3,924,462,0,3828, 3830,3,604,302,0,3829,3828,1,0,0,0,3829,3830,1,0,0,0,3830,3832,1, 0,0,0,3831,3833,3,602,301,0,3832,3831,1,0,0,0,3832,3833,1,0,0,0, 3833,3835,1,0,0,0,3834,3836,3,600,300,0,3835,3834,1,0,0,0,3835,3836, 1,0,0,0,3836,3840,1,0,0,0,3837,3838,5,386,0,0,3838,3839,5,77,0,0, 3839,3841,3,606,303,0,3840,3837,1,0,0,0,3840,3841,1,0,0,0,3841,599, 1,0,0,0,3842,3843,5,47,0,0,3843,3844,5,425,0,0,3844,601,1,0,0,0, 3845,3846,5,366,0,0,3846,3847,5,425,0,0,3847,603,1,0,0,0,3848,3849, 5,351,0,0,3849,3850,5,425,0,0,3850,605,1,0,0,0,3851,3852,5,398,0, 0,3852,3853,3,64,32,0,3853,3854,5,399,0,0,3854,607,1,0,0,0,3855, 3856,5,101,0,0,3856,3858,5,69,0,0,3857,3859,3,40,20,0,3858,3857, 1,0,0,0,3858,3859,1,0,0,0,3859,3860,1,0,0,0,3860,3861,3,924,462, 0,3861,609,1,0,0,0,3862,3863,3,924,462,0,3863,3864,5,394,0,0,3864, 3866,1,0,0,0,3865,3862,1,0,0,0,3866,3869,1,0,0,0,3867,3865,1,0,0, 0,3867,3868,1,0,0,0,3868,3870,1,0,0,0,3869,3867,1,0,0,0,3870,3871, 5,414,0,0,3871,611,1,0,0,0,3872,3873,5,83,0,0,3873,613,1,0,0,0,3874, 3879,3,826,413,0,3875,3876,5,396,0,0,3876,3878,3,826,413,0,3877, 3875,1,0,0,0,3878,3881,1,0,0,0,3879,3877,1,0,0,0,3879,3880,1,0,0, 0,3880,615,1,0,0,0,3881,3879,1,0,0,0,3882,3887,3,924,462,0,3883, 3884,5,396,0,0,3884,3886,3,924,462,0,3885,3883,1,0,0,0,3886,3889, 1,0,0,0,3887,3885,1,0,0,0,3887,3888,1,0,0,0,3888,617,1,0,0,0,3889, 3887,1,0,0,0,3890,3891,5,139,0,0,3891,3892,3,620,310,0,3892,619, 1,0,0,0,3893,3894,3,632,316,0,3894,3897,3,628,314,0,3895,3896,5, 396,0,0,3896,3898,3,628,314,0,3897,3895,1,0,0,0,3898,3899,1,0,0, 0,3899,3897,1,0,0,0,3899,3900,1,0,0,0,3900,3903,1,0,0,0,3901,3903, 3,624,312,0,3902,3893,1,0,0,0,3902,3901,1,0,0,0,3903,621,1,0,0,0, 3904,3908,3,646,323,0,3905,3907,3,636,318,0,3906,3905,1,0,0,0,3907, 3910,1,0,0,0,3908,3906,1,0,0,0,3908,3909,1,0,0,0,3909,3937,1,0,0, 0,3910,3908,1,0,0,0,3911,3915,3,688,344,0,3912,3914,3,636,318,0, 3913,3912,1,0,0,0,3914,3917,1,0,0,0,3915,3913,1,0,0,0,3915,3916, 1,0,0,0,3916,3937,1,0,0,0,3917,3915,1,0,0,0,3918,3922,3,666,333, 0,3919,3921,3,636,318,0,3920,3919,1,0,0,0,3921,3924,1,0,0,0,3922, 3920,1,0,0,0,3922,3923,1,0,0,0,3923,3937,1,0,0,0,3924,3922,1,0,0, 0,3925,3929,3,672,336,0,3926,3928,3,636,318,0,3927,3926,1,0,0,0, 3928,3931,1,0,0,0,3929,3927,1,0,0,0,3929,3930,1,0,0,0,3930,3937, 1,0,0,0,3931,3929,1,0,0,0,3932,3933,5,398,0,0,3933,3934,3,624,312, 0,3934,3935,5,399,0,0,3935,3937,1,0,0,0,3936,3904,1,0,0,0,3936,3911, 1,0,0,0,3936,3918,1,0,0,0,3936,3925,1,0,0,0,3936,3932,1,0,0,0,3937, 623,1,0,0,0,3938,3949,3,622,311,0,3939,3940,3,634,317,0,3940,3945, 3,626,313,0,3941,3942,5,223,0,0,3942,3946,3,826,413,0,3943,3944, 5,369,0,0,3944,3946,3,290,145,0,3945,3941,1,0,0,0,3945,3943,1,0, 0,0,3945,3946,1,0,0,0,3946,3948,1,0,0,0,3947,3939,1,0,0,0,3948,3951, 1,0,0,0,3949,3947,1,0,0,0,3949,3950,1,0,0,0,3950,625,1,0,0,0,3951, 3949,1,0,0,0,3952,3957,3,646,323,0,3953,3957,3,688,344,0,3954,3957, 3,666,333,0,3955,3957,3,672,336,0,3956,3952,1,0,0,0,3956,3953,1, 0,0,0,3956,3954,1,0,0,0,3956,3955,1,0,0,0,3957,3961,1,0,0,0,3958, 3960,3,636,318,0,3959,3958,1,0,0,0,3960,3963,1,0,0,0,3961,3959,1, 0,0,0,3961,3962,1,0,0,0,3962,627,1,0,0,0,3963,3961,1,0,0,0,3964, 3966,5,249,0,0,3965,3964,1,0,0,0,3965,3966,1,0,0,0,3966,3967,1,0, 0,0,3967,3968,3,650,325,0,3968,3969,3,630,315,0,3969,629,1,0,0,0, 3970,3971,5,398,0,0,3971,3972,3,614,307,0,3972,3973,5,399,0,0,3973, 631,1,0,0,0,3974,3975,5,358,0,0,3975,633,1,0,0,0,3976,3991,5,396, 0,0,3977,3988,5,157,0,0,3978,3988,5,60,0,0,3979,3981,7,25,0,0,3980, 3982,5,230,0,0,3981,3980,1,0,0,0,3981,3982,1,0,0,0,3982,3988,1,0, 0,0,3983,3985,5,180,0,0,3984,3986,7,26,0,0,3985,3984,1,0,0,0,3985, 3986,1,0,0,0,3986,3988,1,0,0,0,3987,3977,1,0,0,0,3987,3978,1,0,0, 0,3987,3979,1,0,0,0,3987,3983,1,0,0,0,3987,3988,1,0,0,0,3988,3989, 1,0,0,0,3989,3991,5,171,0,0,3990,3976,1,0,0,0,3990,3987,1,0,0,0, 3991,635,1,0,0,0,3992,3993,5,178,0,0,3993,3994,5,377,0,0,3994,3995, 5,230,0,0,3995,3996,3,774,387,0,3996,4006,3,638,319,0,3997,3998, 5,17,0,0,3998,4003,3,924,462,0,3999,4000,5,396,0,0,4000,4002,3,924, 462,0,4001,3999,1,0,0,0,4002,4005,1,0,0,0,4003,4001,1,0,0,0,4003, 4004,1,0,0,0,4004,4007,1,0,0,0,4005,4003,1,0,0,0,4006,3997,1,0,0, 0,4006,4007,1,0,0,0,4007,4050,1,0,0,0,4008,4010,5,396,0,0,4009,4008, 1,0,0,0,4009,4010,1,0,0,0,4010,4011,1,0,0,0,4011,4047,5,178,0,0, 4012,4013,5,377,0,0,4013,4014,3,774,387,0,4014,4024,3,638,319,0, 4015,4016,5,17,0,0,4016,4021,3,924,462,0,4017,4018,5,396,0,0,4018, 4020,3,924,462,0,4019,4017,1,0,0,0,4020,4023,1,0,0,0,4021,4019,1, 0,0,0,4021,4022,1,0,0,0,4022,4025,1,0,0,0,4023,4021,1,0,0,0,4024, 4015,1,0,0,0,4024,4025,1,0,0,0,4025,4048,1,0,0,0,4026,4027,5,328, 0,0,4027,4028,5,398,0,0,4028,4029,3,680,340,0,4029,4031,5,399,0, 0,4030,4032,5,17,0,0,4031,4030,1,0,0,0,4031,4032,1,0,0,0,4032,4033, 1,0,0,0,4033,4045,3,638,319,0,4034,4035,5,398,0,0,4035,4040,3,924, 462,0,4036,4037,5,396,0,0,4037,4039,3,924,462,0,4038,4036,1,0,0, 0,4039,4042,1,0,0,0,4040,4038,1,0,0,0,4040,4041,1,0,0,0,4041,4043, 1,0,0,0,4042,4040,1,0,0,0,4043,4044,5,399,0,0,4044,4046,1,0,0,0, 4045,4034,1,0,0,0,4045,4046,1,0,0,0,4046,4048,1,0,0,0,4047,4012, 1,0,0,0,4047,4026,1,0,0,0,4048,4050,1,0,0,0,4049,3992,1,0,0,0,4049, 4009,1,0,0,0,4050,637,1,0,0,0,4051,4052,3,924,462,0,4052,639,1,0, 0,0,4053,4054,5,330,0,0,4054,4055,5,398,0,0,4055,4056,5,30,0,0,4056, 4057,5,430,0,0,4057,4058,5,229,0,0,4058,4059,5,220,0,0,4059,4069, 5,430,0,0,4060,4061,5,223,0,0,4061,4066,3,826,413,0,4062,4063,5, 396,0,0,4063,4065,3,826,413,0,4064,4062,1,0,0,0,4065,4068,1,0,0, 0,4066,4064,1,0,0,0,4066,4067,1,0,0,0,4067,4070,1,0,0,0,4068,4066, 1,0,0,0,4069,4060,1,0,0,0,4069,4070,1,0,0,0,4070,4071,1,0,0,0,4071, 4072,5,399,0,0,4072,641,1,0,0,0,4073,4074,5,330,0,0,4074,4078,5, 398,0,0,4075,4076,5,430,0,0,4076,4079,7,27,0,0,4077,4079,5,429,0, 0,4078,4075,1,0,0,0,4078,4077,1,0,0,0,4079,4080,1,0,0,0,4080,4081, 5,399,0,0,4081,643,1,0,0,0,4082,4085,3,640,320,0,4083,4085,3,642, 321,0,4084,4082,1,0,0,0,4084,4083,1,0,0,0,4085,645,1,0,0,0,4086, 4088,3,656,328,0,4087,4089,3,252,126,0,4088,4087,1,0,0,0,4088,4089, 1,0,0,0,4089,4091,1,0,0,0,4090,4092,3,644,322,0,4091,4090,1,0,0, 0,4091,4092,1,0,0,0,4092,4094,1,0,0,0,4093,4095,3,648,324,0,4094, 4093,1,0,0,0,4094,4095,1,0,0,0,4095,4100,1,0,0,0,4096,4098,5,17, 0,0,4097,4096,1,0,0,0,4097,4098,1,0,0,0,4098,4099,1,0,0,0,4099,4101, 3,924,462,0,4100,4097,1,0,0,0,4100,4101,1,0,0,0,4101,647,1,0,0,0, 4102,4112,5,134,0,0,4103,4104,5,326,0,0,4104,4105,5,17,0,0,4105, 4106,5,220,0,0,4106,4113,3,826,413,0,4107,4108,5,134,0,0,4108,4109, 5,327,0,0,4109,4110,5,17,0,0,4110,4111,5,220,0,0,4111,4113,5,430, 0,0,4112,4103,1,0,0,0,4112,4107,1,0,0,0,4113,649,1,0,0,0,4114,4116, 3,656,328,0,4115,4117,3,644,322,0,4116,4115,1,0,0,0,4116,4117,1, 0,0,0,4117,4122,1,0,0,0,4118,4120,5,17,0,0,4119,4118,1,0,0,0,4119, 4120,1,0,0,0,4120,4121,1,0,0,0,4121,4123,3,924,462,0,4122,4119,1, 0,0,0,4122,4123,1,0,0,0,4123,651,1,0,0,0,4124,4125,3,924,462,0,4125, 653,1,0,0,0,4126,4127,3,924,462,0,4127,655,1,0,0,0,4128,4131,3,658, 329,0,4129,4131,3,662,331,0,4130,4128,1,0,0,0,4130,4129,1,0,0,0, 4131,657,1,0,0,0,4132,4133,3,924,462,0,4133,4134,5,394,0,0,4134, 4137,3,924,462,0,4135,4136,5,394,0,0,4136,4138,3,924,462,0,4137, 4135,1,0,0,0,4137,4138,1,0,0,0,4138,4141,1,0,0,0,4139,4141,3,924, 462,0,4140,4132,1,0,0,0,4140,4139,1,0,0,0,4141,659,1,0,0,0,4142, 4143,3,924,462,0,4143,4144,5,394,0,0,4144,4147,3,924,462,0,4145, 4146,5,394,0,0,4146,4148,3,924,462,0,4147,4145,1,0,0,0,4147,4148, 1,0,0,0,4148,4151,1,0,0,0,4149,4151,3,924,462,0,4150,4142,1,0,0, 0,4150,4149,1,0,0,0,4151,661,1,0,0,0,4152,4153,3,924,462,0,4153, 4154,5,394,0,0,4154,4156,1,0,0,0,4155,4152,1,0,0,0,4155,4156,1,0, 0,0,4156,4157,1,0,0,0,4157,4158,3,924,462,0,4158,663,1,0,0,0,4159, 4160,3,924,462,0,4160,4161,5,394,0,0,4161,4163,1,0,0,0,4162,4159, 1,0,0,0,4162,4163,1,0,0,0,4163,4164,1,0,0,0,4164,4165,3,924,462, 0,4165,665,1,0,0,0,4166,4167,5,398,0,0,4167,4168,3,392,196,0,4168, 4170,5,399,0,0,4169,4171,5,17,0,0,4170,4169,1,0,0,0,4170,4171,1, 0,0,0,4171,4172,1,0,0,0,4172,4173,3,924,462,0,4173,667,1,0,0,0,4174, 4176,3,766,383,0,4175,4177,3,762,381,0,4176,4175,1,0,0,0,4176,4177, 1,0,0,0,4177,4186,1,0,0,0,4178,4186,3,762,381,0,4179,4181,3,768, 384,0,4180,4182,3,770,385,0,4181,4180,1,0,0,0,4181,4182,1,0,0,0, 4182,4186,1,0,0,0,4183,4186,3,770,385,0,4184,4186,3,764,382,0,4185, 4174,1,0,0,0,4185,4178,1,0,0,0,4185,4179,1,0,0,0,4185,4183,1,0,0, 0,4185,4184,1,0,0,0,4186,669,1,0,0,0,4187,4191,3,666,333,0,4188, 4191,3,646,323,0,4189,4191,3,672,336,0,4190,4187,1,0,0,0,4190,4188, 1,0,0,0,4190,4189,1,0,0,0,4191,671,1,0,0,0,4192,4193,3,924,462,0, 4193,4194,5,398,0,0,4194,4195,5,223,0,0,4195,4197,3,670,335,0,4196, 4198,3,668,334,0,4197,4196,1,0,0,0,4197,4198,1,0,0,0,4198,4214,1, 0,0,0,4199,4200,5,431,0,0,4200,4201,5,398,0,0,4201,4202,3,826,413, 0,4202,4211,5,399,0,0,4203,4204,5,396,0,0,4204,4205,5,431,0,0,4205, 4206,5,398,0,0,4206,4207,3,826,413,0,4207,4208,5,399,0,0,4208,4210, 1,0,0,0,4209,4203,1,0,0,0,4210,4213,1,0,0,0,4211,4209,1,0,0,0,4211, 4212,1,0,0,0,4212,4215,1,0,0,0,4213,4211,1,0,0,0,4214,4199,1,0,0, 0,4214,4215,1,0,0,0,4215,4216,1,0,0,0,4216,4218,5,399,0,0,4217,4219, 3,924,462,0,4218,4217,1,0,0,0,4218,4219,1,0,0,0,4219,673,1,0,0,0, 4220,4221,5,383,0,0,4221,4222,3,676,338,0,4222,675,1,0,0,0,4223, 4224,3,826,413,0,4224,677,1,0,0,0,4225,4226,3,680,340,0,4226,679, 1,0,0,0,4227,4228,5,373,0,0,4228,4229,3,682,341,0,4229,681,1,0,0, 0,4230,4235,3,684,342,0,4231,4232,5,396,0,0,4232,4234,3,684,342, 0,4233,4231,1,0,0,0,4234,4237,1,0,0,0,4235,4233,1,0,0,0,4235,4236, 1,0,0,0,4236,4247,1,0,0,0,4237,4235,1,0,0,0,4238,4243,3,686,343, 0,4239,4240,5,396,0,0,4240,4242,3,684,342,0,4241,4239,1,0,0,0,4242, 4245,1,0,0,0,4243,4241,1,0,0,0,4243,4244,1,0,0,0,4244,4247,1,0,0, 0,4245,4243,1,0,0,0,4246,4230,1,0,0,0,4246,4238,1,0,0,0,4247,683, 1,0,0,0,4248,4249,3,744,372,0,4249,685,1,0,0,0,4250,4251,5,398,0, 0,4251,4252,3,752,376,0,4252,4253,5,399,0,0,4253,687,1,0,0,0,4254, 4255,5,328,0,0,4255,4256,5,398,0,0,4256,4257,3,680,340,0,4257,4259, 5,399,0,0,4258,4260,5,17,0,0,4259,4258,1,0,0,0,4259,4260,1,0,0,0, 4260,4261,1,0,0,0,4261,4271,3,638,319,0,4262,4263,5,398,0,0,4263, 4268,3,924,462,0,4264,4265,5,396,0,0,4265,4267,3,924,462,0,4266, 4264,1,0,0,0,4267,4270,1,0,0,0,4268,4266,1,0,0,0,4268,4269,1,0,0, 0,4269,4272,1,0,0,0,4270,4268,1,0,0,0,4271,4262,1,0,0,0,4271,4272, 1,0,0,0,4272,4273,1,0,0,0,4273,4274,5,399,0,0,4274,689,1,0,0,0,4275, 4277,5,298,0,0,4276,4278,5,435,0,0,4277,4276,1,0,0,0,4277,4278,1, 0,0,0,4278,4285,1,0,0,0,4279,4281,3,692,346,0,4280,4279,1,0,0,0, 4280,4281,1,0,0,0,4281,4282,1,0,0,0,4282,4286,3,694,347,0,4283,4284, 5,346,0,0,4284,4286,3,696,348,0,4285,4280,1,0,0,0,4285,4283,1,0, 0,0,4286,4289,1,0,0,0,4287,4289,3,700,350,0,4288,4275,1,0,0,0,4288, 4287,1,0,0,0,4289,691,1,0,0,0,4290,4291,7,20,0,0,4291,693,1,0,0, 0,4292,4297,3,698,349,0,4293,4294,5,396,0,0,4294,4296,3,698,349, 0,4295,4293,1,0,0,0,4296,4299,1,0,0,0,4297,4295,1,0,0,0,4297,4298, 1,0,0,0,4298,695,1,0,0,0,4299,4297,1,0,0,0,4300,4301,5,398,0,0,4301, 4302,3,704,352,0,4302,4303,5,399,0,0,4303,4304,3,238,119,0,4304, 4305,3,242,121,0,4305,4306,5,369,0,0,4306,4319,5,425,0,0,4307,4317, 5,17,0,0,4308,4311,5,398,0,0,4309,4312,3,616,308,0,4310,4312,3,274, 137,0,4311,4309,1,0,0,0,4311,4310,1,0,0,0,4312,4313,1,0,0,0,4313, 4314,5,399,0,0,4314,4318,1,0,0,0,4315,4318,3,616,308,0,4316,4318, 3,274,137,0,4317,4308,1,0,0,0,4317,4315,1,0,0,0,4317,4316,1,0,0, 0,4318,4320,1,0,0,0,4319,4307,1,0,0,0,4319,4320,1,0,0,0,4320,4321, 1,0,0,0,4321,4322,3,238,119,0,4322,4323,3,240,120,0,4323,697,1,0, 0,0,4324,4348,3,610,305,0,4325,4328,3,282,141,0,4326,4328,3,826, 413,0,4327,4325,1,0,0,0,4327,4326,1,0,0,0,4328,4345,1,0,0,0,4329, 4331,5,17,0,0,4330,4329,1,0,0,0,4330,4331,1,0,0,0,4331,4332,1,0, 0,0,4332,4346,3,924,462,0,4333,4334,5,17,0,0,4334,4335,5,398,0,0, 4335,4340,3,924,462,0,4336,4337,5,396,0,0,4337,4339,3,924,462,0, 4338,4336,1,0,0,0,4339,4342,1,0,0,0,4340,4338,1,0,0,0,4340,4341, 1,0,0,0,4341,4343,1,0,0,0,4342,4340,1,0,0,0,4343,4344,5,399,0,0, 4344,4346,1,0,0,0,4345,4330,1,0,0,0,4345,4333,1,0,0,0,4345,4346, 1,0,0,0,4346,4348,1,0,0,0,4347,4324,1,0,0,0,4347,4327,1,0,0,0,4348, 699,1,0,0,0,4349,4350,7,28,0,0,4350,4351,3,704,352,0,4351,4352,3, 238,119,0,4352,4353,3,242,121,0,4353,4354,5,369,0,0,4354,4367,5, 425,0,0,4355,4365,5,17,0,0,4356,4359,5,398,0,0,4357,4360,3,616,308, 0,4358,4360,3,274,137,0,4359,4357,1,0,0,0,4359,4358,1,0,0,0,4360, 4361,1,0,0,0,4361,4362,5,399,0,0,4362,4366,1,0,0,0,4363,4366,3,616, 308,0,4364,4366,3,274,137,0,4365,4356,1,0,0,0,4365,4363,1,0,0,0, 4365,4364,1,0,0,0,4366,4368,1,0,0,0,4367,4355,1,0,0,0,4367,4368, 1,0,0,0,4368,4369,1,0,0,0,4369,4370,3,238,119,0,4370,4371,3,240, 120,0,4371,701,1,0,0,0,4372,4375,3,610,305,0,4373,4375,3,826,413, 0,4374,4372,1,0,0,0,4374,4373,1,0,0,0,4375,703,1,0,0,0,4376,4381, 3,702,351,0,4377,4378,5,396,0,0,4378,4380,3,702,351,0,4379,4377, 1,0,0,0,4380,4383,1,0,0,0,4381,4379,1,0,0,0,4381,4382,1,0,0,0,4382, 705,1,0,0,0,4383,4381,1,0,0,0,4384,4385,5,385,0,0,4385,4390,3,708, 354,0,4386,4387,5,396,0,0,4387,4389,3,708,354,0,4388,4386,1,0,0, 0,4389,4392,1,0,0,0,4390,4388,1,0,0,0,4390,4391,1,0,0,0,4391,707, 1,0,0,0,4392,4390,1,0,0,0,4393,4394,3,924,462,0,4394,4395,5,17,0, 0,4395,4396,3,710,355,0,4396,709,1,0,0,0,4397,4410,3,924,462,0,4398, 4400,5,398,0,0,4399,4401,3,924,462,0,4400,4399,1,0,0,0,4400,4401, 1,0,0,0,4401,4403,1,0,0,0,4402,4404,3,668,334,0,4403,4402,1,0,0, 0,4403,4404,1,0,0,0,4404,4406,1,0,0,0,4405,4407,3,712,356,0,4406, 4405,1,0,0,0,4406,4407,1,0,0,0,4407,4408,1,0,0,0,4408,4410,5,399, 0,0,4409,4397,1,0,0,0,4409,4398,1,0,0,0,4410,711,1,0,0,0,4411,4414, 3,714,357,0,4412,4414,3,716,358,0,4413,4411,1,0,0,0,4413,4412,1, 0,0,0,4414,713,1,0,0,0,4415,4422,5,291,0,0,4416,4423,3,718,359,0, 4417,4418,5,25,0,0,4418,4419,3,720,360,0,4419,4420,5,11,0,0,4420, 4421,3,720,360,0,4421,4423,1,0,0,0,4422,4416,1,0,0,0,4422,4417,1, 0,0,0,4423,715,1,0,0,0,4424,4431,5,259,0,0,4425,4432,3,718,359,0, 4426,4427,5,25,0,0,4427,4428,3,720,360,0,4428,4429,5,11,0,0,4429, 4430,3,720,360,0,4430,4432,1,0,0,0,4431,4425,1,0,0,0,4431,4426,1, 0,0,0,4432,717,1,0,0,0,4433,4434,5,353,0,0,4434,4440,5,246,0,0,4435, 4436,5,62,0,0,4436,4440,5,290,0,0,4437,4438,5,430,0,0,4438,4440, 5,246,0,0,4439,4433,1,0,0,0,4439,4435,1,0,0,0,4439,4437,1,0,0,0, 4440,719,1,0,0,0,4441,4442,7,29,0,0,4442,4446,7,30,0,0,4443,4444, 5,62,0,0,4444,4446,5,290,0,0,4445,4441,1,0,0,0,4445,4443,1,0,0,0, 4446,721,1,0,0,0,4447,4448,5,144,0,0,4448,4449,5,32,0,0,4449,4450, 3,724,362,0,4450,723,1,0,0,0,4451,4456,3,282,141,0,4452,4456,3,728, 364,0,4453,4456,3,730,365,0,4454,4456,3,726,363,0,4455,4451,1,0, 0,0,4455,4452,1,0,0,0,4455,4453,1,0,0,0,4455,4454,1,0,0,0,4456,725, 1,0,0,0,4457,4458,5,398,0,0,4458,4459,5,399,0,0,4459,727,1,0,0,0, 4460,4463,5,289,0,0,4461,4463,5,61,0,0,4462,4460,1,0,0,0,4462,4461, 1,0,0,0,4463,4464,1,0,0,0,4464,4465,5,398,0,0,4465,4470,3,826,413, 0,4466,4467,5,396,0,0,4467,4469,3,826,413,0,4468,4466,1,0,0,0,4469, 4472,1,0,0,0,4470,4468,1,0,0,0,4470,4471,1,0,0,0,4471,4473,1,0,0, 0,4472,4470,1,0,0,0,4473,4474,5,399,0,0,4474,729,1,0,0,0,4475,4480, 3,746,373,0,4476,4477,5,386,0,0,4477,4481,5,289,0,0,4478,4479,5, 386,0,0,4479,4481,5,61,0,0,4480,4476,1,0,0,0,4480,4478,1,0,0,0,4480, 4481,1,0,0,0,4481,4495,1,0,0,0,4482,4483,5,145,0,0,4483,4484,5,304, 0,0,4484,4485,5,398,0,0,4485,4490,3,732,366,0,4486,4487,5,396,0, 0,4487,4489,3,732,366,0,4488,4486,1,0,0,0,4489,4492,1,0,0,0,4490, 4488,1,0,0,0,4490,4491,1,0,0,0,4491,4493,1,0,0,0,4492,4490,1,0,0, 0,4493,4494,5,399,0,0,4494,4496,1,0,0,0,4495,4482,1,0,0,0,4495,4496, 1,0,0,0,4496,731,1,0,0,0,4497,4500,3,734,367,0,4498,4500,3,736,368, 0,4499,4497,1,0,0,0,4499,4498,1,0,0,0,4500,733,1,0,0,0,4501,4503, 5,398,0,0,4502,4504,3,826,413,0,4503,4502,1,0,0,0,4503,4504,1,0, 0,0,4504,4509,1,0,0,0,4505,4506,5,396,0,0,4506,4508,3,826,413,0, 4507,4505,1,0,0,0,4508,4511,1,0,0,0,4509,4507,1,0,0,0,4509,4510, 1,0,0,0,4510,4512,1,0,0,0,4511,4509,1,0,0,0,4512,4513,5,399,0,0, 4513,735,1,0,0,0,4514,4515,3,826,413,0,4515,737,1,0,0,0,4516,4517, 5,146,0,0,4517,4518,3,742,371,0,4518,739,1,0,0,0,4519,4520,5,255, 0,0,4520,4521,3,826,413,0,4521,741,1,0,0,0,4522,4523,3,826,413,0, 4523,743,1,0,0,0,4524,4525,5,398,0,0,4525,4526,3,746,373,0,4526, 4527,5,399,0,0,4527,745,1,0,0,0,4528,4530,3,750,375,0,4529,4531, 3,748,374,0,4530,4529,1,0,0,0,4530,4531,1,0,0,0,4531,747,1,0,0,0, 4532,4533,5,396,0,0,4533,4535,3,750,375,0,4534,4532,1,0,0,0,4535, 4536,1,0,0,0,4536,4534,1,0,0,0,4536,4537,1,0,0,0,4537,749,1,0,0, 0,4538,4541,3,612,306,0,4539,4541,3,826,413,0,4540,4538,1,0,0,0, 4540,4539,1,0,0,0,4541,751,1,0,0,0,4542,4544,3,826,413,0,4543,4545, 5,17,0,0,4544,4543,1,0,0,0,4544,4545,1,0,0,0,4545,4547,1,0,0,0,4546, 4548,3,924,462,0,4547,4546,1,0,0,0,4547,4548,1,0,0,0,4548,4553,1, 0,0,0,4549,4550,5,396,0,0,4550,4552,3,754,377,0,4551,4549,1,0,0, 0,4552,4555,1,0,0,0,4553,4551,1,0,0,0,4553,4554,1,0,0,0,4554,753, 1,0,0,0,4555,4553,1,0,0,0,4556,4558,3,826,413,0,4557,4559,5,17,0, 0,4558,4557,1,0,0,0,4558,4559,1,0,0,0,4559,4561,1,0,0,0,4560,4562, 3,924,462,0,4561,4560,1,0,0,0,4561,4562,1,0,0,0,4562,755,1,0,0,0, 4563,4566,3,744,372,0,4564,4566,3,746,373,0,4565,4563,1,0,0,0,4565, 4564,1,0,0,0,4566,757,1,0,0,0,4567,4568,5,398,0,0,4568,4573,3,340, 170,0,4569,4570,5,396,0,0,4570,4572,3,340,170,0,4571,4569,1,0,0, 0,4572,4575,1,0,0,0,4573,4571,1,0,0,0,4573,4574,1,0,0,0,4574,4576, 1,0,0,0,4575,4573,1,0,0,0,4576,4577,5,399,0,0,4577,759,1,0,0,0,4578, 4583,3,340,170,0,4579,4580,5,396,0,0,4580,4582,3,340,170,0,4581, 4579,1,0,0,0,4582,4585,1,0,0,0,4583,4581,1,0,0,0,4583,4584,1,0,0, 0,4584,761,1,0,0,0,4585,4583,1,0,0,0,4586,4587,5,228,0,0,4587,4588, 5,32,0,0,4588,4593,3,340,170,0,4589,4590,5,396,0,0,4590,4592,3,340, 170,0,4591,4589,1,0,0,0,4592,4595,1,0,0,0,4593,4591,1,0,0,0,4593, 4594,1,0,0,0,4594,763,1,0,0,0,4595,4593,1,0,0,0,4596,4597,5,41,0, 0,4597,4598,5,32,0,0,4598,4599,3,756,378,0,4599,765,1,0,0,0,4600, 4601,5,236,0,0,4601,4602,5,32,0,0,4602,4603,3,756,378,0,4603,767, 1,0,0,0,4604,4605,5,97,0,0,4605,4606,5,32,0,0,4606,4607,3,756,378, 0,4607,769,1,0,0,0,4608,4609,5,313,0,0,4609,4612,5,32,0,0,4610,4613, 3,758,379,0,4611,4613,3,760,380,0,4612,4610,1,0,0,0,4612,4611,1, 0,0,0,4613,771,1,0,0,0,4614,4615,5,348,0,0,4615,4619,5,398,0,0,4616, 4620,5,179,0,0,4617,4620,5,342,0,0,4618,4620,5,29,0,0,4619,4616, 1,0,0,0,4619,4617,1,0,0,0,4619,4618,1,0,0,0,4619,4620,1,0,0,0,4620, 4622,1,0,0,0,4621,4623,3,702,351,0,4622,4621,1,0,0,0,4622,4623,1, 0,0,0,4623,4624,1,0,0,0,4624,4625,5,139,0,0,4625,4626,3,702,351, 0,4626,4627,5,399,0,0,4627,773,1,0,0,0,4628,4669,3,772,386,0,4629, 4630,3,782,391,0,4630,4645,5,398,0,0,4631,4646,5,414,0,0,4632,4634, 3,692,346,0,4633,4632,1,0,0,0,4633,4634,1,0,0,0,4634,4643,1,0,0, 0,4635,4640,3,702,351,0,4636,4637,5,396,0,0,4637,4639,3,702,351, 0,4638,4636,1,0,0,0,4639,4642,1,0,0,0,4640,4638,1,0,0,0,4640,4641, 1,0,0,0,4641,4644,1,0,0,0,4642,4640,1,0,0,0,4643,4635,1,0,0,0,4643, 4644,1,0,0,0,4644,4646,1,0,0,0,4645,4631,1,0,0,0,4645,4633,1,0,0, 0,4646,4666,1,0,0,0,4647,4648,5,399,0,0,4648,4649,5,387,0,0,4649, 4650,5,144,0,0,4650,4651,5,398,0,0,4651,4652,3,762,381,0,4652,4653, 5,399,0,0,4653,4667,1,0,0,0,4654,4656,5,399,0,0,4655,4657,3,776, 388,0,4656,4655,1,0,0,0,4656,4657,1,0,0,0,4657,4658,1,0,0,0,4658, 4659,5,233,0,0,4659,4667,3,710,355,0,4660,4661,3,776,388,0,4661, 4662,5,399,0,0,4662,4663,5,233,0,0,4663,4664,3,710,355,0,4664,4667, 1,0,0,0,4665,4667,5,399,0,0,4666,4647,1,0,0,0,4666,4654,1,0,0,0, 4666,4660,1,0,0,0,4666,4665,1,0,0,0,4667,4669,1,0,0,0,4668,4628, 1,0,0,0,4668,4629,1,0,0,0,4669,775,1,0,0,0,4670,4671,5,280,0,0,4671, 4675,5,219,0,0,4672,4673,5,152,0,0,4673,4675,5,219,0,0,4674,4670, 1,0,0,0,4674,4672,1,0,0,0,4675,777,1,0,0,0,4676,4677,3,926,463,0, 4677,779,1,0,0,0,4678,4681,3,784,392,0,4679,4681,5,425,0,0,4680, 4678,1,0,0,0,4680,4679,1,0,0,0,4681,781,1,0,0,0,4682,4685,3,784, 392,0,4683,4685,3,786,393,0,4684,4682,1,0,0,0,4684,4683,1,0,0,0, 4685,783,1,0,0,0,4686,4687,3,926,463,0,4687,785,1,0,0,0,4688,4691, 3,932,466,0,4689,4691,3,922,461,0,4690,4688,1,0,0,0,4690,4689,1, 0,0,0,4691,787,1,0,0,0,4692,4693,5,36,0,0,4693,4694,5,398,0,0,4694, 4695,3,826,413,0,4695,4696,5,17,0,0,4696,4699,3,380,190,0,4697,4698, 5,137,0,0,4698,4700,5,425,0,0,4699,4697,1,0,0,0,4699,4700,1,0,0, 0,4700,4701,1,0,0,0,4701,4702,5,399,0,0,4702,789,1,0,0,0,4703,4704, 5,35,0,0,4704,4710,3,826,413,0,4705,4706,5,382,0,0,4706,4707,3,826, 413,0,4707,4708,5,334,0,0,4708,4709,3,826,413,0,4709,4711,1,0,0, 0,4710,4705,1,0,0,0,4711,4712,1,0,0,0,4712,4710,1,0,0,0,4712,4713, 1,0,0,0,4713,4716,1,0,0,0,4714,4715,5,105,0,0,4715,4717,3,826,413, 0,4716,4714,1,0,0,0,4716,4717,1,0,0,0,4717,4718,1,0,0,0,4718,4719, 5,108,0,0,4719,791,1,0,0,0,4720,4726,5,35,0,0,4721,4722,5,382,0, 0,4722,4723,3,826,413,0,4723,4724,5,334,0,0,4724,4725,3,826,413, 0,4725,4727,1,0,0,0,4726,4721,1,0,0,0,4727,4728,1,0,0,0,4728,4726, 1,0,0,0,4728,4729,1,0,0,0,4729,4732,1,0,0,0,4730,4731,5,105,0,0, 4731,4733,3,826,413,0,4732,4730,1,0,0,0,4732,4733,1,0,0,0,4733,4734, 1,0,0,0,4734,4735,5,108,0,0,4735,793,1,0,0,0,4736,4737,5,132,0,0, 4737,4738,5,398,0,0,4738,4741,3,826,413,0,4739,4740,5,340,0,0,4740, 4742,3,796,398,0,4741,4739,1,0,0,0,4741,4742,1,0,0,0,4742,4743,1, 0,0,0,4743,4744,5,399,0,0,4744,795,1,0,0,0,4745,4754,3,974,487,0, 4746,4754,5,256,0,0,4747,4754,3,976,488,0,4748,4754,3,978,489,0, 4749,4754,3,980,490,0,4750,4754,3,982,491,0,4751,4754,3,984,492, 0,4752,4754,3,986,493,0,4753,4745,1,0,0,0,4753,4746,1,0,0,0,4753, 4747,1,0,0,0,4753,4748,1,0,0,0,4753,4749,1,0,0,0,4753,4750,1,0,0, 0,4753,4751,1,0,0,0,4753,4752,1,0,0,0,4754,797,1,0,0,0,4755,4756, 5,124,0,0,4756,4757,5,398,0,0,4757,4758,3,800,400,0,4758,4759,5, 139,0,0,4759,4760,3,826,413,0,4760,4761,5,399,0,0,4761,799,1,0,0, 0,4762,4771,3,974,487,0,4763,4771,5,256,0,0,4764,4771,3,976,488, 0,4765,4771,3,978,489,0,4766,4771,3,980,490,0,4767,4771,3,982,491, 0,4768,4771,3,984,492,0,4769,4771,3,986,493,0,4770,4762,1,0,0,0, 4770,4763,1,0,0,0,4770,4764,1,0,0,0,4770,4765,1,0,0,0,4770,4766, 1,0,0,0,4770,4767,1,0,0,0,4770,4768,1,0,0,0,4770,4769,1,0,0,0,4771, 801,1,0,0,0,4772,4786,3,820,410,0,4773,4786,5,430,0,0,4774,4786, 3,812,406,0,4775,4786,3,814,407,0,4776,4786,3,816,408,0,4777,4786, 5,425,0,0,4778,4786,3,808,404,0,4779,4786,5,427,0,0,4780,4786,5, 428,0,0,4781,4786,3,810,405,0,4782,4786,3,904,452,0,4783,4786,5, 218,0,0,4784,4786,3,804,402,0,4785,4772,1,0,0,0,4785,4773,1,0,0, 0,4785,4774,1,0,0,0,4785,4775,1,0,0,0,4785,4776,1,0,0,0,4785,4777, 1,0,0,0,4785,4778,1,0,0,0,4785,4779,1,0,0,0,4785,4780,1,0,0,0,4785, 4781,1,0,0,0,4785,4782,1,0,0,0,4785,4783,1,0,0,0,4785,4784,1,0,0, 0,4786,803,1,0,0,0,4787,4788,3,806,403,0,4788,805,1,0,0,0,4789,4790, 5,423,0,0,4790,807,1,0,0,0,4791,4793,5,425,0,0,4792,4794,5,425,0, 0,4793,4792,1,0,0,0,4794,4795,1,0,0,0,4795,4793,1,0,0,0,4795,4796, 1,0,0,0,4796,809,1,0,0,0,4797,4798,5,432,0,0,4798,4799,5,426,0,0, 4799,811,1,0,0,0,4800,4801,5,71,0,0,4801,4804,5,425,0,0,4802,4804, 5,63,0,0,4803,4800,1,0,0,0,4803,4802,1,0,0,0,4804,813,1,0,0,0,4805, 4806,5,336,0,0,4806,4809,5,425,0,0,4807,4809,5,64,0,0,4808,4805, 1,0,0,0,4808,4807,1,0,0,0,4809,815,1,0,0,0,4810,4811,5,337,0,0,4811, 4812,5,425,0,0,4812,817,1,0,0,0,4813,4814,7,24,0,0,4814,819,1,0, 0,0,4815,4816,3,818,409,0,4816,4817,3,824,412,0,4817,821,1,0,0,0, 4818,4819,5,398,0,0,4819,4820,3,818,409,0,4820,4821,5,399,0,0,4821, 4822,3,824,412,0,4822,4834,1,0,0,0,4823,4829,5,165,0,0,4824,4830, 3,818,409,0,4825,4826,5,398,0,0,4826,4827,3,826,413,0,4827,4828, 5,399,0,0,4828,4830,1,0,0,0,4829,4824,1,0,0,0,4829,4825,1,0,0,0, 4830,4831,1,0,0,0,4831,4832,3,824,412,0,4832,4834,1,0,0,0,4833,4818, 1,0,0,0,4833,4823,1,0,0,0,4834,823,1,0,0,0,4835,4836,3,974,487,0, 4836,4837,5,340,0,0,4837,4838,3,976,488,0,4838,4850,1,0,0,0,4839, 4840,3,980,490,0,4840,4841,5,340,0,0,4841,4842,3,986,493,0,4842, 4850,1,0,0,0,4843,4850,3,974,487,0,4844,4850,3,976,488,0,4845,4850, 3,980,490,0,4846,4850,3,982,491,0,4847,4850,3,984,492,0,4848,4850, 3,986,493,0,4849,4835,1,0,0,0,4849,4839,1,0,0,0,4849,4843,1,0,0, 0,4849,4844,1,0,0,0,4849,4845,1,0,0,0,4849,4846,1,0,0,0,4849,4847, 1,0,0,0,4849,4848,1,0,0,0,4850,825,1,0,0,0,4851,4852,3,902,451,0, 4852,827,1,0,0,0,4853,4865,3,802,401,0,4854,4865,3,822,411,0,4855, 4865,3,788,394,0,4856,4865,3,798,399,0,4857,4865,3,794,397,0,4858, 4865,3,790,395,0,4859,4865,3,792,396,0,4860,4865,3,864,432,0,4861, 4865,3,774,387,0,4862,4865,3,744,372,0,4863,4865,3,924,462,0,4864, 4853,1,0,0,0,4864,4854,1,0,0,0,4864,4855,1,0,0,0,4864,4856,1,0,0, 0,4864,4857,1,0,0,0,4864,4858,1,0,0,0,4864,4859,1,0,0,0,4864,4860, 1,0,0,0,4864,4861,1,0,0,0,4864,4862,1,0,0,0,4864,4863,1,0,0,0,4865, 829,1,0,0,0,4866,4875,3,828,414,0,4867,4868,5,400,0,0,4868,4869, 3,826,413,0,4869,4870,5,401,0,0,4870,4874,1,0,0,0,4871,4872,5,394, 0,0,4872,4874,3,924,462,0,4873,4867,1,0,0,0,4873,4871,1,0,0,0,4874, 4877,1,0,0,0,4875,4873,1,0,0,0,4875,4876,1,0,0,0,4876,831,1,0,0, 0,4877,4875,1,0,0,0,4878,4879,7,31,0,0,4879,833,1,0,0,0,4880,4882, 3,832,416,0,4881,4880,1,0,0,0,4882,4885,1,0,0,0,4883,4881,1,0,0, 0,4883,4884,1,0,0,0,4884,4886,1,0,0,0,4885,4883,1,0,0,0,4886,4887, 3,830,415,0,4887,835,1,0,0,0,4888,4889,5,422,0,0,4889,837,1,0,0, 0,4890,4896,3,834,417,0,4891,4892,3,836,418,0,4892,4893,3,834,417, 0,4893,4895,1,0,0,0,4894,4891,1,0,0,0,4895,4898,1,0,0,0,4896,4894, 1,0,0,0,4896,4897,1,0,0,0,4897,839,1,0,0,0,4898,4896,1,0,0,0,4899, 4900,7,32,0,0,4900,841,1,0,0,0,4901,4907,3,838,419,0,4902,4903,3, 840,420,0,4903,4904,3,838,419,0,4904,4906,1,0,0,0,4905,4902,1,0, 0,0,4906,4909,1,0,0,0,4907,4905,1,0,0,0,4907,4908,1,0,0,0,4908,843, 1,0,0,0,4909,4907,1,0,0,0,4910,4911,7,33,0,0,4911,845,1,0,0,0,4912, 4918,3,842,421,0,4913,4914,3,844,422,0,4914,4915,3,842,421,0,4915, 4917,1,0,0,0,4916,4913,1,0,0,0,4917,4920,1,0,0,0,4918,4916,1,0,0, 0,4918,4919,1,0,0,0,4919,847,1,0,0,0,4920,4918,1,0,0,0,4921,4922, 5,421,0,0,4922,849,1,0,0,0,4923,4929,3,846,423,0,4924,4925,3,848, 424,0,4925,4926,3,846,423,0,4926,4928,1,0,0,0,4927,4924,1,0,0,0, 4928,4931,1,0,0,0,4929,4927,1,0,0,0,4929,4930,1,0,0,0,4930,851,1, 0,0,0,4931,4929,1,0,0,0,4932,4933,5,418,0,0,4933,853,1,0,0,0,4934, 4940,3,850,425,0,4935,4936,3,852,426,0,4936,4937,3,850,425,0,4937, 4939,1,0,0,0,4938,4935,1,0,0,0,4939,4942,1,0,0,0,4940,4938,1,0,0, 0,4940,4941,1,0,0,0,4941,855,1,0,0,0,4942,4940,1,0,0,0,4943,4944, 5,420,0,0,4944,857,1,0,0,0,4945,4951,3,854,427,0,4946,4947,3,856, 428,0,4947,4948,3,854,427,0,4948,4950,1,0,0,0,4949,4946,1,0,0,0, 4950,4953,1,0,0,0,4951,4949,1,0,0,0,4951,4952,1,0,0,0,4952,859,1, 0,0,0,4953,4951,1,0,0,0,4954,4955,7,34,0,0,4955,861,1,0,0,0,4956, 4962,3,860,430,0,4957,4962,5,407,0,0,4958,4962,5,408,0,0,4959,4962, 5,409,0,0,4960,4962,5,410,0,0,4961,4956,1,0,0,0,4961,4957,1,0,0, 0,4961,4958,1,0,0,0,4961,4959,1,0,0,0,4961,4960,1,0,0,0,4962,863, 1,0,0,0,4963,4964,5,398,0,0,4964,4965,3,408,204,0,4965,4966,5,399, 0,0,4966,865,1,0,0,0,4967,4971,3,868,434,0,4968,4969,5,117,0,0,4969, 4971,3,864,432,0,4970,4967,1,0,0,0,4970,4968,1,0,0,0,4971,867,1, 0,0,0,4972,4974,3,858,429,0,4973,4975,3,870,435,0,4974,4973,1,0, 0,0,4974,4975,1,0,0,0,4975,869,1,0,0,0,4976,4977,3,862,431,0,4977, 4978,3,858,429,0,4978,4983,1,0,0,0,4979,4983,3,872,436,0,4980,4981, 5,215,0,0,4981,4983,3,880,440,0,4982,4976,1,0,0,0,4982,4979,1,0, 0,0,4982,4980,1,0,0,0,4983,871,1,0,0,0,4984,4985,5,154,0,0,4985, 4996,3,878,439,0,4986,4987,5,25,0,0,4987,4988,3,858,429,0,4988,4989, 5,11,0,0,4989,4990,3,858,429,0,4990,4996,1,0,0,0,4991,4992,5,183, 0,0,4992,4993,7,35,0,0,4993,4996,3,744,372,0,4994,4996,3,874,437, 0,4995,4984,1,0,0,0,4995,4986,1,0,0,0,4995,4991,1,0,0,0,4995,4994, 1,0,0,0,4996,873,1,0,0,0,4997,4998,3,920,460,0,4998,4999,3,876,438, 0,4999,5000,3,864,432,0,5000,875,1,0,0,0,5001,5002,7,36,0,0,5002, 877,1,0,0,0,5003,5006,3,864,432,0,5004,5006,3,744,372,0,5005,5003, 1,0,0,0,5005,5004,1,0,0,0,5006,879,1,0,0,0,5007,5008,3,860,430,0, 5008,5009,3,858,429,0,5009,5012,1,0,0,0,5010,5012,3,872,436,0,5011, 5007,1,0,0,0,5011,5010,1,0,0,0,5012,881,1,0,0,0,5013,5014,5,167, 0,0,5014,5015,5,96,0,0,5015,5016,5,139,0,0,5016,883,1,0,0,0,5017, 5025,5,404,0,0,5018,5025,5,405,0,0,5019,5025,5,406,0,0,5020,5021, 5,167,0,0,5021,5022,5,215,0,0,5022,5023,5,96,0,0,5023,5025,5,139, 0,0,5024,5017,1,0,0,0,5024,5018,1,0,0,0,5024,5019,1,0,0,0,5024,5020, 1,0,0,0,5025,885,1,0,0,0,5026,5035,3,866,433,0,5027,5028,3,884,442, 0,5028,5029,3,866,433,0,5029,5034,1,0,0,0,5030,5031,3,882,441,0, 5031,5032,3,866,433,0,5032,5034,1,0,0,0,5033,5027,1,0,0,0,5033,5030, 1,0,0,0,5034,5037,1,0,0,0,5035,5033,1,0,0,0,5035,5036,1,0,0,0,5036, 887,1,0,0,0,5037,5035,1,0,0,0,5038,5051,5,218,0,0,5039,5051,5,349, 0,0,5040,5051,5,125,0,0,5041,5051,5,359,0,0,5042,5043,5,215,0,0, 5043,5051,5,218,0,0,5044,5045,5,215,0,0,5045,5051,5,349,0,0,5046, 5047,5,215,0,0,5047,5051,5,125,0,0,5048,5049,5,215,0,0,5049,5051, 5,359,0,0,5050,5038,1,0,0,0,5050,5039,1,0,0,0,5050,5040,1,0,0,0, 5050,5041,1,0,0,0,5050,5042,1,0,0,0,5050,5044,1,0,0,0,5050,5046, 1,0,0,0,5050,5048,1,0,0,0,5051,889,1,0,0,0,5052,5055,3,886,443,0, 5053,5054,5,167,0,0,5054,5056,3,888,444,0,5055,5053,1,0,0,0,5055, 5056,1,0,0,0,5056,891,1,0,0,0,5057,5058,5,215,0,0,5058,893,1,0,0, 0,5059,5061,3,892,446,0,5060,5059,1,0,0,0,5061,5064,1,0,0,0,5062, 5060,1,0,0,0,5062,5063,1,0,0,0,5063,5065,1,0,0,0,5064,5062,1,0,0, 0,5065,5066,3,890,445,0,5066,895,1,0,0,0,5067,5068,5,11,0,0,5068, 897,1,0,0,0,5069,5075,3,894,447,0,5070,5071,3,896,448,0,5071,5072, 3,894,447,0,5072,5074,1,0,0,0,5073,5070,1,0,0,0,5074,5077,1,0,0, 0,5075,5073,1,0,0,0,5075,5076,1,0,0,0,5076,899,1,0,0,0,5077,5075, 1,0,0,0,5078,5079,5,227,0,0,5079,901,1,0,0,0,5080,5086,3,898,449, 0,5081,5082,3,900,450,0,5082,5083,3,898,449,0,5083,5085,1,0,0,0, 5084,5081,1,0,0,0,5085,5088,1,0,0,0,5086,5084,1,0,0,0,5086,5087, 1,0,0,0,5087,903,1,0,0,0,5088,5086,1,0,0,0,5089,5090,7,37,0,0,5090, 905,1,0,0,0,5091,5092,7,37,0,0,5092,907,1,0,0,0,5093,5095,3,658, 329,0,5094,5096,3,910,455,0,5095,5094,1,0,0,0,5095,5096,1,0,0,0, 5096,909,1,0,0,0,5097,5098,5,236,0,0,5098,5099,5,398,0,0,5099,5104, 3,912,456,0,5100,5101,5,396,0,0,5101,5103,3,912,456,0,5102,5100, 1,0,0,0,5103,5106,1,0,0,0,5104,5102,1,0,0,0,5104,5105,1,0,0,0,5105, 5107,1,0,0,0,5106,5104,1,0,0,0,5107,5108,5,399,0,0,5108,911,1,0, 0,0,5109,5112,3,924,462,0,5110,5111,5,404,0,0,5111,5113,3,802,401, 0,5112,5110,1,0,0,0,5112,5113,1,0,0,0,5113,913,1,0,0,0,5114,5115, 5,398,0,0,5115,5120,3,916,458,0,5116,5117,5,396,0,0,5117,5119,3, 916,458,0,5118,5116,1,0,0,0,5119,5122,1,0,0,0,5120,5118,1,0,0,0, 5120,5121,1,0,0,0,5121,5123,1,0,0,0,5122,5120,1,0,0,0,5123,5124, 5,399,0,0,5124,915,1,0,0,0,5125,5126,3,924,462,0,5126,5127,3,918, 459,0,5127,5128,3,802,401,0,5128,917,1,0,0,0,5129,5132,5,183,0,0, 5130,5132,3,920,460,0,5131,5129,1,0,0,0,5131,5130,1,0,0,0,5132,919, 1,0,0,0,5133,5134,7,38,0,0,5134,921,1,0,0,0,5135,5136,7,39,0,0,5136, 923,1,0,0,0,5137,5140,5,431,0,0,5138,5140,3,930,465,0,5139,5137, 1,0,0,0,5139,5138,1,0,0,0,5140,925,1,0,0,0,5141,5144,3,924,462,0, 5142,5143,5,394,0,0,5143,5145,3,924,462,0,5144,5142,1,0,0,0,5144, 5145,1,0,0,0,5145,927,1,0,0,0,5146,5147,3,924,462,0,5147,929,1,0, 0,0,5148,5149,7,40,0,0,5149,931,1,0,0,0,5150,5151,7,41,0,0,5151, 933,1,0,0,0,5152,5153,3,936,468,0,5153,5154,5,0,0,1,5154,935,1,0, 0,0,5155,5160,3,938,469,0,5156,5157,5,396,0,0,5157,5159,3,938,469, 0,5158,5156,1,0,0,0,5159,5162,1,0,0,0,5160,5158,1,0,0,0,5160,5161, 1,0,0,0,5161,937,1,0,0,0,5162,5160,1,0,0,0,5163,5168,3,940,470,0, 5164,5165,5,398,0,0,5165,5166,3,942,471,0,5166,5167,5,399,0,0,5167, 5169,1,0,0,0,5168,5164,1,0,0,0,5168,5169,1,0,0,0,5169,939,1,0,0, 0,5170,5171,7,42,0,0,5171,941,1,0,0,0,5172,5177,3,944,472,0,5173, 5174,5,396,0,0,5174,5176,3,944,472,0,5175,5173,1,0,0,0,5176,5179, 1,0,0,0,5177,5175,1,0,0,0,5177,5178,1,0,0,0,5178,943,1,0,0,0,5179, 5177,1,0,0,0,5180,5181,7,43,0,0,5181,945,1,0,0,0,5182,5183,5,248, 0,0,5183,5184,3,924,462,0,5184,5185,5,139,0,0,5185,5186,3,392,196, 0,5186,947,1,0,0,0,5187,5188,5,115,0,0,5188,5189,3,924,462,0,5189, 5190,5,369,0,0,5190,5191,3,950,475,0,5191,949,1,0,0,0,5192,5197, 3,802,401,0,5193,5194,5,396,0,0,5194,5196,3,802,401,0,5195,5193, 1,0,0,0,5196,5199,1,0,0,0,5197,5195,1,0,0,0,5197,5198,1,0,0,0,5198, 951,1,0,0,0,5199,5197,1,0,0,0,5200,5215,3,962,481,0,5201,5215,3, 990,495,0,5202,5215,3,996,498,0,5203,5215,3,992,496,0,5204,5215, 3,994,497,0,5205,5215,3,1018,509,0,5206,5215,3,1020,510,0,5207,5215, 3,1022,511,0,5208,5215,3,1028,514,0,5209,5215,3,1030,515,0,5210, 5215,3,1032,516,0,5211,5215,3,1034,517,0,5212,5215,3,1036,518,0, 5213,5215,3,1038,519,0,5214,5200,1,0,0,0,5214,5201,1,0,0,0,5214, 5202,1,0,0,0,5214,5203,1,0,0,0,5214,5204,1,0,0,0,5214,5205,1,0,0, 0,5214,5206,1,0,0,0,5214,5207,1,0,0,0,5214,5208,1,0,0,0,5214,5209, 1,0,0,0,5214,5210,1,0,0,0,5214,5211,1,0,0,0,5214,5212,1,0,0,0,5214, 5213,1,0,0,0,5215,953,1,0,0,0,5216,5217,5,258,0,0,5217,5218,5,404, 0,0,5218,5224,5,430,0,0,5219,5220,5,83,0,0,5220,5221,5,245,0,0,5221, 5222,5,404,0,0,5222,5224,3,998,499,0,5223,5216,1,0,0,0,5223,5219, 1,0,0,0,5224,955,1,0,0,0,5225,5230,3,954,477,0,5226,5227,5,396,0, 0,5227,5229,3,954,477,0,5228,5226,1,0,0,0,5229,5232,1,0,0,0,5230, 5228,1,0,0,0,5230,5231,1,0,0,0,5231,957,1,0,0,0,5232,5230,1,0,0, 0,5233,5237,5,258,0,0,5234,5235,5,83,0,0,5235,5237,5,245,0,0,5236, 5233,1,0,0,0,5236,5234,1,0,0,0,5237,959,1,0,0,0,5238,5243,3,958, 479,0,5239,5240,5,396,0,0,5240,5242,3,958,479,0,5241,5239,1,0,0, 0,5242,5245,1,0,0,0,5243,5241,1,0,0,0,5243,5244,1,0,0,0,5244,961, 1,0,0,0,5245,5243,1,0,0,0,5246,5247,5,58,0,0,5247,5248,5,279,0,0, 5248,5250,5,242,0,0,5249,5251,3,44,22,0,5250,5249,1,0,0,0,5250,5251, 1,0,0,0,5251,5261,1,0,0,0,5252,5253,3,924,462,0,5253,5254,5,183, 0,0,5254,5255,3,924,462,0,5255,5262,1,0,0,0,5256,5259,3,924,462, 0,5257,5258,5,386,0,0,5258,5260,3,956,478,0,5259,5257,1,0,0,0,5259, 5260,1,0,0,0,5260,5262,1,0,0,0,5261,5252,1,0,0,0,5261,5256,1,0,0, 0,5262,963,1,0,0,0,5263,5264,5,386,0,0,5264,5265,5,277,0,0,5265, 965,1,0,0,0,5266,5268,5,2,0,0,5267,5269,3,964,482,0,5268,5267,1, 0,0,0,5268,5269,1,0,0,0,5269,967,1,0,0,0,5270,5271,7,44,0,0,5271, 969,1,0,0,0,5272,5273,7,45,0,0,5273,971,1,0,0,0,5274,5275,5,361, 0,0,5275,973,1,0,0,0,5276,5277,7,46,0,0,5277,975,1,0,0,0,5278,5279, 7,47,0,0,5279,977,1,0,0,0,5280,5281,7,48,0,0,5281,979,1,0,0,0,5282, 5283,7,49,0,0,5283,981,1,0,0,0,5284,5285,7,50,0,0,5285,983,1,0,0, 0,5286,5287,7,51,0,0,5287,985,1,0,0,0,5288,5289,7,52,0,0,5289,987, 1,0,0,0,5290,5291,7,53,0,0,5291,989,1,0,0,0,5292,5293,5,9,0,0,5293, 5294,5,279,0,0,5294,5295,5,242,0,0,5295,5313,3,924,462,0,5296,5314, 5,372,0,0,5297,5314,3,970,485,0,5298,5299,5,303,0,0,5299,5314,3, 956,478,0,5300,5301,5,362,0,0,5301,5314,3,960,480,0,5302,5303,5, 273,0,0,5303,5304,5,340,0,0,5304,5314,3,924,462,0,5305,5307,3,966, 483,0,5306,5308,3,968,484,0,5307,5306,1,0,0,0,5307,5308,1,0,0,0, 5308,5314,1,0,0,0,5309,5311,3,968,484,0,5310,5312,3,966,483,0,5311, 5310,1,0,0,0,5311,5312,1,0,0,0,5312,5314,1,0,0,0,5313,5296,1,0,0, 0,5313,5297,1,0,0,0,5313,5298,1,0,0,0,5313,5300,1,0,0,0,5313,5302, 1,0,0,0,5313,5305,1,0,0,0,5313,5309,1,0,0,0,5314,991,1,0,0,0,5315, 5318,3,968,484,0,5316,5318,3,970,485,0,5317,5315,1,0,0,0,5317,5316, 1,0,0,0,5318,5319,1,0,0,0,5319,5320,5,389,0,0,5320,5321,5,196,0, 0,5321,993,1,0,0,0,5322,5334,5,277,0,0,5323,5324,5,3,0,0,5324,5325, 5,279,0,0,5325,5326,5,242,0,0,5326,5327,5,386,0,0,5327,5335,3,924, 462,0,5328,5329,5,279,0,0,5329,5330,5,242,0,0,5330,5331,3,924,462, 0,5331,5332,5,386,0,0,5332,5333,3,924,462,0,5333,5335,1,0,0,0,5334, 5323,1,0,0,0,5334,5328,1,0,0,0,5335,995,1,0,0,0,5336,5337,5,101, 0,0,5337,5338,5,279,0,0,5338,5340,5,242,0,0,5339,5341,3,40,20,0, 5340,5339,1,0,0,0,5340,5341,1,0,0,0,5341,5342,1,0,0,0,5342,5343, 3,924,462,0,5343,997,1,0,0,0,5344,5349,3,924,462,0,5345,5346,5,394, 0,0,5346,5348,3,924,462,0,5347,5345,1,0,0,0,5348,5351,1,0,0,0,5349, 5347,1,0,0,0,5349,5350,1,0,0,0,5350,999,1,0,0,0,5351,5349,1,0,0, 0,5352,5353,3,1008,504,0,5353,1001,1,0,0,0,5354,5355,3,1000,500, 0,5355,5356,5,0,0,1,5356,1003,1,0,0,0,5357,5362,3,1006,503,0,5358, 5359,5,227,0,0,5359,5361,3,1006,503,0,5360,5358,1,0,0,0,5361,5364, 1,0,0,0,5362,5360,1,0,0,0,5362,5363,1,0,0,0,5363,1005,1,0,0,0,5364, 5362,1,0,0,0,5365,5370,3,1008,504,0,5366,5367,5,11,0,0,5367,5369, 3,1008,504,0,5368,5366,1,0,0,0,5369,5372,1,0,0,0,5370,5368,1,0,0, 0,5370,5371,1,0,0,0,5371,1007,1,0,0,0,5372,5370,1,0,0,0,5373,5374, 3,924,462,0,5374,5375,3,1012,506,0,5375,5376,3,1010,505,0,5376,1009, 1,0,0,0,5377,5378,7,24,0,0,5378,1011,1,0,0,0,5379,5380,5,410,0,0, 5380,1013,1,0,0,0,5381,5386,5,176,0,0,5382,5383,5,210,0,0,5383,5384, 5,340,0,0,5384,5386,3,998,499,0,5385,5381,1,0,0,0,5385,5382,1,0, 0,0,5386,1015,1,0,0,0,5387,5388,3,1014,507,0,5388,5389,5,0,0,1,5389, 1017,1,0,0,0,5390,5391,5,58,0,0,5391,5392,5,347,0,0,5392,5393,3, 924,462,0,5393,5394,5,394,0,0,5394,5395,3,924,462,0,5395,5396,5, 382,0,0,5396,5397,3,1000,500,0,5397,5398,5,99,0,0,5398,5399,3,1014, 507,0,5399,1019,1,0,0,0,5400,5401,5,9,0,0,5401,5402,5,347,0,0,5402, 5403,3,924,462,0,5403,5404,5,394,0,0,5404,5421,3,924,462,0,5405, 5406,5,382,0,0,5406,5407,3,1000,500,0,5407,5408,5,99,0,0,5408,5409, 3,1014,507,0,5409,5422,1,0,0,0,5410,5411,5,4,0,0,5411,5415,5,340, 0,0,5412,5413,5,101,0,0,5413,5415,5,139,0,0,5414,5410,1,0,0,0,5414, 5412,1,0,0,0,5415,5419,1,0,0,0,5416,5417,5,245,0,0,5417,5420,3,998, 499,0,5418,5420,5,361,0,0,5419,5416,1,0,0,0,5419,5418,1,0,0,0,5420, 5422,1,0,0,0,5421,5405,1,0,0,0,5421,5414,1,0,0,0,5422,1021,1,0,0, 0,5423,5424,5,101,0,0,5424,5425,5,347,0,0,5425,5426,3,924,462,0, 5426,5427,5,394,0,0,5427,5428,3,924,462,0,5428,1023,1,0,0,0,5429, 5430,5,8,0,0,5430,5431,5,404,0,0,5431,5442,5,430,0,0,5432,5433,5, 258,0,0,5433,5434,5,404,0,0,5434,5442,5,430,0,0,5435,5436,5,293, 0,0,5436,5437,5,404,0,0,5437,5442,5,425,0,0,5438,5439,5,239,0,0, 5439,5440,5,404,0,0,5440,5442,3,998,499,0,5441,5429,1,0,0,0,5441, 5432,1,0,0,0,5441,5435,1,0,0,0,5441,5438,1,0,0,0,5442,1025,1,0,0, 0,5443,5448,3,1024,512,0,5444,5445,5,396,0,0,5445,5447,3,1024,512, 0,5446,5444,1,0,0,0,5447,5450,1,0,0,0,5448,5446,1,0,0,0,5448,5449, 1,0,0,0,5449,1027,1,0,0,0,5450,5448,1,0,0,0,5451,5452,5,58,0,0,5452, 5453,5,245,0,0,5453,5454,3,924,462,0,5454,5455,5,394,0,0,5455,5456, 3,998,499,0,5456,5457,5,386,0,0,5457,5458,3,1026,513,0,5458,1029, 1,0,0,0,5459,5460,5,9,0,0,5460,5461,5,245,0,0,5461,5462,3,924,462, 0,5462,5463,5,394,0,0,5463,5471,3,998,499,0,5464,5465,5,303,0,0, 5465,5472,3,1026,513,0,5466,5467,5,362,0,0,5467,5472,5,293,0,0,5468, 5469,7,54,0,0,5469,5470,5,347,0,0,5470,5472,3,924,462,0,5471,5464, 1,0,0,0,5471,5466,1,0,0,0,5471,5468,1,0,0,0,5472,1031,1,0,0,0,5473, 5474,5,101,0,0,5474,5475,5,245,0,0,5475,5476,3,924,462,0,5476,5477, 5,394,0,0,5477,5478,3,998,499,0,5478,1033,1,0,0,0,5479,5480,5,58, 0,0,5480,5481,7,55,0,0,5481,5482,5,199,0,0,5482,5483,5,425,0,0,5483, 5484,5,154,0,0,5484,5488,3,924,462,0,5485,5486,5,340,0,0,5486,5489, 3,998,499,0,5487,5489,3,972,486,0,5488,5485,1,0,0,0,5488,5487,1, 0,0,0,5489,5493,1,0,0,0,5490,5491,5,386,0,0,5491,5492,5,228,0,0, 5492,5494,5,430,0,0,5493,5490,1,0,0,0,5493,5494,1,0,0,0,5494,1035, 1,0,0,0,5495,5496,5,9,0,0,5496,5497,7,55,0,0,5497,5498,5,199,0,0, 5498,5499,5,425,0,0,5499,5500,5,154,0,0,5500,5504,3,924,462,0,5501, 5502,5,340,0,0,5502,5505,3,998,499,0,5503,5505,3,972,486,0,5504, 5501,1,0,0,0,5504,5503,1,0,0,0,5505,5509,1,0,0,0,5506,5507,5,386, 0,0,5507,5508,5,228,0,0,5508,5510,5,430,0,0,5509,5506,1,0,0,0,5509, 5510,1,0,0,0,5510,1037,1,0,0,0,5511,5512,5,101,0,0,5512,5513,7,55, 0,0,5513,5514,5,199,0,0,5514,5515,5,425,0,0,5515,5516,5,154,0,0, 5516,5517,3,924,462,0,5517,1039,1,0,0,0,649,1043,1050,1053,1059, 1065,1072,1082,1085,1089,1109,1114,1119,1125,1132,1145,1149,1153, 1158,1165,1169,1174,1181,1185,1196,1202,1209,1258,1286,1290,1294, 1297,1300,1305,1311,1315,1321,1323,1340,1352,1356,1363,1371,1374, 1379,1383,1386,1396,1404,1408,1411,1415,1419,1422,1427,1433,1438, 1443,1447,1458,1460,1464,1474,1478,1484,1487,1494,1499,1507,1512, 1516,1524,1529,1535,1541,1544,1547,1550,1559,1567,1572,1580,1587, 1590,1593,1595,1603,1606,1609,1612,1615,1618,1621,1624,1627,1630, 1633,1635,1647,1653,1661,1663,1673,1679,1694,1711,1716,1720,1724, 1731,1738,1744,1748,1751,1758,1781,1786,1790,1798,1807,1811,1817, 1823,1830,1833,1839,1846,1854,1863,1872,1879,1899,1906,1908,1915, 1925,1933,1937,1941,1954,1963,1979,1983,1988,1993,1996,1999,2003, 2006,2009,2014,2022,2026,2033,2036,2039,2042,2054,2060,2086,2094, 2098,2101,2104,2107,2110,2113,2116,2119,2128,2138,2141,2161,2167, 2173,2176,2178,2185,2192,2202,2207,2216,2224,2232,2242,2255,2268, 2289,2293,2308,2314,2317,2320,2323,2326,2330,2344,2352,2355,2370, 2404,2412,2417,2425,2430,2435,2445,2453,2461,2469,2477,2481,2491, 2495,2503,2512,2515,2519,2526,2532,2536,2542,2546,2558,2567,2578, 2582,2589,2601,2608,2617,2620,2627,2633,2639,2642,2645,2651,2655, 2659,2664,2668,2672,2676,2684,2688,2692,2696,2700,2708,2712,2716, 2724,2729,2734,2738,2742,2749,2758,2766,2778,2796,2799,2805,2831, 2834,2840,2848,2856,2869,2876,2879,2882,2885,2888,2891,2894,2897, 2900,2903,2906,2911,2914,2917,2920,2923,2926,2929,2932,2935,2938, 2941,2943,2949,2953,2956,2959,2962,2965,2968,2975,2979,2982,2985, 2988,2991,2994,3001,3004,3012,3016,3023,3025,3028,3033,3036,3040, 3045,3051,3057,3065,3073,3080,3086,3095,3098,3102,3115,3119,3130, 3137,3141,3146,3149,3159,3161,3165,3172,3177,3197,3204,3227,3243, 3260,3266,3283,3296,3300,3304,3311,3339,3346,3351,3356,3361,3366, 3374,3380,3384,3387,3390,3396,3403,3413,3417,3422,3426,3432,3439, 3446,3457,3466,3470,3473,3476,3484,3487,3495,3498,3506,3510,3515, 3519,3528,3544,3559,3561,3577,3584,3601,3604,3607,3610,3616,3639, 3647,3661,3664,3669,3695,3699,3702,3705,3709,3714,3717,3720,3723, 3726,3732,3735,3738,3741,3744,3747,3750,3753,3756,3760,3762,3768, 3773,3776,3779,3782,3788,3791,3794,3797,3800,3803,3806,3809,3812, 3816,3818,3820,3825,3829,3832,3835,3840,3858,3867,3879,3887,3899, 3902,3908,3915,3922,3929,3936,3945,3949,3956,3961,3965,3981,3985, 3987,3990,4003,4006,4009,4021,4024,4031,4040,4045,4047,4049,4066, 4069,4078,4084,4088,4091,4094,4097,4100,4112,4116,4119,4122,4130, 4137,4140,4147,4150,4155,4162,4170,4176,4181,4185,4190,4197,4211, 4214,4218,4235,4243,4246,4259,4268,4271,4277,4280,4285,4288,4297, 4311,4317,4319,4327,4330,4340,4345,4347,4359,4365,4367,4374,4381, 4390,4400,4403,4406,4409,4413,4422,4431,4439,4445,4455,4462,4470, 4480,4490,4495,4499,4503,4509,4530,4536,4540,4544,4547,4553,4558, 4561,4565,4573,4583,4593,4612,4619,4622,4633,4640,4643,4645,4656, 4666,4668,4674,4680,4684,4690,4699,4712,4716,4728,4732,4741,4753, 4770,4785,4795,4803,4808,4829,4833,4849,4864,4873,4875,4883,4896, 4907,4918,4929,4940,4951,4961,4970,4974,4982,4995,5005,5011,5024, 5033,5035,5050,5055,5062,5075,5086,5095,5104,5112,5120,5131,5139, 5144,5160,5168,5177,5197,5214,5223,5230,5236,5243,5250,5259,5261, 5268,5307,5311,5313,5317,5334,5340,5349,5362,5370,5385,5414,5419, 5421,5441,5448,5471,5488,5493,5504,5509 ]; private static __ATN: antlr.ATN; public static get _ATN(): antlr.ATN { if (!HiveSqlParser.__ATN) { HiveSqlParser.__ATN = new antlr.ATNDeserializer().deserialize(HiveSqlParser._serializedATN); } return HiveSqlParser.__ATN; } private static readonly vocabulary = new antlr.Vocabulary(HiveSqlParser.literalNames, HiveSqlParser.symbolicNames, []); public override get vocabulary(): antlr.Vocabulary { return HiveSqlParser.vocabulary; } private static readonly decisionsToDFA = HiveSqlParser._ATN.decisionToState.map( (ds: antlr.DecisionState, index: number) => new antlr.DFA(ds, index) ); } export class ProgramContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public EOF(): antlr.TerminalNode { return this.getToken(HiveSqlParser.EOF, 0)!; } public statement(): StatementContext[]; public statement(i: number): StatementContext | null; public statement(i?: number): StatementContext[] | StatementContext | null { if (i === undefined) { return this.getRuleContexts(StatementContext); } return this.getRuleContext(i, StatementContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_program; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterProgram) { listener.enterProgram(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitProgram) { listener.exitProgram(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitProgram) { return visitor.visitProgram(this); } else { return visitor.visitChildren(this); } } } export class StatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public explainStatement(): ExplainStatementContext | null { return this.getRuleContext(0, ExplainStatementContext); } public execStatement(): ExecStatementContext | null { return this.getRuleContext(0, ExecStatementContext); } public SEMICOLON(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.SEMICOLON, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_statement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterStatement) { listener.enterStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitStatement) { listener.exitStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitStatement) { return visitor.visitStatement(this); } else { return visitor.visitChildren(this); } } } export class ExplainStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_EXPLAIN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_EXPLAIN, 0)!; } public execStatement(): ExecStatementContext | null { return this.getRuleContext(0, ExecStatementContext); } public KW_REWRITE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REWRITE, 0); } public queryStatementExpression(): QueryStatementExpressionContext | null { return this.getRuleContext(0, QueryStatementExpressionContext); } public explainOption(): ExplainOptionContext[]; public explainOption(i: number): ExplainOptionContext | null; public explainOption(i?: number): ExplainOptionContext[] | ExplainOptionContext | null { if (i === undefined) { return this.getRuleContexts(ExplainOptionContext); } return this.getRuleContext(i, ExplainOptionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_explainStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExplainStatement) { listener.enterExplainStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExplainStatement) { listener.exitExplainStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExplainStatement) { return visitor.visitExplainStatement(this); } else { return visitor.visitChildren(this); } } } export class ExplainOptionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_EXTENDED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXTENDED, 0); } public KW_FORMATTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FORMATTED, 0); } public KW_DEPENDENCY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEPENDENCY, 0); } public KW_CBO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CBO, 0); } public KW_COST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COST, 0); } public KW_JOINCOST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_JOINCOST, 0); } public KW_LOGICAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOGICAL, 0); } public KW_AUTHORIZATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AUTHORIZATION, 0); } public KW_ANALYZE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ANALYZE, 0); } public KW_REOPTIMIZATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REOPTIMIZATION, 0); } public KW_LOCKS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCKS, 0); } public KW_AST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AST, 0); } public KW_VECTORIZATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VECTORIZATION, 0); } public vectorizationOnly(): VectorizationOnlyContext | null { return this.getRuleContext(0, VectorizationOnlyContext); } public vectorizatonDetail(): VectorizatonDetailContext | null { return this.getRuleContext(0, VectorizatonDetailContext); } public KW_DEBUG(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEBUG, 0); } public KW_DDL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DDL, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_explainOption; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExplainOption) { listener.enterExplainOption(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExplainOption) { listener.exitExplainOption(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExplainOption) { return visitor.visitExplainOption(this); } else { return visitor.visitChildren(this); } } } export class VectorizationOnlyContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ONLY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ONLY, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_vectorizationOnly; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterVectorizationOnly) { listener.enterVectorizationOnly(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitVectorizationOnly) { listener.exitVectorizationOnly(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitVectorizationOnly) { return visitor.visitVectorizationOnly(this); } else { return visitor.visitChildren(this); } } } export class VectorizatonDetailContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SUMMARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SUMMARY, 0); } public KW_OPERATOR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OPERATOR, 0); } public KW_EXPRESSION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXPRESSION, 0); } public KW_DETAIL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DETAIL, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_vectorizatonDetail; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterVectorizatonDetail) { listener.enterVectorizatonDetail(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitVectorizatonDetail) { listener.exitVectorizatonDetail(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitVectorizatonDetail) { return visitor.visitVectorizatonDetail(this); } else { return visitor.visitChildren(this); } } } export class ExecStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public queryStatementExpression(): QueryStatementExpressionContext | null { return this.getRuleContext(0, QueryStatementExpressionContext); } public loadStatement(): LoadStatementContext | null { return this.getRuleContext(0, LoadStatementContext); } public exportStatement(): ExportStatementContext | null { return this.getRuleContext(0, ExportStatementContext); } public importStatement(): ImportStatementContext | null { return this.getRuleContext(0, ImportStatementContext); } public replDumpStatement(): ReplDumpStatementContext | null { return this.getRuleContext(0, ReplDumpStatementContext); } public replLoadStatement(): ReplLoadStatementContext | null { return this.getRuleContext(0, ReplLoadStatementContext); } public replStatusStatement(): ReplStatusStatementContext | null { return this.getRuleContext(0, ReplStatusStatementContext); } public ddlStatement(): DdlStatementContext | null { return this.getRuleContext(0, DdlStatementContext); } public deleteStatement(): DeleteStatementContext | null { return this.getRuleContext(0, DeleteStatementContext); } public updateStatement(): UpdateStatementContext | null { return this.getRuleContext(0, UpdateStatementContext); } public sqlTransactionStatement(): SqlTransactionStatementContext | null { return this.getRuleContext(0, SqlTransactionStatementContext); } public mergeStatement(): MergeStatementContext | null { return this.getRuleContext(0, MergeStatementContext); } public prepareStatement(): PrepareStatementContext | null { return this.getRuleContext(0, PrepareStatementContext); } public executeStatement(): ExecuteStatementContext | null { return this.getRuleContext(0, ExecuteStatementContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_execStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExecStatement) { listener.enterExecStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExecStatement) { listener.exitExecStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExecStatement) { return visitor.visitExecStatement(this); } else { return visitor.visitChildren(this); } } } export class LoadStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LOAD(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LOAD, 0)!; } public KW_DATA(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DATA, 0)!; } public KW_INPATH(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INPATH, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public KW_INTO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INTO, 0)!; } public KW_TABLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLE, 0)!; } public tableOrPartition(): TableOrPartitionContext { return this.getRuleContext(0, TableOrPartitionContext)!; } public KW_LOCAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCAL, 0); } public KW_OVERWRITE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OVERWRITE, 0); } public inputFileFormat(): InputFileFormatContext | null { return this.getRuleContext(0, InputFileFormatContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_loadStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterLoadStatement) { listener.enterLoadStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitLoadStatement) { listener.exitLoadStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitLoadStatement) { return visitor.visitLoadStatement(this); } else { return visitor.visitChildren(this); } } } export class DropPartitionsIgnoreClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_IGNORE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_IGNORE, 0)!; } public KW_PROTECTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PROTECTION, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropPartitionsIgnoreClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropPartitionsIgnoreClause) { listener.enterDropPartitionsIgnoreClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropPartitionsIgnoreClause) { listener.exitDropPartitionsIgnoreClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropPartitionsIgnoreClause) { return visitor.visitDropPartitionsIgnoreClause(this); } else { return visitor.visitChildren(this); } } } export class ReplicationClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_FOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FOR, 0)!; } public KW_REPLICATION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REPLICATION, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public KW_METADATA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_METADATA, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_replicationClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReplicationClause) { listener.enterReplicationClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReplicationClause) { listener.exitReplicationClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReplicationClause) { return visitor.visitReplicationClause(this); } else { return visitor.visitChildren(this); } } } export class ExportStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_EXPORT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_EXPORT, 0)!; } public KW_TABLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLE, 0)!; } public tableOrPartition(): TableOrPartitionContext { return this.getRuleContext(0, TableOrPartitionContext)!; } public KW_TO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TO, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public replicationClause(): ReplicationClauseContext | null { return this.getRuleContext(0, ReplicationClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_exportStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExportStatement) { listener.enterExportStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExportStatement) { listener.exitExportStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExportStatement) { return visitor.visitExportStatement(this); } else { return visitor.visitChildren(this); } } } export class ImportStatementContext extends antlr.ParserRuleContext { public _path?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_IMPORT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_IMPORT, 0)!; } public KW_FROM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FROM, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public tableOrPartition(): TableOrPartitionContext | null { return this.getRuleContext(0, TableOrPartitionContext); } public tableLocation(): TableLocationContext | null { return this.getRuleContext(0, TableLocationContext); } public KW_EXTERNAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXTERNAL, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_importStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterImportStatement) { listener.enterImportStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitImportStatement) { listener.exitImportStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitImportStatement) { return visitor.visitImportStatement(this); } else { return visitor.visitChildren(this); } } } export class ReplDumpStatementContext extends antlr.ParserRuleContext { public _dbPolicy?: ReplDbPolicyContext; public _oldDbPolicy?: ReplDbPolicyContext; public _replConf?: ReplConfigsContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_REPL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REPL, 0)!; } public KW_DUMP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DUMP, 0)!; } public replDbPolicy(): ReplDbPolicyContext[]; public replDbPolicy(i: number): ReplDbPolicyContext | null; public replDbPolicy(i?: number): ReplDbPolicyContext[] | ReplDbPolicyContext | null { if (i === undefined) { return this.getRuleContexts(ReplDbPolicyContext); } return this.getRuleContext(i, ReplDbPolicyContext); } public KW_REPLACE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REPLACE, 0); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public replConfigs(): ReplConfigsContext | null { return this.getRuleContext(0, ReplConfigsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_replDumpStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReplDumpStatement) { listener.enterReplDumpStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReplDumpStatement) { listener.exitReplDumpStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReplDumpStatement) { return visitor.visitReplDumpStatement(this); } else { return visitor.visitChildren(this); } } } export class ReplDbPolicyContext extends antlr.ParserRuleContext { public _dbName?: DbSchemaNameContext; public _tablePolicy?: ReplTableLevelPolicyContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public DOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.DOT, 0); } public replTableLevelPolicy(): ReplTableLevelPolicyContext | null { return this.getRuleContext(0, ReplTableLevelPolicyContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_replDbPolicy; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReplDbPolicy) { listener.enterReplDbPolicy(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReplDbPolicy) { listener.exitReplDbPolicy(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReplDbPolicy) { return visitor.visitReplDbPolicy(this); } else { return visitor.visitChildren(this); } } } export class ReplLoadStatementContext extends antlr.ParserRuleContext { public _sourceDbPolicy?: ReplDbPolicyContext; public _dbName?: DbSchemaNameContext; public _replConf?: ReplConfigsContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_REPL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REPL, 0)!; } public KW_LOAD(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LOAD, 0)!; } public replDbPolicy(): ReplDbPolicyContext { return this.getRuleContext(0, ReplDbPolicyContext)!; } public KW_INTO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INTO, 0); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public dbSchemaName(): DbSchemaNameContext | null { return this.getRuleContext(0, DbSchemaNameContext); } public replConfigs(): ReplConfigsContext | null { return this.getRuleContext(0, ReplConfigsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_replLoadStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReplLoadStatement) { listener.enterReplLoadStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReplLoadStatement) { listener.exitReplLoadStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReplLoadStatement) { return visitor.visitReplLoadStatement(this); } else { return visitor.visitChildren(this); } } } export class ReplConfigsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public replConfigsList(): ReplConfigsListContext { return this.getRuleContext(0, ReplConfigsListContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_replConfigs; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReplConfigs) { listener.enterReplConfigs(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReplConfigs) { listener.exitReplConfigs(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReplConfigs) { return visitor.visitReplConfigs(this); } else { return visitor.visitChildren(this); } } } export class ReplConfigsListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public keyValueProperty(): KeyValuePropertyContext[]; public keyValueProperty(i: number): KeyValuePropertyContext | null; public keyValueProperty(i?: number): KeyValuePropertyContext[] | KeyValuePropertyContext | null { if (i === undefined) { return this.getRuleContexts(KeyValuePropertyContext); } return this.getRuleContext(i, KeyValuePropertyContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_replConfigsList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReplConfigsList) { listener.enterReplConfigsList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReplConfigsList) { listener.exitReplConfigsList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReplConfigsList) { return visitor.visitReplConfigsList(this); } else { return visitor.visitChildren(this); } } } export class ReplTableLevelPolicyContext extends antlr.ParserRuleContext { public _replTablesIncludeList?: Token | null; public _replTablesExcludeList?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public StringLiteral(): antlr.TerminalNode[]; public StringLiteral(i: number): antlr.TerminalNode | null; public StringLiteral(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.StringLiteral); } else { return this.getToken(HiveSqlParser.StringLiteral, i); } } public DOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.DOT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_replTableLevelPolicy; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReplTableLevelPolicy) { listener.enterReplTableLevelPolicy(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReplTableLevelPolicy) { listener.exitReplTableLevelPolicy(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReplTableLevelPolicy) { return visitor.visitReplTableLevelPolicy(this); } else { return visitor.visitChildren(this); } } } export class ReplStatusStatementContext extends antlr.ParserRuleContext { public _dbName?: DbSchemaNameContext; public _replConf?: ReplConfigsContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_REPL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REPL, 0)!; } public KW_STATUS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_STATUS, 0)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public replConfigs(): ReplConfigsContext | null { return this.getRuleContext(0, ReplConfigsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_replStatusStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReplStatusStatement) { listener.enterReplStatusStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReplStatusStatement) { listener.exitReplStatusStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReplStatusStatement) { return visitor.visitReplStatusStatement(this); } else { return visitor.visitChildren(this); } } } export class DdlStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public createDatabaseStatement(): CreateDatabaseStatementContext | null { return this.getRuleContext(0, CreateDatabaseStatementContext); } public switchDatabaseStatement(): SwitchDatabaseStatementContext | null { return this.getRuleContext(0, SwitchDatabaseStatementContext); } public dropDatabaseStatement(): DropDatabaseStatementContext | null { return this.getRuleContext(0, DropDatabaseStatementContext); } public createTableStatement(): CreateTableStatementContext | null { return this.getRuleContext(0, CreateTableStatementContext); } public dropTableStatement(): DropTableStatementContext | null { return this.getRuleContext(0, DropTableStatementContext); } public truncateTableStatement(): TruncateTableStatementContext | null { return this.getRuleContext(0, TruncateTableStatementContext); } public alterStatement(): AlterStatementContext | null { return this.getRuleContext(0, AlterStatementContext); } public descStatement(): DescStatementContext | null { return this.getRuleContext(0, DescStatementContext); } public showStatement(): ShowStatementContext | null { return this.getRuleContext(0, ShowStatementContext); } public metastoreCheck(): MetastoreCheckContext | null { return this.getRuleContext(0, MetastoreCheckContext); } public createViewStatement(): CreateViewStatementContext | null { return this.getRuleContext(0, CreateViewStatementContext); } public createMaterializedViewStatement(): CreateMaterializedViewStatementContext | null { return this.getRuleContext(0, CreateMaterializedViewStatementContext); } public createScheduledQueryStatement(): CreateScheduledQueryStatementContext | null { return this.getRuleContext(0, CreateScheduledQueryStatementContext); } public alterScheduledQueryStatement(): AlterScheduledQueryStatementContext | null { return this.getRuleContext(0, AlterScheduledQueryStatementContext); } public dropScheduledQueryStatement(): DropScheduledQueryStatementContext | null { return this.getRuleContext(0, DropScheduledQueryStatementContext); } public dropViewStatement(): DropViewStatementContext | null { return this.getRuleContext(0, DropViewStatementContext); } public dropMaterializedViewStatement(): DropMaterializedViewStatementContext | null { return this.getRuleContext(0, DropMaterializedViewStatementContext); } public createFunctionStatement(): CreateFunctionStatementContext | null { return this.getRuleContext(0, CreateFunctionStatementContext); } public createMacroStatement(): CreateMacroStatementContext | null { return this.getRuleContext(0, CreateMacroStatementContext); } public dropFunctionStatement(): DropFunctionStatementContext | null { return this.getRuleContext(0, DropFunctionStatementContext); } public reloadFunctionsStatement(): ReloadFunctionsStatementContext | null { return this.getRuleContext(0, ReloadFunctionsStatementContext); } public dropMacroStatement(): DropMacroStatementContext | null { return this.getRuleContext(0, DropMacroStatementContext); } public createIndexStatement(): CreateIndexStatementContext | null { return this.getRuleContext(0, CreateIndexStatementContext); } public dropIndexStatement(): DropIndexStatementContext | null { return this.getRuleContext(0, DropIndexStatementContext); } public analyzeStatement(): AnalyzeStatementContext | null { return this.getRuleContext(0, AnalyzeStatementContext); } public lockStatement(): LockStatementContext | null { return this.getRuleContext(0, LockStatementContext); } public unlockStatement(): UnlockStatementContext | null { return this.getRuleContext(0, UnlockStatementContext); } public lockDatabase(): LockDatabaseContext | null { return this.getRuleContext(0, LockDatabaseContext); } public unlockDatabase(): UnlockDatabaseContext | null { return this.getRuleContext(0, UnlockDatabaseContext); } public createRoleStatement(): CreateRoleStatementContext | null { return this.getRuleContext(0, CreateRoleStatementContext); } public dropRoleStatement(): DropRoleStatementContext | null { return this.getRuleContext(0, DropRoleStatementContext); } public grantPrivileges(): GrantPrivilegesContext | null { return this.getRuleContext(0, GrantPrivilegesContext); } public revokePrivileges(): RevokePrivilegesContext | null { return this.getRuleContext(0, RevokePrivilegesContext); } public showGrants(): ShowGrantsContext | null { return this.getRuleContext(0, ShowGrantsContext); } public showRoleGrants(): ShowRoleGrantsContext | null { return this.getRuleContext(0, ShowRoleGrantsContext); } public showRolePrincipals(): ShowRolePrincipalsContext | null { return this.getRuleContext(0, ShowRolePrincipalsContext); } public showRoles(): ShowRolesContext | null { return this.getRuleContext(0, ShowRolesContext); } public grantRole(): GrantRoleContext | null { return this.getRuleContext(0, GrantRoleContext); } public revokeRole(): RevokeRoleContext | null { return this.getRuleContext(0, RevokeRoleContext); } public setRole(): SetRoleContext | null { return this.getRuleContext(0, SetRoleContext); } public showCurrentRole(): ShowCurrentRoleContext | null { return this.getRuleContext(0, ShowCurrentRoleContext); } public abortTransactionStatement(): AbortTransactionStatementContext | null { return this.getRuleContext(0, AbortTransactionStatementContext); } public abortCompactionStatement(): AbortCompactionStatementContext | null { return this.getRuleContext(0, AbortCompactionStatementContext); } public killQueryStatement(): KillQueryStatementContext | null { return this.getRuleContext(0, KillQueryStatementContext); } public resourcePlanDdlStatements(): ResourcePlanDdlStatementsContext | null { return this.getRuleContext(0, ResourcePlanDdlStatementsContext); } public createDataConnectorStatement(): CreateDataConnectorStatementContext | null { return this.getRuleContext(0, CreateDataConnectorStatementContext); } public dropDataConnectorStatement(): DropDataConnectorStatementContext | null { return this.getRuleContext(0, DropDataConnectorStatementContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_ddlStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDdlStatement) { listener.enterDdlStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDdlStatement) { listener.exitDdlStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDdlStatement) { return visitor.visitDdlStatement(this); } else { return visitor.visitChildren(this); } } } export class IfExistsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_IF(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_IF, 0)!; } public KW_EXISTS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_EXISTS, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_ifExists; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterIfExists) { listener.enterIfExists(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitIfExists) { listener.exitIfExists(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitIfExists) { return visitor.visitIfExists(this); } else { return visitor.visitChildren(this); } } } export class RestrictOrCascadeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RESTRICT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RESTRICT, 0); } public KW_CASCADE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CASCADE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_restrictOrCascade; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRestrictOrCascade) { listener.enterRestrictOrCascade(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRestrictOrCascade) { listener.exitRestrictOrCascade(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRestrictOrCascade) { return visitor.visitRestrictOrCascade(this); } else { return visitor.visitChildren(this); } } } export class IfNotExistsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_IF(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_IF, 0)!; } public KW_NOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_NOT, 0)!; } public KW_EXISTS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_EXISTS, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_ifNotExists; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterIfNotExists) { listener.enterIfNotExists(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitIfNotExists) { listener.exitIfNotExists(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitIfNotExists) { return visitor.visitIfNotExists(this); } else { return visitor.visitChildren(this); } } } export class ForceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_FORCE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FORCE, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_force; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterForce) { listener.enterForce(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitForce) { listener.exitForce(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitForce) { return visitor.visitForce(this); } else { return visitor.visitChildren(this); } } } export class RewriteEnabledContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public enable(): EnableContext { return this.getRuleContext(0, EnableContext)!; } public KW_REWRITE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REWRITE, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_rewriteEnabled; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRewriteEnabled) { listener.enterRewriteEnabled(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRewriteEnabled) { listener.exitRewriteEnabled(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRewriteEnabled) { return visitor.visitRewriteEnabled(this); } else { return visitor.visitChildren(this); } } } export class RewriteDisabledContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public disable(): DisableContext { return this.getRuleContext(0, DisableContext)!; } public KW_REWRITE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REWRITE, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_rewriteDisabled; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRewriteDisabled) { listener.enterRewriteDisabled(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRewriteDisabled) { listener.exitRewriteDisabled(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRewriteDisabled) { return visitor.visitRewriteDisabled(this); } else { return visitor.visitChildren(this); } } } export class StoredAsDirsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_STORED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_STORED, 0)!; } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public KW_DIRECTORIES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DIRECTORIES, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_storedAsDirs; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterStoredAsDirs) { listener.enterStoredAsDirs(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitStoredAsDirs) { listener.exitStoredAsDirs(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitStoredAsDirs) { return visitor.visitStoredAsDirs(this); } else { return visitor.visitChildren(this); } } } export class OrReplaceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_OR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OR, 0)!; } public KW_REPLACE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REPLACE, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_orReplace; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterOrReplace) { listener.enterOrReplace(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitOrReplace) { listener.exitOrReplace(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitOrReplace) { return visitor.visitOrReplace(this); } else { return visitor.visitChildren(this); } } } export class CreateDatabaseStatementContext extends antlr.ParserRuleContext { public _name?: DbSchemaNameCreateContext; public _dbprops?: DbPropertiesContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public db_schema(): Db_schemaContext { return this.getRuleContext(0, Db_schemaContext)!; } public dbSchemaNameCreate(): DbSchemaNameCreateContext { return this.getRuleContext(0, DbSchemaNameCreateContext)!; } public KW_REMOTE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REMOTE, 0); } public ifNotExists(): IfNotExistsContext | null { return this.getRuleContext(0, IfNotExistsContext); } public databaseComment(): DatabaseCommentContext | null { return this.getRuleContext(0, DatabaseCommentContext); } public dbLocation(): DbLocationContext | null { return this.getRuleContext(0, DbLocationContext); } public dbManagedLocation(): DbManagedLocationContext | null { return this.getRuleContext(0, DbManagedLocationContext); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_DBPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DBPROPERTIES, 0); } public dbProperties(): DbPropertiesContext | null { return this.getRuleContext(0, DbPropertiesContext); } public dbConnectorName(): DbConnectorNameContext | null { return this.getRuleContext(0, DbConnectorNameContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createDatabaseStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateDatabaseStatement) { listener.enterCreateDatabaseStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateDatabaseStatement) { listener.exitCreateDatabaseStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateDatabaseStatement) { return visitor.visitCreateDatabaseStatement(this); } else { return visitor.visitChildren(this); } } } export class DbLocationContext extends antlr.ParserRuleContext { public _locn?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LOCATION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LOCATION, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dbLocation; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDbLocation) { listener.enterDbLocation(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDbLocation) { listener.exitDbLocation(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDbLocation) { return visitor.visitDbLocation(this); } else { return visitor.visitChildren(this); } } } export class DbManagedLocationContext extends antlr.ParserRuleContext { public _locn?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_MANAGEDLOCATION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MANAGEDLOCATION, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dbManagedLocation; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDbManagedLocation) { listener.enterDbManagedLocation(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDbManagedLocation) { listener.exitDbManagedLocation(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDbManagedLocation) { return visitor.visitDbManagedLocation(this); } else { return visitor.visitChildren(this); } } } export class DbPropertiesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public dbPropertiesList(): DbPropertiesListContext { return this.getRuleContext(0, DbPropertiesListContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dbProperties; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDbProperties) { listener.enterDbProperties(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDbProperties) { listener.exitDbProperties(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDbProperties) { return visitor.visitDbProperties(this); } else { return visitor.visitChildren(this); } } } export class DbPropertiesListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public keyValueProperty(): KeyValuePropertyContext[]; public keyValueProperty(i: number): KeyValuePropertyContext | null; public keyValueProperty(i?: number): KeyValuePropertyContext[] | KeyValuePropertyContext | null { if (i === undefined) { return this.getRuleContexts(KeyValuePropertyContext); } return this.getRuleContext(i, KeyValuePropertyContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_dbPropertiesList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDbPropertiesList) { listener.enterDbPropertiesList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDbPropertiesList) { listener.exitDbPropertiesList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDbPropertiesList) { return visitor.visitDbPropertiesList(this); } else { return visitor.visitChildren(this); } } } export class DbConnectorNameContext extends antlr.ParserRuleContext { public _dcName?: DbSchemaNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_USING(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_USING, 0)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dbConnectorName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDbConnectorName) { listener.enterDbConnectorName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDbConnectorName) { listener.exitDbConnectorName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDbConnectorName) { return visitor.visitDbConnectorName(this); } else { return visitor.visitChildren(this); } } } export class SwitchDatabaseStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_USE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_USE, 0)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_switchDatabaseStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSwitchDatabaseStatement) { listener.enterSwitchDatabaseStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSwitchDatabaseStatement) { listener.exitSwitchDatabaseStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSwitchDatabaseStatement) { return visitor.visitSwitchDatabaseStatement(this); } else { return visitor.visitChildren(this); } } } export class DropDatabaseStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public db_schema(): Db_schemaContext { return this.getRuleContext(0, Db_schemaContext)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public restrictOrCascade(): RestrictOrCascadeContext | null { return this.getRuleContext(0, RestrictOrCascadeContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropDatabaseStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropDatabaseStatement) { listener.enterDropDatabaseStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropDatabaseStatement) { listener.exitDropDatabaseStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropDatabaseStatement) { return visitor.visitDropDatabaseStatement(this); } else { return visitor.visitChildren(this); } } } export class DatabaseCommentContext extends antlr.ParserRuleContext { public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_COMMENT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COMMENT, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_databaseComment; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDatabaseComment) { listener.enterDatabaseComment(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDatabaseComment) { listener.exitDatabaseComment(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDatabaseComment) { return visitor.visitDatabaseComment(this); } else { return visitor.visitChildren(this); } } } export class TruncateTableStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TRUNCATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TRUNCATE, 0)!; } public tablePartitionPrefix(): TablePartitionPrefixContext { return this.getRuleContext(0, TablePartitionPrefixContext)!; } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public KW_COLUMNS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COLUMNS, 0); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public columnNameList(): ColumnNameListContext | null { return this.getRuleContext(0, ColumnNameListContext); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public force(): ForceContext | null { return this.getRuleContext(0, ForceContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_truncateTableStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTruncateTableStatement) { listener.enterTruncateTableStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTruncateTableStatement) { listener.exitTruncateTableStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTruncateTableStatement) { return visitor.visitTruncateTableStatement(this); } else { return visitor.visitChildren(this); } } } export class DropTableStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_TABLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLE, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public KW_PURGE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PURGE, 0); } public replicationClause(): ReplicationClauseContext | null { return this.getRuleContext(0, ReplicationClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropTableStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropTableStatement) { listener.enterDropTableStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropTableStatement) { listener.exitDropTableStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropTableStatement) { return visitor.visitDropTableStatement(this); } else { return visitor.visitChildren(this); } } } export class InputFileFormatContext extends antlr.ParserRuleContext { public _inFmt?: Token | null; public _serdeCls?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_INPUTFORMAT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INPUTFORMAT, 0)!; } public KW_SERDE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SERDE, 0)!; } public StringLiteral(): antlr.TerminalNode[]; public StringLiteral(i: number): antlr.TerminalNode | null; public StringLiteral(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.StringLiteral); } else { return this.getToken(HiveSqlParser.StringLiteral, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_inputFileFormat; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterInputFileFormat) { listener.enterInputFileFormat(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitInputFileFormat) { listener.exitInputFileFormat(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitInputFileFormat) { return visitor.visitInputFileFormat(this); } else { return visitor.visitChildren(this); } } } export class TabTypeExprContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public DOT(): antlr.TerminalNode[]; public DOT(i: number): antlr.TerminalNode | null; public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.DOT); } else { return this.getToken(HiveSqlParser.DOT, i); } } public KW_ELEM_TYPE(): antlr.TerminalNode[]; public KW_ELEM_TYPE(i: number): antlr.TerminalNode | null; public KW_ELEM_TYPE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_ELEM_TYPE); } else { return this.getToken(HiveSqlParser.KW_ELEM_TYPE, i); } } public KW_KEY_TYPE(): antlr.TerminalNode[]; public KW_KEY_TYPE(i: number): antlr.TerminalNode | null; public KW_KEY_TYPE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_KEY_TYPE); } else { return this.getToken(HiveSqlParser.KW_KEY_TYPE, i); } } public KW_VALUE_TYPE(): antlr.TerminalNode[]; public KW_VALUE_TYPE(i: number): antlr.TerminalNode | null; public KW_VALUE_TYPE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_VALUE_TYPE); } else { return this.getToken(HiveSqlParser.KW_VALUE_TYPE, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_tabTypeExpr; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTabTypeExpr) { listener.enterTabTypeExpr(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTabTypeExpr) { listener.exitTabTypeExpr(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTabTypeExpr) { return visitor.visitTabTypeExpr(this); } else { return visitor.visitChildren(this); } } } export class PartTypeExprContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tabTypeExpr(): TabTypeExprContext { return this.getRuleContext(0, TabTypeExprContext)!; } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_partTypeExpr; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartTypeExpr) { listener.enterPartTypeExpr(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartTypeExpr) { listener.exitPartTypeExpr(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartTypeExpr) { return visitor.visitPartTypeExpr(this); } else { return visitor.visitChildren(this); } } } export class TabPartColTypeExprContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableOrView(): TableOrViewContext { return this.getRuleContext(0, TableOrViewContext)!; } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public extColumnName(): ExtColumnNameContext | null { return this.getRuleContext(0, ExtColumnNameContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tabPartColTypeExpr; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTabPartColTypeExpr) { listener.enterTabPartColTypeExpr(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTabPartColTypeExpr) { listener.exitTabPartColTypeExpr(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTabPartColTypeExpr) { return visitor.visitTabPartColTypeExpr(this); } else { return visitor.visitChildren(this); } } } export class DescStatementContext extends antlr.ParserRuleContext { public _dbName?: DbSchemaNameContext; public _dcName?: DbSchemaNameContext; public _name?: FunctionNameForDDLContext; public _descOptions?: Token | null; public _parttype?: TabPartColTypeExprContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DESCRIBE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DESCRIBE, 0); } public KW_DESC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DESC, 0); } public db_schema(): Db_schemaContext | null { return this.getRuleContext(0, Db_schemaContext); } public KW_DATACONNECTOR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATACONNECTOR, 0); } public KW_FUNCTION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FUNCTION, 0); } public dbSchemaName(): DbSchemaNameContext | null { return this.getRuleContext(0, DbSchemaNameContext); } public functionNameForDDL(): FunctionNameForDDLContext | null { return this.getRuleContext(0, FunctionNameForDDLContext); } public tabPartColTypeExpr(): TabPartColTypeExprContext | null { return this.getRuleContext(0, TabPartColTypeExprContext); } public KW_EXTENDED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXTENDED, 0); } public KW_FORMATTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FORMATTED, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_descStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDescStatement) { listener.enterDescStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDescStatement) { listener.exitDescStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDescStatement) { return visitor.visitDescStatement(this); } else { return visitor.visitChildren(this); } } } export class AnalyzeStatementContext extends antlr.ParserRuleContext { public _parttype?: TableOrPartitionContext; public _noscan?: Token | null; public _statsColumnName?: ColumnNameListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ANALYZE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ANALYZE, 0)!; } public KW_TABLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLE, 0)!; } public tableOrPartition(): TableOrPartitionContext { return this.getRuleContext(0, TableOrPartitionContext)!; } public KW_COMPUTE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMPUTE, 0); } public KW_STATISTICS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STATISTICS, 0); } public KW_CACHE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CACHE, 0); } public KW_METADATA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_METADATA, 0); } public KW_FOR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FOR, 0); } public KW_COLUMNS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COLUMNS, 0); } public KW_NOSCAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOSCAN, 0); } public columnNameList(): ColumnNameListContext | null { return this.getRuleContext(0, ColumnNameListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_analyzeStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAnalyzeStatement) { listener.enterAnalyzeStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAnalyzeStatement) { listener.exitAnalyzeStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAnalyzeStatement) { return visitor.visitAnalyzeStatement(this); } else { return visitor.visitChildren(this); } } } export class From_inContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_FROM(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FROM, 0); } public KW_IN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IN, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_from_in; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFrom_in) { listener.enterFrom_in(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFrom_in) { listener.exitFrom_in(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFrom_in) { return visitor.visitFrom_in(this); } else { return visitor.visitChildren(this); } } } export class Db_schemaContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DATABASE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATABASE, 0); } public KW_SCHEMA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SCHEMA, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_db_schema; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDb_schema) { listener.enterDb_schema(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDb_schema) { listener.exitDb_schema(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDb_schema) { return visitor.visitDb_schema(this); } else { return visitor.visitChildren(this); } } } export class ShowStatementContext extends antlr.ParserRuleContext { public _isExtended?: Token | null; public _db_name?: DbSchemaNameContext; public _filter?: ShowTablesFilterExprContext; public _tabOrViewName?: TableOrViewContext; public _tabName?: TableNameContext; public _prptyName?: Token | null; public _dbName?: DbSchemaNameContext; public _parttype?: PartTypeExprContext; public _rp_name?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SHOW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SHOW, 0)!; } public KW_DATABASES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATABASES, 0); } public KW_SCHEMAS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SCHEMAS, 0); } public KW_LIKE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LIKE, 0); } public showStmtIdentifier(): ShowStmtIdentifierContext | null { return this.getRuleContext(0, ShowStmtIdentifierContext); } public KW_TABLES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLES, 0); } public from_in(): From_inContext[]; public from_in(i: number): From_inContext | null; public from_in(i?: number): From_inContext[] | From_inContext | null { if (i === undefined) { return this.getRuleContexts(From_inContext); } return this.getRuleContext(i, From_inContext); } public KW_EXTENDED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXTENDED, 0); } public dbSchemaName(): DbSchemaNameContext | null { return this.getRuleContext(0, DbSchemaNameContext); } public showTablesFilterExpr(): ShowTablesFilterExprContext | null { return this.getRuleContext(0, ShowTablesFilterExprContext); } public KW_VIEWS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VIEWS, 0); } public KW_MATERIALIZED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MATERIALIZED, 0); } public KW_COLUMNS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COLUMNS, 0); } public tableOrView(): TableOrViewContext | null { return this.getRuleContext(0, TableOrViewContext); } public KW_SORTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SORTED, 0); } public KW_FUNCTIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FUNCTIONS, 0); } public functionNameForDDL(): FunctionNameForDDLContext | null { return this.getRuleContext(0, FunctionNameForDDLContext); } public KW_PARTITIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PARTITIONS, 0); } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public whereClause(): WhereClauseContext | null { return this.getRuleContext(0, WhereClauseContext); } public orderByClause(): OrderByClauseContext | null { return this.getRuleContext(0, OrderByClauseContext); } public limitClause(): LimitClauseContext | null { return this.getRuleContext(0, LimitClauseContext); } public KW_CREATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CREATE, 0); } public db_schema(): Db_schemaContext | null { return this.getRuleContext(0, Db_schemaContext); } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public tableName(): TableNameContext | null { return this.getRuleContext(0, TableNameContext); } public KW_TBLPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TBLPROPERTIES, 0); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public KW_LOCKS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCKS, 0); } public partTypeExpr(): PartTypeExprContext | null { return this.getRuleContext(0, PartTypeExprContext); } public KW_COMPACTIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMPACTIONS, 0); } public compactionId(): CompactionIdContext | null { return this.getRuleContext(0, CompactionIdContext); } public compactionPool(): CompactionPoolContext | null { return this.getRuleContext(0, CompactionPoolContext); } public compactionType(): CompactionTypeContext | null { return this.getRuleContext(0, CompactionTypeContext); } public compactionStatus(): CompactionStatusContext | null { return this.getRuleContext(0, CompactionStatusContext); } public KW_TRANSACTIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRANSACTIONS, 0); } public KW_CONF(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CONF, 0); } public KW_RESOURCE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RESOURCE, 0); } public KW_PLAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PLAN, 0); } public KW_PLANS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PLANS, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public KW_DATACONNECTORS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATACONNECTORS, 0); } public KW_ON(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ON, 0); } public KW_INDEX(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INDEX, 0); } public KW_INDEXES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INDEXES, 0); } public KW_FORMATTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FORMATTED, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_showStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterShowStatement) { listener.enterShowStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitShowStatement) { listener.exitShowStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitShowStatement) { return visitor.visitShowStatement(this); } else { return visitor.visitChildren(this); } } } export class ShowTablesFilterExprContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WHERE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WHERE, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public EQUAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.EQUAL, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public KW_LIKE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LIKE, 0); } public showStmtIdentifier(): ShowStmtIdentifierContext | null { return this.getRuleContext(0, ShowStmtIdentifierContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_showTablesFilterExpr; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterShowTablesFilterExpr) { listener.enterShowTablesFilterExpr(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitShowTablesFilterExpr) { listener.exitShowTablesFilterExpr(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitShowTablesFilterExpr) { return visitor.visitShowTablesFilterExpr(this); } else { return visitor.visitChildren(this); } } } export class LockStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LOCK(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LOCK, 0)!; } public KW_TABLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLE, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public lockMode(): LockModeContext { return this.getRuleContext(0, LockModeContext)!; } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_lockStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterLockStatement) { listener.enterLockStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitLockStatement) { listener.exitLockStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitLockStatement) { return visitor.visitLockStatement(this); } else { return visitor.visitChildren(this); } } } export class LockDatabaseContext extends antlr.ParserRuleContext { public _dbName?: DbSchemaNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LOCK(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LOCK, 0)!; } public db_schema(): Db_schemaContext { return this.getRuleContext(0, Db_schemaContext)!; } public lockMode(): LockModeContext { return this.getRuleContext(0, LockModeContext)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_lockDatabase; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterLockDatabase) { listener.enterLockDatabase(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitLockDatabase) { listener.exitLockDatabase(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitLockDatabase) { return visitor.visitLockDatabase(this); } else { return visitor.visitChildren(this); } } } export class LockModeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SHARED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SHARED, 0); } public KW_EXCLUSIVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXCLUSIVE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_lockMode; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterLockMode) { listener.enterLockMode(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitLockMode) { listener.exitLockMode(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitLockMode) { return visitor.visitLockMode(this); } else { return visitor.visitChildren(this); } } } export class UnlockStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UNLOCK(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UNLOCK, 0)!; } public KW_TABLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLE, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_unlockStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUnlockStatement) { listener.enterUnlockStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUnlockStatement) { listener.exitUnlockStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUnlockStatement) { return visitor.visitUnlockStatement(this); } else { return visitor.visitChildren(this); } } } export class UnlockDatabaseContext extends antlr.ParserRuleContext { public _dbName?: DbSchemaNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UNLOCK(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UNLOCK, 0)!; } public db_schema(): Db_schemaContext { return this.getRuleContext(0, Db_schemaContext)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_unlockDatabase; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUnlockDatabase) { listener.enterUnlockDatabase(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUnlockDatabase) { listener.exitUnlockDatabase(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUnlockDatabase) { return visitor.visitUnlockDatabase(this); } else { return visitor.visitChildren(this); } } } export class CreateRoleStatementContext extends antlr.ParserRuleContext { public _roleName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_ROLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROLE, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_createRoleStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateRoleStatement) { listener.enterCreateRoleStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateRoleStatement) { listener.exitCreateRoleStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateRoleStatement) { return visitor.visitCreateRoleStatement(this); } else { return visitor.visitChildren(this); } } } export class DropRoleStatementContext extends antlr.ParserRuleContext { public _roleName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_ROLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROLE, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropRoleStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropRoleStatement) { listener.enterDropRoleStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropRoleStatement) { listener.exitDropRoleStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropRoleStatement) { return visitor.visitDropRoleStatement(this); } else { return visitor.visitChildren(this); } } } export class GrantPrivilegesContext extends antlr.ParserRuleContext { public _privList?: PrivilegeListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_GRANT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_GRANT, 0)!; } public KW_TO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TO, 0)!; } public principalSpecification(): PrincipalSpecificationContext { return this.getRuleContext(0, PrincipalSpecificationContext)!; } public privilegeList(): PrivilegeListContext { return this.getRuleContext(0, PrivilegeListContext)!; } public privilegeObject(): PrivilegeObjectContext | null { return this.getRuleContext(0, PrivilegeObjectContext); } public withGrantOption(): WithGrantOptionContext | null { return this.getRuleContext(0, WithGrantOptionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_grantPrivileges; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGrantPrivileges) { listener.enterGrantPrivileges(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGrantPrivileges) { listener.exitGrantPrivileges(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGrantPrivileges) { return visitor.visitGrantPrivileges(this); } else { return visitor.visitChildren(this); } } } export class RevokePrivilegesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_REVOKE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REVOKE, 0)!; } public privilegeList(): PrivilegeListContext { return this.getRuleContext(0, PrivilegeListContext)!; } public KW_FROM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FROM, 0)!; } public principalSpecification(): PrincipalSpecificationContext { return this.getRuleContext(0, PrincipalSpecificationContext)!; } public grantOptionFor(): GrantOptionForContext | null { return this.getRuleContext(0, GrantOptionForContext); } public privilegeObject(): PrivilegeObjectContext | null { return this.getRuleContext(0, PrivilegeObjectContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_revokePrivileges; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRevokePrivileges) { listener.enterRevokePrivileges(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRevokePrivileges) { listener.exitRevokePrivileges(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRevokePrivileges) { return visitor.visitRevokePrivileges(this); } else { return visitor.visitChildren(this); } } } export class GrantRoleContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_GRANT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_GRANT, 0)!; } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public KW_TO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TO, 0)!; } public principalSpecification(): PrincipalSpecificationContext { return this.getRuleContext(0, PrincipalSpecificationContext)!; } public KW_ROLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROLE, 0); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public withAdminOption(): WithAdminOptionContext | null { return this.getRuleContext(0, WithAdminOptionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_grantRole; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGrantRole) { listener.enterGrantRole(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGrantRole) { listener.exitGrantRole(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGrantRole) { return visitor.visitGrantRole(this); } else { return visitor.visitChildren(this); } } } export class RevokeRoleContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_REVOKE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REVOKE, 0)!; } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public KW_FROM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FROM, 0)!; } public principalSpecification(): PrincipalSpecificationContext { return this.getRuleContext(0, PrincipalSpecificationContext)!; } public adminOptionFor(): AdminOptionForContext | null { return this.getRuleContext(0, AdminOptionForContext); } public KW_ROLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROLE, 0); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_revokeRole; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRevokeRole) { listener.enterRevokeRole(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRevokeRole) { listener.exitRevokeRole(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRevokeRole) { return visitor.visitRevokeRole(this); } else { return visitor.visitChildren(this); } } } export class ShowRoleGrantsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SHOW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SHOW, 0)!; } public KW_ROLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROLE, 0)!; } public KW_GRANT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_GRANT, 0)!; } public principalName(): PrincipalNameContext { return this.getRuleContext(0, PrincipalNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_showRoleGrants; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterShowRoleGrants) { listener.enterShowRoleGrants(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitShowRoleGrants) { listener.exitShowRoleGrants(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitShowRoleGrants) { return visitor.visitShowRoleGrants(this); } else { return visitor.visitChildren(this); } } } export class ShowRolesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SHOW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SHOW, 0)!; } public KW_ROLES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROLES, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_showRoles; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterShowRoles) { listener.enterShowRoles(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitShowRoles) { listener.exitShowRoles(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitShowRoles) { return visitor.visitShowRoles(this); } else { return visitor.visitChildren(this); } } } export class ShowCurrentRoleContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SHOW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SHOW, 0)!; } public KW_CURRENT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CURRENT, 0)!; } public KW_ROLES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROLES, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_showCurrentRole; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterShowCurrentRole) { listener.enterShowCurrentRole(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitShowCurrentRole) { listener.exitShowCurrentRole(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitShowCurrentRole) { return visitor.visitShowCurrentRole(this); } else { return visitor.visitChildren(this); } } } export class SetRoleContext extends antlr.ParserRuleContext { public _all?: Token | null; public _none?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_ROLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROLE, 0)!; } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public KW_ALL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALL, 0); } public KW_NONE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NONE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_setRole; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSetRole) { listener.enterSetRole(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSetRole) { listener.exitSetRole(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSetRole) { return visitor.visitSetRole(this); } else { return visitor.visitChildren(this); } } } export class ShowGrantsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SHOW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SHOW, 0)!; } public KW_GRANT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_GRANT, 0)!; } public principalName(): PrincipalNameContext | null { return this.getRuleContext(0, PrincipalNameContext); } public KW_ON(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ON, 0); } public privilegeIncludeColObject(): PrivilegeIncludeColObjectContext | null { return this.getRuleContext(0, PrivilegeIncludeColObjectContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_showGrants; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterShowGrants) { listener.enterShowGrants(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitShowGrants) { listener.exitShowGrants(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitShowGrants) { return visitor.visitShowGrants(this); } else { return visitor.visitChildren(this); } } } export class ShowRolePrincipalsContext extends antlr.ParserRuleContext { public _roleName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SHOW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SHOW, 0)!; } public KW_PRINCIPALS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PRINCIPALS, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_showRolePrincipals; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterShowRolePrincipals) { listener.enterShowRolePrincipals(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitShowRolePrincipals) { listener.exitShowRolePrincipals(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitShowRolePrincipals) { return visitor.visitShowRolePrincipals(this); } else { return visitor.visitChildren(this); } } } export class PrivilegeIncludeColObjectContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALL, 0); } public privObjectCols(): PrivObjectColsContext | null { return this.getRuleContext(0, PrivObjectColsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_privilegeIncludeColObject; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrivilegeIncludeColObject) { listener.enterPrivilegeIncludeColObject(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrivilegeIncludeColObject) { listener.exitPrivilegeIncludeColObject(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrivilegeIncludeColObject) { return visitor.visitPrivilegeIncludeColObject(this); } else { return visitor.visitChildren(this); } } } export class PrivilegeObjectContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public privObject(): PrivObjectContext { return this.getRuleContext(0, PrivObjectContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_privilegeObject; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrivilegeObject) { listener.enterPrivilegeObject(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrivilegeObject) { listener.exitPrivilegeObject(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrivilegeObject) { return visitor.visitPrivilegeObject(this); } else { return visitor.visitChildren(this); } } } export class PrivObjectContext extends antlr.ParserRuleContext { public _path?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public db_schema(): Db_schemaContext | null { return this.getRuleContext(0, Db_schemaContext); } public dbSchemaName(): DbSchemaNameContext | null { return this.getRuleContext(0, DbSchemaNameContext); } public tableName(): TableNameContext | null { return this.getRuleContext(0, TableNameContext); } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public KW_URI(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_URI, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public KW_SERVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERVER, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_privObject; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrivObject) { listener.enterPrivObject(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrivObject) { listener.exitPrivObject(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrivObject) { return visitor.visitPrivObject(this); } else { return visitor.visitChildren(this); } } } export class PrivObjectColsContext extends antlr.ParserRuleContext { public _cols?: ColumnNameListContext; public _path?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public db_schema(): Db_schemaContext | null { return this.getRuleContext(0, Db_schemaContext); } public dbSchemaName(): DbSchemaNameContext | null { return this.getRuleContext(0, DbSchemaNameContext); } public tableName(): TableNameContext | null { return this.getRuleContext(0, TableNameContext); } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public columnNameList(): ColumnNameListContext | null { return this.getRuleContext(0, ColumnNameListContext); } public KW_URI(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_URI, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public KW_SERVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERVER, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_privObjectCols; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrivObjectCols) { listener.enterPrivObjectCols(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrivObjectCols) { listener.exitPrivObjectCols(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrivObjectCols) { return visitor.visitPrivObjectCols(this); } else { return visitor.visitChildren(this); } } } export class PrivilegeListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public privlegeDef(): PrivlegeDefContext[]; public privlegeDef(i: number): PrivlegeDefContext | null; public privlegeDef(i?: number): PrivlegeDefContext[] | PrivlegeDefContext | null { if (i === undefined) { return this.getRuleContexts(PrivlegeDefContext); } return this.getRuleContext(i, PrivlegeDefContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_privilegeList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrivilegeList) { listener.enterPrivilegeList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrivilegeList) { listener.exitPrivilegeList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrivilegeList) { return visitor.visitPrivilegeList(this); } else { return visitor.visitChildren(this); } } } export class PrivlegeDefContext extends antlr.ParserRuleContext { public _cols?: ColumnNameListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public privilegeType(): PrivilegeTypeContext { return this.getRuleContext(0, PrivilegeTypeContext)!; } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public columnNameList(): ColumnNameListContext | null { return this.getRuleContext(0, ColumnNameListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_privlegeDef; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrivlegeDef) { listener.enterPrivlegeDef(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrivlegeDef) { listener.exitPrivlegeDef(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrivlegeDef) { return visitor.visitPrivlegeDef(this); } else { return visitor.visitChildren(this); } } } export class PrivilegeTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALL, 0); } public KW_ALTER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALTER, 0); } public KW_UPDATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UPDATE, 0); } public KW_CREATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CREATE, 0); } public KW_DROP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DROP, 0); } public KW_INDEX(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INDEX, 0); } public KW_LOCK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCK, 0); } public KW_SELECT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SELECT, 0); } public KW_SHOW_DATABASE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SHOW_DATABASE, 0); } public KW_INSERT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INSERT, 0); } public KW_DELETE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DELETE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_privilegeType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrivilegeType) { listener.enterPrivilegeType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrivilegeType) { listener.exitPrivilegeType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrivilegeType) { return visitor.visitPrivilegeType(this); } else { return visitor.visitChildren(this); } } } export class PrincipalSpecificationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public principalName(): PrincipalNameContext[]; public principalName(i: number): PrincipalNameContext | null; public principalName(i?: number): PrincipalNameContext[] | PrincipalNameContext | null { if (i === undefined) { return this.getRuleContexts(PrincipalNameContext); } return this.getRuleContext(i, PrincipalNameContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_principalSpecification; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrincipalSpecification) { listener.enterPrincipalSpecification(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrincipalSpecification) { listener.exitPrincipalSpecification(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrincipalSpecification) { return visitor.visitPrincipalSpecification(this); } else { return visitor.visitChildren(this); } } } export class PrincipalNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_USER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_USER, 0); } public principalIdentifier(): PrincipalIdentifierContext | null { return this.getRuleContext(0, PrincipalIdentifierContext); } public KW_GROUP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_GROUP, 0); } public KW_ROLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROLE, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_principalName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrincipalName) { listener.enterPrincipalName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrincipalName) { listener.exitPrincipalName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrincipalName) { return visitor.visitPrincipalName(this); } else { return visitor.visitChildren(this); } } } export class PrincipalAlterNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_USER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_USER, 0); } public principalIdentifier(): PrincipalIdentifierContext | null { return this.getRuleContext(0, PrincipalIdentifierContext); } public KW_ROLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROLE, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_principalAlterName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrincipalAlterName) { listener.enterPrincipalAlterName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrincipalAlterName) { listener.exitPrincipalAlterName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrincipalAlterName) { return visitor.visitPrincipalAlterName(this); } else { return visitor.visitChildren(this); } } } export class WithGrantOptionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WITH(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WITH, 0)!; } public KW_GRANT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_GRANT, 0)!; } public KW_OPTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OPTION, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_withGrantOption; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWithGrantOption) { listener.enterWithGrantOption(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWithGrantOption) { listener.exitWithGrantOption(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWithGrantOption) { return visitor.visitWithGrantOption(this); } else { return visitor.visitChildren(this); } } } export class GrantOptionForContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_GRANT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_GRANT, 0)!; } public KW_OPTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OPTION, 0)!; } public KW_FOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FOR, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_grantOptionFor; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGrantOptionFor) { listener.enterGrantOptionFor(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGrantOptionFor) { listener.exitGrantOptionFor(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGrantOptionFor) { return visitor.visitGrantOptionFor(this); } else { return visitor.visitChildren(this); } } } export class AdminOptionForContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ADMIN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ADMIN, 0)!; } public KW_OPTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OPTION, 0)!; } public KW_FOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FOR, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_adminOptionFor; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAdminOptionFor) { listener.enterAdminOptionFor(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAdminOptionFor) { listener.exitAdminOptionFor(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAdminOptionFor) { return visitor.visitAdminOptionFor(this); } else { return visitor.visitChildren(this); } } } export class WithAdminOptionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WITH(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WITH, 0)!; } public KW_ADMIN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ADMIN, 0)!; } public KW_OPTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OPTION, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_withAdminOption; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWithAdminOption) { listener.enterWithAdminOption(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWithAdminOption) { listener.exitWithAdminOption(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWithAdminOption) { return visitor.visitWithAdminOption(this); } else { return visitor.visitChildren(this); } } } export class MetastoreCheckContext extends antlr.ParserRuleContext { public _repair?: Token | null; public _opt?: Token | null; public _parts?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_MSCK(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MSCK, 0)!; } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public tableName(): TableNameContext | null { return this.getRuleContext(0, TableNameContext); } public KW_REPAIR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REPAIR, 0); } public KW_PARTITIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PARTITIONS, 0); } public KW_ADD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ADD, 0); } public KW_DROP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DROP, 0); } public KW_SYNC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SYNC, 0); } public partitionSelectorSpec(): PartitionSelectorSpecContext | null { return this.getRuleContext(0, PartitionSelectorSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_metastoreCheck; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterMetastoreCheck) { listener.enterMetastoreCheck(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitMetastoreCheck) { listener.exitMetastoreCheck(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitMetastoreCheck) { return visitor.visitMetastoreCheck(this); } else { return visitor.visitChildren(this); } } } export class ResourceListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public resource(): ResourceContext[]; public resource(i: number): ResourceContext | null; public resource(i?: number): ResourceContext[] | ResourceContext | null { if (i === undefined) { return this.getRuleContexts(ResourceContext); } return this.getRuleContext(i, ResourceContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_resourceList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterResourceList) { listener.enterResourceList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitResourceList) { listener.exitResourceList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitResourceList) { return visitor.visitResourceList(this); } else { return visitor.visitChildren(this); } } } export class ResourceContext extends antlr.ParserRuleContext { public _resType?: ResourceTypeContext; public _resPath?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public resourceType(): ResourceTypeContext { return this.getRuleContext(0, ResourceTypeContext)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_resource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterResource) { listener.enterResource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitResource) { listener.exitResource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitResource) { return visitor.visitResource(this); } else { return visitor.visitChildren(this); } } } export class ResourceTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_JAR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_JAR, 0); } public KW_FILE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FILE, 0); } public KW_ARCHIVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ARCHIVE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_resourceType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterResourceType) { listener.enterResourceType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitResourceType) { listener.exitResourceType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitResourceType) { return visitor.visitResourceType(this); } else { return visitor.visitChildren(this); } } } export class CreateFunctionStatementContext extends antlr.ParserRuleContext { public _temp?: Token | null; public _rList?: ResourceListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_FUNCTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FUNCTION, 0)!; } public functionNameCreate(): FunctionNameCreateContext { return this.getRuleContext(0, FunctionNameCreateContext)!; } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public KW_USING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_USING, 0); } public KW_TEMPORARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TEMPORARY, 0); } public resourceList(): ResourceListContext | null { return this.getRuleContext(0, ResourceListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createFunctionStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateFunctionStatement) { listener.enterCreateFunctionStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateFunctionStatement) { listener.exitCreateFunctionStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateFunctionStatement) { return visitor.visitCreateFunctionStatement(this); } else { return visitor.visitChildren(this); } } } export class DropFunctionStatementContext extends antlr.ParserRuleContext { public _temp?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_FUNCTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FUNCTION, 0)!; } public functionNameForDDL(): FunctionNameForDDLContext { return this.getRuleContext(0, FunctionNameForDDLContext)!; } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public KW_TEMPORARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TEMPORARY, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropFunctionStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropFunctionStatement) { listener.enterDropFunctionStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropFunctionStatement) { listener.exitDropFunctionStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropFunctionStatement) { return visitor.visitDropFunctionStatement(this); } else { return visitor.visitChildren(this); } } } export class ReloadFunctionsStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RELOAD(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RELOAD, 0)!; } public KW_FUNCTIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FUNCTIONS, 0); } public KW_FUNCTION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FUNCTION, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_reloadFunctionsStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReloadFunctionsStatement) { listener.enterReloadFunctionsStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReloadFunctionsStatement) { listener.exitReloadFunctionsStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReloadFunctionsStatement) { return visitor.visitReloadFunctionsStatement(this); } else { return visitor.visitChildren(this); } } } export class CreateMacroStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_TEMPORARY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TEMPORARY, 0)!; } public KW_MACRO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MACRO, 0)!; } public Identifier(): antlr.TerminalNode { return this.getToken(HiveSqlParser.Identifier, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public columnNameTypeList(): ColumnNameTypeListContext | null { return this.getRuleContext(0, ColumnNameTypeListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createMacroStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateMacroStatement) { listener.enterCreateMacroStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateMacroStatement) { listener.exitCreateMacroStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateMacroStatement) { return visitor.visitCreateMacroStatement(this); } else { return visitor.visitChildren(this); } } } export class DropMacroStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_TEMPORARY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TEMPORARY, 0)!; } public KW_MACRO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MACRO, 0)!; } public Identifier(): antlr.TerminalNode { return this.getToken(HiveSqlParser.Identifier, 0)!; } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropMacroStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropMacroStatement) { listener.enterDropMacroStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropMacroStatement) { listener.exitDropMacroStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropMacroStatement) { return visitor.visitDropMacroStatement(this); } else { return visitor.visitChildren(this); } } } export class CreateIndexStatementContext extends antlr.ParserRuleContext { public _indextype?: Token | null; public _locn?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_INDEX(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INDEX, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public KW_TABLE(): antlr.TerminalNode[]; public KW_TABLE(i: number): antlr.TerminalNode | null; public KW_TABLE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_TABLE); } else { return this.getToken(HiveSqlParser.KW_TABLE, i); } } public tableName(): TableNameContext[]; public tableName(i: number): TableNameContext | null; public tableName(i?: number): TableNameContext[] | TableNameContext | null { if (i === undefined) { return this.getRuleContexts(TableNameContext); } return this.getRuleContext(i, TableNameContext); } public columnParenthesesList(): ColumnParenthesesListContext[]; public columnParenthesesList(i: number): ColumnParenthesesListContext | null; public columnParenthesesList(i?: number): ColumnParenthesesListContext[] | ColumnParenthesesListContext | null { if (i === undefined) { return this.getRuleContexts(ColumnParenthesesListContext); } return this.getRuleContext(i, ColumnParenthesesListContext); } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public StringLiteral(): antlr.TerminalNode[]; public StringLiteral(i: number): antlr.TerminalNode | null; public StringLiteral(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.StringLiteral); } else { return this.getToken(HiveSqlParser.StringLiteral, i); } } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_DEFERRED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEFERRED, 0); } public KW_REBUILD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REBUILD, 0); } public KW_IDXPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IDXPROPERTIES, 0); } public tableProperties(): TablePropertiesContext | null { return this.getRuleContext(0, TablePropertiesContext); } public KW_IN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IN, 0); } public KW_PARTITIONED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PARTITIONED, 0); } public KW_BY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BY, 0); } public tableFileFormat(): TableFileFormatContext | null { return this.getRuleContext(0, TableFileFormatContext); } public KW_LOCATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCATION, 0); } public tablePropertiesPrefixed(): TablePropertiesPrefixedContext | null { return this.getRuleContext(0, TablePropertiesPrefixedContext); } public tableComment(): TableCommentContext | null { return this.getRuleContext(0, TableCommentContext); } public tableRowFormat(): TableRowFormatContext | null { return this.getRuleContext(0, TableRowFormatContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createIndexStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateIndexStatement) { listener.enterCreateIndexStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateIndexStatement) { listener.exitCreateIndexStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateIndexStatement) { return visitor.visitCreateIndexStatement(this); } else { return visitor.visitChildren(this); } } } export class DropIndexStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_INDEX(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INDEX, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropIndexStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropIndexStatement) { listener.enterDropIndexStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropIndexStatement) { listener.exitDropIndexStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropIndexStatement) { return visitor.visitDropIndexStatement(this); } else { return visitor.visitChildren(this); } } } export class CreateViewStatementContext extends antlr.ParserRuleContext { public _name?: ViewNameCreateContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_VIEW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_VIEW, 0)!; } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public selectStatementWithCTE(): SelectStatementWithCTEContext { return this.getRuleContext(0, SelectStatementWithCTEContext)!; } public viewNameCreate(): ViewNameCreateContext { return this.getRuleContext(0, ViewNameCreateContext)!; } public orReplace(): OrReplaceContext | null { return this.getRuleContext(0, OrReplaceContext); } public ifNotExists(): IfNotExistsContext | null { return this.getRuleContext(0, IfNotExistsContext); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public columnNameCommentList(): ColumnNameCommentListContext | null { return this.getRuleContext(0, ColumnNameCommentListContext); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public tableComment(): TableCommentContext | null { return this.getRuleContext(0, TableCommentContext); } public viewPartition(): ViewPartitionContext | null { return this.getRuleContext(0, ViewPartitionContext); } public tablePropertiesPrefixed(): TablePropertiesPrefixedContext | null { return this.getRuleContext(0, TablePropertiesPrefixedContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createViewStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateViewStatement) { listener.enterCreateViewStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateViewStatement) { listener.exitCreateViewStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateViewStatement) { return visitor.visitCreateViewStatement(this); } else { return visitor.visitChildren(this); } } } export class ViewPartitionContext extends antlr.ParserRuleContext { public _spec?: PartitionTransformSpecContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_PARTITIONED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PARTITIONED, 0)!; } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public columnNameList(): ColumnNameListContext | null { return this.getRuleContext(0, ColumnNameListContext); } public KW_SPEC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SPEC, 0); } public partitionTransformSpec(): PartitionTransformSpecContext | null { return this.getRuleContext(0, PartitionTransformSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_viewPartition; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterViewPartition) { listener.enterViewPartition(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitViewPartition) { listener.exitViewPartition(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitViewPartition) { return visitor.visitViewPartition(this); } else { return visitor.visitChildren(this); } } } export class ViewOrganizationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public viewClusterSpec(): ViewClusterSpecContext | null { return this.getRuleContext(0, ViewClusterSpecContext); } public viewComplexSpec(): ViewComplexSpecContext | null { return this.getRuleContext(0, ViewComplexSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_viewOrganization; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterViewOrganization) { listener.enterViewOrganization(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitViewOrganization) { listener.exitViewOrganization(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitViewOrganization) { return visitor.visitViewOrganization(this); } else { return visitor.visitChildren(this); } } } export class ViewClusterSpecContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CLUSTERED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CLUSTERED, 0)!; } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public columnNameList(): ColumnNameListContext { return this.getRuleContext(0, ColumnNameListContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_viewClusterSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterViewClusterSpec) { listener.enterViewClusterSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitViewClusterSpec) { listener.exitViewClusterSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitViewClusterSpec) { return visitor.visitViewClusterSpec(this); } else { return visitor.visitChildren(this); } } } export class ViewComplexSpecContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public viewDistSpec(): ViewDistSpecContext { return this.getRuleContext(0, ViewDistSpecContext)!; } public viewSortSpec(): ViewSortSpecContext { return this.getRuleContext(0, ViewSortSpecContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_viewComplexSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterViewComplexSpec) { listener.enterViewComplexSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitViewComplexSpec) { listener.exitViewComplexSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitViewComplexSpec) { return visitor.visitViewComplexSpec(this); } else { return visitor.visitChildren(this); } } } export class ViewDistSpecContext extends antlr.ParserRuleContext { public _colList?: ColumnNameListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DISTRIBUTED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DISTRIBUTED, 0)!; } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public columnNameList(): ColumnNameListContext { return this.getRuleContext(0, ColumnNameListContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_viewDistSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterViewDistSpec) { listener.enterViewDistSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitViewDistSpec) { listener.exitViewDistSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitViewDistSpec) { return visitor.visitViewDistSpec(this); } else { return visitor.visitChildren(this); } } } export class ViewSortSpecContext extends antlr.ParserRuleContext { public _colList?: ColumnNameListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SORTED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SORTED, 0)!; } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public columnNameList(): ColumnNameListContext { return this.getRuleContext(0, ColumnNameListContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_viewSortSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterViewSortSpec) { listener.enterViewSortSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitViewSortSpec) { listener.exitViewSortSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitViewSortSpec) { return visitor.visitViewSortSpec(this); } else { return visitor.visitChildren(this); } } } export class DropViewStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_VIEW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_VIEW, 0)!; } public viewName(): ViewNameContext { return this.getRuleContext(0, ViewNameContext)!; } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropViewStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropViewStatement) { listener.enterDropViewStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropViewStatement) { listener.exitDropViewStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropViewStatement) { return visitor.visitDropViewStatement(this); } else { return visitor.visitChildren(this); } } } export class CreateMaterializedViewStatementContext extends antlr.ParserRuleContext { public _name?: ViewNameCreateContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_MATERIALIZED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MATERIALIZED, 0)!; } public KW_VIEW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_VIEW, 0)!; } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public selectStatementWithCTE(): SelectStatementWithCTEContext { return this.getRuleContext(0, SelectStatementWithCTEContext)!; } public viewNameCreate(): ViewNameCreateContext { return this.getRuleContext(0, ViewNameCreateContext)!; } public ifNotExists(): IfNotExistsContext | null { return this.getRuleContext(0, IfNotExistsContext); } public rewriteDisabled(): RewriteDisabledContext | null { return this.getRuleContext(0, RewriteDisabledContext); } public tableComment(): TableCommentContext | null { return this.getRuleContext(0, TableCommentContext); } public viewPartition(): ViewPartitionContext | null { return this.getRuleContext(0, ViewPartitionContext); } public viewOrganization(): ViewOrganizationContext | null { return this.getRuleContext(0, ViewOrganizationContext); } public tableRowFormat(): TableRowFormatContext | null { return this.getRuleContext(0, TableRowFormatContext); } public tableFileFormat(): TableFileFormatContext | null { return this.getRuleContext(0, TableFileFormatContext); } public tableLocation(): TableLocationContext | null { return this.getRuleContext(0, TableLocationContext); } public tablePropertiesPrefixed(): TablePropertiesPrefixedContext | null { return this.getRuleContext(0, TablePropertiesPrefixedContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createMaterializedViewStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateMaterializedViewStatement) { listener.enterCreateMaterializedViewStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateMaterializedViewStatement) { listener.exitCreateMaterializedViewStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateMaterializedViewStatement) { return visitor.visitCreateMaterializedViewStatement(this); } else { return visitor.visitChildren(this); } } } export class DropMaterializedViewStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_MATERIALIZED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MATERIALIZED, 0)!; } public KW_VIEW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_VIEW, 0)!; } public viewName(): ViewNameContext { return this.getRuleContext(0, ViewNameContext)!; } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropMaterializedViewStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropMaterializedViewStatement) { listener.enterDropMaterializedViewStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropMaterializedViewStatement) { listener.exitDropMaterializedViewStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropMaterializedViewStatement) { return visitor.visitDropMaterializedViewStatement(this); } else { return visitor.visitChildren(this); } } } export class CreateScheduledQueryStatementContext extends antlr.ParserRuleContext { public _name?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_SCHEDULED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SCHEDULED, 0)!; } public KW_QUERY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_QUERY, 0)!; } public scheduleSpec(): ScheduleSpecContext { return this.getRuleContext(0, ScheduleSpecContext)!; } public definedAsSpec(): DefinedAsSpecContext { return this.getRuleContext(0, DefinedAsSpecContext)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public executedAsSpec(): ExecutedAsSpecContext | null { return this.getRuleContext(0, ExecutedAsSpecContext); } public enableSpecification(): EnableSpecificationContext | null { return this.getRuleContext(0, EnableSpecificationContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createScheduledQueryStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateScheduledQueryStatement) { listener.enterCreateScheduledQueryStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateScheduledQueryStatement) { listener.exitCreateScheduledQueryStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateScheduledQueryStatement) { return visitor.visitCreateScheduledQueryStatement(this); } else { return visitor.visitChildren(this); } } } export class DropScheduledQueryStatementContext extends antlr.ParserRuleContext { public _name?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_SCHEDULED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SCHEDULED, 0)!; } public KW_QUERY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_QUERY, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropScheduledQueryStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropScheduledQueryStatement) { listener.enterDropScheduledQueryStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropScheduledQueryStatement) { listener.exitDropScheduledQueryStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropScheduledQueryStatement) { return visitor.visitDropScheduledQueryStatement(this); } else { return visitor.visitChildren(this); } } } export class AlterScheduledQueryStatementContext extends antlr.ParserRuleContext { public _name?: Id_Context; public _mod?: AlterScheduledQueryChangeContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALTER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ALTER, 0)!; } public KW_SCHEDULED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SCHEDULED, 0)!; } public KW_QUERY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_QUERY, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public alterScheduledQueryChange(): AlterScheduledQueryChangeContext { return this.getRuleContext(0, AlterScheduledQueryChangeContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterScheduledQueryStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterScheduledQueryStatement) { listener.enterAlterScheduledQueryStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterScheduledQueryStatement) { listener.exitAlterScheduledQueryStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterScheduledQueryStatement) { return visitor.visitAlterScheduledQueryStatement(this); } else { return visitor.visitChildren(this); } } } export class AlterScheduledQueryChangeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public scheduleSpec(): ScheduleSpecContext | null { return this.getRuleContext(0, ScheduleSpecContext); } public executedAsSpec(): ExecutedAsSpecContext | null { return this.getRuleContext(0, ExecutedAsSpecContext); } public enableSpecification(): EnableSpecificationContext | null { return this.getRuleContext(0, EnableSpecificationContext); } public definedAsSpec(): DefinedAsSpecContext | null { return this.getRuleContext(0, DefinedAsSpecContext); } public KW_EXECUTE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXECUTE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterScheduledQueryChange; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterScheduledQueryChange) { listener.enterAlterScheduledQueryChange(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterScheduledQueryChange) { listener.exitAlterScheduledQueryChange(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterScheduledQueryChange) { return visitor.visitAlterScheduledQueryChange(this); } else { return visitor.visitChildren(this); } } } export class ScheduleSpecContext extends antlr.ParserRuleContext { public _cronString?: Token | null; public _value?: Token | null; public _qualifier?: IntervalQualifiersContext; public _offsetTs?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CRON(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CRON, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public KW_EVERY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EVERY, 0); } public intervalQualifiers(): IntervalQualifiersContext | null { return this.getRuleContext(0, IntervalQualifiersContext); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public KW_AT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AT, 0); } public KW_OFFSET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OFFSET, 0); } public KW_BY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BY, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_scheduleSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterScheduleSpec) { listener.enterScheduleSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitScheduleSpec) { listener.exitScheduleSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitScheduleSpec) { return visitor.visitScheduleSpec(this); } else { return visitor.visitChildren(this); } } } export class ExecutedAsSpecContext extends antlr.ParserRuleContext { public _executedAs?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_EXECUTED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_EXECUTED, 0)!; } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_executedAsSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExecutedAsSpec) { listener.enterExecutedAsSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExecutedAsSpec) { listener.exitExecutedAsSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExecutedAsSpec) { return visitor.visitExecutedAsSpec(this); } else { return visitor.visitChildren(this); } } } export class DefinedAsSpecContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public statement(): StatementContext { return this.getRuleContext(0, StatementContext)!; } public KW_DEFINED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEFINED, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_definedAsSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDefinedAsSpec) { listener.enterDefinedAsSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDefinedAsSpec) { listener.exitDefinedAsSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDefinedAsSpec) { return visitor.visitDefinedAsSpec(this); } else { return visitor.visitChildren(this); } } } export class ShowStmtIdentifierContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_showStmtIdentifier; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterShowStmtIdentifier) { listener.enterShowStmtIdentifier(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitShowStmtIdentifier) { listener.exitShowStmtIdentifier(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitShowStmtIdentifier) { return visitor.visitShowStmtIdentifier(this); } else { return visitor.visitChildren(this); } } } export class TableCommentContext extends antlr.ParserRuleContext { public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_COMMENT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COMMENT, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableComment; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableComment) { listener.enterTableComment(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableComment) { listener.exitTableComment(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableComment) { return visitor.visitTableComment(this); } else { return visitor.visitChildren(this); } } } export class CreateTablePartitionSpecContext extends antlr.ParserRuleContext { public _opt1?: CreateTablePartitionColumnTypeSpecContext; public _opt2?: CreateTablePartitionColumnSpecContext; public _spec?: PartitionTransformSpecContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_PARTITIONED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PARTITIONED, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public KW_SPEC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SPEC, 0); } public partitionTransformSpec(): PartitionTransformSpecContext | null { return this.getRuleContext(0, PartitionTransformSpecContext); } public createTablePartitionColumnTypeSpec(): CreateTablePartitionColumnTypeSpecContext | null { return this.getRuleContext(0, CreateTablePartitionColumnTypeSpecContext); } public createTablePartitionColumnSpec(): CreateTablePartitionColumnSpecContext | null { return this.getRuleContext(0, CreateTablePartitionColumnSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createTablePartitionSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateTablePartitionSpec) { listener.enterCreateTablePartitionSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateTablePartitionSpec) { listener.exitCreateTablePartitionSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateTablePartitionSpec) { return visitor.visitCreateTablePartitionSpec(this); } else { return visitor.visitChildren(this); } } } export class CreateTablePartitionColumnTypeSpecContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnNameTypeConstraint(): ColumnNameTypeConstraintContext[]; public columnNameTypeConstraint(i: number): ColumnNameTypeConstraintContext | null; public columnNameTypeConstraint(i?: number): ColumnNameTypeConstraintContext[] | ColumnNameTypeConstraintContext | null { if (i === undefined) { return this.getRuleContexts(ColumnNameTypeConstraintContext); } return this.getRuleContext(i, ColumnNameTypeConstraintContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_createTablePartitionColumnTypeSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateTablePartitionColumnTypeSpec) { listener.enterCreateTablePartitionColumnTypeSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateTablePartitionColumnTypeSpec) { listener.exitCreateTablePartitionColumnTypeSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateTablePartitionColumnTypeSpec) { return visitor.visitCreateTablePartitionColumnTypeSpec(this); } else { return visitor.visitChildren(this); } } } export class CreateTablePartitionColumnSpecContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnName(): ColumnNameContext[]; public columnName(i: number): ColumnNameContext | null; public columnName(i?: number): ColumnNameContext[] | ColumnNameContext | null { if (i === undefined) { return this.getRuleContexts(ColumnNameContext); } return this.getRuleContext(i, ColumnNameContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_createTablePartitionColumnSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateTablePartitionColumnSpec) { listener.enterCreateTablePartitionColumnSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateTablePartitionColumnSpec) { listener.exitCreateTablePartitionColumnSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateTablePartitionColumnSpec) { return visitor.visitCreateTablePartitionColumnSpec(this); } else { return visitor.visitChildren(this); } } } export class PartitionTransformSpecContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnNameTransformConstraint(): ColumnNameTransformConstraintContext[]; public columnNameTransformConstraint(i: number): ColumnNameTransformConstraintContext | null; public columnNameTransformConstraint(i?: number): ColumnNameTransformConstraintContext[] | ColumnNameTransformConstraintContext | null { if (i === undefined) { return this.getRuleContexts(ColumnNameTransformConstraintContext); } return this.getRuleContext(i, ColumnNameTransformConstraintContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionTransformSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionTransformSpec) { listener.enterPartitionTransformSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionTransformSpec) { listener.exitPartitionTransformSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionTransformSpec) { return visitor.visitPartitionTransformSpec(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameTransformConstraintContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public partitionTransformType(): PartitionTransformTypeContext { return this.getRuleContext(0, PartitionTransformTypeContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameTransformConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameTransformConstraint) { listener.enterColumnNameTransformConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameTransformConstraint) { listener.exitColumnNameTransformConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameTransformConstraint) { return visitor.visitColumnNameTransformConstraint(this); } else { return visitor.visitChildren(this); } } } export class PartitionTransformTypeContext extends antlr.ParserRuleContext { public _value?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnName(): ColumnNameContext { return this.getRuleContext(0, ColumnNameContext)!; } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public year(): YearContext | null { return this.getRuleContext(0, YearContext); } public month(): MonthContext | null { return this.getRuleContext(0, MonthContext); } public day(): DayContext | null { return this.getRuleContext(0, DayContext); } public hour(): HourContext | null { return this.getRuleContext(0, HourContext); } public COMMA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.COMMA, 0); } public KW_TRUNCATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRUNCATE, 0); } public KW_BUCKET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BUCKET, 0); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionTransformType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionTransformType) { listener.enterPartitionTransformType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionTransformType) { listener.exitPartitionTransformType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionTransformType) { return visitor.visitPartitionTransformType(this); } else { return visitor.visitChildren(this); } } } export class TableBucketsContext extends antlr.ParserRuleContext { public _bucketCols?: ColumnNameListContext; public _sortCols?: ColumnNameOrderListContext; public _num?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CLUSTERED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CLUSTERED, 0)!; } public KW_BY(): antlr.TerminalNode[]; public KW_BY(i: number): antlr.TerminalNode | null; public KW_BY(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_BY); } else { return this.getToken(HiveSqlParser.KW_BY, i); } } public LPAREN(): antlr.TerminalNode[]; public LPAREN(i: number): antlr.TerminalNode | null; public LPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.LPAREN); } else { return this.getToken(HiveSqlParser.LPAREN, i); } } public RPAREN(): antlr.TerminalNode[]; public RPAREN(i: number): antlr.TerminalNode | null; public RPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.RPAREN); } else { return this.getToken(HiveSqlParser.RPAREN, i); } } public KW_INTO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INTO, 0)!; } public KW_BUCKETS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BUCKETS, 0)!; } public columnNameList(): ColumnNameListContext { return this.getRuleContext(0, ColumnNameListContext)!; } public Number(): antlr.TerminalNode { return this.getToken(HiveSqlParser.Number, 0)!; } public KW_SORTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SORTED, 0); } public columnNameOrderList(): ColumnNameOrderListContext | null { return this.getRuleContext(0, ColumnNameOrderListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableBuckets; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableBuckets) { listener.enterTableBuckets(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableBuckets) { listener.exitTableBuckets(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableBuckets) { return visitor.visitTableBuckets(this); } else { return visitor.visitChildren(this); } } } export class TableImplBucketsContext extends antlr.ParserRuleContext { public _num?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CLUSTERED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CLUSTERED, 0)!; } public KW_INTO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INTO, 0)!; } public KW_BUCKETS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BUCKETS, 0)!; } public Number(): antlr.TerminalNode { return this.getToken(HiveSqlParser.Number, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableImplBuckets; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableImplBuckets) { listener.enterTableImplBuckets(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableImplBuckets) { listener.exitTableImplBuckets(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableImplBuckets) { return visitor.visitTableImplBuckets(this); } else { return visitor.visitChildren(this); } } } export class TableSkewedContext extends antlr.ParserRuleContext { public _skewedCols?: ColumnNameListContext; public _skewedValues?: SkewedValueElementContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SKEWED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SKEWED, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public LPAREN(): antlr.TerminalNode[]; public LPAREN(i: number): antlr.TerminalNode | null; public LPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.LPAREN); } else { return this.getToken(HiveSqlParser.LPAREN, i); } } public RPAREN(): antlr.TerminalNode[]; public RPAREN(i: number): antlr.TerminalNode | null; public RPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.RPAREN); } else { return this.getToken(HiveSqlParser.RPAREN, i); } } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public columnNameList(): ColumnNameListContext { return this.getRuleContext(0, ColumnNameListContext)!; } public skewedValueElement(): SkewedValueElementContext { return this.getRuleContext(0, SkewedValueElementContext)!; } public storedAsDirs(): StoredAsDirsContext | null { return this.getRuleContext(0, StoredAsDirsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableSkewed; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableSkewed) { listener.enterTableSkewed(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableSkewed) { listener.exitTableSkewed(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableSkewed) { return visitor.visitTableSkewed(this); } else { return visitor.visitChildren(this); } } } export class RowFormatContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public rowFormatSerde(): RowFormatSerdeContext | null { return this.getRuleContext(0, RowFormatSerdeContext); } public rowFormatDelimited(): RowFormatDelimitedContext | null { return this.getRuleContext(0, RowFormatDelimitedContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_rowFormat; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRowFormat) { listener.enterRowFormat(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRowFormat) { listener.exitRowFormat(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRowFormat) { return visitor.visitRowFormat(this); } else { return visitor.visitChildren(this); } } } export class RecordReaderContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RECORDREADER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RECORDREADER, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_recordReader; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRecordReader) { listener.enterRecordReader(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRecordReader) { listener.exitRecordReader(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRecordReader) { return visitor.visitRecordReader(this); } else { return visitor.visitChildren(this); } } } export class RecordWriterContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RECORDWRITER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RECORDWRITER, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_recordWriter; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRecordWriter) { listener.enterRecordWriter(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRecordWriter) { listener.exitRecordWriter(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRecordWriter) { return visitor.visitRecordWriter(this); } else { return visitor.visitChildren(this); } } } export class RowFormatSerdeContext extends antlr.ParserRuleContext { public _name?: Token | null; public _serdeprops?: TablePropertiesContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ROW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROW, 0)!; } public KW_FORMAT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FORMAT, 0)!; } public KW_SERDE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SERDE, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_SERDEPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERDEPROPERTIES, 0); } public tableProperties(): TablePropertiesContext | null { return this.getRuleContext(0, TablePropertiesContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_rowFormatSerde; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRowFormatSerde) { listener.enterRowFormatSerde(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRowFormatSerde) { listener.exitRowFormatSerde(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRowFormatSerde) { return visitor.visitRowFormatSerde(this); } else { return visitor.visitChildren(this); } } } export class RowFormatDelimitedContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ROW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROW, 0)!; } public KW_FORMAT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FORMAT, 0)!; } public KW_DELIMITED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DELIMITED, 0)!; } public tableRowFormatFieldIdentifier(): TableRowFormatFieldIdentifierContext | null { return this.getRuleContext(0, TableRowFormatFieldIdentifierContext); } public tableRowFormatCollItemsIdentifier(): TableRowFormatCollItemsIdentifierContext | null { return this.getRuleContext(0, TableRowFormatCollItemsIdentifierContext); } public tableRowFormatMapKeysIdentifier(): TableRowFormatMapKeysIdentifierContext | null { return this.getRuleContext(0, TableRowFormatMapKeysIdentifierContext); } public tableRowFormatLinesIdentifier(): TableRowFormatLinesIdentifierContext | null { return this.getRuleContext(0, TableRowFormatLinesIdentifierContext); } public tableRowNullFormat(): TableRowNullFormatContext | null { return this.getRuleContext(0, TableRowNullFormatContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_rowFormatDelimited; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRowFormatDelimited) { listener.enterRowFormatDelimited(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRowFormatDelimited) { listener.exitRowFormatDelimited(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRowFormatDelimited) { return visitor.visitRowFormatDelimited(this); } else { return visitor.visitChildren(this); } } } export class TableRowFormatContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public rowFormatDelimited(): RowFormatDelimitedContext | null { return this.getRuleContext(0, RowFormatDelimitedContext); } public rowFormatSerde(): RowFormatSerdeContext | null { return this.getRuleContext(0, RowFormatSerdeContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableRowFormat; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableRowFormat) { listener.enterTableRowFormat(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableRowFormat) { listener.exitTableRowFormat(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableRowFormat) { return visitor.visitTableRowFormat(this); } else { return visitor.visitChildren(this); } } } export class TablePropertiesPrefixedContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TBLPROPERTIES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TBLPROPERTIES, 0)!; } public tableProperties(): TablePropertiesContext { return this.getRuleContext(0, TablePropertiesContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tablePropertiesPrefixed; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTablePropertiesPrefixed) { listener.enterTablePropertiesPrefixed(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTablePropertiesPrefixed) { listener.exitTablePropertiesPrefixed(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTablePropertiesPrefixed) { return visitor.visitTablePropertiesPrefixed(this); } else { return visitor.visitChildren(this); } } } export class TablePropertiesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public tablePropertiesList(): TablePropertiesListContext { return this.getRuleContext(0, TablePropertiesListContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableProperties; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableProperties) { listener.enterTableProperties(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableProperties) { listener.exitTableProperties(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableProperties) { return visitor.visitTableProperties(this); } else { return visitor.visitChildren(this); } } } export class TablePropertiesListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public keyValueProperty(): KeyValuePropertyContext[]; public keyValueProperty(i: number): KeyValuePropertyContext | null; public keyValueProperty(i?: number): KeyValuePropertyContext[] | KeyValuePropertyContext | null { if (i === undefined) { return this.getRuleContexts(KeyValuePropertyContext); } return this.getRuleContext(i, KeyValuePropertyContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public keyProperty(): KeyPropertyContext[]; public keyProperty(i: number): KeyPropertyContext | null; public keyProperty(i?: number): KeyPropertyContext[] | KeyPropertyContext | null { if (i === undefined) { return this.getRuleContexts(KeyPropertyContext); } return this.getRuleContext(i, KeyPropertyContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tablePropertiesList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTablePropertiesList) { listener.enterTablePropertiesList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTablePropertiesList) { listener.exitTablePropertiesList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTablePropertiesList) { return visitor.visitTablePropertiesList(this); } else { return visitor.visitChildren(this); } } } export class KeyValuePropertyContext extends antlr.ParserRuleContext { public _key?: Token | null; public _value?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public EQUAL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.EQUAL, 0)!; } public StringLiteral(): antlr.TerminalNode[]; public StringLiteral(i: number): antlr.TerminalNode | null; public StringLiteral(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.StringLiteral); } else { return this.getToken(HiveSqlParser.StringLiteral, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_keyValueProperty; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterKeyValueProperty) { listener.enterKeyValueProperty(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitKeyValueProperty) { listener.exitKeyValueProperty(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitKeyValueProperty) { return visitor.visitKeyValueProperty(this); } else { return visitor.visitChildren(this); } } } export class KeyPropertyContext extends antlr.ParserRuleContext { public _key?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_keyProperty; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterKeyProperty) { listener.enterKeyProperty(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitKeyProperty) { listener.exitKeyProperty(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitKeyProperty) { return visitor.visitKeyProperty(this); } else { return visitor.visitChildren(this); } } } export class TableRowFormatFieldIdentifierContext extends antlr.ParserRuleContext { public _fldIdnt?: Token | null; public _fldEscape?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_FIELDS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FIELDS, 0)!; } public KW_TERMINATED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TERMINATED, 0)!; } public KW_BY(): antlr.TerminalNode[]; public KW_BY(i: number): antlr.TerminalNode | null; public KW_BY(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_BY); } else { return this.getToken(HiveSqlParser.KW_BY, i); } } public StringLiteral(): antlr.TerminalNode[]; public StringLiteral(i: number): antlr.TerminalNode | null; public StringLiteral(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.StringLiteral); } else { return this.getToken(HiveSqlParser.StringLiteral, i); } } public KW_ESCAPED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ESCAPED, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableRowFormatFieldIdentifier; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableRowFormatFieldIdentifier) { listener.enterTableRowFormatFieldIdentifier(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableRowFormatFieldIdentifier) { listener.exitTableRowFormatFieldIdentifier(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableRowFormatFieldIdentifier) { return visitor.visitTableRowFormatFieldIdentifier(this); } else { return visitor.visitChildren(this); } } } export class TableRowFormatCollItemsIdentifierContext extends antlr.ParserRuleContext { public _collIdnt?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_COLLECTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COLLECTION, 0)!; } public KW_ITEMS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ITEMS, 0)!; } public KW_TERMINATED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TERMINATED, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableRowFormatCollItemsIdentifier; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableRowFormatCollItemsIdentifier) { listener.enterTableRowFormatCollItemsIdentifier(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableRowFormatCollItemsIdentifier) { listener.exitTableRowFormatCollItemsIdentifier(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableRowFormatCollItemsIdentifier) { return visitor.visitTableRowFormatCollItemsIdentifier(this); } else { return visitor.visitChildren(this); } } } export class TableRowFormatMapKeysIdentifierContext extends antlr.ParserRuleContext { public _mapKeysIdnt?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_MAP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MAP, 0)!; } public KW_KEYS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_KEYS, 0)!; } public KW_TERMINATED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TERMINATED, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableRowFormatMapKeysIdentifier; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableRowFormatMapKeysIdentifier) { listener.enterTableRowFormatMapKeysIdentifier(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableRowFormatMapKeysIdentifier) { listener.exitTableRowFormatMapKeysIdentifier(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableRowFormatMapKeysIdentifier) { return visitor.visitTableRowFormatMapKeysIdentifier(this); } else { return visitor.visitChildren(this); } } } export class TableRowFormatLinesIdentifierContext extends antlr.ParserRuleContext { public _linesIdnt?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LINES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LINES, 0)!; } public KW_TERMINATED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TERMINATED, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableRowFormatLinesIdentifier; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableRowFormatLinesIdentifier) { listener.enterTableRowFormatLinesIdentifier(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableRowFormatLinesIdentifier) { listener.exitTableRowFormatLinesIdentifier(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableRowFormatLinesIdentifier) { return visitor.visitTableRowFormatLinesIdentifier(this); } else { return visitor.visitChildren(this); } } } export class TableRowNullFormatContext extends antlr.ParserRuleContext { public _nullIdnt?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_NULL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_NULL, 0)!; } public KW_DEFINED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DEFINED, 0)!; } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableRowNullFormat; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableRowNullFormat) { listener.enterTableRowNullFormat(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableRowNullFormat) { listener.exitTableRowNullFormat(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableRowNullFormat) { return visitor.visitTableRowNullFormat(this); } else { return visitor.visitChildren(this); } } } export class TableFileFormatContext extends antlr.ParserRuleContext { public _inFmt?: Token | null; public _outFmt?: Token | null; public _inDriver?: Token | null; public _outDriver?: Token | null; public _storageHandler?: Token | null; public _serdeprops?: TablePropertiesContext; public _fileformat?: Id_Context; public _genericSpec?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_STORED(): antlr.TerminalNode[]; public KW_STORED(i: number): antlr.TerminalNode | null; public KW_STORED(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_STORED); } else { return this.getToken(HiveSqlParser.KW_STORED, i); } } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public KW_INPUTFORMAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INPUTFORMAT, 0); } public KW_OUTPUTFORMAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OUTPUTFORMAT, 0); } public StringLiteral(): antlr.TerminalNode[]; public StringLiteral(i: number): antlr.TerminalNode | null; public StringLiteral(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.StringLiteral); } else { return this.getToken(HiveSqlParser.StringLiteral, i); } } public KW_INPUTDRIVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INPUTDRIVER, 0); } public KW_OUTPUTDRIVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OUTPUTDRIVER, 0); } public KW_BY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BY, 0); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_SERDEPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERDEPROPERTIES, 0); } public tableProperties(): TablePropertiesContext | null { return this.getRuleContext(0, TablePropertiesContext); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableFileFormat; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableFileFormat) { listener.enterTableFileFormat(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableFileFormat) { listener.exitTableFileFormat(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableFileFormat) { return visitor.visitTableFileFormat(this); } else { return visitor.visitChildren(this); } } } export class TableLocationContext extends antlr.ParserRuleContext { public _locn?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LOCATION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LOCATION, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableLocation; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableLocation) { listener.enterTableLocation(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableLocation) { listener.exitTableLocation(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableLocation) { return visitor.visitTableLocation(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameTypeListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnNameType(): ColumnNameTypeContext[]; public columnNameType(i: number): ColumnNameTypeContext | null; public columnNameType(i?: number): ColumnNameTypeContext[] | ColumnNameTypeContext | null { if (i === undefined) { return this.getRuleContexts(ColumnNameTypeContext); } return this.getRuleContext(i, ColumnNameTypeContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameTypeList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameTypeList) { listener.enterColumnNameTypeList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameTypeList) { listener.exitColumnNameTypeList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameTypeList) { return visitor.visitColumnNameTypeList(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameTypeOrConstraintListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnNameTypeOrConstraint(): ColumnNameTypeOrConstraintContext[]; public columnNameTypeOrConstraint(i: number): ColumnNameTypeOrConstraintContext | null; public columnNameTypeOrConstraint(i?: number): ColumnNameTypeOrConstraintContext[] | ColumnNameTypeOrConstraintContext | null { if (i === undefined) { return this.getRuleContexts(ColumnNameTypeOrConstraintContext); } return this.getRuleContext(i, ColumnNameTypeOrConstraintContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameTypeOrConstraintList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameTypeOrConstraintList) { listener.enterColumnNameTypeOrConstraintList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameTypeOrConstraintList) { listener.exitColumnNameTypeOrConstraintList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameTypeOrConstraintList) { return visitor.visitColumnNameTypeOrConstraintList(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameColonTypeListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnNameColonType(): ColumnNameColonTypeContext[]; public columnNameColonType(i: number): ColumnNameColonTypeContext | null; public columnNameColonType(i?: number): ColumnNameColonTypeContext[] | ColumnNameColonTypeContext | null { if (i === undefined) { return this.getRuleContexts(ColumnNameColonTypeContext); } return this.getRuleContext(i, ColumnNameColonTypeContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameColonTypeList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameColonTypeList) { listener.enterColumnNameColonTypeList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameColonTypeList) { listener.exitColumnNameColonTypeList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameColonTypeList) { return visitor.visitColumnNameColonTypeList(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnName(): ColumnNameContext[]; public columnName(i: number): ColumnNameContext | null; public columnName(i?: number): ColumnNameContext[] | ColumnNameContext | null { if (i === undefined) { return this.getRuleContexts(ColumnNameContext); } return this.getRuleContext(i, ColumnNameContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameList) { listener.enterColumnNameList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameList) { listener.exitColumnNameList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameList) { return visitor.visitColumnNameList(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public DOT(): antlr.TerminalNode[]; public DOT(i: number): antlr.TerminalNode | null; public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.DOT); } else { return this.getToken(HiveSqlParser.DOT, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnName) { listener.enterColumnName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnName) { listener.exitColumnName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnName) { return visitor.visitColumnName(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameCreateContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameCreate; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameCreate) { listener.enterColumnNameCreate(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameCreate) { listener.exitColumnNameCreate(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameCreate) { return visitor.visitColumnNameCreate(this); } else { return visitor.visitChildren(this); } } } export class ExtColumnNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnName(): ColumnNameContext { return this.getRuleContext(0, ColumnNameContext)!; } public DOT(): antlr.TerminalNode[]; public DOT(i: number): antlr.TerminalNode | null; public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.DOT); } else { return this.getToken(HiveSqlParser.DOT, i); } } public KW_ELEM_TYPE(): antlr.TerminalNode[]; public KW_ELEM_TYPE(i: number): antlr.TerminalNode | null; public KW_ELEM_TYPE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_ELEM_TYPE); } else { return this.getToken(HiveSqlParser.KW_ELEM_TYPE, i); } } public KW_KEY_TYPE(): antlr.TerminalNode[]; public KW_KEY_TYPE(i: number): antlr.TerminalNode | null; public KW_KEY_TYPE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_KEY_TYPE); } else { return this.getToken(HiveSqlParser.KW_KEY_TYPE, i); } } public KW_VALUE_TYPE(): antlr.TerminalNode[]; public KW_VALUE_TYPE(i: number): antlr.TerminalNode | null; public KW_VALUE_TYPE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_VALUE_TYPE); } else { return this.getToken(HiveSqlParser.KW_VALUE_TYPE, i); } } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_extColumnName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExtColumnName) { listener.enterExtColumnName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExtColumnName) { listener.exitExtColumnName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExtColumnName) { return visitor.visitExtColumnName(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameOrderListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnNameOrder(): ColumnNameOrderContext[]; public columnNameOrder(i: number): ColumnNameOrderContext | null; public columnNameOrder(i?: number): ColumnNameOrderContext[] | ColumnNameOrderContext | null { if (i === undefined) { return this.getRuleContexts(ColumnNameOrderContext); } return this.getRuleContext(i, ColumnNameOrderContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameOrderList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameOrderList) { listener.enterColumnNameOrderList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameOrderList) { listener.exitColumnNameOrderList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameOrderList) { return visitor.visitColumnNameOrderList(this); } else { return visitor.visitChildren(this); } } } export class ColumnParenthesesListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public columnNameList(): ColumnNameListContext { return this.getRuleContext(0, ColumnNameListContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnParenthesesList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnParenthesesList) { listener.enterColumnParenthesesList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnParenthesesList) { listener.exitColumnParenthesesList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnParenthesesList) { return visitor.visitColumnParenthesesList(this); } else { return visitor.visitChildren(this); } } } export class EnableValidateSpecificationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public enableSpecification(): EnableSpecificationContext | null { return this.getRuleContext(0, EnableSpecificationContext); } public validateSpecification(): ValidateSpecificationContext | null { return this.getRuleContext(0, ValidateSpecificationContext); } public enforcedSpecification(): EnforcedSpecificationContext | null { return this.getRuleContext(0, EnforcedSpecificationContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_enableValidateSpecification; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterEnableValidateSpecification) { listener.enterEnableValidateSpecification(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitEnableValidateSpecification) { listener.exitEnableValidateSpecification(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitEnableValidateSpecification) { return visitor.visitEnableValidateSpecification(this); } else { return visitor.visitChildren(this); } } } export class EnableSpecificationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public enable(): EnableContext | null { return this.getRuleContext(0, EnableContext); } public disable(): DisableContext | null { return this.getRuleContext(0, DisableContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_enableSpecification; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterEnableSpecification) { listener.enterEnableSpecification(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitEnableSpecification) { listener.exitEnableSpecification(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitEnableSpecification) { return visitor.visitEnableSpecification(this); } else { return visitor.visitChildren(this); } } } export class ValidateSpecificationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_VALIDATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VALIDATE, 0); } public KW_NOVALIDATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOVALIDATE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_validateSpecification; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterValidateSpecification) { listener.enterValidateSpecification(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitValidateSpecification) { listener.exitValidateSpecification(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitValidateSpecification) { return visitor.visitValidateSpecification(this); } else { return visitor.visitChildren(this); } } } export class EnforcedSpecificationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ENFORCED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ENFORCED, 0)!; } public KW_NOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_enforcedSpecification; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterEnforcedSpecification) { listener.enterEnforcedSpecification(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitEnforcedSpecification) { listener.exitEnforcedSpecification(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitEnforcedSpecification) { return visitor.visitEnforcedSpecification(this); } else { return visitor.visitChildren(this); } } } export class RelySpecificationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RELY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RELY, 0); } public KW_NORELY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NORELY, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_relySpecification; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRelySpecification) { listener.enterRelySpecification(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRelySpecification) { listener.exitRelySpecification(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRelySpecification) { return visitor.visitRelySpecification(this); } else { return visitor.visitChildren(this); } } } export class CreateConstraintContext extends antlr.ParserRuleContext { public _constraintName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableLevelConstraint(): TableLevelConstraintContext { return this.getRuleContext(0, TableLevelConstraintContext)!; } public KW_CONSTRAINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CONSTRAINT, 0); } public constraintOptsCreate(): ConstraintOptsCreateContext | null { return this.getRuleContext(0, ConstraintOptsCreateContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateConstraint) { listener.enterCreateConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateConstraint) { listener.exitCreateConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateConstraint) { return visitor.visitCreateConstraint(this); } else { return visitor.visitChildren(this); } } } export class AlterConstraintWithNameContext extends antlr.ParserRuleContext { public _constraintName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CONSTRAINT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CONSTRAINT, 0)!; } public tableLevelConstraint(): TableLevelConstraintContext { return this.getRuleContext(0, TableLevelConstraintContext)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public constraintOptsAlter(): ConstraintOptsAlterContext | null { return this.getRuleContext(0, ConstraintOptsAlterContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterConstraintWithName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterConstraintWithName) { listener.enterAlterConstraintWithName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterConstraintWithName) { listener.exitAlterConstraintWithName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterConstraintWithName) { return visitor.visitAlterConstraintWithName(this); } else { return visitor.visitChildren(this); } } } export class TableLevelConstraintContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public pkUkConstraint(): PkUkConstraintContext | null { return this.getRuleContext(0, PkUkConstraintContext); } public checkConstraint(): CheckConstraintContext | null { return this.getRuleContext(0, CheckConstraintContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableLevelConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableLevelConstraint) { listener.enterTableLevelConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableLevelConstraint) { listener.exitTableLevelConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableLevelConstraint) { return visitor.visitTableLevelConstraint(this); } else { return visitor.visitChildren(this); } } } export class PkUkConstraintContext extends antlr.ParserRuleContext { public _pkCols?: ColumnParenthesesListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableConstraintType(): TableConstraintTypeContext { return this.getRuleContext(0, TableConstraintTypeContext)!; } public columnParenthesesList(): ColumnParenthesesListContext { return this.getRuleContext(0, ColumnParenthesesListContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_pkUkConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPkUkConstraint) { listener.enterPkUkConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPkUkConstraint) { listener.exitPkUkConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPkUkConstraint) { return visitor.visitPkUkConstraint(this); } else { return visitor.visitChildren(this); } } } export class CheckConstraintContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CHECK(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CHECK, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_checkConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCheckConstraint) { listener.enterCheckConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCheckConstraint) { listener.exitCheckConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCheckConstraint) { return visitor.visitCheckConstraint(this); } else { return visitor.visitChildren(this); } } } export class CreateForeignKeyContext extends antlr.ParserRuleContext { public _constraintName?: Id_Context; public _fkCols?: ColumnParenthesesListContext; public _tabName?: TableNameContext; public _parCols?: ColumnParenthesesListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_FOREIGN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FOREIGN, 0)!; } public KW_KEY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_KEY, 0)!; } public KW_REFERENCES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REFERENCES, 0)!; } public columnParenthesesList(): ColumnParenthesesListContext[]; public columnParenthesesList(i: number): ColumnParenthesesListContext | null; public columnParenthesesList(i?: number): ColumnParenthesesListContext[] | ColumnParenthesesListContext | null { if (i === undefined) { return this.getRuleContexts(ColumnParenthesesListContext); } return this.getRuleContext(i, ColumnParenthesesListContext); } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public KW_CONSTRAINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CONSTRAINT, 0); } public constraintOptsCreate(): ConstraintOptsCreateContext | null { return this.getRuleContext(0, ConstraintOptsCreateContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createForeignKey; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateForeignKey) { listener.enterCreateForeignKey(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateForeignKey) { listener.exitCreateForeignKey(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateForeignKey) { return visitor.visitCreateForeignKey(this); } else { return visitor.visitChildren(this); } } } export class AlterForeignKeyWithNameContext extends antlr.ParserRuleContext { public _constraintName?: Id_Context; public _fkCols?: ColumnParenthesesListContext; public _tabName?: TableNameContext; public _parCols?: ColumnParenthesesListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CONSTRAINT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CONSTRAINT, 0)!; } public KW_FOREIGN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FOREIGN, 0)!; } public KW_KEY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_KEY, 0)!; } public KW_REFERENCES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REFERENCES, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public columnParenthesesList(): ColumnParenthesesListContext[]; public columnParenthesesList(i: number): ColumnParenthesesListContext | null; public columnParenthesesList(i?: number): ColumnParenthesesListContext[] | ColumnParenthesesListContext | null { if (i === undefined) { return this.getRuleContexts(ColumnParenthesesListContext); } return this.getRuleContext(i, ColumnParenthesesListContext); } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public constraintOptsAlter(): ConstraintOptsAlterContext | null { return this.getRuleContext(0, ConstraintOptsAlterContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterForeignKeyWithName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterForeignKeyWithName) { listener.enterAlterForeignKeyWithName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterForeignKeyWithName) { listener.exitAlterForeignKeyWithName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterForeignKeyWithName) { return visitor.visitAlterForeignKeyWithName(this); } else { return visitor.visitChildren(this); } } } export class SkewedValueElementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public skewedColumnValues(): SkewedColumnValuesContext | null { return this.getRuleContext(0, SkewedColumnValuesContext); } public skewedColumnValuePairList(): SkewedColumnValuePairListContext | null { return this.getRuleContext(0, SkewedColumnValuePairListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_skewedValueElement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSkewedValueElement) { listener.enterSkewedValueElement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSkewedValueElement) { listener.exitSkewedValueElement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSkewedValueElement) { return visitor.visitSkewedValueElement(this); } else { return visitor.visitChildren(this); } } } export class SkewedColumnValuePairListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public skewedColumnValuePair(): SkewedColumnValuePairContext[]; public skewedColumnValuePair(i: number): SkewedColumnValuePairContext | null; public skewedColumnValuePair(i?: number): SkewedColumnValuePairContext[] | SkewedColumnValuePairContext | null { if (i === undefined) { return this.getRuleContexts(SkewedColumnValuePairContext); } return this.getRuleContext(i, SkewedColumnValuePairContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_skewedColumnValuePairList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSkewedColumnValuePairList) { listener.enterSkewedColumnValuePairList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSkewedColumnValuePairList) { listener.exitSkewedColumnValuePairList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSkewedColumnValuePairList) { return visitor.visitSkewedColumnValuePairList(this); } else { return visitor.visitChildren(this); } } } export class SkewedColumnValuePairContext extends antlr.ParserRuleContext { public _colValues?: SkewedColumnValuesContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public skewedColumnValues(): SkewedColumnValuesContext { return this.getRuleContext(0, SkewedColumnValuesContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_skewedColumnValuePair; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSkewedColumnValuePair) { listener.enterSkewedColumnValuePair(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSkewedColumnValuePair) { listener.exitSkewedColumnValuePair(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSkewedColumnValuePair) { return visitor.visitSkewedColumnValuePair(this); } else { return visitor.visitChildren(this); } } } export class SkewedColumnValuesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public skewedColumnValue(): SkewedColumnValueContext[]; public skewedColumnValue(i: number): SkewedColumnValueContext | null; public skewedColumnValue(i?: number): SkewedColumnValueContext[] | SkewedColumnValueContext | null { if (i === undefined) { return this.getRuleContexts(SkewedColumnValueContext); } return this.getRuleContext(i, SkewedColumnValueContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_skewedColumnValues; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSkewedColumnValues) { listener.enterSkewedColumnValues(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSkewedColumnValues) { listener.exitSkewedColumnValues(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSkewedColumnValues) { return visitor.visitSkewedColumnValues(this); } else { return visitor.visitChildren(this); } } } export class SkewedColumnValueContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public constant(): ConstantContext { return this.getRuleContext(0, ConstantContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_skewedColumnValue; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSkewedColumnValue) { listener.enterSkewedColumnValue(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSkewedColumnValue) { listener.exitSkewedColumnValue(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSkewedColumnValue) { return visitor.visitSkewedColumnValue(this); } else { return visitor.visitChildren(this); } } } export class SkewedValueLocationElementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public skewedColumnValue(): SkewedColumnValueContext | null { return this.getRuleContext(0, SkewedColumnValueContext); } public skewedColumnValuePair(): SkewedColumnValuePairContext | null { return this.getRuleContext(0, SkewedColumnValuePairContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_skewedValueLocationElement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSkewedValueLocationElement) { listener.enterSkewedValueLocationElement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSkewedValueLocationElement) { listener.exitSkewedValueLocationElement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSkewedValueLocationElement) { return visitor.visitSkewedValueLocationElement(this); } else { return visitor.visitChildren(this); } } } export class OrderSpecificationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ASC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ASC, 0); } public KW_DESC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DESC, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_orderSpecification; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterOrderSpecification) { listener.enterOrderSpecification(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitOrderSpecification) { listener.exitOrderSpecification(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitOrderSpecification) { return visitor.visitOrderSpecification(this); } else { return visitor.visitChildren(this); } } } export class NullOrderingContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_NULLS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_NULLS, 0)!; } public KW_FIRST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FIRST, 0); } public KW_LAST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LAST, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_nullOrdering; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterNullOrdering) { listener.enterNullOrdering(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitNullOrdering) { listener.exitNullOrdering(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitNullOrdering) { return visitor.visitNullOrdering(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameOrderContext extends antlr.ParserRuleContext { public _orderSpec?: OrderSpecificationContext; public _nullSpec?: NullOrderingContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnName(): ColumnNameContext { return this.getRuleContext(0, ColumnNameContext)!; } public orderSpecification(): OrderSpecificationContext | null { return this.getRuleContext(0, OrderSpecificationContext); } public nullOrdering(): NullOrderingContext | null { return this.getRuleContext(0, NullOrderingContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameOrder; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameOrder) { listener.enterColumnNameOrder(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameOrder) { listener.exitColumnNameOrder(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameOrder) { return visitor.visitColumnNameOrder(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameCommentListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnNameComment(): ColumnNameCommentContext[]; public columnNameComment(i: number): ColumnNameCommentContext | null; public columnNameComment(i?: number): ColumnNameCommentContext[] | ColumnNameCommentContext | null { if (i === undefined) { return this.getRuleContexts(ColumnNameCommentContext); } return this.getRuleContext(i, ColumnNameCommentContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameCommentList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameCommentList) { listener.enterColumnNameCommentList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameCommentList) { listener.exitColumnNameCommentList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameCommentList) { return visitor.visitColumnNameCommentList(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameCommentContext extends antlr.ParserRuleContext { public _colName?: ColumnNameCreateContext; public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnNameCreate(): ColumnNameCreateContext { return this.getRuleContext(0, ColumnNameCreateContext)!; } public KW_COMMENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMMENT, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameComment; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameComment) { listener.enterColumnNameComment(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameComment) { listener.exitColumnNameComment(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameComment) { return visitor.visitColumnNameComment(this); } else { return visitor.visitChildren(this); } } } export class OrderSpecificationRewriteContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ASC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ASC, 0); } public KW_DESC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DESC, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_orderSpecificationRewrite; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterOrderSpecificationRewrite) { listener.enterOrderSpecificationRewrite(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitOrderSpecificationRewrite) { listener.exitOrderSpecificationRewrite(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitOrderSpecificationRewrite) { return visitor.visitOrderSpecificationRewrite(this); } else { return visitor.visitChildren(this); } } } export class ColumnRefOrderContext extends antlr.ParserRuleContext { public _orderSpec?: OrderSpecificationRewriteContext; public _nullSpec?: NullOrderingContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnName(): ColumnNameContext | null { return this.getRuleContext(0, ColumnNameContext); } public expression(): ExpressionContext | null { return this.getRuleContext(0, ExpressionContext); } public orderSpecificationRewrite(): OrderSpecificationRewriteContext | null { return this.getRuleContext(0, OrderSpecificationRewriteContext); } public nullOrdering(): NullOrderingContext | null { return this.getRuleContext(0, NullOrderingContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnRefOrder; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnRefOrder) { listener.enterColumnRefOrder(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnRefOrder) { listener.exitColumnRefOrder(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnRefOrder) { return visitor.visitColumnRefOrder(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameTypeContext extends antlr.ParserRuleContext { public _colName?: ColumnNameCreateContext; public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public colType(): ColTypeContext { return this.getRuleContext(0, ColTypeContext)!; } public columnNameCreate(): ColumnNameCreateContext { return this.getRuleContext(0, ColumnNameCreateContext)!; } public KW_COMMENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMMENT, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameType) { listener.enterColumnNameType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameType) { listener.exitColumnNameType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameType) { return visitor.visitColumnNameType(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameTypeOrConstraintContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableConstraint(): TableConstraintContext | null { return this.getRuleContext(0, TableConstraintContext); } public columnNameTypeConstraint(): ColumnNameTypeConstraintContext | null { return this.getRuleContext(0, ColumnNameTypeConstraintContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameTypeOrConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameTypeOrConstraint) { listener.enterColumnNameTypeOrConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameTypeOrConstraint) { listener.exitColumnNameTypeOrConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameTypeOrConstraint) { return visitor.visitColumnNameTypeOrConstraint(this); } else { return visitor.visitChildren(this); } } } export class TableConstraintContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public createForeignKey(): CreateForeignKeyContext | null { return this.getRuleContext(0, CreateForeignKeyContext); } public createConstraint(): CreateConstraintContext | null { return this.getRuleContext(0, CreateConstraintContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableConstraint) { listener.enterTableConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableConstraint) { listener.exitTableConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableConstraint) { return visitor.visitTableConstraint(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameTypeConstraintContext extends antlr.ParserRuleContext { public _colName?: ColumnNameCreateContext; public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public colType(): ColTypeContext { return this.getRuleContext(0, ColTypeContext)!; } public columnNameCreate(): ColumnNameCreateContext { return this.getRuleContext(0, ColumnNameCreateContext)!; } public columnConstraint(): ColumnConstraintContext | null { return this.getRuleContext(0, ColumnConstraintContext); } public KW_COMMENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMMENT, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameTypeConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameTypeConstraint) { listener.enterColumnNameTypeConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameTypeConstraint) { listener.exitColumnNameTypeConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameTypeConstraint) { return visitor.visitColumnNameTypeConstraint(this); } else { return visitor.visitChildren(this); } } } export class ColumnConstraintContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public foreignKeyConstraint(): ForeignKeyConstraintContext | null { return this.getRuleContext(0, ForeignKeyConstraintContext); } public colConstraint(): ColConstraintContext | null { return this.getRuleContext(0, ColConstraintContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnConstraint) { listener.enterColumnConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnConstraint) { listener.exitColumnConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnConstraint) { return visitor.visitColumnConstraint(this); } else { return visitor.visitChildren(this); } } } export class ForeignKeyConstraintContext extends antlr.ParserRuleContext { public _constraintName?: Id_Context; public _tabName?: TableNameContext; public _colName?: ColumnNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_REFERENCES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REFERENCES, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public columnName(): ColumnNameContext { return this.getRuleContext(0, ColumnNameContext)!; } public KW_CONSTRAINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CONSTRAINT, 0); } public constraintOptsCreate(): ConstraintOptsCreateContext | null { return this.getRuleContext(0, ConstraintOptsCreateContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_foreignKeyConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterForeignKeyConstraint) { listener.enterForeignKeyConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitForeignKeyConstraint) { listener.exitForeignKeyConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitForeignKeyConstraint) { return visitor.visitForeignKeyConstraint(this); } else { return visitor.visitChildren(this); } } } export class ColConstraintContext extends antlr.ParserRuleContext { public _constraintName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnConstraintType(): ColumnConstraintTypeContext { return this.getRuleContext(0, ColumnConstraintTypeContext)!; } public KW_CONSTRAINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CONSTRAINT, 0); } public constraintOptsCreate(): ConstraintOptsCreateContext | null { return this.getRuleContext(0, ConstraintOptsCreateContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_colConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColConstraint) { listener.enterColConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColConstraint) { listener.exitColConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColConstraint) { return visitor.visitColConstraint(this); } else { return visitor.visitChildren(this); } } } export class AlterColumnConstraintContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public alterForeignKeyConstraint(): AlterForeignKeyConstraintContext | null { return this.getRuleContext(0, AlterForeignKeyConstraintContext); } public alterColConstraint(): AlterColConstraintContext | null { return this.getRuleContext(0, AlterColConstraintContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterColumnConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterColumnConstraint) { listener.enterAlterColumnConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterColumnConstraint) { listener.exitAlterColumnConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterColumnConstraint) { return visitor.visitAlterColumnConstraint(this); } else { return visitor.visitChildren(this); } } } export class AlterForeignKeyConstraintContext extends antlr.ParserRuleContext { public _constraintName?: Id_Context; public _tabName?: TableNameContext; public _colName?: ColumnNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_REFERENCES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REFERENCES, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public columnName(): ColumnNameContext { return this.getRuleContext(0, ColumnNameContext)!; } public KW_CONSTRAINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CONSTRAINT, 0); } public constraintOptsAlter(): ConstraintOptsAlterContext | null { return this.getRuleContext(0, ConstraintOptsAlterContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterForeignKeyConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterForeignKeyConstraint) { listener.enterAlterForeignKeyConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterForeignKeyConstraint) { listener.exitAlterForeignKeyConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterForeignKeyConstraint) { return visitor.visitAlterForeignKeyConstraint(this); } else { return visitor.visitChildren(this); } } } export class AlterColConstraintContext extends antlr.ParserRuleContext { public _constraintName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnConstraintType(): ColumnConstraintTypeContext { return this.getRuleContext(0, ColumnConstraintTypeContext)!; } public KW_CONSTRAINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CONSTRAINT, 0); } public constraintOptsAlter(): ConstraintOptsAlterContext | null { return this.getRuleContext(0, ConstraintOptsAlterContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterColConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterColConstraint) { listener.enterAlterColConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterColConstraint) { listener.exitAlterColConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterColConstraint) { return visitor.visitAlterColConstraint(this); } else { return visitor.visitChildren(this); } } } export class ColumnConstraintTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_NOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOT, 0); } public KW_NULL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NULL, 0); } public KW_DEFAULT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEFAULT, 0); } public defaultVal(): DefaultValContext | null { return this.getRuleContext(0, DefaultValContext); } public checkConstraint(): CheckConstraintContext | null { return this.getRuleContext(0, CheckConstraintContext); } public tableConstraintType(): TableConstraintTypeContext | null { return this.getRuleContext(0, TableConstraintTypeContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnConstraintType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnConstraintType) { listener.enterColumnConstraintType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnConstraintType) { listener.exitColumnConstraintType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnConstraintType) { return visitor.visitColumnConstraintType(this); } else { return visitor.visitChildren(this); } } } export class DefaultValContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public constant(): ConstantContext | null { return this.getRuleContext(0, ConstantContext); } public function_(): Function_Context | null { return this.getRuleContext(0, Function_Context); } public castExpression(): CastExpressionContext | null { return this.getRuleContext(0, CastExpressionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_defaultVal; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDefaultVal) { listener.enterDefaultVal(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDefaultVal) { listener.exitDefaultVal(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDefaultVal) { return visitor.visitDefaultVal(this); } else { return visitor.visitChildren(this); } } } export class TableConstraintTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_PRIMARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PRIMARY, 0); } public KW_KEY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_KEY, 0); } public KW_UNIQUE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNIQUE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableConstraintType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableConstraintType) { listener.enterTableConstraintType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableConstraintType) { listener.exitTableConstraintType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableConstraintType) { return visitor.visitTableConstraintType(this); } else { return visitor.visitChildren(this); } } } export class ConstraintOptsCreateContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public enableValidateSpecification(): EnableValidateSpecificationContext { return this.getRuleContext(0, EnableValidateSpecificationContext)!; } public relySpecification(): RelySpecificationContext | null { return this.getRuleContext(0, RelySpecificationContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_constraintOptsCreate; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterConstraintOptsCreate) { listener.enterConstraintOptsCreate(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitConstraintOptsCreate) { listener.exitConstraintOptsCreate(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitConstraintOptsCreate) { return visitor.visitConstraintOptsCreate(this); } else { return visitor.visitChildren(this); } } } export class ConstraintOptsAlterContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public enableValidateSpecification(): EnableValidateSpecificationContext { return this.getRuleContext(0, EnableValidateSpecificationContext)!; } public relySpecification(): RelySpecificationContext | null { return this.getRuleContext(0, RelySpecificationContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_constraintOptsAlter; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterConstraintOptsAlter) { listener.enterConstraintOptsAlter(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitConstraintOptsAlter) { listener.exitConstraintOptsAlter(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitConstraintOptsAlter) { return visitor.visitConstraintOptsAlter(this); } else { return visitor.visitChildren(this); } } } export class ColumnNameColonTypeContext extends antlr.ParserRuleContext { public _colName?: ColumnNameCreateContext; public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public COLON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.COLON, 0)!; } public colType(): ColTypeContext { return this.getRuleContext(0, ColTypeContext)!; } public columnNameCreate(): ColumnNameCreateContext { return this.getRuleContext(0, ColumnNameCreateContext)!; } public KW_COMMENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMMENT, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnNameColonType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnNameColonType) { listener.enterColumnNameColonType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnNameColonType) { listener.exitColumnNameColonType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnNameColonType) { return visitor.visitColumnNameColonType(this); } else { return visitor.visitChildren(this); } } } export class ColTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public type(): TypeContext { return this.getRuleContext(0, TypeContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_colType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColType) { listener.enterColType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColType) { listener.exitColType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColType) { return visitor.visitColType(this); } else { return visitor.visitChildren(this); } } } export class ColTypeListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public colType(): ColTypeContext[]; public colType(i: number): ColTypeContext | null; public colType(i?: number): ColTypeContext[] | ColTypeContext | null { if (i === undefined) { return this.getRuleContexts(ColTypeContext); } return this.getRuleContext(i, ColTypeContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_colTypeList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColTypeList) { listener.enterColTypeList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColTypeList) { listener.exitColTypeList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColTypeList) { return visitor.visitColTypeList(this); } else { return visitor.visitChildren(this); } } } export class TypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public primitiveType(): PrimitiveTypeContext | null { return this.getRuleContext(0, PrimitiveTypeContext); } public listType(): ListTypeContext | null { return this.getRuleContext(0, ListTypeContext); } public structType(): StructTypeContext | null { return this.getRuleContext(0, StructTypeContext); } public mapType(): MapTypeContext | null { return this.getRuleContext(0, MapTypeContext); } public unionType(): UnionTypeContext | null { return this.getRuleContext(0, UnionTypeContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_type; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterType) { listener.enterType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitType) { listener.exitType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitType) { return visitor.visitType(this); } else { return visitor.visitChildren(this); } } } export class PrimitiveTypeContext extends antlr.ParserRuleContext { public _prec?: Token | null; public _scale?: Token | null; public _length?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TINYINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TINYINT, 0); } public KW_SMALLINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SMALLINT, 0); } public KW_INT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INT, 0); } public KW_INTEGER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INTEGER, 0); } public KW_BIGINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BIGINT, 0); } public KW_BOOLEAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BOOLEAN, 0); } public KW_FLOAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FLOAT, 0); } public KW_REAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REAL, 0); } public KW_DOUBLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DOUBLE, 0); } public KW_PRECISION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PRECISION, 0); } public KW_DATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATE, 0); } public KW_DATETIME(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATETIME, 0); } public KW_TIMESTAMP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TIMESTAMP, 0); } public KW_TIMESTAMPLOCALTZ(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TIMESTAMPLOCALTZ, 0); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_LOCAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCAL, 0); } public KW_TIME(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TIME, 0); } public KW_ZONE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ZONE, 0); } public KW_STRING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STRING, 0); } public KW_BINARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BINARY, 0); } public decimal(): DecimalContext | null { return this.getRuleContext(0, DecimalContext); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public Number(): antlr.TerminalNode[]; public Number(i: number): antlr.TerminalNode | null; public Number(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.Number); } else { return this.getToken(HiveSqlParser.Number, i); } } public COMMA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.COMMA, 0); } public KW_VARCHAR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VARCHAR, 0); } public KW_CHAR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CHAR, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_primitiveType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrimitiveType) { listener.enterPrimitiveType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrimitiveType) { listener.exitPrimitiveType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrimitiveType) { return visitor.visitPrimitiveType(this); } else { return visitor.visitChildren(this); } } } export class ListTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ARRAY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ARRAY, 0)!; } public LESSTHAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LESSTHAN, 0)!; } public type(): TypeContext { return this.getRuleContext(0, TypeContext)!; } public GREATERTHAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.GREATERTHAN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_listType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterListType) { listener.enterListType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitListType) { listener.exitListType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitListType) { return visitor.visitListType(this); } else { return visitor.visitChildren(this); } } } export class StructTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_STRUCT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_STRUCT, 0)!; } public LESSTHAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LESSTHAN, 0)!; } public columnNameColonTypeList(): ColumnNameColonTypeListContext { return this.getRuleContext(0, ColumnNameColonTypeListContext)!; } public GREATERTHAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.GREATERTHAN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_structType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterStructType) { listener.enterStructType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitStructType) { listener.exitStructType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitStructType) { return visitor.visitStructType(this); } else { return visitor.visitChildren(this); } } } export class MapTypeContext extends antlr.ParserRuleContext { public _left?: PrimitiveTypeContext; public _right?: TypeContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_MAP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MAP, 0)!; } public LESSTHAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LESSTHAN, 0)!; } public COMMA(): antlr.TerminalNode { return this.getToken(HiveSqlParser.COMMA, 0)!; } public GREATERTHAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.GREATERTHAN, 0)!; } public primitiveType(): PrimitiveTypeContext { return this.getRuleContext(0, PrimitiveTypeContext)!; } public type(): TypeContext { return this.getRuleContext(0, TypeContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_mapType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterMapType) { listener.enterMapType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitMapType) { listener.exitMapType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitMapType) { return visitor.visitMapType(this); } else { return visitor.visitChildren(this); } } } export class UnionTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UNIONTYPE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UNIONTYPE, 0)!; } public LESSTHAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LESSTHAN, 0)!; } public colTypeList(): ColTypeListContext { return this.getRuleContext(0, ColTypeListContext)!; } public GREATERTHAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.GREATERTHAN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_unionType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUnionType) { listener.enterUnionType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUnionType) { listener.exitUnionType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUnionType) { return visitor.visitUnionType(this); } else { return visitor.visitChildren(this); } } } export class SetOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UNION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNION, 0); } public KW_INTERSECT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INTERSECT, 0); } public KW_EXCEPT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXCEPT, 0); } public KW_MINUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MINUS, 0); } public KW_ALL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALL, 0); } public KW_DISTINCT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DISTINCT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_setOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSetOperator) { listener.enterSetOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSetOperator) { listener.exitSetOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSetOperator) { return visitor.visitSetOperator(this); } else { return visitor.visitChildren(this); } } } export class QueryStatementExpressionContext extends antlr.ParserRuleContext { public _w?: WithClauseContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public queryStatementExpressionBody(): QueryStatementExpressionBodyContext { return this.getRuleContext(0, QueryStatementExpressionBodyContext)!; } public withClause(): WithClauseContext | null { return this.getRuleContext(0, WithClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_queryStatementExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterQueryStatementExpression) { listener.enterQueryStatementExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitQueryStatementExpression) { listener.exitQueryStatementExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitQueryStatementExpression) { return visitor.visitQueryStatementExpression(this); } else { return visitor.visitChildren(this); } } } export class QueryStatementExpressionBodyContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public fromStatement(): FromStatementContext | null { return this.getRuleContext(0, FromStatementContext); } public regularBody(): RegularBodyContext | null { return this.getRuleContext(0, RegularBodyContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_queryStatementExpressionBody; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterQueryStatementExpressionBody) { listener.enterQueryStatementExpressionBody(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitQueryStatementExpressionBody) { listener.exitQueryStatementExpressionBody(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitQueryStatementExpressionBody) { return visitor.visitQueryStatementExpressionBody(this); } else { return visitor.visitChildren(this); } } } export class WithClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WITH(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WITH, 0)!; } public cteStatement(): CteStatementContext[]; public cteStatement(i: number): CteStatementContext | null; public cteStatement(i?: number): CteStatementContext[] | CteStatementContext | null { if (i === undefined) { return this.getRuleContexts(CteStatementContext); } return this.getRuleContext(i, CteStatementContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_withClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWithClause) { listener.enterWithClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWithClause) { listener.exitWithClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWithClause) { return visitor.visitWithClause(this); } else { return visitor.visitChildren(this); } } } export class CteStatementContext extends antlr.ParserRuleContext { public _colAliases?: ColumnNameListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public LPAREN(): antlr.TerminalNode[]; public LPAREN(i: number): antlr.TerminalNode | null; public LPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.LPAREN); } else { return this.getToken(HiveSqlParser.LPAREN, i); } } public queryStatementExpression(): QueryStatementExpressionContext { return this.getRuleContext(0, QueryStatementExpressionContext)!; } public RPAREN(): antlr.TerminalNode[]; public RPAREN(i: number): antlr.TerminalNode | null; public RPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.RPAREN); } else { return this.getToken(HiveSqlParser.RPAREN, i); } } public columnNameList(): ColumnNameListContext | null { return this.getRuleContext(0, ColumnNameListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_cteStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCteStatement) { listener.enterCteStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCteStatement) { listener.exitCteStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCteStatement) { return visitor.visitCteStatement(this); } else { return visitor.visitChildren(this); } } } export class FromStatementContext extends antlr.ParserRuleContext { public _u?: SetOperatorContext; public _r?: SingleFromStatementContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public singleFromStatement(): SingleFromStatementContext[]; public singleFromStatement(i: number): SingleFromStatementContext | null; public singleFromStatement(i?: number): SingleFromStatementContext[] | SingleFromStatementContext | null { if (i === undefined) { return this.getRuleContexts(SingleFromStatementContext); } return this.getRuleContext(i, SingleFromStatementContext); } public setOperator(): SetOperatorContext[]; public setOperator(i: number): SetOperatorContext | null; public setOperator(i?: number): SetOperatorContext[] | SetOperatorContext | null { if (i === undefined) { return this.getRuleContexts(SetOperatorContext); } return this.getRuleContext(i, SetOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_fromStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFromStatement) { listener.enterFromStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFromStatement) { listener.exitFromStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFromStatement) { return visitor.visitFromStatement(this); } else { return visitor.visitChildren(this); } } } export class SingleFromStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public override get ruleIndex(): number { return HiveSqlParser.RULE_singleFromStatement; } public override copyFrom(ctx: SingleFromStatementContext): void { super.copyFrom(ctx); } } export class FromSelectStmtContext extends SingleFromStatementContext { public constructor(ctx: SingleFromStatementContext) { super(ctx.parent, ctx.invokingState); super.copyFrom(ctx); } public fromClause(): FromClauseContext { return this.getRuleContext(0, FromClauseContext)!; } public selectClause(): SelectClauseContext { return this.getRuleContext(0, SelectClauseContext)!; } public lateralView(): LateralViewContext | null { return this.getRuleContext(0, LateralViewContext); } public whereClause(): WhereClauseContext | null { return this.getRuleContext(0, WhereClauseContext); } public groupByClause(): GroupByClauseContext | null { return this.getRuleContext(0, GroupByClauseContext); } public havingClause(): HavingClauseContext | null { return this.getRuleContext(0, HavingClauseContext); } public window_clause(): Window_clauseContext | null { return this.getRuleContext(0, Window_clauseContext); } public qualifyClause(): QualifyClauseContext | null { return this.getRuleContext(0, QualifyClauseContext); } public orderByClause(): OrderByClauseContext | null { return this.getRuleContext(0, OrderByClauseContext); } public clusterByClause(): ClusterByClauseContext | null { return this.getRuleContext(0, ClusterByClauseContext); } public distributeByClause(): DistributeByClauseContext | null { return this.getRuleContext(0, DistributeByClauseContext); } public sortByClause(): SortByClauseContext | null { return this.getRuleContext(0, SortByClauseContext); } public limitClause(): LimitClauseContext | null { return this.getRuleContext(0, LimitClauseContext); } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFromSelectStmt) { listener.enterFromSelectStmt(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFromSelectStmt) { listener.exitFromSelectStmt(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFromSelectStmt) { return visitor.visitFromSelectStmt(this); } else { return visitor.visitChildren(this); } } } export class FromInsertStmtContext extends SingleFromStatementContext { public constructor(ctx: SingleFromStatementContext) { super(ctx.parent, ctx.invokingState); super.copyFrom(ctx); } public fromClause(): FromClauseContext { return this.getRuleContext(0, FromClauseContext)!; } public insertClause(): InsertClauseContext { return this.getRuleContext(0, InsertClauseContext)!; } public selectClause(): SelectClauseContext { return this.getRuleContext(0, SelectClauseContext)!; } public lateralView(): LateralViewContext | null { return this.getRuleContext(0, LateralViewContext); } public whereClause(): WhereClauseContext | null { return this.getRuleContext(0, WhereClauseContext); } public groupByClause(): GroupByClauseContext | null { return this.getRuleContext(0, GroupByClauseContext); } public havingClause(): HavingClauseContext | null { return this.getRuleContext(0, HavingClauseContext); } public window_clause(): Window_clauseContext | null { return this.getRuleContext(0, Window_clauseContext); } public qualifyClause(): QualifyClauseContext | null { return this.getRuleContext(0, QualifyClauseContext); } public orderByClause(): OrderByClauseContext | null { return this.getRuleContext(0, OrderByClauseContext); } public clusterByClause(): ClusterByClauseContext | null { return this.getRuleContext(0, ClusterByClauseContext); } public distributeByClause(): DistributeByClauseContext | null { return this.getRuleContext(0, DistributeByClauseContext); } public sortByClause(): SortByClauseContext | null { return this.getRuleContext(0, SortByClauseContext); } public limitClause(): LimitClauseContext | null { return this.getRuleContext(0, LimitClauseContext); } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFromInsertStmt) { listener.enterFromInsertStmt(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFromInsertStmt) { listener.exitFromInsertStmt(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFromInsertStmt) { return visitor.visitFromInsertStmt(this); } else { return visitor.visitChildren(this); } } } export class RegularBodyContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public override get ruleIndex(): number { return HiveSqlParser.RULE_regularBody; } public override copyFrom(ctx: RegularBodyContext): void { super.copyFrom(ctx); } } export class InsertStmtContext extends RegularBodyContext { public _i?: InsertClauseContext; public _s?: SelectStatementContext; public constructor(ctx: RegularBodyContext) { super(ctx.parent, ctx.invokingState); super.copyFrom(ctx); } public insertClause(): InsertClauseContext { return this.getRuleContext(0, InsertClauseContext)!; } public selectStatement(): SelectStatementContext { return this.getRuleContext(0, SelectStatementContext)!; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterInsertStmt) { listener.enterInsertStmt(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitInsertStmt) { listener.exitInsertStmt(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitInsertStmt) { return visitor.visitInsertStmt(this); } else { return visitor.visitChildren(this); } } } export class SelectStmtContext extends RegularBodyContext { public constructor(ctx: RegularBodyContext) { super(ctx.parent, ctx.invokingState); super.copyFrom(ctx); } public selectStatement(): SelectStatementContext { return this.getRuleContext(0, SelectStatementContext)!; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSelectStmt) { listener.enterSelectStmt(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSelectStmt) { listener.exitSelectStmt(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSelectStmt) { return visitor.visitSelectStmt(this); } else { return visitor.visitChildren(this); } } } export class AtomSelectStatementContext extends antlr.ParserRuleContext { public _s?: SelectClauseContext; public _f?: FromClauseContext; public _w?: WhereClauseContext; public _g?: GroupByClauseContext; public _h?: HavingClauseContext; public _win?: Window_clauseContext; public _q?: QualifyClauseContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public selectClause(): SelectClauseContext | null { return this.getRuleContext(0, SelectClauseContext); } public fromClause(): FromClauseContext | null { return this.getRuleContext(0, FromClauseContext); } public whereClause(): WhereClauseContext | null { return this.getRuleContext(0, WhereClauseContext); } public groupByClause(): GroupByClauseContext | null { return this.getRuleContext(0, GroupByClauseContext); } public havingClause(): HavingClauseContext | null { return this.getRuleContext(0, HavingClauseContext); } public window_clause(): Window_clauseContext | null { return this.getRuleContext(0, Window_clauseContext); } public qualifyClause(): QualifyClauseContext | null { return this.getRuleContext(0, QualifyClauseContext); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public selectStatement(): SelectStatementContext | null { return this.getRuleContext(0, SelectStatementContext); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public valuesSource(): ValuesSourceContext | null { return this.getRuleContext(0, ValuesSourceContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_atomSelectStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAtomSelectStatement) { listener.enterAtomSelectStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAtomSelectStatement) { listener.exitAtomSelectStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAtomSelectStatement) { return visitor.visitAtomSelectStatement(this); } else { return visitor.visitChildren(this); } } } export class SelectStatementContext extends antlr.ParserRuleContext { public _a?: AtomSelectStatementContext; public _set_?: SetOpSelectStatementContext; public _o?: OrderByClauseContext; public _c?: ClusterByClauseContext; public _d?: DistributeByClauseContext; public _sort?: SortByClauseContext; public _l?: LimitClauseContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public atomSelectStatement(): AtomSelectStatementContext { return this.getRuleContext(0, AtomSelectStatementContext)!; } public setOpSelectStatement(): SetOpSelectStatementContext | null { return this.getRuleContext(0, SetOpSelectStatementContext); } public orderByClause(): OrderByClauseContext | null { return this.getRuleContext(0, OrderByClauseContext); } public clusterByClause(): ClusterByClauseContext | null { return this.getRuleContext(0, ClusterByClauseContext); } public distributeByClause(): DistributeByClauseContext | null { return this.getRuleContext(0, DistributeByClauseContext); } public sortByClause(): SortByClauseContext | null { return this.getRuleContext(0, SortByClauseContext); } public limitClause(): LimitClauseContext | null { return this.getRuleContext(0, LimitClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_selectStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSelectStatement) { listener.enterSelectStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSelectStatement) { listener.exitSelectStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSelectStatement) { return visitor.visitSelectStatement(this); } else { return visitor.visitChildren(this); } } } export class SetOpSelectStatementContext extends antlr.ParserRuleContext { public _u?: SetOperatorContext; public _b?: AtomSelectStatementContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public setOperator(): SetOperatorContext[]; public setOperator(i: number): SetOperatorContext | null; public setOperator(i?: number): SetOperatorContext[] | SetOperatorContext | null { if (i === undefined) { return this.getRuleContexts(SetOperatorContext); } return this.getRuleContext(i, SetOperatorContext); } public atomSelectStatement(): AtomSelectStatementContext[]; public atomSelectStatement(i: number): AtomSelectStatementContext | null; public atomSelectStatement(i?: number): AtomSelectStatementContext[] | AtomSelectStatementContext | null { if (i === undefined) { return this.getRuleContexts(AtomSelectStatementContext); } return this.getRuleContext(i, AtomSelectStatementContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_setOpSelectStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSetOpSelectStatement) { listener.enterSetOpSelectStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSetOpSelectStatement) { listener.exitSetOpSelectStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSetOpSelectStatement) { return visitor.visitSetOpSelectStatement(this); } else { return visitor.visitChildren(this); } } } export class SelectStatementWithCTEContext extends antlr.ParserRuleContext { public _w?: WithClauseContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public selectStatement(): SelectStatementContext { return this.getRuleContext(0, SelectStatementContext)!; } public withClause(): WithClauseContext | null { return this.getRuleContext(0, WithClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_selectStatementWithCTE; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSelectStatementWithCTE) { listener.enterSelectStatementWithCTE(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSelectStatementWithCTE) { listener.exitSelectStatementWithCTE(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSelectStatementWithCTE) { return visitor.visitSelectStatementWithCTE(this); } else { return visitor.visitChildren(this); } } } export class InsertClauseContext extends antlr.ParserRuleContext { public _targetCols?: ColumnNameListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_INSERT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INSERT, 0)!; } public KW_OVERWRITE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OVERWRITE, 0); } public destination(): DestinationContext | null { return this.getRuleContext(0, DestinationContext); } public KW_INTO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INTO, 0); } public tableOrPartition(): TableOrPartitionContext | null { return this.getRuleContext(0, TableOrPartitionContext); } public ifNotExists(): IfNotExistsContext | null { return this.getRuleContext(0, IfNotExistsContext); } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public columnNameList(): ColumnNameListContext | null { return this.getRuleContext(0, ColumnNameListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_insertClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterInsertClause) { listener.enterInsertClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitInsertClause) { listener.exitInsertClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitInsertClause) { return visitor.visitInsertClause(this); } else { return visitor.visitChildren(this); } } } export class DestinationContext extends antlr.ParserRuleContext { public _local?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DIRECTORY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DIRECTORY, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public tableRowFormat(): TableRowFormatContext | null { return this.getRuleContext(0, TableRowFormatContext); } public tableFileFormat(): TableFileFormatContext | null { return this.getRuleContext(0, TableFileFormatContext); } public KW_LOCAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCAL, 0); } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public tableOrPartition(): TableOrPartitionContext | null { return this.getRuleContext(0, TableOrPartitionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_destination; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDestination) { listener.enterDestination(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDestination) { listener.exitDestination(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDestination) { return visitor.visitDestination(this); } else { return visitor.visitChildren(this); } } } export class LimitClauseContext extends antlr.ParserRuleContext { public _offset?: Token | null; public _num?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LIMIT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LIMIT, 0)!; } public KW_OFFSET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OFFSET, 0); } public Number(): antlr.TerminalNode[]; public Number(i: number): antlr.TerminalNode | null; public Number(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.Number); } else { return this.getToken(HiveSqlParser.Number, i); } } public COMMA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.COMMA, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_limitClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterLimitClause) { listener.enterLimitClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitLimitClause) { listener.exitLimitClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitLimitClause) { return visitor.visitLimitClause(this); } else { return visitor.visitChildren(this); } } } export class DeleteStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DELETE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DELETE, 0)!; } public KW_FROM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FROM, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public whereClause(): WhereClauseContext | null { return this.getRuleContext(0, WhereClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_deleteStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDeleteStatement) { listener.enterDeleteStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDeleteStatement) { listener.exitDeleteStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDeleteStatement) { return visitor.visitDeleteStatement(this); } else { return visitor.visitChildren(this); } } } export class ColumnAssignmentClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnName(): ColumnNameContext { return this.getRuleContext(0, ColumnNameContext)!; } public EQUAL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.EQUAL, 0)!; } public precedencePlusExpressionOrDefault(): PrecedencePlusExpressionOrDefaultContext { return this.getRuleContext(0, PrecedencePlusExpressionOrDefaultContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnAssignmentClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnAssignmentClause) { listener.enterColumnAssignmentClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnAssignmentClause) { listener.exitColumnAssignmentClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnAssignmentClause) { return visitor.visitColumnAssignmentClause(this); } else { return visitor.visitChildren(this); } } } export class PrecedencePlusExpressionOrDefaultContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public defaultValue(): DefaultValueContext | null { return this.getRuleContext(0, DefaultValueContext); } public precedencePlusExpression(): PrecedencePlusExpressionContext | null { return this.getRuleContext(0, PrecedencePlusExpressionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedencePlusExpressionOrDefault; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedencePlusExpressionOrDefault) { listener.enterPrecedencePlusExpressionOrDefault(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedencePlusExpressionOrDefault) { listener.exitPrecedencePlusExpressionOrDefault(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedencePlusExpressionOrDefault) { return visitor.visitPrecedencePlusExpressionOrDefault(this); } else { return visitor.visitChildren(this); } } } export class SetColumnsClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public columnAssignmentClause(): ColumnAssignmentClauseContext[]; public columnAssignmentClause(i: number): ColumnAssignmentClauseContext | null; public columnAssignmentClause(i?: number): ColumnAssignmentClauseContext[] | ColumnAssignmentClauseContext | null { if (i === undefined) { return this.getRuleContexts(ColumnAssignmentClauseContext); } return this.getRuleContext(i, ColumnAssignmentClauseContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_setColumnsClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSetColumnsClause) { listener.enterSetColumnsClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSetColumnsClause) { listener.exitSetColumnsClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSetColumnsClause) { return visitor.visitSetColumnsClause(this); } else { return visitor.visitChildren(this); } } } export class UpdateStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UPDATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UPDATE, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public setColumnsClause(): SetColumnsClauseContext { return this.getRuleContext(0, SetColumnsClauseContext)!; } public whereClause(): WhereClauseContext | null { return this.getRuleContext(0, WhereClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_updateStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUpdateStatement) { listener.enterUpdateStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUpdateStatement) { listener.exitUpdateStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUpdateStatement) { return visitor.visitUpdateStatement(this); } else { return visitor.visitChildren(this); } } } export class SqlTransactionStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public startTransactionStatement(): StartTransactionStatementContext | null { return this.getRuleContext(0, StartTransactionStatementContext); } public commitStatement(): CommitStatementContext | null { return this.getRuleContext(0, CommitStatementContext); } public rollbackStatement(): RollbackStatementContext | null { return this.getRuleContext(0, RollbackStatementContext); } public setAutoCommitStatement(): SetAutoCommitStatementContext | null { return this.getRuleContext(0, SetAutoCommitStatementContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_sqlTransactionStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSqlTransactionStatement) { listener.enterSqlTransactionStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSqlTransactionStatement) { listener.exitSqlTransactionStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSqlTransactionStatement) { return visitor.visitSqlTransactionStatement(this); } else { return visitor.visitChildren(this); } } } export class StartTransactionStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_START(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_START, 0)!; } public KW_TRANSACTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TRANSACTION, 0)!; } public transactionMode(): TransactionModeContext[]; public transactionMode(i: number): TransactionModeContext | null; public transactionMode(i?: number): TransactionModeContext[] | TransactionModeContext | null { if (i === undefined) { return this.getRuleContexts(TransactionModeContext); } return this.getRuleContext(i, TransactionModeContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_startTransactionStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterStartTransactionStatement) { listener.enterStartTransactionStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitStartTransactionStatement) { listener.exitStartTransactionStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitStartTransactionStatement) { return visitor.visitStartTransactionStatement(this); } else { return visitor.visitChildren(this); } } } export class TransactionModeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public isolationLevel(): IsolationLevelContext | null { return this.getRuleContext(0, IsolationLevelContext); } public transactionAccessMode(): TransactionAccessModeContext | null { return this.getRuleContext(0, TransactionAccessModeContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_transactionMode; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTransactionMode) { listener.enterTransactionMode(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTransactionMode) { listener.exitTransactionMode(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTransactionMode) { return visitor.visitTransactionMode(this); } else { return visitor.visitChildren(this); } } } export class TransactionAccessModeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_READ(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_READ, 0)!; } public KW_ONLY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ONLY, 0); } public KW_WRITE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WRITE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_transactionAccessMode; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTransactionAccessMode) { listener.enterTransactionAccessMode(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTransactionAccessMode) { listener.exitTransactionAccessMode(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTransactionAccessMode) { return visitor.visitTransactionAccessMode(this); } else { return visitor.visitChildren(this); } } } export class IsolationLevelContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ISOLATION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ISOLATION, 0)!; } public KW_LEVEL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LEVEL, 0)!; } public levelOfIsolation(): LevelOfIsolationContext { return this.getRuleContext(0, LevelOfIsolationContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_isolationLevel; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterIsolationLevel) { listener.enterIsolationLevel(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitIsolationLevel) { listener.exitIsolationLevel(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitIsolationLevel) { return visitor.visitIsolationLevel(this); } else { return visitor.visitChildren(this); } } } export class LevelOfIsolationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SNAPSHOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SNAPSHOT, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_levelOfIsolation; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterLevelOfIsolation) { listener.enterLevelOfIsolation(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitLevelOfIsolation) { listener.exitLevelOfIsolation(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitLevelOfIsolation) { return visitor.visitLevelOfIsolation(this); } else { return visitor.visitChildren(this); } } } export class CommitStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_COMMIT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COMMIT, 0)!; } public KW_WORK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WORK, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_commitStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCommitStatement) { listener.enterCommitStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCommitStatement) { listener.exitCommitStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCommitStatement) { return visitor.visitCommitStatement(this); } else { return visitor.visitChildren(this); } } } export class RollbackStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ROLLBACK(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROLLBACK, 0)!; } public KW_WORK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WORK, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_rollbackStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRollbackStatement) { listener.enterRollbackStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRollbackStatement) { listener.exitRollbackStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRollbackStatement) { return visitor.visitRollbackStatement(this); } else { return visitor.visitChildren(this); } } } export class SetAutoCommitStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_AUTOCOMMIT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AUTOCOMMIT, 0)!; } public booleanValueTok(): BooleanValueTokContext { return this.getRuleContext(0, BooleanValueTokContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_setAutoCommitStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSetAutoCommitStatement) { listener.enterSetAutoCommitStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSetAutoCommitStatement) { listener.exitSetAutoCommitStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSetAutoCommitStatement) { return visitor.visitSetAutoCommitStatement(this); } else { return visitor.visitChildren(this); } } } export class AbortTransactionStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ABORT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ABORT, 0)!; } public KW_TRANSACTIONS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TRANSACTIONS, 0)!; } public Number(): antlr.TerminalNode[]; public Number(i: number): antlr.TerminalNode | null; public Number(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.Number); } else { return this.getToken(HiveSqlParser.Number, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_abortTransactionStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAbortTransactionStatement) { listener.enterAbortTransactionStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAbortTransactionStatement) { listener.exitAbortTransactionStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAbortTransactionStatement) { return visitor.visitAbortTransactionStatement(this); } else { return visitor.visitChildren(this); } } } export class AbortCompactionStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ABORT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ABORT, 0)!; } public KW_COMPACTIONS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COMPACTIONS, 0)!; } public Number(): antlr.TerminalNode[]; public Number(i: number): antlr.TerminalNode | null; public Number(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.Number); } else { return this.getToken(HiveSqlParser.Number, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_abortCompactionStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAbortCompactionStatement) { listener.enterAbortCompactionStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAbortCompactionStatement) { listener.exitAbortCompactionStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAbortCompactionStatement) { return visitor.visitAbortCompactionStatement(this); } else { return visitor.visitChildren(this); } } } export class MergeStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_MERGE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MERGE, 0)!; } public KW_INTO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INTO, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public KW_USING(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_USING, 0)!; } public joinSourcePart(): JoinSourcePartContext { return this.getRuleContext(0, JoinSourcePartContext)!; } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public whenClauses(): WhenClausesContext { return this.getRuleContext(0, WhenClausesContext)!; } public QUERY_HINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.QUERY_HINT, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_mergeStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterMergeStatement) { listener.enterMergeStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitMergeStatement) { listener.exitMergeStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitMergeStatement) { return visitor.visitMergeStatement(this); } else { return visitor.visitChildren(this); } } } export class WhenClausesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public whenMatchedAndClause(): WhenMatchedAndClauseContext[]; public whenMatchedAndClause(i: number): WhenMatchedAndClauseContext | null; public whenMatchedAndClause(i?: number): WhenMatchedAndClauseContext[] | WhenMatchedAndClauseContext | null { if (i === undefined) { return this.getRuleContexts(WhenMatchedAndClauseContext); } return this.getRuleContext(i, WhenMatchedAndClauseContext); } public whenMatchedThenClause(): WhenMatchedThenClauseContext[]; public whenMatchedThenClause(i: number): WhenMatchedThenClauseContext | null; public whenMatchedThenClause(i?: number): WhenMatchedThenClauseContext[] | WhenMatchedThenClauseContext | null { if (i === undefined) { return this.getRuleContexts(WhenMatchedThenClauseContext); } return this.getRuleContext(i, WhenMatchedThenClauseContext); } public whenNotMatchedClause(): WhenNotMatchedClauseContext | null { return this.getRuleContext(0, WhenNotMatchedClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_whenClauses; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWhenClauses) { listener.enterWhenClauses(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWhenClauses) { listener.exitWhenClauses(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWhenClauses) { return visitor.visitWhenClauses(this); } else { return visitor.visitChildren(this); } } } export class WhenNotMatchedClauseContext extends antlr.ParserRuleContext { public _targetCols?: ColumnParenthesesListContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WHEN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WHEN, 0)!; } public KW_NOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_NOT, 0)!; } public KW_MATCHED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MATCHED, 0)!; } public KW_THEN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_THEN, 0)!; } public KW_INSERT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INSERT, 0)!; } public KW_VALUES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_VALUES, 0)!; } public valueRowConstructor(): ValueRowConstructorContext { return this.getRuleContext(0, ValueRowConstructorContext)!; } public KW_AND(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AND, 0); } public expression(): ExpressionContext | null { return this.getRuleContext(0, ExpressionContext); } public columnParenthesesList(): ColumnParenthesesListContext | null { return this.getRuleContext(0, ColumnParenthesesListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_whenNotMatchedClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWhenNotMatchedClause) { listener.enterWhenNotMatchedClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWhenNotMatchedClause) { listener.exitWhenNotMatchedClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWhenNotMatchedClause) { return visitor.visitWhenNotMatchedClause(this); } else { return visitor.visitChildren(this); } } } export class WhenMatchedAndClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WHEN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WHEN, 0)!; } public KW_MATCHED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MATCHED, 0)!; } public KW_AND(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AND, 0)!; } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public KW_THEN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_THEN, 0)!; } public updateOrDelete(): UpdateOrDeleteContext { return this.getRuleContext(0, UpdateOrDeleteContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_whenMatchedAndClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWhenMatchedAndClause) { listener.enterWhenMatchedAndClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWhenMatchedAndClause) { listener.exitWhenMatchedAndClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWhenMatchedAndClause) { return visitor.visitWhenMatchedAndClause(this); } else { return visitor.visitChildren(this); } } } export class WhenMatchedThenClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WHEN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WHEN, 0)!; } public KW_MATCHED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MATCHED, 0)!; } public KW_THEN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_THEN, 0)!; } public updateOrDelete(): UpdateOrDeleteContext { return this.getRuleContext(0, UpdateOrDeleteContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_whenMatchedThenClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWhenMatchedThenClause) { listener.enterWhenMatchedThenClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWhenMatchedThenClause) { listener.exitWhenMatchedThenClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWhenMatchedThenClause) { return visitor.visitWhenMatchedThenClause(this); } else { return visitor.visitChildren(this); } } } export class UpdateOrDeleteContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UPDATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UPDATE, 0); } public setColumnsClause(): SetColumnsClauseContext | null { return this.getRuleContext(0, SetColumnsClauseContext); } public KW_DELETE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DELETE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_updateOrDelete; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUpdateOrDelete) { listener.enterUpdateOrDelete(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUpdateOrDelete) { listener.exitUpdateOrDelete(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUpdateOrDelete) { return visitor.visitUpdateOrDelete(this); } else { return visitor.visitChildren(this); } } } export class KillQueryStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_KILL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_KILL, 0)!; } public KW_QUERY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_QUERY, 0)!; } public StringLiteral(): antlr.TerminalNode[]; public StringLiteral(i: number): antlr.TerminalNode | null; public StringLiteral(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.StringLiteral); } else { return this.getToken(HiveSqlParser.StringLiteral, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_killQueryStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterKillQueryStatement) { listener.enterKillQueryStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitKillQueryStatement) { listener.exitKillQueryStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitKillQueryStatement) { return visitor.visitKillQueryStatement(this); } else { return visitor.visitChildren(this); } } } export class CompactionIdContext extends antlr.ParserRuleContext { public _compactId?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_COMPACT_ID(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COMPACT_ID, 0)!; } public EQUAL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.EQUAL, 0)!; } public Number(): antlr.TerminalNode { return this.getToken(HiveSqlParser.Number, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_compactionId; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCompactionId) { listener.enterCompactionId(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCompactionId) { listener.exitCompactionId(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCompactionId) { return visitor.visitCompactionId(this); } else { return visitor.visitChildren(this); } } } export class CompactionPoolContext extends antlr.ParserRuleContext { public _poolName?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_POOL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_POOL, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_compactionPool; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCompactionPool) { listener.enterCompactionPool(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCompactionPool) { listener.exitCompactionPool(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCompactionPool) { return visitor.visitCompactionPool(this); } else { return visitor.visitChildren(this); } } } export class CompactionTypeContext extends antlr.ParserRuleContext { public _compactType?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TYPE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TYPE, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_compactionType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCompactionType) { listener.enterCompactionType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCompactionType) { listener.exitCompactionType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCompactionType) { return visitor.visitCompactionType(this); } else { return visitor.visitChildren(this); } } } export class CompactionStatusContext extends antlr.ParserRuleContext { public _status?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_STATUS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_STATUS, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_compactionStatus; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCompactionStatus) { listener.enterCompactionStatus(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCompactionStatus) { listener.exitCompactionStatus(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCompactionStatus) { return visitor.visitCompactionStatus(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementContext extends antlr.ParserRuleContext { public _tableNameTree?: ViewNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALTER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ALTER, 0)!; } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public tableName(): TableNameContext | null { return this.getRuleContext(0, TableNameContext); } public alterTableStatementSuffix(): AlterTableStatementSuffixContext | null { return this.getRuleContext(0, AlterTableStatementSuffixContext); } public KW_VIEW(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VIEW, 0); } public viewName(): ViewNameContext | null { return this.getRuleContext(0, ViewNameContext); } public alterViewStatementSuffix(): AlterViewStatementSuffixContext | null { return this.getRuleContext(0, AlterViewStatementSuffixContext); } public KW_MATERIALIZED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MATERIALIZED, 0); } public alterMaterializedViewStatementSuffix(): AlterMaterializedViewStatementSuffixContext | null { return this.getRuleContext(0, AlterMaterializedViewStatementSuffixContext); } public db_schema(): Db_schemaContext | null { return this.getRuleContext(0, Db_schemaContext); } public alterDatabaseStatementSuffix(): AlterDatabaseStatementSuffixContext | null { return this.getRuleContext(0, AlterDatabaseStatementSuffixContext); } public KW_DATACONNECTOR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATACONNECTOR, 0); } public alterDataConnectorStatementSuffix(): AlterDataConnectorStatementSuffixContext | null { return this.getRuleContext(0, AlterDataConnectorStatementSuffixContext); } public KW_INDEX(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INDEX, 0); } public alterIndexStatementSuffix(): AlterIndexStatementSuffixContext | null { return this.getRuleContext(0, AlterIndexStatementSuffixContext); } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatement) { listener.enterAlterStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatement) { listener.exitAlterStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatement) { return visitor.visitAlterStatement(this); } else { return visitor.visitChildren(this); } } } export class AlterTableStatementSuffixContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public alterStatementSuffixRename(): AlterStatementSuffixRenameContext | null { return this.getRuleContext(0, AlterStatementSuffixRenameContext); } public alterStatementSuffixRecoverPartitions(): AlterStatementSuffixRecoverPartitionsContext | null { return this.getRuleContext(0, AlterStatementSuffixRecoverPartitionsContext); } public alterStatementSuffixDropPartitions(): AlterStatementSuffixDropPartitionsContext | null { return this.getRuleContext(0, AlterStatementSuffixDropPartitionsContext); } public alterStatementSuffixAddPartitions(): AlterStatementSuffixAddPartitionsContext | null { return this.getRuleContext(0, AlterStatementSuffixAddPartitionsContext); } public alterStatementSuffixTouch(): AlterStatementSuffixTouchContext | null { return this.getRuleContext(0, AlterStatementSuffixTouchContext); } public alterStatementSuffixArchive(): AlterStatementSuffixArchiveContext | null { return this.getRuleContext(0, AlterStatementSuffixArchiveContext); } public alterStatementSuffixUnArchive(): AlterStatementSuffixUnArchiveContext | null { return this.getRuleContext(0, AlterStatementSuffixUnArchiveContext); } public alterStatementSuffixProperties(): AlterStatementSuffixPropertiesContext | null { return this.getRuleContext(0, AlterStatementSuffixPropertiesContext); } public alterStatementSuffixSkewedby(): AlterStatementSuffixSkewedbyContext | null { return this.getRuleContext(0, AlterStatementSuffixSkewedbyContext); } public alterStatementSuffixExchangePartition(): AlterStatementSuffixExchangePartitionContext | null { return this.getRuleContext(0, AlterStatementSuffixExchangePartitionContext); } public alterStatementPartitionKeyType(): AlterStatementPartitionKeyTypeContext | null { return this.getRuleContext(0, AlterStatementPartitionKeyTypeContext); } public alterStatementSuffixDropConstraint(): AlterStatementSuffixDropConstraintContext | null { return this.getRuleContext(0, AlterStatementSuffixDropConstraintContext); } public alterStatementSuffixAddConstraint(): AlterStatementSuffixAddConstraintContext | null { return this.getRuleContext(0, AlterStatementSuffixAddConstraintContext); } public alterTblPartitionStatementSuffix(): AlterTblPartitionStatementSuffixContext | null { return this.getRuleContext(0, AlterTblPartitionStatementSuffixContext); } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public alterStatementSuffixSetOwner(): AlterStatementSuffixSetOwnerContext | null { return this.getRuleContext(0, AlterStatementSuffixSetOwnerContext); } public alterStatementSuffixSetPartSpec(): AlterStatementSuffixSetPartSpecContext | null { return this.getRuleContext(0, AlterStatementSuffixSetPartSpecContext); } public alterStatementSuffixExecute(): AlterStatementSuffixExecuteContext | null { return this.getRuleContext(0, AlterStatementSuffixExecuteContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterTableStatementSuffix; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterTableStatementSuffix) { listener.enterAlterTableStatementSuffix(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterTableStatementSuffix) { listener.exitAlterTableStatementSuffix(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterTableStatementSuffix) { return visitor.visitAlterTableStatementSuffix(this); } else { return visitor.visitChildren(this); } } } export class AlterTblPartitionStatementSuffixContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public alterStatementSuffixFileFormat(): AlterStatementSuffixFileFormatContext | null { return this.getRuleContext(0, AlterStatementSuffixFileFormatContext); } public alterStatementSuffixLocation(): AlterStatementSuffixLocationContext | null { return this.getRuleContext(0, AlterStatementSuffixLocationContext); } public alterStatementSuffixMergeFiles(): AlterStatementSuffixMergeFilesContext | null { return this.getRuleContext(0, AlterStatementSuffixMergeFilesContext); } public alterStatementSuffixSerdeProperties(): AlterStatementSuffixSerdePropertiesContext | null { return this.getRuleContext(0, AlterStatementSuffixSerdePropertiesContext); } public alterStatementSuffixRenamePart(): AlterStatementSuffixRenamePartContext | null { return this.getRuleContext(0, AlterStatementSuffixRenamePartContext); } public alterStatementSuffixBucketNum(): AlterStatementSuffixBucketNumContext | null { return this.getRuleContext(0, AlterStatementSuffixBucketNumContext); } public alterTblPartitionStatementSuffixSkewedLocation(): AlterTblPartitionStatementSuffixSkewedLocationContext | null { return this.getRuleContext(0, AlterTblPartitionStatementSuffixSkewedLocationContext); } public alterStatementSuffixClusterbySortby(): AlterStatementSuffixClusterbySortbyContext | null { return this.getRuleContext(0, AlterStatementSuffixClusterbySortbyContext); } public alterStatementSuffixCompact(): AlterStatementSuffixCompactContext | null { return this.getRuleContext(0, AlterStatementSuffixCompactContext); } public alterStatementSuffixUpdateStatsCol(): AlterStatementSuffixUpdateStatsColContext | null { return this.getRuleContext(0, AlterStatementSuffixUpdateStatsColContext); } public alterStatementSuffixUpdateStats(): AlterStatementSuffixUpdateStatsContext | null { return this.getRuleContext(0, AlterStatementSuffixUpdateStatsContext); } public alterStatementSuffixRenameCol(): AlterStatementSuffixRenameColContext | null { return this.getRuleContext(0, AlterStatementSuffixRenameColContext); } public alterStatementSuffixAddCol(): AlterStatementSuffixAddColContext | null { return this.getRuleContext(0, AlterStatementSuffixAddColContext); } public alterStatementSuffixUpdateColumns(): AlterStatementSuffixUpdateColumnsContext | null { return this.getRuleContext(0, AlterStatementSuffixUpdateColumnsContext); } public alterStatementSuffixProtections(): AlterStatementSuffixProtectionsContext | null { return this.getRuleContext(0, AlterStatementSuffixProtectionsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterTblPartitionStatementSuffix; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterTblPartitionStatementSuffix) { listener.enterAlterTblPartitionStatementSuffix(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterTblPartitionStatementSuffix) { listener.exitAlterTblPartitionStatementSuffix(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterTblPartitionStatementSuffix) { return visitor.visitAlterTblPartitionStatementSuffix(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementPartitionKeyTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_PARTITION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PARTITION, 0)!; } public KW_COLUMN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COLUMN, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public columnNameType(): ColumnNameTypeContext { return this.getRuleContext(0, ColumnNameTypeContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementPartitionKeyType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementPartitionKeyType) { listener.enterAlterStatementPartitionKeyType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementPartitionKeyType) { listener.exitAlterStatementPartitionKeyType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementPartitionKeyType) { return visitor.visitAlterStatementPartitionKeyType(this); } else { return visitor.visitChildren(this); } } } export class AlterViewStatementSuffixContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public alterViewSuffixProperties(): AlterViewSuffixPropertiesContext | null { return this.getRuleContext(0, AlterViewSuffixPropertiesContext); } public alterStatementSuffixRename(): AlterStatementSuffixRenameContext | null { return this.getRuleContext(0, AlterStatementSuffixRenameContext); } public alterStatementSuffixAddPartitions(): AlterStatementSuffixAddPartitionsContext | null { return this.getRuleContext(0, AlterStatementSuffixAddPartitionsContext); } public alterStatementSuffixDropPartitions(): AlterStatementSuffixDropPartitionsContext | null { return this.getRuleContext(0, AlterStatementSuffixDropPartitionsContext); } public selectStatementWithCTE(): SelectStatementWithCTEContext | null { return this.getRuleContext(0, SelectStatementWithCTEContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterViewStatementSuffix; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterViewStatementSuffix) { listener.enterAlterViewStatementSuffix(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterViewStatementSuffix) { listener.exitAlterViewStatementSuffix(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterViewStatementSuffix) { return visitor.visitAlterViewStatementSuffix(this); } else { return visitor.visitChildren(this); } } } export class AlterMaterializedViewStatementSuffixContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public alterMaterializedViewSuffixRewrite(): AlterMaterializedViewSuffixRewriteContext | null { return this.getRuleContext(0, AlterMaterializedViewSuffixRewriteContext); } public alterMaterializedViewSuffixRebuild(): AlterMaterializedViewSuffixRebuildContext | null { return this.getRuleContext(0, AlterMaterializedViewSuffixRebuildContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterMaterializedViewStatementSuffix; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterMaterializedViewStatementSuffix) { listener.enterAlterMaterializedViewStatementSuffix(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterMaterializedViewStatementSuffix) { listener.exitAlterMaterializedViewStatementSuffix(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterMaterializedViewStatementSuffix) { return visitor.visitAlterMaterializedViewStatementSuffix(this); } else { return visitor.visitChildren(this); } } } export class AlterMaterializedViewSuffixRewriteContext extends antlr.ParserRuleContext { public _mvRewriteFlag?: RewriteEnabledContext; public _mvRewriteFlag2?: RewriteDisabledContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public rewriteEnabled(): RewriteEnabledContext | null { return this.getRuleContext(0, RewriteEnabledContext); } public rewriteDisabled(): RewriteDisabledContext | null { return this.getRuleContext(0, RewriteDisabledContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterMaterializedViewSuffixRewrite; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterMaterializedViewSuffixRewrite) { listener.enterAlterMaterializedViewSuffixRewrite(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterMaterializedViewSuffixRewrite) { listener.exitAlterMaterializedViewSuffixRewrite(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterMaterializedViewSuffixRewrite) { return visitor.visitAlterMaterializedViewSuffixRewrite(this); } else { return visitor.visitChildren(this); } } } export class AlterMaterializedViewSuffixRebuildContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_REBUILD(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REBUILD, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterMaterializedViewSuffixRebuild; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterMaterializedViewSuffixRebuild) { listener.enterAlterMaterializedViewSuffixRebuild(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterMaterializedViewSuffixRebuild) { listener.exitAlterMaterializedViewSuffixRebuild(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterMaterializedViewSuffixRebuild) { return visitor.visitAlterMaterializedViewSuffixRebuild(this); } else { return visitor.visitChildren(this); } } } export class AlterDatabaseStatementSuffixContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public alterDatabaseSuffixProperties(): AlterDatabaseSuffixPropertiesContext | null { return this.getRuleContext(0, AlterDatabaseSuffixPropertiesContext); } public alterDatabaseSuffixSetOwner(): AlterDatabaseSuffixSetOwnerContext | null { return this.getRuleContext(0, AlterDatabaseSuffixSetOwnerContext); } public alterDatabaseSuffixSetLocation(): AlterDatabaseSuffixSetLocationContext | null { return this.getRuleContext(0, AlterDatabaseSuffixSetLocationContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterDatabaseStatementSuffix; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterDatabaseStatementSuffix) { listener.enterAlterDatabaseStatementSuffix(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterDatabaseStatementSuffix) { listener.exitAlterDatabaseStatementSuffix(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterDatabaseStatementSuffix) { return visitor.visitAlterDatabaseStatementSuffix(this); } else { return visitor.visitChildren(this); } } } export class AlterDatabaseSuffixPropertiesContext extends antlr.ParserRuleContext { public _name?: DbSchemaNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_DBPROPERTIES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DBPROPERTIES, 0)!; } public dbProperties(): DbPropertiesContext { return this.getRuleContext(0, DbPropertiesContext)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterDatabaseSuffixProperties; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterDatabaseSuffixProperties) { listener.enterAlterDatabaseSuffixProperties(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterDatabaseSuffixProperties) { listener.exitAlterDatabaseSuffixProperties(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterDatabaseSuffixProperties) { return visitor.visitAlterDatabaseSuffixProperties(this); } else { return visitor.visitChildren(this); } } } export class AlterDatabaseSuffixSetOwnerContext extends antlr.ParserRuleContext { public _dbName?: DbSchemaNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_OWNER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OWNER, 0)!; } public principalAlterName(): PrincipalAlterNameContext { return this.getRuleContext(0, PrincipalAlterNameContext)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterDatabaseSuffixSetOwner; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterDatabaseSuffixSetOwner) { listener.enterAlterDatabaseSuffixSetOwner(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterDatabaseSuffixSetOwner) { listener.exitAlterDatabaseSuffixSetOwner(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterDatabaseSuffixSetOwner) { return visitor.visitAlterDatabaseSuffixSetOwner(this); } else { return visitor.visitChildren(this); } } } export class AlterDatabaseSuffixSetLocationContext extends antlr.ParserRuleContext { public _dbName?: DbSchemaNameContext; public _newLocation?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public KW_LOCATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCATION, 0); } public KW_MANAGEDLOCATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MANAGEDLOCATION, 0); } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterDatabaseSuffixSetLocation; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterDatabaseSuffixSetLocation) { listener.enterAlterDatabaseSuffixSetLocation(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterDatabaseSuffixSetLocation) { listener.exitAlterDatabaseSuffixSetLocation(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterDatabaseSuffixSetLocation) { return visitor.visitAlterDatabaseSuffixSetLocation(this); } else { return visitor.visitChildren(this); } } } export class AlterDatabaseSuffixSetManagedLocationContext extends antlr.ParserRuleContext { public _dbName?: DbSchemaNameContext; public _newLocation?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_MANAGEDLOCATION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MANAGEDLOCATION, 0)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterDatabaseSuffixSetManagedLocation; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterDatabaseSuffixSetManagedLocation) { listener.enterAlterDatabaseSuffixSetManagedLocation(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterDatabaseSuffixSetManagedLocation) { listener.exitAlterDatabaseSuffixSetManagedLocation(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterDatabaseSuffixSetManagedLocation) { return visitor.visitAlterDatabaseSuffixSetManagedLocation(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixRenameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RENAME(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RENAME, 0)!; } public KW_TO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TO, 0)!; } public tableNameCreate(): TableNameCreateContext { return this.getRuleContext(0, TableNameCreateContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixRename; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixRename) { listener.enterAlterStatementSuffixRename(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixRename) { listener.exitAlterStatementSuffixRename(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixRename) { return visitor.visitAlterStatementSuffixRename(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixAddColContext extends antlr.ParserRuleContext { public _add?: Token | null; public _replace?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_COLUMNS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COLUMNS, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public columnNameTypeList(): ColumnNameTypeListContext { return this.getRuleContext(0, ColumnNameTypeListContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public KW_ADD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ADD, 0); } public KW_REPLACE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REPLACE, 0); } public restrictOrCascade(): RestrictOrCascadeContext | null { return this.getRuleContext(0, RestrictOrCascadeContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixAddCol; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixAddCol) { listener.enterAlterStatementSuffixAddCol(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixAddCol) { listener.exitAlterStatementSuffixAddCol(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixAddCol) { return visitor.visitAlterStatementSuffixAddCol(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixAddConstraintContext extends antlr.ParserRuleContext { public _fk?: AlterForeignKeyWithNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ADD(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ADD, 0)!; } public alterConstraintWithName(): AlterConstraintWithNameContext | null { return this.getRuleContext(0, AlterConstraintWithNameContext); } public alterForeignKeyWithName(): AlterForeignKeyWithNameContext | null { return this.getRuleContext(0, AlterForeignKeyWithNameContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixAddConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixAddConstraint) { listener.enterAlterStatementSuffixAddConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixAddConstraint) { listener.exitAlterStatementSuffixAddConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixAddConstraint) { return visitor.visitAlterStatementSuffixAddConstraint(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixUpdateColumnsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UPDATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UPDATE, 0)!; } public KW_COLUMNS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COLUMNS, 0)!; } public restrictOrCascade(): RestrictOrCascadeContext | null { return this.getRuleContext(0, RestrictOrCascadeContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixUpdateColumns; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixUpdateColumns) { listener.enterAlterStatementSuffixUpdateColumns(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixUpdateColumns) { listener.exitAlterStatementSuffixUpdateColumns(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixUpdateColumns) { return visitor.visitAlterStatementSuffixUpdateColumns(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixProtectionsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public enableSpecification(): EnableSpecificationContext { return this.getRuleContext(0, EnableSpecificationContext)!; } public KW_NO_DROP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NO_DROP, 0); } public KW_CASCADE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CASCADE, 0); } public KW_OFFLINE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OFFLINE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixProtections; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixProtections) { listener.enterAlterStatementSuffixProtections(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixProtections) { listener.exitAlterStatementSuffixProtections(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixProtections) { return visitor.visitAlterStatementSuffixProtections(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixDropConstraintContext extends antlr.ParserRuleContext { public _cName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_CONSTRAINT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CONSTRAINT, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixDropConstraint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixDropConstraint) { listener.enterAlterStatementSuffixDropConstraint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixDropConstraint) { listener.exitAlterStatementSuffixDropConstraint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixDropConstraint) { return visitor.visitAlterStatementSuffixDropConstraint(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixRenameColContext extends antlr.ParserRuleContext { public _oldName?: ColumnNameContext; public _newName?: ColumnNameCreateContext; public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CHANGE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CHANGE, 0)!; } public colType(): ColTypeContext { return this.getRuleContext(0, ColTypeContext)!; } public columnName(): ColumnNameContext { return this.getRuleContext(0, ColumnNameContext)!; } public columnNameCreate(): ColumnNameCreateContext { return this.getRuleContext(0, ColumnNameCreateContext)!; } public KW_COLUMN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COLUMN, 0); } public alterColumnConstraint(): AlterColumnConstraintContext | null { return this.getRuleContext(0, AlterColumnConstraintContext); } public KW_COMMENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMMENT, 0); } public alterStatementChangeColPosition(): AlterStatementChangeColPositionContext | null { return this.getRuleContext(0, AlterStatementChangeColPositionContext); } public restrictOrCascade(): RestrictOrCascadeContext | null { return this.getRuleContext(0, RestrictOrCascadeContext); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixRenameCol; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixRenameCol) { listener.enterAlterStatementSuffixRenameCol(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixRenameCol) { listener.exitAlterStatementSuffixRenameCol(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixRenameCol) { return visitor.visitAlterStatementSuffixRenameCol(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixUpdateStatsColContext extends antlr.ParserRuleContext { public _colName?: ColumnNameContext; public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UPDATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UPDATE, 0)!; } public KW_STATISTICS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_STATISTICS, 0)!; } public KW_FOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FOR, 0)!; } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public tableProperties(): TablePropertiesContext { return this.getRuleContext(0, TablePropertiesContext)!; } public columnName(): ColumnNameContext { return this.getRuleContext(0, ColumnNameContext)!; } public KW_COLUMN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COLUMN, 0); } public KW_COMMENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMMENT, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixUpdateStatsCol; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixUpdateStatsCol) { listener.enterAlterStatementSuffixUpdateStatsCol(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixUpdateStatsCol) { listener.exitAlterStatementSuffixUpdateStatsCol(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixUpdateStatsCol) { return visitor.visitAlterStatementSuffixUpdateStatsCol(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixUpdateStatsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UPDATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UPDATE, 0)!; } public KW_STATISTICS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_STATISTICS, 0)!; } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public tableProperties(): TablePropertiesContext { return this.getRuleContext(0, TablePropertiesContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixUpdateStats; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixUpdateStats) { listener.enterAlterStatementSuffixUpdateStats(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixUpdateStats) { listener.exitAlterStatementSuffixUpdateStats(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixUpdateStats) { return visitor.visitAlterStatementSuffixUpdateStats(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementChangeColPositionContext extends antlr.ParserRuleContext { public _first?: Token | null; public _afterCol?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_FIRST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FIRST, 0); } public KW_AFTER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AFTER, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementChangeColPosition; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementChangeColPosition) { listener.enterAlterStatementChangeColPosition(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementChangeColPosition) { listener.exitAlterStatementChangeColPosition(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementChangeColPosition) { return visitor.visitAlterStatementChangeColPosition(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixAddPartitionsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ADD(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ADD, 0)!; } public ifNotExists(): IfNotExistsContext | null { return this.getRuleContext(0, IfNotExistsContext); } public alterStatementSuffixAddPartitionsElement(): AlterStatementSuffixAddPartitionsElementContext[]; public alterStatementSuffixAddPartitionsElement(i: number): AlterStatementSuffixAddPartitionsElementContext | null; public alterStatementSuffixAddPartitionsElement(i?: number): AlterStatementSuffixAddPartitionsElementContext[] | AlterStatementSuffixAddPartitionsElementContext | null { if (i === undefined) { return this.getRuleContexts(AlterStatementSuffixAddPartitionsElementContext); } return this.getRuleContext(i, AlterStatementSuffixAddPartitionsElementContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixAddPartitions; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixAddPartitions) { listener.enterAlterStatementSuffixAddPartitions(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixAddPartitions) { listener.exitAlterStatementSuffixAddPartitions(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixAddPartitions) { return visitor.visitAlterStatementSuffixAddPartitions(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixAddPartitionsElementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public partitionSpec(): PartitionSpecContext { return this.getRuleContext(0, PartitionSpecContext)!; } public partitionLocation(): PartitionLocationContext | null { return this.getRuleContext(0, PartitionLocationContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixAddPartitionsElement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixAddPartitionsElement) { listener.enterAlterStatementSuffixAddPartitionsElement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixAddPartitionsElement) { listener.exitAlterStatementSuffixAddPartitionsElement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixAddPartitionsElement) { return visitor.visitAlterStatementSuffixAddPartitionsElement(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixTouchContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TOUCH(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TOUCH, 0)!; } public partitionSpec(): PartitionSpecContext[]; public partitionSpec(i: number): PartitionSpecContext | null; public partitionSpec(i?: number): PartitionSpecContext[] | PartitionSpecContext | null { if (i === undefined) { return this.getRuleContexts(PartitionSpecContext); } return this.getRuleContext(i, PartitionSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixTouch; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixTouch) { listener.enterAlterStatementSuffixTouch(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixTouch) { listener.exitAlterStatementSuffixTouch(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixTouch) { return visitor.visitAlterStatementSuffixTouch(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixArchiveContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ARCHIVE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ARCHIVE, 0)!; } public partitionSpec(): PartitionSpecContext[]; public partitionSpec(i: number): PartitionSpecContext | null; public partitionSpec(i?: number): PartitionSpecContext[] | PartitionSpecContext | null { if (i === undefined) { return this.getRuleContexts(PartitionSpecContext); } return this.getRuleContext(i, PartitionSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixArchive; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixArchive) { listener.enterAlterStatementSuffixArchive(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixArchive) { listener.exitAlterStatementSuffixArchive(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixArchive) { return visitor.visitAlterStatementSuffixArchive(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixUnArchiveContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UNARCHIVE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UNARCHIVE, 0)!; } public partitionSpec(): PartitionSpecContext[]; public partitionSpec(i: number): PartitionSpecContext | null; public partitionSpec(i?: number): PartitionSpecContext[] | PartitionSpecContext | null { if (i === undefined) { return this.getRuleContexts(PartitionSpecContext); } return this.getRuleContext(i, PartitionSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixUnArchive; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixUnArchive) { listener.enterAlterStatementSuffixUnArchive(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixUnArchive) { listener.exitAlterStatementSuffixUnArchive(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixUnArchive) { return visitor.visitAlterStatementSuffixUnArchive(this); } else { return visitor.visitChildren(this); } } } export class PartitionLocationContext extends antlr.ParserRuleContext { public _locn?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LOCATION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LOCATION, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionLocation; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionLocation) { listener.enterPartitionLocation(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionLocation) { listener.exitPartitionLocation(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionLocation) { return visitor.visitPartitionLocation(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixRecoverPartitionsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RECOVER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RECOVER, 0)!; } public KW_PARTITIONS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PARTITIONS, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixRecoverPartitions; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixRecoverPartitions) { listener.enterAlterStatementSuffixRecoverPartitions(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixRecoverPartitions) { listener.exitAlterStatementSuffixRecoverPartitions(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixRecoverPartitions) { return visitor.visitAlterStatementSuffixRecoverPartitions(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixDropPartitionsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_PARTITION(): antlr.TerminalNode[]; public KW_PARTITION(i: number): antlr.TerminalNode | null; public KW_PARTITION(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_PARTITION); } else { return this.getToken(HiveSqlParser.KW_PARTITION, i); } } public partitionSelectorSpec(): PartitionSelectorSpecContext[]; public partitionSelectorSpec(i: number): PartitionSelectorSpecContext | null; public partitionSelectorSpec(i?: number): PartitionSelectorSpecContext[] | PartitionSelectorSpecContext | null { if (i === undefined) { return this.getRuleContexts(PartitionSelectorSpecContext); } return this.getRuleContext(i, PartitionSelectorSpecContext); } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public dropPartitionsIgnoreClause(): DropPartitionsIgnoreClauseContext | null { return this.getRuleContext(0, DropPartitionsIgnoreClauseContext); } public KW_PURGE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PURGE, 0); } public replicationClause(): ReplicationClauseContext | null { return this.getRuleContext(0, ReplicationClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixDropPartitions; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixDropPartitions) { listener.enterAlterStatementSuffixDropPartitions(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixDropPartitions) { listener.exitAlterStatementSuffixDropPartitions(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixDropPartitions) { return visitor.visitAlterStatementSuffixDropPartitions(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixPropertiesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SET, 0); } public KW_TBLPROPERTIES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TBLPROPERTIES, 0)!; } public tableProperties(): TablePropertiesContext { return this.getRuleContext(0, TablePropertiesContext)!; } public KW_UNSET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNSET, 0); } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixProperties; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixProperties) { listener.enterAlterStatementSuffixProperties(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixProperties) { listener.exitAlterStatementSuffixProperties(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixProperties) { return visitor.visitAlterStatementSuffixProperties(this); } else { return visitor.visitChildren(this); } } } export class AlterViewSuffixPropertiesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SET, 0); } public KW_TBLPROPERTIES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TBLPROPERTIES, 0)!; } public tableProperties(): TablePropertiesContext { return this.getRuleContext(0, TablePropertiesContext)!; } public KW_UNSET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNSET, 0); } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterViewSuffixProperties; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterViewSuffixProperties) { listener.enterAlterViewSuffixProperties(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterViewSuffixProperties) { listener.exitAlterViewSuffixProperties(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterViewSuffixProperties) { return visitor.visitAlterViewSuffixProperties(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixSerdePropertiesContext extends antlr.ParserRuleContext { public _serdeName?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SET, 0); } public KW_SERDE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERDE, 0); } public KW_SERDEPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERDEPROPERTIES, 0); } public tableProperties(): TablePropertiesContext | null { return this.getRuleContext(0, TablePropertiesContext); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_UNSET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNSET, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixSerdeProperties; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixSerdeProperties) { listener.enterAlterStatementSuffixSerdeProperties(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixSerdeProperties) { listener.exitAlterStatementSuffixSerdeProperties(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixSerdeProperties) { return visitor.visitAlterStatementSuffixSerdeProperties(this); } else { return visitor.visitChildren(this); } } } export class TablePartitionPrefixContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tablePartitionPrefix; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTablePartitionPrefix) { listener.enterTablePartitionPrefix(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTablePartitionPrefix) { listener.exitTablePartitionPrefix(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTablePartitionPrefix) { return visitor.visitTablePartitionPrefix(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixFileFormatContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_FILEFORMAT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FILEFORMAT, 0)!; } public fileFormat(): FileFormatContext { return this.getRuleContext(0, FileFormatContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixFileFormat; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixFileFormat) { listener.enterAlterStatementSuffixFileFormat(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixFileFormat) { listener.exitAlterStatementSuffixFileFormat(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixFileFormat) { return visitor.visitAlterStatementSuffixFileFormat(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixClusterbySortbyContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_NOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOT, 0); } public KW_CLUSTERED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CLUSTERED, 0); } public KW_SORTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SORTED, 0); } public tableBuckets(): TableBucketsContext | null { return this.getRuleContext(0, TableBucketsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixClusterbySortby; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixClusterbySortby) { listener.enterAlterStatementSuffixClusterbySortby(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixClusterbySortby) { listener.exitAlterStatementSuffixClusterbySortby(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixClusterbySortby) { return visitor.visitAlterStatementSuffixClusterbySortby(this); } else { return visitor.visitChildren(this); } } } export class AlterTblPartitionStatementSuffixSkewedLocationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_SKEWED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SKEWED, 0)!; } public KW_LOCATION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LOCATION, 0)!; } public skewedLocations(): SkewedLocationsContext { return this.getRuleContext(0, SkewedLocationsContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterTblPartitionStatementSuffixSkewedLocation; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterTblPartitionStatementSuffixSkewedLocation) { listener.enterAlterTblPartitionStatementSuffixSkewedLocation(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterTblPartitionStatementSuffixSkewedLocation) { listener.exitAlterTblPartitionStatementSuffixSkewedLocation(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterTblPartitionStatementSuffixSkewedLocation) { return visitor.visitAlterTblPartitionStatementSuffixSkewedLocation(this); } else { return visitor.visitChildren(this); } } } export class SkewedLocationsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public skewedLocationsList(): SkewedLocationsListContext { return this.getRuleContext(0, SkewedLocationsListContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_skewedLocations; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSkewedLocations) { listener.enterSkewedLocations(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSkewedLocations) { listener.exitSkewedLocations(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSkewedLocations) { return visitor.visitSkewedLocations(this); } else { return visitor.visitChildren(this); } } } export class SkewedLocationsListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public skewedLocationMap(): SkewedLocationMapContext[]; public skewedLocationMap(i: number): SkewedLocationMapContext | null; public skewedLocationMap(i?: number): SkewedLocationMapContext[] | SkewedLocationMapContext | null { if (i === undefined) { return this.getRuleContexts(SkewedLocationMapContext); } return this.getRuleContext(i, SkewedLocationMapContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_skewedLocationsList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSkewedLocationsList) { listener.enterSkewedLocationsList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSkewedLocationsList) { listener.exitSkewedLocationsList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSkewedLocationsList) { return visitor.visitSkewedLocationsList(this); } else { return visitor.visitChildren(this); } } } export class SkewedLocationMapContext extends antlr.ParserRuleContext { public _key?: SkewedValueLocationElementContext; public _value?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public EQUAL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.EQUAL, 0)!; } public skewedValueLocationElement(): SkewedValueLocationElementContext { return this.getRuleContext(0, SkewedValueLocationElementContext)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_skewedLocationMap; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSkewedLocationMap) { listener.enterSkewedLocationMap(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSkewedLocationMap) { listener.exitSkewedLocationMap(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSkewedLocationMap) { return visitor.visitSkewedLocationMap(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixLocationContext extends antlr.ParserRuleContext { public _newLoc?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_LOCATION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LOCATION, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixLocation; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixLocation) { listener.enterAlterStatementSuffixLocation(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixLocation) { listener.exitAlterStatementSuffixLocation(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixLocation) { return visitor.visitAlterStatementSuffixLocation(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixSkewedbyContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableSkewed(): TableSkewedContext | null { return this.getRuleContext(0, TableSkewedContext); } public KW_NOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOT, 0); } public KW_SKEWED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SKEWED, 0); } public storedAsDirs(): StoredAsDirsContext | null { return this.getRuleContext(0, StoredAsDirsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixSkewedby; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixSkewedby) { listener.enterAlterStatementSuffixSkewedby(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixSkewedby) { listener.exitAlterStatementSuffixSkewedby(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixSkewedby) { return visitor.visitAlterStatementSuffixSkewedby(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixExchangePartitionContext extends antlr.ParserRuleContext { public _exchangename?: TableNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_EXCHANGE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_EXCHANGE, 0)!; } public partitionSpec(): PartitionSpecContext { return this.getRuleContext(0, PartitionSpecContext)!; } public KW_WITH(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WITH, 0)!; } public KW_TABLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLE, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixExchangePartition; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixExchangePartition) { listener.enterAlterStatementSuffixExchangePartition(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixExchangePartition) { listener.exitAlterStatementSuffixExchangePartition(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixExchangePartition) { return visitor.visitAlterStatementSuffixExchangePartition(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixRenamePartContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RENAME(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RENAME, 0)!; } public KW_TO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TO, 0)!; } public partitionSpec(): PartitionSpecContext { return this.getRuleContext(0, PartitionSpecContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixRenamePart; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixRenamePart) { listener.enterAlterStatementSuffixRenamePart(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixRenamePart) { listener.exitAlterStatementSuffixRenamePart(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixRenamePart) { return visitor.visitAlterStatementSuffixRenamePart(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixStatsPartContext extends antlr.ParserRuleContext { public _colName?: ColumnNameContext; public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UPDATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UPDATE, 0)!; } public KW_STATISTICS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_STATISTICS, 0)!; } public KW_FOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FOR, 0)!; } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public tableProperties(): TablePropertiesContext { return this.getRuleContext(0, TablePropertiesContext)!; } public columnName(): ColumnNameContext { return this.getRuleContext(0, ColumnNameContext)!; } public KW_COLUMN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COLUMN, 0); } public KW_COMMENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMMENT, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixStatsPart; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixStatsPart) { listener.enterAlterStatementSuffixStatsPart(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixStatsPart) { listener.exitAlterStatementSuffixStatsPart(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixStatsPart) { return visitor.visitAlterStatementSuffixStatsPart(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixMergeFilesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CONCATENATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CONCATENATE, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixMergeFiles; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixMergeFiles) { listener.enterAlterStatementSuffixMergeFiles(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixMergeFiles) { listener.exitAlterStatementSuffixMergeFiles(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixMergeFiles) { return visitor.visitAlterStatementSuffixMergeFiles(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixBucketNumContext extends antlr.ParserRuleContext { public _num?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_INTO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_INTO, 0)!; } public KW_BUCKETS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BUCKETS, 0)!; } public Number(): antlr.TerminalNode { return this.getToken(HiveSqlParser.Number, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixBucketNum; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixBucketNum) { listener.enterAlterStatementSuffixBucketNum(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixBucketNum) { listener.exitAlterStatementSuffixBucketNum(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixBucketNum) { return visitor.visitAlterStatementSuffixBucketNum(this); } else { return visitor.visitChildren(this); } } } export class BlockingContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_AND(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AND, 0)!; } public KW_WAIT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WAIT, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_blocking; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterBlocking) { listener.enterBlocking(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitBlocking) { listener.exitBlocking(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitBlocking) { return visitor.visitBlocking(this); } else { return visitor.visitChildren(this); } } } export class CompactPoolContext extends antlr.ParserRuleContext { public _poolName?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_POOL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_POOL, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_compactPool; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCompactPool) { listener.enterCompactPool(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCompactPool) { listener.exitCompactPool(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCompactPool) { return visitor.visitCompactPool(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixCompactContext extends antlr.ParserRuleContext { public _compactType?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_COMPACT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COMPACT, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public blocking(): BlockingContext | null { return this.getRuleContext(0, BlockingContext); } public tableImplBuckets(): TableImplBucketsContext | null { return this.getRuleContext(0, TableImplBucketsContext); } public orderByClause(): OrderByClauseContext | null { return this.getRuleContext(0, OrderByClauseContext); } public compactPool(): CompactPoolContext | null { return this.getRuleContext(0, CompactPoolContext); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_OVERWRITE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OVERWRITE, 0); } public KW_TBLPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TBLPROPERTIES, 0); } public tableProperties(): TablePropertiesContext | null { return this.getRuleContext(0, TablePropertiesContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixCompact; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixCompact) { listener.enterAlterStatementSuffixCompact(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixCompact) { listener.exitAlterStatementSuffixCompact(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixCompact) { return visitor.visitAlterStatementSuffixCompact(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixSetOwnerContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_OWNER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OWNER, 0)!; } public principalName(): PrincipalNameContext { return this.getRuleContext(0, PrincipalNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixSetOwner; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixSetOwner) { listener.enterAlterStatementSuffixSetOwner(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixSetOwner) { listener.exitAlterStatementSuffixSetOwner(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixSetOwner) { return visitor.visitAlterStatementSuffixSetOwner(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixSetPartSpecContext extends antlr.ParserRuleContext { public _spec?: PartitionTransformSpecContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_PARTITION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PARTITION, 0)!; } public KW_SPEC(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SPEC, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public partitionTransformSpec(): PartitionTransformSpecContext { return this.getRuleContext(0, PartitionTransformSpecContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixSetPartSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixSetPartSpec) { listener.enterAlterStatementSuffixSetPartSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixSetPartSpec) { listener.exitAlterStatementSuffixSetPartSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixSetPartSpec) { return visitor.visitAlterStatementSuffixSetPartSpec(this); } else { return visitor.visitChildren(this); } } } export class AlterStatementSuffixExecuteContext extends antlr.ParserRuleContext { public _rollbackParam?: Token | null; public _expireParam?: Token | null; public _snapshotParam?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_EXECUTE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_EXECUTE, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public KW_ROLLBACK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROLLBACK, 0); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public KW_EXPIRE_SNAPSHOTS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXPIRE_SNAPSHOTS, 0); } public KW_SET_CURRENT_SNAPSHOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SET_CURRENT_SNAPSHOT, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterStatementSuffixExecute; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterStatementSuffixExecute) { listener.enterAlterStatementSuffixExecute(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterStatementSuffixExecute) { listener.exitAlterStatementSuffixExecute(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterStatementSuffixExecute) { return visitor.visitAlterStatementSuffixExecute(this); } else { return visitor.visitChildren(this); } } } export class AlterIndexStatementSuffixContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public KW_REBUILD(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REBUILD, 0)!; } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterIndexStatementSuffix; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterIndexStatementSuffix) { listener.enterAlterIndexStatementSuffix(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterIndexStatementSuffix) { listener.exitAlterIndexStatementSuffix(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterIndexStatementSuffix) { return visitor.visitAlterIndexStatementSuffix(this); } else { return visitor.visitChildren(this); } } } export class FileFormatContext extends antlr.ParserRuleContext { public _inFmt?: Token | null; public _outFmt?: Token | null; public _serdeCls?: Token | null; public _inDriver?: Token | null; public _outDriver?: Token | null; public _genericSpec?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_INPUTFORMAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INPUTFORMAT, 0); } public KW_OUTPUTFORMAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OUTPUTFORMAT, 0); } public KW_SERDE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERDE, 0); } public StringLiteral(): antlr.TerminalNode[]; public StringLiteral(i: number): antlr.TerminalNode | null; public StringLiteral(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.StringLiteral); } else { return this.getToken(HiveSqlParser.StringLiteral, i); } } public KW_INPUTDRIVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INPUTDRIVER, 0); } public KW_OUTPUTDRIVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OUTPUTDRIVER, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_fileFormat; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFileFormat) { listener.enterFileFormat(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFileFormat) { listener.exitFileFormat(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFileFormat) { return visitor.visitFileFormat(this); } else { return visitor.visitChildren(this); } } } export class AlterDataConnectorStatementSuffixContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public alterDataConnectorSuffixProperties(): AlterDataConnectorSuffixPropertiesContext | null { return this.getRuleContext(0, AlterDataConnectorSuffixPropertiesContext); } public alterDataConnectorSuffixSetOwner(): AlterDataConnectorSuffixSetOwnerContext | null { return this.getRuleContext(0, AlterDataConnectorSuffixSetOwnerContext); } public alterDataConnectorSuffixSetUrl(): AlterDataConnectorSuffixSetUrlContext | null { return this.getRuleContext(0, AlterDataConnectorSuffixSetUrlContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterDataConnectorStatementSuffix; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterDataConnectorStatementSuffix) { listener.enterAlterDataConnectorStatementSuffix(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterDataConnectorStatementSuffix) { listener.exitAlterDataConnectorStatementSuffix(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterDataConnectorStatementSuffix) { return visitor.visitAlterDataConnectorStatementSuffix(this); } else { return visitor.visitChildren(this); } } } export class AlterDataConnectorSuffixPropertiesContext extends antlr.ParserRuleContext { public _name?: DbSchemaNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_DCPROPERTIES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DCPROPERTIES, 0)!; } public dcProperties(): DcPropertiesContext { return this.getRuleContext(0, DcPropertiesContext)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterDataConnectorSuffixProperties; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterDataConnectorSuffixProperties) { listener.enterAlterDataConnectorSuffixProperties(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterDataConnectorSuffixProperties) { listener.exitAlterDataConnectorSuffixProperties(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterDataConnectorSuffixProperties) { return visitor.visitAlterDataConnectorSuffixProperties(this); } else { return visitor.visitChildren(this); } } } export class AlterDataConnectorSuffixSetOwnerContext extends antlr.ParserRuleContext { public _dcName?: DbSchemaNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_OWNER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OWNER, 0)!; } public principalAlterName(): PrincipalAlterNameContext { return this.getRuleContext(0, PrincipalAlterNameContext)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterDataConnectorSuffixSetOwner; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterDataConnectorSuffixSetOwner) { listener.enterAlterDataConnectorSuffixSetOwner(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterDataConnectorSuffixSetOwner) { listener.exitAlterDataConnectorSuffixSetOwner(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterDataConnectorSuffixSetOwner) { return visitor.visitAlterDataConnectorSuffixSetOwner(this); } else { return visitor.visitChildren(this); } } } export class AlterDataConnectorSuffixSetUrlContext extends antlr.ParserRuleContext { public _dcName?: DbSchemaNameContext; public _newUri?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SET, 0)!; } public KW_URL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_URL, 0)!; } public dbSchemaName(): DbSchemaNameContext { return this.getRuleContext(0, DbSchemaNameContext)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterDataConnectorSuffixSetUrl; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterDataConnectorSuffixSetUrl) { listener.enterAlterDataConnectorSuffixSetUrl(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterDataConnectorSuffixSetUrl) { listener.exitAlterDataConnectorSuffixSetUrl(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterDataConnectorSuffixSetUrl) { return visitor.visitAlterDataConnectorSuffixSetUrl(this); } else { return visitor.visitChildren(this); } } } export class LikeTableOrFileContext extends antlr.ParserRuleContext { public _format?: Id_Context; public _uri?: Token | null; public _likeName?: TableNameContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LIKE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LIKE, 0)!; } public KW_FILE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FILE, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public tableName(): TableNameContext | null { return this.getRuleContext(0, TableNameContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_likeTableOrFile; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterLikeTableOrFile) { listener.enterLikeTableOrFile(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitLikeTableOrFile) { listener.exitLikeTableOrFile(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitLikeTableOrFile) { return visitor.visitLikeTableOrFile(this); } else { return visitor.visitChildren(this); } } } export class CreateTableStatementContext extends antlr.ParserRuleContext { public _temp?: Token | null; public _trans?: Token | null; public _ext?: Token | null; public _name?: TableNameCreateContext; public _mgd?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_TABLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLE, 0)!; } public tableNameCreate(): TableNameCreateContext { return this.getRuleContext(0, TableNameCreateContext)!; } public likeTableOrFile(): LikeTableOrFileContext | null { return this.getRuleContext(0, LikeTableOrFileContext); } public ifNotExists(): IfNotExistsContext | null { return this.getRuleContext(0, IfNotExistsContext); } public KW_TEMPORARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TEMPORARY, 0); } public KW_TRANSACTIONAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRANSACTIONAL, 0); } public KW_EXTERNAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXTERNAL, 0); } public createTablePartitionSpec(): CreateTablePartitionSpecContext | null { return this.getRuleContext(0, CreateTablePartitionSpecContext); } public tableRowFormat(): TableRowFormatContext | null { return this.getRuleContext(0, TableRowFormatContext); } public tableFileFormat(): TableFileFormatContext | null { return this.getRuleContext(0, TableFileFormatContext); } public tableLocation(): TableLocationContext | null { return this.getRuleContext(0, TableLocationContext); } public tablePropertiesPrefixed(): TablePropertiesPrefixedContext | null { return this.getRuleContext(0, TablePropertiesPrefixedContext); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public columnNameTypeOrConstraintList(): ColumnNameTypeOrConstraintListContext | null { return this.getRuleContext(0, ColumnNameTypeOrConstraintListContext); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public tableComment(): TableCommentContext | null { return this.getRuleContext(0, TableCommentContext); } public tableBuckets(): TableBucketsContext | null { return this.getRuleContext(0, TableBucketsContext); } public tableSkewed(): TableSkewedContext | null { return this.getRuleContext(0, TableSkewedContext); } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public selectStatementWithCTE(): SelectStatementWithCTEContext | null { return this.getRuleContext(0, SelectStatementWithCTEContext); } public KW_MANAGED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MANAGED, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createTableStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateTableStatement) { listener.enterCreateTableStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateTableStatement) { listener.exitCreateTableStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateTableStatement) { return visitor.visitCreateTableStatement(this); } else { return visitor.visitChildren(this); } } } export class CreateDataConnectorStatementContext extends antlr.ParserRuleContext { public _name?: Id_Context; public _dcprops?: DcPropertiesContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_DATACONNECTOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DATACONNECTOR, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public ifNotExists(): IfNotExistsContext | null { return this.getRuleContext(0, IfNotExistsContext); } public dataConnectorType(): DataConnectorTypeContext | null { return this.getRuleContext(0, DataConnectorTypeContext); } public dataConnectorUrl(): DataConnectorUrlContext | null { return this.getRuleContext(0, DataConnectorUrlContext); } public dataConnectorComment(): DataConnectorCommentContext | null { return this.getRuleContext(0, DataConnectorCommentContext); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_DCPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DCPROPERTIES, 0); } public dcProperties(): DcPropertiesContext | null { return this.getRuleContext(0, DcPropertiesContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createDataConnectorStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateDataConnectorStatement) { listener.enterCreateDataConnectorStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateDataConnectorStatement) { listener.exitCreateDataConnectorStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateDataConnectorStatement) { return visitor.visitCreateDataConnectorStatement(this); } else { return visitor.visitChildren(this); } } } export class DataConnectorCommentContext extends antlr.ParserRuleContext { public _comment?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_COMMENT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_COMMENT, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dataConnectorComment; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDataConnectorComment) { listener.enterDataConnectorComment(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDataConnectorComment) { listener.exitDataConnectorComment(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDataConnectorComment) { return visitor.visitDataConnectorComment(this); } else { return visitor.visitChildren(this); } } } export class DataConnectorUrlContext extends antlr.ParserRuleContext { public _url?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_URL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_URL, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dataConnectorUrl; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDataConnectorUrl) { listener.enterDataConnectorUrl(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDataConnectorUrl) { listener.exitDataConnectorUrl(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDataConnectorUrl) { return visitor.visitDataConnectorUrl(this); } else { return visitor.visitChildren(this); } } } export class DataConnectorTypeContext extends antlr.ParserRuleContext { public _dcType?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TYPE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TYPE, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dataConnectorType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDataConnectorType) { listener.enterDataConnectorType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDataConnectorType) { listener.exitDataConnectorType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDataConnectorType) { return visitor.visitDataConnectorType(this); } else { return visitor.visitChildren(this); } } } export class DcPropertiesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public dbPropertiesList(): DbPropertiesListContext { return this.getRuleContext(0, DbPropertiesListContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dcProperties; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDcProperties) { listener.enterDcProperties(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDcProperties) { listener.exitDcProperties(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDcProperties) { return visitor.visitDcProperties(this); } else { return visitor.visitChildren(this); } } } export class DropDataConnectorStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_DATACONNECTOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DATACONNECTOR, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropDataConnectorStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropDataConnectorStatement) { listener.enterDropDataConnectorStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropDataConnectorStatement) { listener.exitDropDataConnectorStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropDataConnectorStatement) { return visitor.visitDropDataConnectorStatement(this); } else { return visitor.visitChildren(this); } } } export class TableAllColumnsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public STAR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.STAR, 0)!; } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public DOT(): antlr.TerminalNode[]; public DOT(i: number): antlr.TerminalNode | null; public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.DOT); } else { return this.getToken(HiveSqlParser.DOT, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableAllColumns; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableAllColumns) { listener.enterTableAllColumns(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableAllColumns) { listener.exitTableAllColumns(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableAllColumns) { return visitor.visitTableAllColumns(this); } else { return visitor.visitChildren(this); } } } export class DefaultValueContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DEFAULT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DEFAULT, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_defaultValue; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDefaultValue) { listener.enterDefaultValue(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDefaultValue) { listener.exitDefaultValue(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDefaultValue) { return visitor.visitDefaultValue(this); } else { return visitor.visitChildren(this); } } } export class ExpressionListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expression(): ExpressionContext[]; public expression(i: number): ExpressionContext | null; public expression(i?: number): ExpressionContext[] | ExpressionContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionContext); } return this.getRuleContext(i, ExpressionContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_expressionList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExpressionList) { listener.enterExpressionList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExpressionList) { listener.exitExpressionList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExpressionList) { return visitor.visitExpressionList(this); } else { return visitor.visitChildren(this); } } } export class AliasListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_aliasList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAliasList) { listener.enterAliasList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAliasList) { listener.exitAliasList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAliasList) { return visitor.visitAliasList(this); } else { return visitor.visitChildren(this); } } } export class FromClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_FROM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FROM, 0)!; } public fromSource(): FromSourceContext { return this.getRuleContext(0, FromSourceContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_fromClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFromClause) { listener.enterFromClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFromClause) { listener.exitFromClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFromClause) { return visitor.visitFromClause(this); } else { return visitor.visitChildren(this); } } } export class FromSourceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public uniqueJoinToken(): UniqueJoinTokenContext | null { return this.getRuleContext(0, UniqueJoinTokenContext); } public uniqueJoinSource(): UniqueJoinSourceContext[]; public uniqueJoinSource(i: number): UniqueJoinSourceContext | null; public uniqueJoinSource(i?: number): UniqueJoinSourceContext[] | UniqueJoinSourceContext | null { if (i === undefined) { return this.getRuleContexts(UniqueJoinSourceContext); } return this.getRuleContext(i, UniqueJoinSourceContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public joinSource(): JoinSourceContext | null { return this.getRuleContext(0, JoinSourceContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_fromSource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFromSource) { listener.enterFromSource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFromSource) { listener.exitFromSource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFromSource) { return visitor.visitFromSource(this); } else { return visitor.visitChildren(this); } } } export class AtomjoinSourceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableSource(): TableSourceContext | null { return this.getRuleContext(0, TableSourceContext); } public lateralView(): LateralViewContext[]; public lateralView(i: number): LateralViewContext | null; public lateralView(i?: number): LateralViewContext[] | LateralViewContext | null { if (i === undefined) { return this.getRuleContexts(LateralViewContext); } return this.getRuleContext(i, LateralViewContext); } public virtualTableSource(): VirtualTableSourceContext | null { return this.getRuleContext(0, VirtualTableSourceContext); } public subQuerySource(): SubQuerySourceContext | null { return this.getRuleContext(0, SubQuerySourceContext); } public partitionedTableFunction(): PartitionedTableFunctionContext | null { return this.getRuleContext(0, PartitionedTableFunctionContext); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public joinSource(): JoinSourceContext | null { return this.getRuleContext(0, JoinSourceContext); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_atomjoinSource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAtomjoinSource) { listener.enterAtomjoinSource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAtomjoinSource) { listener.exitAtomjoinSource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAtomjoinSource) { return visitor.visitAtomjoinSource(this); } else { return visitor.visitChildren(this); } } } export class JoinSourceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public atomjoinSource(): AtomjoinSourceContext { return this.getRuleContext(0, AtomjoinSourceContext)!; } public joinToken(): JoinTokenContext[]; public joinToken(i: number): JoinTokenContext | null; public joinToken(i?: number): JoinTokenContext[] | JoinTokenContext | null { if (i === undefined) { return this.getRuleContexts(JoinTokenContext); } return this.getRuleContext(i, JoinTokenContext); } public joinSourcePart(): JoinSourcePartContext[]; public joinSourcePart(i: number): JoinSourcePartContext | null; public joinSourcePart(i?: number): JoinSourcePartContext[] | JoinSourcePartContext | null { if (i === undefined) { return this.getRuleContexts(JoinSourcePartContext); } return this.getRuleContext(i, JoinSourcePartContext); } public KW_ON(): antlr.TerminalNode[]; public KW_ON(i: number): antlr.TerminalNode | null; public KW_ON(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_ON); } else { return this.getToken(HiveSqlParser.KW_ON, i); } } public expression(): ExpressionContext[]; public expression(i: number): ExpressionContext | null; public expression(i?: number): ExpressionContext[] | ExpressionContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionContext); } return this.getRuleContext(i, ExpressionContext); } public KW_USING(): antlr.TerminalNode[]; public KW_USING(i: number): antlr.TerminalNode | null; public KW_USING(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_USING); } else { return this.getToken(HiveSqlParser.KW_USING, i); } } public columnParenthesesList(): ColumnParenthesesListContext[]; public columnParenthesesList(i: number): ColumnParenthesesListContext | null; public columnParenthesesList(i?: number): ColumnParenthesesListContext[] | ColumnParenthesesListContext | null { if (i === undefined) { return this.getRuleContexts(ColumnParenthesesListContext); } return this.getRuleContext(i, ColumnParenthesesListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_joinSource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterJoinSource) { listener.enterJoinSource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitJoinSource) { listener.exitJoinSource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitJoinSource) { return visitor.visitJoinSource(this); } else { return visitor.visitChildren(this); } } } export class JoinSourcePartContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableSource(): TableSourceContext | null { return this.getRuleContext(0, TableSourceContext); } public virtualTableSource(): VirtualTableSourceContext | null { return this.getRuleContext(0, VirtualTableSourceContext); } public subQuerySource(): SubQuerySourceContext | null { return this.getRuleContext(0, SubQuerySourceContext); } public partitionedTableFunction(): PartitionedTableFunctionContext | null { return this.getRuleContext(0, PartitionedTableFunctionContext); } public lateralView(): LateralViewContext[]; public lateralView(i: number): LateralViewContext | null; public lateralView(i?: number): LateralViewContext[] | LateralViewContext | null { if (i === undefined) { return this.getRuleContexts(LateralViewContext); } return this.getRuleContext(i, LateralViewContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_joinSourcePart; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterJoinSourcePart) { listener.enterJoinSourcePart(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitJoinSourcePart) { listener.exitJoinSourcePart(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitJoinSourcePart) { return visitor.visitJoinSourcePart(this); } else { return visitor.visitChildren(this); } } } export class UniqueJoinSourceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public uniqueJoinTableSource(): UniqueJoinTableSourceContext { return this.getRuleContext(0, UniqueJoinTableSourceContext)!; } public uniqueJoinExpr(): UniqueJoinExprContext { return this.getRuleContext(0, UniqueJoinExprContext)!; } public KW_PRESERVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PRESERVE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_uniqueJoinSource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUniqueJoinSource) { listener.enterUniqueJoinSource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUniqueJoinSource) { listener.exitUniqueJoinSource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUniqueJoinSource) { return visitor.visitUniqueJoinSource(this); } else { return visitor.visitChildren(this); } } } export class UniqueJoinExprContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public expressionList(): ExpressionListContext { return this.getRuleContext(0, ExpressionListContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_uniqueJoinExpr; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUniqueJoinExpr) { listener.enterUniqueJoinExpr(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUniqueJoinExpr) { listener.exitUniqueJoinExpr(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUniqueJoinExpr) { return visitor.visitUniqueJoinExpr(this); } else { return visitor.visitChildren(this); } } } export class UniqueJoinTokenContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UNIQUEJOIN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UNIQUEJOIN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_uniqueJoinToken; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUniqueJoinToken) { listener.enterUniqueJoinToken(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUniqueJoinToken) { listener.exitUniqueJoinToken(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUniqueJoinToken) { return visitor.visitUniqueJoinToken(this); } else { return visitor.visitChildren(this); } } } export class JoinTokenContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public COMMA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.COMMA, 0); } public KW_JOIN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_JOIN, 0); } public KW_INNER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INNER, 0); } public KW_CROSS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CROSS, 0); } public KW_LEFT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LEFT, 0); } public KW_RIGHT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RIGHT, 0); } public KW_FULL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FULL, 0); } public KW_OUTER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OUTER, 0); } public KW_SEMI(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SEMI, 0); } public KW_ANTI(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ANTI, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_joinToken; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterJoinToken) { listener.enterJoinToken(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitJoinToken) { listener.exitJoinToken(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitJoinToken) { return visitor.visitJoinToken(this); } else { return visitor.visitChildren(this); } } } export class LateralViewContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LATERAL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_LATERAL, 0)!; } public KW_VIEW(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VIEW, 0); } public KW_OUTER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OUTER, 0); } public function_(): Function_Context | null { return this.getRuleContext(0, Function_Context); } public tableAlias(): TableAliasContext | null { return this.getRuleContext(0, TableAliasContext); } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public KW_TABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLE, 0); } public LPAREN(): antlr.TerminalNode[]; public LPAREN(i: number): antlr.TerminalNode | null; public LPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.LPAREN); } else { return this.getToken(HiveSqlParser.LPAREN, i); } } public valuesClause(): ValuesClauseContext | null { return this.getRuleContext(0, ValuesClauseContext); } public RPAREN(): antlr.TerminalNode[]; public RPAREN(i: number): antlr.TerminalNode | null; public RPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.RPAREN); } else { return this.getToken(HiveSqlParser.RPAREN, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_lateralView; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterLateralView) { listener.enterLateralView(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitLateralView) { listener.exitLateralView(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitLateralView) { return visitor.visitLateralView(this); } else { return visitor.visitChildren(this); } } } export class TableAliasContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableAlias; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableAlias) { listener.enterTableAlias(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableAlias) { listener.exitTableAlias(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableAlias) { return visitor.visitTableAlias(this); } else { return visitor.visitChildren(this); } } } export class TableBucketSampleContext extends antlr.ParserRuleContext { public _numerator?: Token | null; public _denominator?: Token | null; public _expression?: ExpressionContext; public _expr: ExpressionContext[] = []; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TABLESAMPLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLESAMPLE, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public KW_BUCKET(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BUCKET, 0)!; } public KW_OUT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OUT, 0)!; } public KW_OF(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OF, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public Number(): antlr.TerminalNode[]; public Number(i: number): antlr.TerminalNode | null; public Number(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.Number); } else { return this.getToken(HiveSqlParser.Number, i); } } public KW_ON(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ON, 0); } public expression(): ExpressionContext[]; public expression(i: number): ExpressionContext | null; public expression(i?: number): ExpressionContext[] | ExpressionContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionContext); } return this.getRuleContext(i, ExpressionContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableBucketSample; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableBucketSample) { listener.enterTableBucketSample(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableBucketSample) { listener.exitTableBucketSample(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableBucketSample) { return visitor.visitTableBucketSample(this); } else { return visitor.visitChildren(this); } } } export class SplitSampleContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TABLESAMPLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLESAMPLE, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public ByteLengthLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.ByteLengthLiteral, 0); } public KW_PERCENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PERCENT, 0); } public KW_ROWS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROWS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_splitSample; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSplitSample) { listener.enterSplitSample(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSplitSample) { listener.exitSplitSample(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSplitSample) { return visitor.visitSplitSample(this); } else { return visitor.visitChildren(this); } } } export class TableSampleContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableBucketSample(): TableBucketSampleContext | null { return this.getRuleContext(0, TableBucketSampleContext); } public splitSample(): SplitSampleContext | null { return this.getRuleContext(0, SplitSampleContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableSample; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableSample) { listener.enterTableSample(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableSample) { listener.exitTableSample(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableSample) { return visitor.visitTableSample(this); } else { return visitor.visitChildren(this); } } } export class TableSourceContext extends antlr.ParserRuleContext { public _tabname?: TableOrViewContext; public _props?: TablePropertiesContext; public _ts?: TableSampleContext; public _asOf?: AsOfClauseContext; public _alias?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableOrView(): TableOrViewContext { return this.getRuleContext(0, TableOrViewContext)!; } public tableProperties(): TablePropertiesContext | null { return this.getRuleContext(0, TablePropertiesContext); } public tableSample(): TableSampleContext | null { return this.getRuleContext(0, TableSampleContext); } public asOfClause(): AsOfClauseContext | null { return this.getRuleContext(0, AsOfClauseContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableSource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableSource) { listener.enterTableSource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableSource) { listener.exitTableSource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableSource) { return visitor.visitTableSource(this); } else { return visitor.visitChildren(this); } } } export class AsOfClauseContext extends antlr.ParserRuleContext { public _asOfTime?: ExpressionContext; public _asOfVersion?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_FOR(): antlr.TerminalNode[]; public KW_FOR(i: number): antlr.TerminalNode | null; public KW_FOR(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_FOR); } else { return this.getToken(HiveSqlParser.KW_FOR, i); } } public KW_SYSTEM_TIME(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SYSTEM_TIME, 0); } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public KW_OF(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OF, 0); } public KW_SYSTEM_VERSION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SYSTEM_VERSION, 0); } public expression(): ExpressionContext | null { return this.getRuleContext(0, ExpressionContext); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_asOfClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAsOfClause) { listener.enterAsOfClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAsOfClause) { listener.exitAsOfClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAsOfClause) { return visitor.visitAsOfClause(this); } else { return visitor.visitChildren(this); } } } export class UniqueJoinTableSourceContext extends antlr.ParserRuleContext { public _tabname?: TableOrViewContext; public _ts?: TableSampleContext; public _alias?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableOrView(): TableOrViewContext { return this.getRuleContext(0, TableOrViewContext)!; } public tableSample(): TableSampleContext | null { return this.getRuleContext(0, TableSampleContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_uniqueJoinTableSource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUniqueJoinTableSource) { listener.enterUniqueJoinTableSource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUniqueJoinTableSource) { listener.exitUniqueJoinTableSource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUniqueJoinTableSource) { return visitor.visitUniqueJoinTableSource(this); } else { return visitor.visitChildren(this); } } } export class DbSchemaNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dbSchemaName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDbSchemaName) { listener.enterDbSchemaName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDbSchemaName) { listener.exitDbSchemaName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDbSchemaName) { return visitor.visitDbSchemaName(this); } else { return visitor.visitChildren(this); } } } export class DbSchemaNameCreateContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dbSchemaNameCreate; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDbSchemaNameCreate) { listener.enterDbSchemaNameCreate(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDbSchemaNameCreate) { listener.exitDbSchemaNameCreate(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDbSchemaNameCreate) { return visitor.visitDbSchemaNameCreate(this); } else { return visitor.visitChildren(this); } } } export class TableOrViewContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableName(): TableNameContext | null { return this.getRuleContext(0, TableNameContext); } public viewName(): ViewNameContext | null { return this.getRuleContext(0, ViewNameContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableOrView; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableOrView) { listener.enterTableOrView(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableOrView) { listener.exitTableOrView(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableOrView) { return visitor.visitTableOrView(this); } else { return visitor.visitChildren(this); } } } export class TableNameContext extends antlr.ParserRuleContext { public _db?: Id_Context; public _tab?: Id_Context; public _meta?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public DOT(): antlr.TerminalNode[]; public DOT(i: number): antlr.TerminalNode | null; public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.DOT); } else { return this.getToken(HiveSqlParser.DOT, i); } } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableName) { listener.enterTableName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableName) { listener.exitTableName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableName) { return visitor.visitTableName(this); } else { return visitor.visitChildren(this); } } } export class TableNameCreateContext extends antlr.ParserRuleContext { public _db?: Id_Context; public _tab?: Id_Context; public _meta?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public DOT(): antlr.TerminalNode[]; public DOT(i: number): antlr.TerminalNode | null; public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.DOT); } else { return this.getToken(HiveSqlParser.DOT, i); } } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableNameCreate; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableNameCreate) { listener.enterTableNameCreate(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableNameCreate) { listener.exitTableNameCreate(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableNameCreate) { return visitor.visitTableNameCreate(this); } else { return visitor.visitChildren(this); } } } export class ViewNameContext extends antlr.ParserRuleContext { public _db?: Id_Context; public _view?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public DOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.DOT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_viewName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterViewName) { listener.enterViewName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitViewName) { listener.exitViewName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitViewName) { return visitor.visitViewName(this); } else { return visitor.visitChildren(this); } } } export class ViewNameCreateContext extends antlr.ParserRuleContext { public _db?: Id_Context; public _view?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public DOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.DOT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_viewNameCreate; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterViewNameCreate) { listener.enterViewNameCreate(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitViewNameCreate) { listener.exitViewNameCreate(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitViewNameCreate) { return visitor.visitViewNameCreate(this); } else { return visitor.visitChildren(this); } } } export class SubQuerySourceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public queryStatementExpression(): QueryStatementExpressionContext { return this.getRuleContext(0, QueryStatementExpressionContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_subQuerySource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSubQuerySource) { listener.enterSubQuerySource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSubQuerySource) { listener.exitSubQuerySource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSubQuerySource) { return visitor.visitSubQuerySource(this); } else { return visitor.visitChildren(this); } } } export class PartitioningSpecContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public partitionByClause(): PartitionByClauseContext | null { return this.getRuleContext(0, PartitionByClauseContext); } public orderByClause(): OrderByClauseContext | null { return this.getRuleContext(0, OrderByClauseContext); } public distributeByClause(): DistributeByClauseContext | null { return this.getRuleContext(0, DistributeByClauseContext); } public sortByClause(): SortByClauseContext | null { return this.getRuleContext(0, SortByClauseContext); } public clusterByClause(): ClusterByClauseContext | null { return this.getRuleContext(0, ClusterByClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitioningSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitioningSpec) { listener.enterPartitioningSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitioningSpec) { listener.exitPartitioningSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitioningSpec) { return visitor.visitPartitioningSpec(this); } else { return visitor.visitChildren(this); } } } export class PartitionTableFunctionSourceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public subQuerySource(): SubQuerySourceContext | null { return this.getRuleContext(0, SubQuerySourceContext); } public tableSource(): TableSourceContext | null { return this.getRuleContext(0, TableSourceContext); } public partitionedTableFunction(): PartitionedTableFunctionContext | null { return this.getRuleContext(0, PartitionedTableFunctionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionTableFunctionSource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionTableFunctionSource) { listener.enterPartitionTableFunctionSource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionTableFunctionSource) { listener.exitPartitionTableFunctionSource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionTableFunctionSource) { return visitor.visitPartitionTableFunctionSource(this); } else { return visitor.visitChildren(this); } } } export class PartitionedTableFunctionContext extends antlr.ParserRuleContext { public _n?: Id_Context; public _ptfsrc?: PartitionTableFunctionSourceContext; public _spec?: PartitioningSpecContext; public _alias?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode[]; public LPAREN(i: number): antlr.TerminalNode | null; public LPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.LPAREN); } else { return this.getToken(HiveSqlParser.LPAREN, i); } } public KW_ON(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ON, 0)!; } public RPAREN(): antlr.TerminalNode[]; public RPAREN(i: number): antlr.TerminalNode | null; public RPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.RPAREN); } else { return this.getToken(HiveSqlParser.RPAREN, i); } } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public partitionTableFunctionSource(): PartitionTableFunctionSourceContext { return this.getRuleContext(0, PartitionTableFunctionSourceContext)!; } public Identifier(): antlr.TerminalNode[]; public Identifier(i: number): antlr.TerminalNode | null; public Identifier(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.Identifier); } else { return this.getToken(HiveSqlParser.Identifier, i); } } public expression(): ExpressionContext[]; public expression(i: number): ExpressionContext | null; public expression(i?: number): ExpressionContext[] | ExpressionContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionContext); } return this.getRuleContext(i, ExpressionContext); } public partitioningSpec(): PartitioningSpecContext | null { return this.getRuleContext(0, PartitioningSpecContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionedTableFunction; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionedTableFunction) { listener.enterPartitionedTableFunction(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionedTableFunction) { listener.exitPartitionedTableFunction(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionedTableFunction) { return visitor.visitPartitionedTableFunction(this); } else { return visitor.visitChildren(this); } } } export class WhereClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WHERE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WHERE, 0)!; } public searchCondition(): SearchConditionContext { return this.getRuleContext(0, SearchConditionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_whereClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWhereClause) { listener.enterWhereClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWhereClause) { listener.exitWhereClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWhereClause) { return visitor.visitWhereClause(this); } else { return visitor.visitChildren(this); } } } export class SearchConditionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_searchCondition; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSearchCondition) { listener.enterSearchCondition(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSearchCondition) { listener.exitSearchCondition(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSearchCondition) { return visitor.visitSearchCondition(this); } else { return visitor.visitChildren(this); } } } export class ValuesSourceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public valuesClause(): ValuesClauseContext { return this.getRuleContext(0, ValuesClauseContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_valuesSource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterValuesSource) { listener.enterValuesSource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitValuesSource) { listener.exitValuesSource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitValuesSource) { return visitor.visitValuesSource(this); } else { return visitor.visitChildren(this); } } } export class ValuesClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_VALUES(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_VALUES, 0)!; } public valuesTableConstructor(): ValuesTableConstructorContext { return this.getRuleContext(0, ValuesTableConstructorContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_valuesClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterValuesClause) { listener.enterValuesClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitValuesClause) { listener.exitValuesClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitValuesClause) { return visitor.visitValuesClause(this); } else { return visitor.visitChildren(this); } } } export class ValuesTableConstructorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public valueRowConstructor(): ValueRowConstructorContext[]; public valueRowConstructor(i: number): ValueRowConstructorContext | null; public valueRowConstructor(i?: number): ValueRowConstructorContext[] | ValueRowConstructorContext | null { if (i === undefined) { return this.getRuleContexts(ValueRowConstructorContext); } return this.getRuleContext(i, ValueRowConstructorContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public firstValueRowConstructor(): FirstValueRowConstructorContext | null { return this.getRuleContext(0, FirstValueRowConstructorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_valuesTableConstructor; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterValuesTableConstructor) { listener.enterValuesTableConstructor(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitValuesTableConstructor) { listener.exitValuesTableConstructor(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitValuesTableConstructor) { return visitor.visitValuesTableConstructor(this); } else { return visitor.visitChildren(this); } } } export class ValueRowConstructorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expressionsInParenthesis(): ExpressionsInParenthesisContext { return this.getRuleContext(0, ExpressionsInParenthesisContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_valueRowConstructor; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterValueRowConstructor) { listener.enterValueRowConstructor(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitValueRowConstructor) { listener.exitValueRowConstructor(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitValueRowConstructor) { return visitor.visitValueRowConstructor(this); } else { return visitor.visitChildren(this); } } } export class FirstValueRowConstructorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public firstExpressionsWithAlias(): FirstExpressionsWithAliasContext { return this.getRuleContext(0, FirstExpressionsWithAliasContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_firstValueRowConstructor; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFirstValueRowConstructor) { listener.enterFirstValueRowConstructor(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFirstValueRowConstructor) { listener.exitFirstValueRowConstructor(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFirstValueRowConstructor) { return visitor.visitFirstValueRowConstructor(this); } else { return visitor.visitChildren(this); } } } export class VirtualTableSourceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TABLE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TABLE, 0)!; } public LPAREN(): antlr.TerminalNode[]; public LPAREN(i: number): antlr.TerminalNode | null; public LPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.LPAREN); } else { return this.getToken(HiveSqlParser.LPAREN, i); } } public valuesClause(): ValuesClauseContext { return this.getRuleContext(0, ValuesClauseContext)!; } public RPAREN(): antlr.TerminalNode[]; public RPAREN(i: number): antlr.TerminalNode | null; public RPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.RPAREN); } else { return this.getToken(HiveSqlParser.RPAREN, i); } } public tableAlias(): TableAliasContext { return this.getRuleContext(0, TableAliasContext)!; } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_virtualTableSource; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterVirtualTableSource) { listener.enterVirtualTableSource(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitVirtualTableSource) { listener.exitVirtualTableSource(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitVirtualTableSource) { return visitor.visitVirtualTableSource(this); } else { return visitor.visitChildren(this); } } } export class SelectClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SELECT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SELECT, 0); } public selectList(): SelectListContext | null { return this.getRuleContext(0, SelectListContext); } public KW_TRANSFORM(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRANSFORM, 0); } public selectTrfmClause(): SelectTrfmClauseContext | null { return this.getRuleContext(0, SelectTrfmClauseContext); } public QUERY_HINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.QUERY_HINT, 0); } public all_distinct(): All_distinctContext | null { return this.getRuleContext(0, All_distinctContext); } public trfmClause(): TrfmClauseContext | null { return this.getRuleContext(0, TrfmClauseContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_selectClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSelectClause) { listener.enterSelectClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSelectClause) { listener.exitSelectClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSelectClause) { return visitor.visitSelectClause(this); } else { return visitor.visitChildren(this); } } } export class All_distinctContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALL, 0); } public KW_DISTINCT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DISTINCT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_all_distinct; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAll_distinct) { listener.enterAll_distinct(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAll_distinct) { listener.exitAll_distinct(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAll_distinct) { return visitor.visitAll_distinct(this); } else { return visitor.visitChildren(this); } } } export class SelectListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public selectItem(): SelectItemContext[]; public selectItem(i: number): SelectItemContext | null; public selectItem(i?: number): SelectItemContext[] | SelectItemContext | null { if (i === undefined) { return this.getRuleContexts(SelectItemContext); } return this.getRuleContext(i, SelectItemContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_selectList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSelectList) { listener.enterSelectList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSelectList) { listener.exitSelectList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSelectList) { return visitor.visitSelectList(this); } else { return visitor.visitChildren(this); } } } export class SelectTrfmClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode[]; public LPAREN(i: number): antlr.TerminalNode | null; public LPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.LPAREN); } else { return this.getToken(HiveSqlParser.LPAREN, i); } } public selectExpressionList(): SelectExpressionListContext { return this.getRuleContext(0, SelectExpressionListContext)!; } public RPAREN(): antlr.TerminalNode[]; public RPAREN(i: number): antlr.TerminalNode | null; public RPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.RPAREN); } else { return this.getToken(HiveSqlParser.RPAREN, i); } } public rowFormat(): RowFormatContext[]; public rowFormat(i: number): RowFormatContext | null; public rowFormat(i?: number): RowFormatContext[] | RowFormatContext | null { if (i === undefined) { return this.getRuleContexts(RowFormatContext); } return this.getRuleContext(i, RowFormatContext); } public recordWriter(): RecordWriterContext { return this.getRuleContext(0, RecordWriterContext)!; } public KW_USING(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_USING, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public recordReader(): RecordReaderContext { return this.getRuleContext(0, RecordReaderContext)!; } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public aliasList(): AliasListContext | null { return this.getRuleContext(0, AliasListContext); } public columnNameTypeList(): ColumnNameTypeListContext | null { return this.getRuleContext(0, ColumnNameTypeListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_selectTrfmClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSelectTrfmClause) { listener.enterSelectTrfmClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSelectTrfmClause) { listener.exitSelectTrfmClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSelectTrfmClause) { return visitor.visitSelectTrfmClause(this); } else { return visitor.visitChildren(this); } } } export class SelectItemContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableAllColumns(): TableAllColumnsContext | null { return this.getRuleContext(0, TableAllColumnsContext); } public columnName(): ColumnNameContext | null { return this.getRuleContext(0, ColumnNameContext); } public expression(): ExpressionContext | null { return this.getRuleContext(0, ExpressionContext); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_selectItem; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSelectItem) { listener.enterSelectItem(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSelectItem) { listener.exitSelectItem(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSelectItem) { return visitor.visitSelectItem(this); } else { return visitor.visitChildren(this); } } } export class TrfmClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public selectExpressionList(): SelectExpressionListContext { return this.getRuleContext(0, SelectExpressionListContext)!; } public rowFormat(): RowFormatContext[]; public rowFormat(i: number): RowFormatContext | null; public rowFormat(i?: number): RowFormatContext[] | RowFormatContext | null { if (i === undefined) { return this.getRuleContexts(RowFormatContext); } return this.getRuleContext(i, RowFormatContext); } public recordWriter(): RecordWriterContext { return this.getRuleContext(0, RecordWriterContext)!; } public KW_USING(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_USING, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public recordReader(): RecordReaderContext { return this.getRuleContext(0, RecordReaderContext)!; } public KW_MAP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MAP, 0); } public KW_REDUCE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REDUCE, 0); } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public aliasList(): AliasListContext | null { return this.getRuleContext(0, AliasListContext); } public columnNameTypeList(): ColumnNameTypeListContext | null { return this.getRuleContext(0, ColumnNameTypeListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_trfmClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTrfmClause) { listener.enterTrfmClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTrfmClause) { listener.exitTrfmClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTrfmClause) { return visitor.visitTrfmClause(this); } else { return visitor.visitChildren(this); } } } export class SelectExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableAllColumns(): TableAllColumnsContext | null { return this.getRuleContext(0, TableAllColumnsContext); } public expression(): ExpressionContext | null { return this.getRuleContext(0, ExpressionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_selectExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSelectExpression) { listener.enterSelectExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSelectExpression) { listener.exitSelectExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSelectExpression) { return visitor.visitSelectExpression(this); } else { return visitor.visitChildren(this); } } } export class SelectExpressionListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public selectExpression(): SelectExpressionContext[]; public selectExpression(i: number): SelectExpressionContext | null; public selectExpression(i?: number): SelectExpressionContext[] | SelectExpressionContext | null { if (i === undefined) { return this.getRuleContexts(SelectExpressionContext); } return this.getRuleContext(i, SelectExpressionContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_selectExpressionList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSelectExpressionList) { listener.enterSelectExpressionList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSelectExpressionList) { listener.exitSelectExpressionList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSelectExpressionList) { return visitor.visitSelectExpressionList(this); } else { return visitor.visitChildren(this); } } } export class Window_clauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WINDOW(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WINDOW, 0)!; } public window_defn(): Window_defnContext[]; public window_defn(i: number): Window_defnContext | null; public window_defn(i?: number): Window_defnContext[] | Window_defnContext | null { if (i === undefined) { return this.getRuleContexts(Window_defnContext); } return this.getRuleContext(i, Window_defnContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_window_clause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWindow_clause) { listener.enterWindow_clause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWindow_clause) { listener.exitWindow_clause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWindow_clause) { return visitor.visitWindow_clause(this); } else { return visitor.visitChildren(this); } } } export class Window_defnContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public window_specification(): Window_specificationContext { return this.getRuleContext(0, Window_specificationContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_window_defn; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWindow_defn) { listener.enterWindow_defn(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWindow_defn) { listener.exitWindow_defn(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWindow_defn) { return visitor.visitWindow_defn(this); } else { return visitor.visitChildren(this); } } } export class Window_specificationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public partitioningSpec(): PartitioningSpecContext | null { return this.getRuleContext(0, PartitioningSpecContext); } public window_frame(): Window_frameContext | null { return this.getRuleContext(0, Window_frameContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_window_specification; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWindow_specification) { listener.enterWindow_specification(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWindow_specification) { listener.exitWindow_specification(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWindow_specification) { return visitor.visitWindow_specification(this); } else { return visitor.visitChildren(this); } } } export class Window_frameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public window_range_expression(): Window_range_expressionContext | null { return this.getRuleContext(0, Window_range_expressionContext); } public window_value_expression(): Window_value_expressionContext | null { return this.getRuleContext(0, Window_value_expressionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_window_frame; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWindow_frame) { listener.enterWindow_frame(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWindow_frame) { listener.exitWindow_frame(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWindow_frame) { return visitor.visitWindow_frame(this); } else { return visitor.visitChildren(this); } } } export class Window_range_expressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ROWS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ROWS, 0)!; } public window_frame_start_boundary(): Window_frame_start_boundaryContext | null { return this.getRuleContext(0, Window_frame_start_boundaryContext); } public KW_BETWEEN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BETWEEN, 0); } public window_frame_boundary(): Window_frame_boundaryContext[]; public window_frame_boundary(i: number): Window_frame_boundaryContext | null; public window_frame_boundary(i?: number): Window_frame_boundaryContext[] | Window_frame_boundaryContext | null { if (i === undefined) { return this.getRuleContexts(Window_frame_boundaryContext); } return this.getRuleContext(i, Window_frame_boundaryContext); } public KW_AND(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AND, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_window_range_expression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWindow_range_expression) { listener.enterWindow_range_expression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWindow_range_expression) { listener.exitWindow_range_expression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWindow_range_expression) { return visitor.visitWindow_range_expression(this); } else { return visitor.visitChildren(this); } } } export class Window_value_expressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RANGE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RANGE, 0)!; } public window_frame_start_boundary(): Window_frame_start_boundaryContext | null { return this.getRuleContext(0, Window_frame_start_boundaryContext); } public KW_BETWEEN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BETWEEN, 0); } public window_frame_boundary(): Window_frame_boundaryContext[]; public window_frame_boundary(i: number): Window_frame_boundaryContext | null; public window_frame_boundary(i?: number): Window_frame_boundaryContext[] | Window_frame_boundaryContext | null { if (i === undefined) { return this.getRuleContexts(Window_frame_boundaryContext); } return this.getRuleContext(i, Window_frame_boundaryContext); } public KW_AND(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AND, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_window_value_expression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWindow_value_expression) { listener.enterWindow_value_expression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWindow_value_expression) { listener.exitWindow_value_expression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWindow_value_expression) { return visitor.visitWindow_value_expression(this); } else { return visitor.visitChildren(this); } } } export class Window_frame_start_boundaryContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UNBOUNDED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNBOUNDED, 0); } public KW_PRECEDING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PRECEDING, 0); } public KW_CURRENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CURRENT, 0); } public KW_ROW(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROW, 0); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_window_frame_start_boundary; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWindow_frame_start_boundary) { listener.enterWindow_frame_start_boundary(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWindow_frame_start_boundary) { listener.exitWindow_frame_start_boundary(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWindow_frame_start_boundary) { return visitor.visitWindow_frame_start_boundary(this); } else { return visitor.visitChildren(this); } } } export class Window_frame_boundaryContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UNBOUNDED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNBOUNDED, 0); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public KW_PRECEDING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PRECEDING, 0); } public KW_FOLLOWING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FOLLOWING, 0); } public KW_CURRENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CURRENT, 0); } public KW_ROW(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROW, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_window_frame_boundary; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWindow_frame_boundary) { listener.enterWindow_frame_boundary(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWindow_frame_boundary) { listener.exitWindow_frame_boundary(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWindow_frame_boundary) { return visitor.visitWindow_frame_boundary(this); } else { return visitor.visitChildren(this); } } } export class GroupByClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_GROUP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_GROUP, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public groupby_expression(): Groupby_expressionContext { return this.getRuleContext(0, Groupby_expressionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_groupByClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGroupByClause) { listener.enterGroupByClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGroupByClause) { listener.exitGroupByClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGroupByClause) { return visitor.visitGroupByClause(this); } else { return visitor.visitChildren(this); } } } export class Groupby_expressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnName(): ColumnNameContext | null { return this.getRuleContext(0, ColumnNameContext); } public rollupStandard(): RollupStandardContext | null { return this.getRuleContext(0, RollupStandardContext); } public rollupOldSyntax(): RollupOldSyntaxContext | null { return this.getRuleContext(0, RollupOldSyntaxContext); } public groupByEmpty(): GroupByEmptyContext | null { return this.getRuleContext(0, GroupByEmptyContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_groupby_expression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGroupby_expression) { listener.enterGroupby_expression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGroupby_expression) { listener.exitGroupby_expression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGroupby_expression) { return visitor.visitGroupby_expression(this); } else { return visitor.visitChildren(this); } } } export class GroupByEmptyContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_groupByEmpty; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGroupByEmpty) { listener.enterGroupByEmpty(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGroupByEmpty) { listener.exitGroupByEmpty(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGroupByEmpty) { return visitor.visitGroupByEmpty(this); } else { return visitor.visitChildren(this); } } } export class RollupStandardContext extends antlr.ParserRuleContext { public _rollup?: Token | null; public _cube?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public expression(): ExpressionContext[]; public expression(i: number): ExpressionContext | null; public expression(i?: number): ExpressionContext[] | ExpressionContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionContext); } return this.getRuleContext(i, ExpressionContext); } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public KW_ROLLUP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROLLUP, 0); } public KW_CUBE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CUBE, 0); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_rollupStandard; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRollupStandard) { listener.enterRollupStandard(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRollupStandard) { listener.exitRollupStandard(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRollupStandard) { return visitor.visitRollupStandard(this); } else { return visitor.visitChildren(this); } } } export class RollupOldSyntaxContext extends antlr.ParserRuleContext { public _expr?: ExpressionsNotInParenthesisContext; public _rollup?: Token | null; public _cube?: Token | null; public _sets?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expressionsNotInParenthesis(): ExpressionsNotInParenthesisContext { return this.getRuleContext(0, ExpressionsNotInParenthesisContext)!; } public KW_ROLLUP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROLLUP, 0); } public KW_CUBE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CUBE, 0); } public KW_SETS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SETS, 0); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public groupingSetExpression(): GroupingSetExpressionContext[]; public groupingSetExpression(i: number): GroupingSetExpressionContext | null; public groupingSetExpression(i?: number): GroupingSetExpressionContext[] | GroupingSetExpressionContext | null { if (i === undefined) { return this.getRuleContexts(GroupingSetExpressionContext); } return this.getRuleContext(i, GroupingSetExpressionContext); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_GROUPING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_GROUPING, 0); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_rollupOldSyntax; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRollupOldSyntax) { listener.enterRollupOldSyntax(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRollupOldSyntax) { listener.exitRollupOldSyntax(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRollupOldSyntax) { return visitor.visitRollupOldSyntax(this); } else { return visitor.visitChildren(this); } } } export class GroupingSetExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public groupingSetExpressionMultiple(): GroupingSetExpressionMultipleContext | null { return this.getRuleContext(0, GroupingSetExpressionMultipleContext); } public groupingExpressionSingle(): GroupingExpressionSingleContext | null { return this.getRuleContext(0, GroupingExpressionSingleContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_groupingSetExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGroupingSetExpression) { listener.enterGroupingSetExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGroupingSetExpression) { listener.exitGroupingSetExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGroupingSetExpression) { return visitor.visitGroupingSetExpression(this); } else { return visitor.visitChildren(this); } } } export class GroupingSetExpressionMultipleContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public expression(): ExpressionContext[]; public expression(i: number): ExpressionContext | null; public expression(i?: number): ExpressionContext[] | ExpressionContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionContext); } return this.getRuleContext(i, ExpressionContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_groupingSetExpressionMultiple; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGroupingSetExpressionMultiple) { listener.enterGroupingSetExpressionMultiple(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGroupingSetExpressionMultiple) { listener.exitGroupingSetExpressionMultiple(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGroupingSetExpressionMultiple) { return visitor.visitGroupingSetExpressionMultiple(this); } else { return visitor.visitChildren(this); } } } export class GroupingExpressionSingleContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_groupingExpressionSingle; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGroupingExpressionSingle) { listener.enterGroupingExpressionSingle(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGroupingExpressionSingle) { listener.exitGroupingExpressionSingle(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGroupingExpressionSingle) { return visitor.visitGroupingExpressionSingle(this); } else { return visitor.visitChildren(this); } } } export class HavingClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_HAVING(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_HAVING, 0)!; } public havingCondition(): HavingConditionContext { return this.getRuleContext(0, HavingConditionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_havingClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterHavingClause) { listener.enterHavingClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitHavingClause) { listener.exitHavingClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitHavingClause) { return visitor.visitHavingClause(this); } else { return visitor.visitChildren(this); } } } export class QualifyClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_QUALIFY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_QUALIFY, 0)!; } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_qualifyClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterQualifyClause) { listener.enterQualifyClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitQualifyClause) { listener.exitQualifyClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitQualifyClause) { return visitor.visitQualifyClause(this); } else { return visitor.visitChildren(this); } } } export class HavingConditionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_havingCondition; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterHavingCondition) { listener.enterHavingCondition(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitHavingCondition) { listener.exitHavingCondition(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitHavingCondition) { return visitor.visitHavingCondition(this); } else { return visitor.visitChildren(this); } } } export class ExpressionsInParenthesisContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public expressionsNotInParenthesis(): ExpressionsNotInParenthesisContext { return this.getRuleContext(0, ExpressionsNotInParenthesisContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_expressionsInParenthesis; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExpressionsInParenthesis) { listener.enterExpressionsInParenthesis(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExpressionsInParenthesis) { listener.exitExpressionsInParenthesis(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExpressionsInParenthesis) { return visitor.visitExpressionsInParenthesis(this); } else { return visitor.visitChildren(this); } } } export class ExpressionsNotInParenthesisContext extends antlr.ParserRuleContext { public _first?: ExpressionOrDefaultContext; public _more?: ExpressionPartContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expressionOrDefault(): ExpressionOrDefaultContext { return this.getRuleContext(0, ExpressionOrDefaultContext)!; } public expressionPart(): ExpressionPartContext | null { return this.getRuleContext(0, ExpressionPartContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_expressionsNotInParenthesis; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExpressionsNotInParenthesis) { listener.enterExpressionsNotInParenthesis(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExpressionsNotInParenthesis) { listener.exitExpressionsNotInParenthesis(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExpressionsNotInParenthesis) { return visitor.visitExpressionsNotInParenthesis(this); } else { return visitor.visitChildren(this); } } } export class ExpressionPartContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public expressionOrDefault(): ExpressionOrDefaultContext[]; public expressionOrDefault(i: number): ExpressionOrDefaultContext | null; public expressionOrDefault(i?: number): ExpressionOrDefaultContext[] | ExpressionOrDefaultContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionOrDefaultContext); } return this.getRuleContext(i, ExpressionOrDefaultContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_expressionPart; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExpressionPart) { listener.enterExpressionPart(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExpressionPart) { listener.exitExpressionPart(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExpressionPart) { return visitor.visitExpressionPart(this); } else { return visitor.visitChildren(this); } } } export class ExpressionOrDefaultContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public defaultValue(): DefaultValueContext | null { return this.getRuleContext(0, DefaultValueContext); } public expression(): ExpressionContext | null { return this.getRuleContext(0, ExpressionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_expressionOrDefault; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExpressionOrDefault) { listener.enterExpressionOrDefault(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExpressionOrDefault) { listener.exitExpressionOrDefault(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExpressionOrDefault) { return visitor.visitExpressionOrDefault(this); } else { return visitor.visitChildren(this); } } } export class FirstExpressionsWithAliasContext extends antlr.ParserRuleContext { public _first?: ExpressionContext; public _colAlias?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public expressionWithAlias(): ExpressionWithAliasContext[]; public expressionWithAlias(i: number): ExpressionWithAliasContext | null; public expressionWithAlias(i?: number): ExpressionWithAliasContext[] | ExpressionWithAliasContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionWithAliasContext); } return this.getRuleContext(i, ExpressionWithAliasContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_firstExpressionsWithAlias; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFirstExpressionsWithAlias) { listener.enterFirstExpressionsWithAlias(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFirstExpressionsWithAlias) { listener.exitFirstExpressionsWithAlias(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFirstExpressionsWithAlias) { return visitor.visitFirstExpressionsWithAlias(this); } else { return visitor.visitChildren(this); } } } export class ExpressionWithAliasContext extends antlr.ParserRuleContext { public _alias?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public KW_AS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AS, 0); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_expressionWithAlias; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExpressionWithAlias) { listener.enterExpressionWithAlias(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExpressionWithAlias) { listener.exitExpressionWithAlias(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExpressionWithAlias) { return visitor.visitExpressionWithAlias(this); } else { return visitor.visitChildren(this); } } } export class ExpressionsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public expressionsInParenthesis(): ExpressionsInParenthesisContext | null { return this.getRuleContext(0, ExpressionsInParenthesisContext); } public expressionsNotInParenthesis(): ExpressionsNotInParenthesisContext | null { return this.getRuleContext(0, ExpressionsNotInParenthesisContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_expressions; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExpressions) { listener.enterExpressions(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExpressions) { listener.exitExpressions(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExpressions) { return visitor.visitExpressions(this); } else { return visitor.visitChildren(this); } } } export class ColumnRefOrderInParenthesisContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public columnRefOrder(): ColumnRefOrderContext[]; public columnRefOrder(i: number): ColumnRefOrderContext | null; public columnRefOrder(i?: number): ColumnRefOrderContext[] | ColumnRefOrderContext | null { if (i === undefined) { return this.getRuleContexts(ColumnRefOrderContext); } return this.getRuleContext(i, ColumnRefOrderContext); } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnRefOrderInParenthesis; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnRefOrderInParenthesis) { listener.enterColumnRefOrderInParenthesis(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnRefOrderInParenthesis) { listener.exitColumnRefOrderInParenthesis(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnRefOrderInParenthesis) { return visitor.visitColumnRefOrderInParenthesis(this); } else { return visitor.visitChildren(this); } } } export class ColumnRefOrderNotInParenthesisContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public columnRefOrder(): ColumnRefOrderContext[]; public columnRefOrder(i: number): ColumnRefOrderContext | null; public columnRefOrder(i?: number): ColumnRefOrderContext[] | ColumnRefOrderContext | null { if (i === undefined) { return this.getRuleContexts(ColumnRefOrderContext); } return this.getRuleContext(i, ColumnRefOrderContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_columnRefOrderNotInParenthesis; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterColumnRefOrderNotInParenthesis) { listener.enterColumnRefOrderNotInParenthesis(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitColumnRefOrderNotInParenthesis) { listener.exitColumnRefOrderNotInParenthesis(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitColumnRefOrderNotInParenthesis) { return visitor.visitColumnRefOrderNotInParenthesis(this); } else { return visitor.visitChildren(this); } } } export class OrderByClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ORDER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ORDER, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public columnRefOrder(): ColumnRefOrderContext[]; public columnRefOrder(i: number): ColumnRefOrderContext | null; public columnRefOrder(i?: number): ColumnRefOrderContext[] | ColumnRefOrderContext | null { if (i === undefined) { return this.getRuleContexts(ColumnRefOrderContext); } return this.getRuleContext(i, ColumnRefOrderContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_orderByClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterOrderByClause) { listener.enterOrderByClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitOrderByClause) { listener.exitOrderByClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitOrderByClause) { return visitor.visitOrderByClause(this); } else { return visitor.visitChildren(this); } } } export class ClusterByClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CLUSTER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CLUSTER, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public expressions(): ExpressionsContext { return this.getRuleContext(0, ExpressionsContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_clusterByClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterClusterByClause) { listener.enterClusterByClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitClusterByClause) { listener.exitClusterByClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitClusterByClause) { return visitor.visitClusterByClause(this); } else { return visitor.visitChildren(this); } } } export class PartitionByClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_PARTITION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PARTITION, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public expressions(): ExpressionsContext { return this.getRuleContext(0, ExpressionsContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionByClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionByClause) { listener.enterPartitionByClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionByClause) { listener.exitPartitionByClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionByClause) { return visitor.visitPartitionByClause(this); } else { return visitor.visitChildren(this); } } } export class DistributeByClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DISTRIBUTE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DISTRIBUTE, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public expressions(): ExpressionsContext { return this.getRuleContext(0, ExpressionsContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_distributeByClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDistributeByClause) { listener.enterDistributeByClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDistributeByClause) { listener.exitDistributeByClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDistributeByClause) { return visitor.visitDistributeByClause(this); } else { return visitor.visitChildren(this); } } } export class SortByClauseContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SORT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_SORT, 0)!; } public KW_BY(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_BY, 0)!; } public columnRefOrderInParenthesis(): ColumnRefOrderInParenthesisContext | null { return this.getRuleContext(0, ColumnRefOrderInParenthesisContext); } public columnRefOrderNotInParenthesis(): ColumnRefOrderNotInParenthesisContext | null { return this.getRuleContext(0, ColumnRefOrderNotInParenthesisContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_sortByClause; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSortByClause) { listener.enterSortByClause(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSortByClause) { listener.exitSortByClause(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSortByClause) { return visitor.visitSortByClause(this); } else { return visitor.visitChildren(this); } } } export class TrimFunctionContext extends antlr.ParserRuleContext { public _leading?: Token | null; public _trailing?: Token | null; public _trim_characters?: SelectExpressionContext; public _str?: SelectExpressionContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TRIM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TRIM, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public KW_FROM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FROM, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public selectExpression(): SelectExpressionContext[]; public selectExpression(i: number): SelectExpressionContext | null; public selectExpression(i?: number): SelectExpressionContext[] | SelectExpressionContext | null { if (i === undefined) { return this.getRuleContexts(SelectExpressionContext); } return this.getRuleContext(i, SelectExpressionContext); } public KW_BOTH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BOTH, 0); } public KW_LEADING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LEADING, 0); } public KW_TRAILING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRAILING, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_trimFunction; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTrimFunction) { listener.enterTrimFunction(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTrimFunction) { listener.exitTrimFunction(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTrimFunction) { return visitor.visitTrimFunction(this); } else { return visitor.visitChildren(this); } } } export class Function_Context extends antlr.ParserRuleContext { public _star?: Token | null; public _dist?: All_distinctContext; public _within?: Token | null; public _ordBy?: OrderByClauseContext; public _nt?: Null_treatmentContext; public _ws?: Window_specificationContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public trimFunction(): TrimFunctionContext | null { return this.getRuleContext(0, TrimFunctionContext); } public functionNameForInvoke(): FunctionNameForInvokeContext | null { return this.getRuleContext(0, FunctionNameForInvokeContext); } public LPAREN(): antlr.TerminalNode[]; public LPAREN(i: number): antlr.TerminalNode | null; public LPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.LPAREN); } else { return this.getToken(HiveSqlParser.LPAREN, i); } } public RPAREN(): antlr.TerminalNode[]; public RPAREN(i: number): antlr.TerminalNode | null; public RPAREN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.RPAREN); } else { return this.getToken(HiveSqlParser.RPAREN, i); } } public KW_GROUP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_GROUP, 0); } public KW_OVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OVER, 0); } public STAR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.STAR, 0); } public KW_WITHIN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITHIN, 0); } public orderByClause(): OrderByClauseContext | null { return this.getRuleContext(0, OrderByClauseContext); } public window_specification(): Window_specificationContext | null { return this.getRuleContext(0, Window_specificationContext); } public null_treatment(): Null_treatmentContext | null { return this.getRuleContext(0, Null_treatmentContext); } public selectExpression(): SelectExpressionContext[]; public selectExpression(i: number): SelectExpressionContext | null; public selectExpression(i?: number): SelectExpressionContext[] | SelectExpressionContext | null { if (i === undefined) { return this.getRuleContexts(SelectExpressionContext); } return this.getRuleContext(i, SelectExpressionContext); } public all_distinct(): All_distinctContext | null { return this.getRuleContext(0, All_distinctContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_function_; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFunction_) { listener.enterFunction_(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFunction_) { listener.exitFunction_(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFunction_) { return visitor.visitFunction_(this); } else { return visitor.visitChildren(this); } } } export class Null_treatmentContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_RESPECT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RESPECT, 0); } public KW_NULLS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_NULLS, 0)!; } public KW_IGNORE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IGNORE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_null_treatment; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterNull_treatment) { listener.enterNull_treatment(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitNull_treatment) { listener.exitNull_treatment(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitNull_treatment) { return visitor.visitNull_treatment(this); } else { return visitor.visitChildren(this); } } } export class FunctionNameCreateContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public functionIdentifier(): FunctionIdentifierContext { return this.getRuleContext(0, FunctionIdentifierContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_functionNameCreate; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFunctionNameCreate) { listener.enterFunctionNameCreate(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFunctionNameCreate) { listener.exitFunctionNameCreate(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFunctionNameCreate) { return visitor.visitFunctionNameCreate(this); } else { return visitor.visitChildren(this); } } } export class FunctionNameForDDLContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public userDefinedFuncName(): UserDefinedFuncNameContext | null { return this.getRuleContext(0, UserDefinedFuncNameContext); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_functionNameForDDL; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFunctionNameForDDL) { listener.enterFunctionNameForDDL(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFunctionNameForDDL) { listener.exitFunctionNameForDDL(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFunctionNameForDDL) { return visitor.visitFunctionNameForDDL(this); } else { return visitor.visitChildren(this); } } } export class FunctionNameForInvokeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public userDefinedFuncName(): UserDefinedFuncNameContext | null { return this.getRuleContext(0, UserDefinedFuncNameContext); } public internalFunctionName(): InternalFunctionNameContext | null { return this.getRuleContext(0, InternalFunctionNameContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_functionNameForInvoke; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFunctionNameForInvoke) { listener.enterFunctionNameForInvoke(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFunctionNameForInvoke) { listener.exitFunctionNameForInvoke(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFunctionNameForInvoke) { return visitor.visitFunctionNameForInvoke(this); } else { return visitor.visitChildren(this); } } } export class UserDefinedFuncNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public functionIdentifier(): FunctionIdentifierContext { return this.getRuleContext(0, FunctionIdentifierContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_userDefinedFuncName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUserDefinedFuncName) { listener.enterUserDefinedFuncName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUserDefinedFuncName) { listener.exitUserDefinedFuncName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUserDefinedFuncName) { return visitor.visitUserDefinedFuncName(this); } else { return visitor.visitChildren(this); } } } export class InternalFunctionNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public sql11ReservedKeywordsUsedAsFunctionName(): Sql11ReservedKeywordsUsedAsFunctionNameContext | null { return this.getRuleContext(0, Sql11ReservedKeywordsUsedAsFunctionNameContext); } public sysFuncNames(): SysFuncNamesContext | null { return this.getRuleContext(0, SysFuncNamesContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_internalFunctionName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterInternalFunctionName) { listener.enterInternalFunctionName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitInternalFunctionName) { listener.exitInternalFunctionName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitInternalFunctionName) { return visitor.visitInternalFunctionName(this); } else { return visitor.visitChildren(this); } } } export class CastExpressionContext extends antlr.ParserRuleContext { public _toType?: PrimitiveTypeContext; public _fmt?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CAST(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CAST, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public KW_AS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AS, 0)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public primitiveType(): PrimitiveTypeContext { return this.getRuleContext(0, PrimitiveTypeContext)!; } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public KW_FORMAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FORMAT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_castExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCastExpression) { listener.enterCastExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCastExpression) { listener.exitCastExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCastExpression) { return visitor.visitCastExpression(this); } else { return visitor.visitChildren(this); } } } export class CaseExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CASE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CASE, 0)!; } public expression(): ExpressionContext[]; public expression(i: number): ExpressionContext | null; public expression(i?: number): ExpressionContext[] | ExpressionContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionContext); } return this.getRuleContext(i, ExpressionContext); } public KW_END(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_END, 0)!; } public KW_WHEN(): antlr.TerminalNode[]; public KW_WHEN(i: number): antlr.TerminalNode | null; public KW_WHEN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_WHEN); } else { return this.getToken(HiveSqlParser.KW_WHEN, i); } } public KW_THEN(): antlr.TerminalNode[]; public KW_THEN(i: number): antlr.TerminalNode | null; public KW_THEN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_THEN); } else { return this.getToken(HiveSqlParser.KW_THEN, i); } } public KW_ELSE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ELSE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_caseExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCaseExpression) { listener.enterCaseExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCaseExpression) { listener.exitCaseExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCaseExpression) { return visitor.visitCaseExpression(this); } else { return visitor.visitChildren(this); } } } export class WhenExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CASE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CASE, 0)!; } public KW_END(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_END, 0)!; } public KW_WHEN(): antlr.TerminalNode[]; public KW_WHEN(i: number): antlr.TerminalNode | null; public KW_WHEN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_WHEN); } else { return this.getToken(HiveSqlParser.KW_WHEN, i); } } public expression(): ExpressionContext[]; public expression(i: number): ExpressionContext | null; public expression(i?: number): ExpressionContext[] | ExpressionContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionContext); } return this.getRuleContext(i, ExpressionContext); } public KW_THEN(): antlr.TerminalNode[]; public KW_THEN(i: number): antlr.TerminalNode | null; public KW_THEN(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_THEN); } else { return this.getToken(HiveSqlParser.KW_THEN, i); } } public KW_ELSE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ELSE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_whenExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWhenExpression) { listener.enterWhenExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWhenExpression) { listener.exitWhenExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWhenExpression) { return visitor.visitWhenExpression(this); } else { return visitor.visitChildren(this); } } } export class FloorExpressionContext extends antlr.ParserRuleContext { public _floorUnit?: FloorDateQualifiersContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_FLOOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FLOOR, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public KW_TO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TO, 0); } public floorDateQualifiers(): FloorDateQualifiersContext | null { return this.getRuleContext(0, FloorDateQualifiersContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_floorExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFloorExpression) { listener.enterFloorExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFloorExpression) { listener.exitFloorExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFloorExpression) { return visitor.visitFloorExpression(this); } else { return visitor.visitChildren(this); } } } export class FloorDateQualifiersContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public year(): YearContext | null { return this.getRuleContext(0, YearContext); } public KW_QUARTER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_QUARTER, 0); } public month(): MonthContext | null { return this.getRuleContext(0, MonthContext); } public week(): WeekContext | null { return this.getRuleContext(0, WeekContext); } public day(): DayContext | null { return this.getRuleContext(0, DayContext); } public hour(): HourContext | null { return this.getRuleContext(0, HourContext); } public minute(): MinuteContext | null { return this.getRuleContext(0, MinuteContext); } public second(): SecondContext | null { return this.getRuleContext(0, SecondContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_floorDateQualifiers; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFloorDateQualifiers) { listener.enterFloorDateQualifiers(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFloorDateQualifiers) { listener.exitFloorDateQualifiers(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFloorDateQualifiers) { return visitor.visitFloorDateQualifiers(this); } else { return visitor.visitChildren(this); } } } export class ExtractExpressionContext extends antlr.ParserRuleContext { public _timeUnit?: TimeQualifiersContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_EXTRACT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_EXTRACT, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public KW_FROM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FROM, 0)!; } public expression(): ExpressionContext { return this.getRuleContext(0, ExpressionContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public timeQualifiers(): TimeQualifiersContext { return this.getRuleContext(0, TimeQualifiersContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_extractExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExtractExpression) { listener.enterExtractExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExtractExpression) { listener.exitExtractExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExtractExpression) { return visitor.visitExtractExpression(this); } else { return visitor.visitChildren(this); } } } export class TimeQualifiersContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public year(): YearContext | null { return this.getRuleContext(0, YearContext); } public KW_QUARTER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_QUARTER, 0); } public month(): MonthContext | null { return this.getRuleContext(0, MonthContext); } public week(): WeekContext | null { return this.getRuleContext(0, WeekContext); } public day(): DayContext | null { return this.getRuleContext(0, DayContext); } public hour(): HourContext | null { return this.getRuleContext(0, HourContext); } public minute(): MinuteContext | null { return this.getRuleContext(0, MinuteContext); } public second(): SecondContext | null { return this.getRuleContext(0, SecondContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_timeQualifiers; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTimeQualifiers) { listener.enterTimeQualifiers(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTimeQualifiers) { listener.exitTimeQualifiers(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTimeQualifiers) { return visitor.visitTimeQualifiers(this); } else { return visitor.visitChildren(this); } } } export class ConstantContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public intervalLiteral(): IntervalLiteralContext | null { return this.getRuleContext(0, IntervalLiteralContext); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public dateLiteral(): DateLiteralContext | null { return this.getRuleContext(0, DateLiteralContext); } public timestampLiteral(): TimestampLiteralContext | null { return this.getRuleContext(0, TimestampLiteralContext); } public timestampLocalTZLiteral(): TimestampLocalTZLiteralContext | null { return this.getRuleContext(0, TimestampLocalTZLiteralContext); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public stringLiteralSequence(): StringLiteralSequenceContext | null { return this.getRuleContext(0, StringLiteralSequenceContext); } public IntegralLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.IntegralLiteral, 0); } public NumberLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.NumberLiteral, 0); } public charSetStringLiteral(): CharSetStringLiteralContext | null { return this.getRuleContext(0, CharSetStringLiteralContext); } public booleanValue(): BooleanValueContext | null { return this.getRuleContext(0, BooleanValueContext); } public KW_NULL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NULL, 0); } public prepareStmtParam(): PrepareStmtParamContext | null { return this.getRuleContext(0, PrepareStmtParamContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_constant; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterConstant) { listener.enterConstant(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitConstant) { listener.exitConstant(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitConstant) { return visitor.visitConstant(this); } else { return visitor.visitChildren(this); } } } export class PrepareStmtParamContext extends antlr.ParserRuleContext { public _p?: ParameterIdxContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public parameterIdx(): ParameterIdxContext { return this.getRuleContext(0, ParameterIdxContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_prepareStmtParam; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrepareStmtParam) { listener.enterPrepareStmtParam(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrepareStmtParam) { listener.exitPrepareStmtParam(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrepareStmtParam) { return visitor.visitPrepareStmtParam(this); } else { return visitor.visitChildren(this); } } } export class ParameterIdxContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public QUESTION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.QUESTION, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_parameterIdx; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterParameterIdx) { listener.enterParameterIdx(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitParameterIdx) { listener.exitParameterIdx(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitParameterIdx) { return visitor.visitParameterIdx(this); } else { return visitor.visitChildren(this); } } } export class StringLiteralSequenceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public StringLiteral(): antlr.TerminalNode[]; public StringLiteral(i: number): antlr.TerminalNode | null; public StringLiteral(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.StringLiteral); } else { return this.getToken(HiveSqlParser.StringLiteral, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_stringLiteralSequence; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterStringLiteralSequence) { listener.enterStringLiteralSequence(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitStringLiteralSequence) { listener.exitStringLiteralSequence(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitStringLiteralSequence) { return visitor.visitStringLiteralSequence(this); } else { return visitor.visitChildren(this); } } } export class CharSetStringLiteralContext extends antlr.ParserRuleContext { public _csName?: Token | null; public _csLiteral?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public CharSetName(): antlr.TerminalNode { return this.getToken(HiveSqlParser.CharSetName, 0)!; } public CharSetLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.CharSetLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_charSetStringLiteral; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCharSetStringLiteral) { listener.enterCharSetStringLiteral(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCharSetStringLiteral) { listener.exitCharSetStringLiteral(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCharSetStringLiteral) { return visitor.visitCharSetStringLiteral(this); } else { return visitor.visitChildren(this); } } } export class DateLiteralContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATE, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public KW_CURRENT_DATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CURRENT_DATE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dateLiteral; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDateLiteral) { listener.enterDateLiteral(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDateLiteral) { listener.exitDateLiteral(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDateLiteral) { return visitor.visitDateLiteral(this); } else { return visitor.visitChildren(this); } } } export class TimestampLiteralContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TIMESTAMP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TIMESTAMP, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public KW_CURRENT_TIMESTAMP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CURRENT_TIMESTAMP, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_timestampLiteral; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTimestampLiteral) { listener.enterTimestampLiteral(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTimestampLiteral) { listener.exitTimestampLiteral(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTimestampLiteral) { return visitor.visitTimestampLiteral(this); } else { return visitor.visitChildren(this); } } } export class TimestampLocalTZLiteralContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TIMESTAMPLOCALTZ(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TIMESTAMPLOCALTZ, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_timestampLocalTZLiteral; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTimestampLocalTZLiteral) { listener.enterTimestampLocalTZLiteral(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTimestampLocalTZLiteral) { listener.exitTimestampLocalTZLiteral(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTimestampLocalTZLiteral) { return visitor.visitTimestampLocalTZLiteral(this); } else { return visitor.visitChildren(this); } } } export class IntervalValueContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_intervalValue; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterIntervalValue) { listener.enterIntervalValue(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitIntervalValue) { listener.exitIntervalValue(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitIntervalValue) { return visitor.visitIntervalValue(this); } else { return visitor.visitChildren(this); } } } export class IntervalLiteralContext extends antlr.ParserRuleContext { public _value?: IntervalValueContext; public _qualifiers?: IntervalQualifiersContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public intervalValue(): IntervalValueContext { return this.getRuleContext(0, IntervalValueContext)!; } public intervalQualifiers(): IntervalQualifiersContext { return this.getRuleContext(0, IntervalQualifiersContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_intervalLiteral; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterIntervalLiteral) { listener.enterIntervalLiteral(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitIntervalLiteral) { listener.exitIntervalLiteral(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitIntervalLiteral) { return visitor.visitIntervalLiteral(this); } else { return visitor.visitChildren(this); } } } export class IntervalExpressionContext extends antlr.ParserRuleContext { public _value?: IntervalValueContext; public _qualifiers?: IntervalQualifiersContext; public _expr?: ExpressionContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public intervalValue(): IntervalValueContext | null { return this.getRuleContext(0, IntervalValueContext); } public intervalQualifiers(): IntervalQualifiersContext { return this.getRuleContext(0, IntervalQualifiersContext)!; } public KW_INTERVAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INTERVAL, 0); } public expression(): ExpressionContext | null { return this.getRuleContext(0, ExpressionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_intervalExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterIntervalExpression) { listener.enterIntervalExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitIntervalExpression) { listener.exitIntervalExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitIntervalExpression) { return visitor.visitIntervalExpression(this); } else { return visitor.visitChildren(this); } } } export class IntervalQualifiersContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public year(): YearContext | null { return this.getRuleContext(0, YearContext); } public KW_TO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TO, 0); } public month(): MonthContext | null { return this.getRuleContext(0, MonthContext); } public day(): DayContext | null { return this.getRuleContext(0, DayContext); } public second(): SecondContext | null { return this.getRuleContext(0, SecondContext); } public hour(): HourContext | null { return this.getRuleContext(0, HourContext); } public minute(): MinuteContext | null { return this.getRuleContext(0, MinuteContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_intervalQualifiers; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterIntervalQualifiers) { listener.enterIntervalQualifiers(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitIntervalQualifiers) { listener.exitIntervalQualifiers(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitIntervalQualifiers) { return visitor.visitIntervalQualifiers(this); } else { return visitor.visitChildren(this); } } } export class ExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceOrExpression(): PrecedenceOrExpressionContext { return this.getRuleContext(0, PrecedenceOrExpressionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_expression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExpression) { listener.enterExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExpression) { listener.exitExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExpression) { return visitor.visitExpression(this); } else { return visitor.visitChildren(this); } } } export class AtomExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public constant(): ConstantContext | null { return this.getRuleContext(0, ConstantContext); } public intervalExpression(): IntervalExpressionContext | null { return this.getRuleContext(0, IntervalExpressionContext); } public castExpression(): CastExpressionContext | null { return this.getRuleContext(0, CastExpressionContext); } public extractExpression(): ExtractExpressionContext | null { return this.getRuleContext(0, ExtractExpressionContext); } public floorExpression(): FloorExpressionContext | null { return this.getRuleContext(0, FloorExpressionContext); } public caseExpression(): CaseExpressionContext | null { return this.getRuleContext(0, CaseExpressionContext); } public whenExpression(): WhenExpressionContext | null { return this.getRuleContext(0, WhenExpressionContext); } public subQueryExpression(): SubQueryExpressionContext | null { return this.getRuleContext(0, SubQueryExpressionContext); } public function_(): Function_Context | null { return this.getRuleContext(0, Function_Context); } public expressionsInParenthesis(): ExpressionsInParenthesisContext | null { return this.getRuleContext(0, ExpressionsInParenthesisContext); } public id_(): Id_Context | null { return this.getRuleContext(0, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_atomExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAtomExpression) { listener.enterAtomExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAtomExpression) { listener.exitAtomExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAtomExpression) { return visitor.visitAtomExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceFieldExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public atomExpression(): AtomExpressionContext { return this.getRuleContext(0, AtomExpressionContext)!; } public LSQUARE(): antlr.TerminalNode[]; public LSQUARE(i: number): antlr.TerminalNode | null; public LSQUARE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.LSQUARE); } else { return this.getToken(HiveSqlParser.LSQUARE, i); } } public expression(): ExpressionContext[]; public expression(i: number): ExpressionContext | null; public expression(i?: number): ExpressionContext[] | ExpressionContext | null { if (i === undefined) { return this.getRuleContexts(ExpressionContext); } return this.getRuleContext(i, ExpressionContext); } public RSQUARE(): antlr.TerminalNode[]; public RSQUARE(i: number): antlr.TerminalNode | null; public RSQUARE(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.RSQUARE); } else { return this.getToken(HiveSqlParser.RSQUARE, i); } } public DOT(): antlr.TerminalNode[]; public DOT(i: number): antlr.TerminalNode | null; public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.DOT); } else { return this.getToken(HiveSqlParser.DOT, i); } } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceFieldExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceFieldExpression) { listener.enterPrecedenceFieldExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceFieldExpression) { listener.exitPrecedenceFieldExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceFieldExpression) { return visitor.visitPrecedenceFieldExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceUnaryOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public PLUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.PLUS, 0); } public MINUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.MINUS, 0); } public TILDE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.TILDE, 0); } public BITWISENOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.BITWISENOT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceUnaryOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceUnaryOperator) { listener.enterPrecedenceUnaryOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceUnaryOperator) { listener.exitPrecedenceUnaryOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceUnaryOperator) { return visitor.visitPrecedenceUnaryOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceUnaryPrefixExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceFieldExpression(): PrecedenceFieldExpressionContext { return this.getRuleContext(0, PrecedenceFieldExpressionContext)!; } public precedenceUnaryOperator(): PrecedenceUnaryOperatorContext[]; public precedenceUnaryOperator(i: number): PrecedenceUnaryOperatorContext | null; public precedenceUnaryOperator(i?: number): PrecedenceUnaryOperatorContext[] | PrecedenceUnaryOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceUnaryOperatorContext); } return this.getRuleContext(i, PrecedenceUnaryOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceUnaryPrefixExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceUnaryPrefixExpression) { listener.enterPrecedenceUnaryPrefixExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceUnaryPrefixExpression) { listener.exitPrecedenceUnaryPrefixExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceUnaryPrefixExpression) { return visitor.visitPrecedenceUnaryPrefixExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceBitwiseXorOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public BITWISEXOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.BITWISEXOR, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceBitwiseXorOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceBitwiseXorOperator) { listener.enterPrecedenceBitwiseXorOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceBitwiseXorOperator) { listener.exitPrecedenceBitwiseXorOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceBitwiseXorOperator) { return visitor.visitPrecedenceBitwiseXorOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceBitwiseXorExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceUnaryPrefixExpression(): PrecedenceUnaryPrefixExpressionContext[]; public precedenceUnaryPrefixExpression(i: number): PrecedenceUnaryPrefixExpressionContext | null; public precedenceUnaryPrefixExpression(i?: number): PrecedenceUnaryPrefixExpressionContext[] | PrecedenceUnaryPrefixExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceUnaryPrefixExpressionContext); } return this.getRuleContext(i, PrecedenceUnaryPrefixExpressionContext); } public precedenceBitwiseXorOperator(): PrecedenceBitwiseXorOperatorContext[]; public precedenceBitwiseXorOperator(i: number): PrecedenceBitwiseXorOperatorContext | null; public precedenceBitwiseXorOperator(i?: number): PrecedenceBitwiseXorOperatorContext[] | PrecedenceBitwiseXorOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceBitwiseXorOperatorContext); } return this.getRuleContext(i, PrecedenceBitwiseXorOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceBitwiseXorExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceBitwiseXorExpression) { listener.enterPrecedenceBitwiseXorExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceBitwiseXorExpression) { listener.exitPrecedenceBitwiseXorExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceBitwiseXorExpression) { return visitor.visitPrecedenceBitwiseXorExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceStarOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public STAR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.STAR, 0); } public DIVIDE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.DIVIDE, 0); } public MOD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.MOD, 0); } public DIV(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.DIV, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceStarOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceStarOperator) { listener.enterPrecedenceStarOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceStarOperator) { listener.exitPrecedenceStarOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceStarOperator) { return visitor.visitPrecedenceStarOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceStarExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceBitwiseXorExpression(): PrecedenceBitwiseXorExpressionContext[]; public precedenceBitwiseXorExpression(i: number): PrecedenceBitwiseXorExpressionContext | null; public precedenceBitwiseXorExpression(i?: number): PrecedenceBitwiseXorExpressionContext[] | PrecedenceBitwiseXorExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceBitwiseXorExpressionContext); } return this.getRuleContext(i, PrecedenceBitwiseXorExpressionContext); } public precedenceStarOperator(): PrecedenceStarOperatorContext[]; public precedenceStarOperator(i: number): PrecedenceStarOperatorContext | null; public precedenceStarOperator(i?: number): PrecedenceStarOperatorContext[] | PrecedenceStarOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceStarOperatorContext); } return this.getRuleContext(i, PrecedenceStarOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceStarExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceStarExpression) { listener.enterPrecedenceStarExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceStarExpression) { listener.exitPrecedenceStarExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceStarExpression) { return visitor.visitPrecedenceStarExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedencePlusOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public PLUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.PLUS, 0); } public MINUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.MINUS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedencePlusOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedencePlusOperator) { listener.enterPrecedencePlusOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedencePlusOperator) { listener.exitPrecedencePlusOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedencePlusOperator) { return visitor.visitPrecedencePlusOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedencePlusExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceStarExpression(): PrecedenceStarExpressionContext[]; public precedenceStarExpression(i: number): PrecedenceStarExpressionContext | null; public precedenceStarExpression(i?: number): PrecedenceStarExpressionContext[] | PrecedenceStarExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceStarExpressionContext); } return this.getRuleContext(i, PrecedenceStarExpressionContext); } public precedencePlusOperator(): PrecedencePlusOperatorContext[]; public precedencePlusOperator(i: number): PrecedencePlusOperatorContext | null; public precedencePlusOperator(i?: number): PrecedencePlusOperatorContext[] | PrecedencePlusOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedencePlusOperatorContext); } return this.getRuleContext(i, PrecedencePlusOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedencePlusExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedencePlusExpression) { listener.enterPrecedencePlusExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedencePlusExpression) { listener.exitPrecedencePlusExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedencePlusExpression) { return visitor.visitPrecedencePlusExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceConcatenateOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public CONCATENATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.CONCATENATE, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceConcatenateOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceConcatenateOperator) { listener.enterPrecedenceConcatenateOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceConcatenateOperator) { listener.exitPrecedenceConcatenateOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceConcatenateOperator) { return visitor.visitPrecedenceConcatenateOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceConcatenateExpressionContext extends antlr.ParserRuleContext { public _plus?: PrecedencePlusExpressionContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedencePlusExpression(): PrecedencePlusExpressionContext[]; public precedencePlusExpression(i: number): PrecedencePlusExpressionContext | null; public precedencePlusExpression(i?: number): PrecedencePlusExpressionContext[] | PrecedencePlusExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedencePlusExpressionContext); } return this.getRuleContext(i, PrecedencePlusExpressionContext); } public precedenceConcatenateOperator(): PrecedenceConcatenateOperatorContext[]; public precedenceConcatenateOperator(i: number): PrecedenceConcatenateOperatorContext | null; public precedenceConcatenateOperator(i?: number): PrecedenceConcatenateOperatorContext[] | PrecedenceConcatenateOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceConcatenateOperatorContext); } return this.getRuleContext(i, PrecedenceConcatenateOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceConcatenateExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceConcatenateExpression) { listener.enterPrecedenceConcatenateExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceConcatenateExpression) { listener.exitPrecedenceConcatenateExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceConcatenateExpression) { return visitor.visitPrecedenceConcatenateExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceAmpersandOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public AMPERSAND(): antlr.TerminalNode { return this.getToken(HiveSqlParser.AMPERSAND, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceAmpersandOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceAmpersandOperator) { listener.enterPrecedenceAmpersandOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceAmpersandOperator) { listener.exitPrecedenceAmpersandOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceAmpersandOperator) { return visitor.visitPrecedenceAmpersandOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceAmpersandExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceConcatenateExpression(): PrecedenceConcatenateExpressionContext[]; public precedenceConcatenateExpression(i: number): PrecedenceConcatenateExpressionContext | null; public precedenceConcatenateExpression(i?: number): PrecedenceConcatenateExpressionContext[] | PrecedenceConcatenateExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceConcatenateExpressionContext); } return this.getRuleContext(i, PrecedenceConcatenateExpressionContext); } public precedenceAmpersandOperator(): PrecedenceAmpersandOperatorContext[]; public precedenceAmpersandOperator(i: number): PrecedenceAmpersandOperatorContext | null; public precedenceAmpersandOperator(i?: number): PrecedenceAmpersandOperatorContext[] | PrecedenceAmpersandOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceAmpersandOperatorContext); } return this.getRuleContext(i, PrecedenceAmpersandOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceAmpersandExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceAmpersandExpression) { listener.enterPrecedenceAmpersandExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceAmpersandExpression) { listener.exitPrecedenceAmpersandExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceAmpersandExpression) { return visitor.visitPrecedenceAmpersandExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceBitwiseOrOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public BITWISEOR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.BITWISEOR, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceBitwiseOrOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceBitwiseOrOperator) { listener.enterPrecedenceBitwiseOrOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceBitwiseOrOperator) { listener.exitPrecedenceBitwiseOrOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceBitwiseOrOperator) { return visitor.visitPrecedenceBitwiseOrOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceBitwiseOrExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceAmpersandExpression(): PrecedenceAmpersandExpressionContext[]; public precedenceAmpersandExpression(i: number): PrecedenceAmpersandExpressionContext | null; public precedenceAmpersandExpression(i?: number): PrecedenceAmpersandExpressionContext[] | PrecedenceAmpersandExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceAmpersandExpressionContext); } return this.getRuleContext(i, PrecedenceAmpersandExpressionContext); } public precedenceBitwiseOrOperator(): PrecedenceBitwiseOrOperatorContext[]; public precedenceBitwiseOrOperator(i: number): PrecedenceBitwiseOrOperatorContext | null; public precedenceBitwiseOrOperator(i?: number): PrecedenceBitwiseOrOperatorContext[] | PrecedenceBitwiseOrOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceBitwiseOrOperatorContext); } return this.getRuleContext(i, PrecedenceBitwiseOrOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceBitwiseOrExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceBitwiseOrExpression) { listener.enterPrecedenceBitwiseOrExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceBitwiseOrExpression) { listener.exitPrecedenceBitwiseOrExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceBitwiseOrExpression) { return visitor.visitPrecedenceBitwiseOrExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceRegexpOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LIKE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LIKE, 0); } public KW_RLIKE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RLIKE, 0); } public KW_REGEXP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REGEXP, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceRegexpOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceRegexpOperator) { listener.enterPrecedenceRegexpOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceRegexpOperator) { listener.exitPrecedenceRegexpOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceRegexpOperator) { return visitor.visitPrecedenceRegexpOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceSimilarOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceRegexpOperator(): PrecedenceRegexpOperatorContext | null { return this.getRuleContext(0, PrecedenceRegexpOperatorContext); } public LESSTHANOREQUALTO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LESSTHANOREQUALTO, 0); } public LESSTHAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LESSTHAN, 0); } public GREATERTHANOREQUALTO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.GREATERTHANOREQUALTO, 0); } public GREATERTHAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.GREATERTHAN, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceSimilarOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceSimilarOperator) { listener.enterPrecedenceSimilarOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceSimilarOperator) { listener.exitPrecedenceSimilarOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceSimilarOperator) { return visitor.visitPrecedenceSimilarOperator(this); } else { return visitor.visitChildren(this); } } } export class SubQueryExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public selectStatement(): SelectStatementContext { return this.getRuleContext(0, SelectStatementContext)!; } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_subQueryExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSubQueryExpression) { listener.enterSubQueryExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSubQueryExpression) { listener.exitSubQueryExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSubQueryExpression) { return visitor.visitSubQueryExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceSimilarExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceSimilarExpressionMain(): PrecedenceSimilarExpressionMainContext | null { return this.getRuleContext(0, PrecedenceSimilarExpressionMainContext); } public KW_EXISTS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXISTS, 0); } public subQueryExpression(): SubQueryExpressionContext | null { return this.getRuleContext(0, SubQueryExpressionContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceSimilarExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceSimilarExpression) { listener.enterPrecedenceSimilarExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceSimilarExpression) { listener.exitPrecedenceSimilarExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceSimilarExpression) { return visitor.visitPrecedenceSimilarExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceSimilarExpressionMainContext extends antlr.ParserRuleContext { public _a?: PrecedenceBitwiseOrExpressionContext; public _part?: PrecedenceSimilarExpressionPartContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceBitwiseOrExpression(): PrecedenceBitwiseOrExpressionContext { return this.getRuleContext(0, PrecedenceBitwiseOrExpressionContext)!; } public precedenceSimilarExpressionPart(): PrecedenceSimilarExpressionPartContext | null { return this.getRuleContext(0, PrecedenceSimilarExpressionPartContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceSimilarExpressionMain; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceSimilarExpressionMain) { listener.enterPrecedenceSimilarExpressionMain(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceSimilarExpressionMain) { listener.exitPrecedenceSimilarExpressionMain(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceSimilarExpressionMain) { return visitor.visitPrecedenceSimilarExpressionMain(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceSimilarExpressionPartContext extends antlr.ParserRuleContext { public _equalExpr?: PrecedenceBitwiseOrExpressionContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceSimilarOperator(): PrecedenceSimilarOperatorContext | null { return this.getRuleContext(0, PrecedenceSimilarOperatorContext); } public precedenceBitwiseOrExpression(): PrecedenceBitwiseOrExpressionContext | null { return this.getRuleContext(0, PrecedenceBitwiseOrExpressionContext); } public precedenceSimilarExpressionAtom(): PrecedenceSimilarExpressionAtomContext | null { return this.getRuleContext(0, PrecedenceSimilarExpressionAtomContext); } public KW_NOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOT, 0); } public precedenceSimilarExpressionPartNot(): PrecedenceSimilarExpressionPartNotContext | null { return this.getRuleContext(0, PrecedenceSimilarExpressionPartNotContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceSimilarExpressionPart; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceSimilarExpressionPart) { listener.enterPrecedenceSimilarExpressionPart(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceSimilarExpressionPart) { listener.exitPrecedenceSimilarExpressionPart(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceSimilarExpressionPart) { return visitor.visitPrecedenceSimilarExpressionPart(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceSimilarExpressionAtomContext extends antlr.ParserRuleContext { public _min?: PrecedenceBitwiseOrExpressionContext; public _max?: PrecedenceBitwiseOrExpressionContext; public _expr?: ExpressionsInParenthesisContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_IN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IN, 0); } public precedenceSimilarExpressionIn(): PrecedenceSimilarExpressionInContext | null { return this.getRuleContext(0, PrecedenceSimilarExpressionInContext); } public KW_BETWEEN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BETWEEN, 0); } public KW_AND(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AND, 0); } public precedenceBitwiseOrExpression(): PrecedenceBitwiseOrExpressionContext[]; public precedenceBitwiseOrExpression(i: number): PrecedenceBitwiseOrExpressionContext | null; public precedenceBitwiseOrExpression(i?: number): PrecedenceBitwiseOrExpressionContext[] | PrecedenceBitwiseOrExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceBitwiseOrExpressionContext); } return this.getRuleContext(i, PrecedenceBitwiseOrExpressionContext); } public KW_LIKE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LIKE, 0); } public KW_ANY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ANY, 0); } public KW_ALL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALL, 0); } public expressionsInParenthesis(): ExpressionsInParenthesisContext | null { return this.getRuleContext(0, ExpressionsInParenthesisContext); } public precedenceSimilarExpressionQuantifierPredicate(): PrecedenceSimilarExpressionQuantifierPredicateContext | null { return this.getRuleContext(0, PrecedenceSimilarExpressionQuantifierPredicateContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceSimilarExpressionAtom; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceSimilarExpressionAtom) { listener.enterPrecedenceSimilarExpressionAtom(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceSimilarExpressionAtom) { listener.exitPrecedenceSimilarExpressionAtom(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceSimilarExpressionAtom) { return visitor.visitPrecedenceSimilarExpressionAtom(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceSimilarExpressionQuantifierPredicateContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public subQuerySelectorOperator(): SubQuerySelectorOperatorContext { return this.getRuleContext(0, SubQuerySelectorOperatorContext)!; } public quantifierType(): QuantifierTypeContext { return this.getRuleContext(0, QuantifierTypeContext)!; } public subQueryExpression(): SubQueryExpressionContext { return this.getRuleContext(0, SubQueryExpressionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceSimilarExpressionQuantifierPredicate; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceSimilarExpressionQuantifierPredicate) { listener.enterPrecedenceSimilarExpressionQuantifierPredicate(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceSimilarExpressionQuantifierPredicate) { listener.exitPrecedenceSimilarExpressionQuantifierPredicate(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceSimilarExpressionQuantifierPredicate) { return visitor.visitPrecedenceSimilarExpressionQuantifierPredicate(this); } else { return visitor.visitChildren(this); } } } export class QuantifierTypeContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ANY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ANY, 0); } public KW_SOME(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SOME, 0); } public KW_ALL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALL, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_quantifierType; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterQuantifierType) { listener.enterQuantifierType(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitQuantifierType) { listener.exitQuantifierType(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitQuantifierType) { return visitor.visitQuantifierType(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceSimilarExpressionInContext extends antlr.ParserRuleContext { public _expr?: ExpressionsInParenthesisContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public subQueryExpression(): SubQueryExpressionContext | null { return this.getRuleContext(0, SubQueryExpressionContext); } public expressionsInParenthesis(): ExpressionsInParenthesisContext | null { return this.getRuleContext(0, ExpressionsInParenthesisContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceSimilarExpressionIn; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceSimilarExpressionIn) { listener.enterPrecedenceSimilarExpressionIn(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceSimilarExpressionIn) { listener.exitPrecedenceSimilarExpressionIn(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceSimilarExpressionIn) { return visitor.visitPrecedenceSimilarExpressionIn(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceSimilarExpressionPartNotContext extends antlr.ParserRuleContext { public _notExpr?: PrecedenceBitwiseOrExpressionContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceRegexpOperator(): PrecedenceRegexpOperatorContext | null { return this.getRuleContext(0, PrecedenceRegexpOperatorContext); } public precedenceBitwiseOrExpression(): PrecedenceBitwiseOrExpressionContext | null { return this.getRuleContext(0, PrecedenceBitwiseOrExpressionContext); } public precedenceSimilarExpressionAtom(): PrecedenceSimilarExpressionAtomContext | null { return this.getRuleContext(0, PrecedenceSimilarExpressionAtomContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceSimilarExpressionPartNot; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceSimilarExpressionPartNot) { listener.enterPrecedenceSimilarExpressionPartNot(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceSimilarExpressionPartNot) { listener.exitPrecedenceSimilarExpressionPartNot(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceSimilarExpressionPartNot) { return visitor.visitPrecedenceSimilarExpressionPartNot(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceDistinctOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_IS(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_IS, 0)!; } public KW_DISTINCT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DISTINCT, 0)!; } public KW_FROM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FROM, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceDistinctOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceDistinctOperator) { listener.enterPrecedenceDistinctOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceDistinctOperator) { listener.exitPrecedenceDistinctOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceDistinctOperator) { return visitor.visitPrecedenceDistinctOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceEqualOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public EQUAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.EQUAL, 0); } public EQUAL_NS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.EQUAL_NS, 0); } public NOTEQUAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.NOTEQUAL, 0); } public KW_IS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IS, 0); } public KW_NOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOT, 0); } public KW_DISTINCT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DISTINCT, 0); } public KW_FROM(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FROM, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceEqualOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceEqualOperator) { listener.enterPrecedenceEqualOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceEqualOperator) { listener.exitPrecedenceEqualOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceEqualOperator) { return visitor.visitPrecedenceEqualOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceEqualExpressionContext extends antlr.ParserRuleContext { public _precedenceEqualOperator?: PrecedenceEqualOperatorContext; public _equal: PrecedenceEqualOperatorContext[] = []; public _precedenceSimilarExpression?: PrecedenceSimilarExpressionContext; public _p: PrecedenceSimilarExpressionContext[] = []; public _precedenceDistinctOperator?: PrecedenceDistinctOperatorContext; public _dist: PrecedenceDistinctOperatorContext[] = []; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceSimilarExpression(): PrecedenceSimilarExpressionContext[]; public precedenceSimilarExpression(i: number): PrecedenceSimilarExpressionContext | null; public precedenceSimilarExpression(i?: number): PrecedenceSimilarExpressionContext[] | PrecedenceSimilarExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceSimilarExpressionContext); } return this.getRuleContext(i, PrecedenceSimilarExpressionContext); } public precedenceEqualOperator(): PrecedenceEqualOperatorContext[]; public precedenceEqualOperator(i: number): PrecedenceEqualOperatorContext | null; public precedenceEqualOperator(i?: number): PrecedenceEqualOperatorContext[] | PrecedenceEqualOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceEqualOperatorContext); } return this.getRuleContext(i, PrecedenceEqualOperatorContext); } public precedenceDistinctOperator(): PrecedenceDistinctOperatorContext[]; public precedenceDistinctOperator(i: number): PrecedenceDistinctOperatorContext | null; public precedenceDistinctOperator(i?: number): PrecedenceDistinctOperatorContext[] | PrecedenceDistinctOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceDistinctOperatorContext); } return this.getRuleContext(i, PrecedenceDistinctOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceEqualExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceEqualExpression) { listener.enterPrecedenceEqualExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceEqualExpression) { listener.exitPrecedenceEqualExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceEqualExpression) { return visitor.visitPrecedenceEqualExpression(this); } else { return visitor.visitChildren(this); } } } export class IsConditionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_NULL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NULL, 0); } public KW_TRUE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRUE, 0); } public KW_FALSE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FALSE, 0); } public KW_UNKNOWN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNKNOWN, 0); } public KW_NOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_isCondition; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterIsCondition) { listener.enterIsCondition(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitIsCondition) { listener.exitIsCondition(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitIsCondition) { return visitor.visitIsCondition(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceUnarySuffixExpressionContext extends antlr.ParserRuleContext { public _a?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceEqualExpression(): PrecedenceEqualExpressionContext { return this.getRuleContext(0, PrecedenceEqualExpressionContext)!; } public isCondition(): IsConditionContext | null { return this.getRuleContext(0, IsConditionContext); } public KW_IS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceUnarySuffixExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceUnarySuffixExpression) { listener.enterPrecedenceUnarySuffixExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceUnarySuffixExpression) { listener.exitPrecedenceUnarySuffixExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceUnarySuffixExpression) { return visitor.visitPrecedenceUnarySuffixExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceNotOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_NOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_NOT, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceNotOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceNotOperator) { listener.enterPrecedenceNotOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceNotOperator) { listener.exitPrecedenceNotOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceNotOperator) { return visitor.visitPrecedenceNotOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceNotExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceUnarySuffixExpression(): PrecedenceUnarySuffixExpressionContext { return this.getRuleContext(0, PrecedenceUnarySuffixExpressionContext)!; } public precedenceNotOperator(): PrecedenceNotOperatorContext[]; public precedenceNotOperator(i: number): PrecedenceNotOperatorContext | null; public precedenceNotOperator(i?: number): PrecedenceNotOperatorContext[] | PrecedenceNotOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceNotOperatorContext); } return this.getRuleContext(i, PrecedenceNotOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceNotExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceNotExpression) { listener.enterPrecedenceNotExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceNotExpression) { listener.exitPrecedenceNotExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceNotExpression) { return visitor.visitPrecedenceNotExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceAndOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_AND(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_AND, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceAndOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceAndOperator) { listener.enterPrecedenceAndOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceAndOperator) { listener.exitPrecedenceAndOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceAndOperator) { return visitor.visitPrecedenceAndOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceAndExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceNotExpression(): PrecedenceNotExpressionContext[]; public precedenceNotExpression(i: number): PrecedenceNotExpressionContext | null; public precedenceNotExpression(i?: number): PrecedenceNotExpressionContext[] | PrecedenceNotExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceNotExpressionContext); } return this.getRuleContext(i, PrecedenceNotExpressionContext); } public precedenceAndOperator(): PrecedenceAndOperatorContext[]; public precedenceAndOperator(i: number): PrecedenceAndOperatorContext | null; public precedenceAndOperator(i?: number): PrecedenceAndOperatorContext[] | PrecedenceAndOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceAndOperatorContext); } return this.getRuleContext(i, PrecedenceAndOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceAndExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceAndExpression) { listener.enterPrecedenceAndExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceAndExpression) { listener.exitPrecedenceAndExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceAndExpression) { return visitor.visitPrecedenceAndExpression(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceOrOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_OR(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_OR, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceOrOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceOrOperator) { listener.enterPrecedenceOrOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceOrOperator) { listener.exitPrecedenceOrOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceOrOperator) { return visitor.visitPrecedenceOrOperator(this); } else { return visitor.visitChildren(this); } } } export class PrecedenceOrExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public precedenceAndExpression(): PrecedenceAndExpressionContext[]; public precedenceAndExpression(i: number): PrecedenceAndExpressionContext | null; public precedenceAndExpression(i?: number): PrecedenceAndExpressionContext[] | PrecedenceAndExpressionContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceAndExpressionContext); } return this.getRuleContext(i, PrecedenceAndExpressionContext); } public precedenceOrOperator(): PrecedenceOrOperatorContext[]; public precedenceOrOperator(i: number): PrecedenceOrOperatorContext | null; public precedenceOrOperator(i?: number): PrecedenceOrOperatorContext[] | PrecedenceOrOperatorContext | null { if (i === undefined) { return this.getRuleContexts(PrecedenceOrOperatorContext); } return this.getRuleContext(i, PrecedenceOrOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_precedenceOrExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrecedenceOrExpression) { listener.enterPrecedenceOrExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrecedenceOrExpression) { listener.exitPrecedenceOrExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrecedenceOrExpression) { return visitor.visitPrecedenceOrExpression(this); } else { return visitor.visitChildren(this); } } } export class BooleanValueContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TRUE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRUE, 0); } public KW_FALSE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FALSE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_booleanValue; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterBooleanValue) { listener.enterBooleanValue(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitBooleanValue) { listener.exitBooleanValue(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitBooleanValue) { return visitor.visitBooleanValue(this); } else { return visitor.visitChildren(this); } } } export class BooleanValueTokContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_TRUE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRUE, 0); } public KW_FALSE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FALSE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_booleanValueTok; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterBooleanValueTok) { listener.enterBooleanValueTok(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitBooleanValueTok) { listener.exitBooleanValueTok(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitBooleanValueTok) { return visitor.visitBooleanValueTok(this); } else { return visitor.visitChildren(this); } } } export class TableOrPartitionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public tableName(): TableNameContext { return this.getRuleContext(0, TableNameContext)!; } public partitionSpec(): PartitionSpecContext | null { return this.getRuleContext(0, PartitionSpecContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_tableOrPartition; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTableOrPartition) { listener.enterTableOrPartition(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTableOrPartition) { listener.exitTableOrPartition(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTableOrPartition) { return visitor.visitTableOrPartition(this); } else { return visitor.visitChildren(this); } } } export class PartitionSpecContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_PARTITION(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PARTITION, 0)!; } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public partitionVal(): PartitionValContext[]; public partitionVal(i: number): PartitionValContext | null; public partitionVal(i?: number): PartitionValContext[] | PartitionValContext | null { if (i === undefined) { return this.getRuleContexts(PartitionValContext); } return this.getRuleContext(i, PartitionValContext); } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionSpec) { listener.enterPartitionSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionSpec) { listener.exitPartitionSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionSpec) { return visitor.visitPartitionSpec(this); } else { return visitor.visitChildren(this); } } } export class PartitionValContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public EQUAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.EQUAL, 0); } public constant(): ConstantContext | null { return this.getRuleContext(0, ConstantContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionVal; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionVal) { listener.enterPartitionVal(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionVal) { listener.exitPartitionVal(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionVal) { return visitor.visitPartitionVal(this); } else { return visitor.visitChildren(this); } } } export class PartitionSelectorSpecContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public LPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.LPAREN, 0)!; } public partitionSelectorVal(): PartitionSelectorValContext[]; public partitionSelectorVal(i: number): PartitionSelectorValContext | null; public partitionSelectorVal(i?: number): PartitionSelectorValContext[] | PartitionSelectorValContext | null { if (i === undefined) { return this.getRuleContexts(PartitionSelectorValContext); } return this.getRuleContext(i, PartitionSelectorValContext); } public RPAREN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.RPAREN, 0)!; } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionSelectorSpec; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionSelectorSpec) { listener.enterPartitionSelectorSpec(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionSelectorSpec) { listener.exitPartitionSelectorSpec(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionSelectorSpec) { return visitor.visitPartitionSelectorSpec(this); } else { return visitor.visitChildren(this); } } } export class PartitionSelectorValContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public partitionSelectorOperator(): PartitionSelectorOperatorContext { return this.getRuleContext(0, PartitionSelectorOperatorContext)!; } public constant(): ConstantContext { return this.getRuleContext(0, ConstantContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionSelectorVal; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionSelectorVal) { listener.enterPartitionSelectorVal(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionSelectorVal) { listener.exitPartitionSelectorVal(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionSelectorVal) { return visitor.visitPartitionSelectorVal(this); } else { return visitor.visitChildren(this); } } } export class PartitionSelectorOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_LIKE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LIKE, 0); } public subQuerySelectorOperator(): SubQuerySelectorOperatorContext | null { return this.getRuleContext(0, SubQuerySelectorOperatorContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_partitionSelectorOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPartitionSelectorOperator) { listener.enterPartitionSelectorOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPartitionSelectorOperator) { listener.exitPartitionSelectorOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPartitionSelectorOperator) { return visitor.visitPartitionSelectorOperator(this); } else { return visitor.visitChildren(this); } } } export class SubQuerySelectorOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public EQUAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.EQUAL, 0); } public NOTEQUAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.NOTEQUAL, 0); } public LESSTHANOREQUALTO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LESSTHANOREQUALTO, 0); } public LESSTHAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LESSTHAN, 0); } public GREATERTHANOREQUALTO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.GREATERTHANOREQUALTO, 0); } public GREATERTHAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.GREATERTHAN, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_subQuerySelectorOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSubQuerySelectorOperator) { listener.enterSubQuerySelectorOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSubQuerySelectorOperator) { listener.exitSubQuerySelectorOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSubQuerySelectorOperator) { return visitor.visitSubQuerySelectorOperator(this); } else { return visitor.visitChildren(this); } } } export class SysFuncNamesContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_AND(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AND, 0); } public KW_OR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OR, 0); } public KW_NOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOT, 0); } public KW_LIKE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LIKE, 0); } public KW_IF(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IF, 0); } public KW_CASE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CASE, 0); } public KW_WHEN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WHEN, 0); } public KW_FLOOR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FLOOR, 0); } public KW_TINYINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TINYINT, 0); } public KW_SMALLINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SMALLINT, 0); } public KW_INT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INT, 0); } public KW_INTEGER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INTEGER, 0); } public KW_BIGINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BIGINT, 0); } public KW_FLOAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FLOAT, 0); } public KW_REAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REAL, 0); } public KW_DOUBLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DOUBLE, 0); } public KW_BOOLEAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BOOLEAN, 0); } public KW_STRING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STRING, 0); } public KW_BINARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BINARY, 0); } public KW_ARRAY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ARRAY, 0); } public KW_MAP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MAP, 0); } public KW_STRUCT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STRUCT, 0); } public KW_UNIONTYPE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNIONTYPE, 0); } public EQUAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.EQUAL, 0); } public EQUAL_NS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.EQUAL_NS, 0); } public NOTEQUAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.NOTEQUAL, 0); } public LESSTHANOREQUALTO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LESSTHANOREQUALTO, 0); } public LESSTHAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LESSTHAN, 0); } public GREATERTHANOREQUALTO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.GREATERTHANOREQUALTO, 0); } public GREATERTHAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.GREATERTHAN, 0); } public DIVIDE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.DIVIDE, 0); } public PLUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.PLUS, 0); } public MINUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.MINUS, 0); } public STAR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.STAR, 0); } public MOD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.MOD, 0); } public DIV(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.DIV, 0); } public AMPERSAND(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.AMPERSAND, 0); } public TILDE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.TILDE, 0); } public BITWISEOR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.BITWISEOR, 0); } public BITWISEXOR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.BITWISEXOR, 0); } public KW_RLIKE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RLIKE, 0); } public KW_REGEXP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REGEXP, 0); } public KW_IN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IN, 0); } public KW_BETWEEN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BETWEEN, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_sysFuncNames; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSysFuncNames) { listener.enterSysFuncNames(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSysFuncNames) { listener.exitSysFuncNames(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSysFuncNames) { return visitor.visitSysFuncNames(this); } else { return visitor.visitChildren(this); } } } export class Id_Context extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public Identifier(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Identifier, 0); } public nonReserved(): NonReservedContext | null { return this.getRuleContext(0, NonReservedContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_id_; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterId_) { listener.enterId_(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitId_) { listener.exitId_(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitId_) { return visitor.visitId_(this); } else { return visitor.visitChildren(this); } } } export class FunctionIdentifierContext extends antlr.ParserRuleContext { public _fn?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public DOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.DOT, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_functionIdentifier; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterFunctionIdentifier) { listener.enterFunctionIdentifier(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitFunctionIdentifier) { listener.exitFunctionIdentifier(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitFunctionIdentifier) { return visitor.visitFunctionIdentifier(this); } else { return visitor.visitChildren(this); } } } export class PrincipalIdentifierContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_principalIdentifier; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrincipalIdentifier) { listener.enterPrincipalIdentifier(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrincipalIdentifier) { listener.exitPrincipalIdentifier(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrincipalIdentifier) { return visitor.visitPrincipalIdentifier(this); } else { return visitor.visitChildren(this); } } } export class NonReservedContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ABORT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ABORT, 0); } public KW_ACTIVATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ACTIVATE, 0); } public KW_ACTIVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ACTIVE, 0); } public KW_ADD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ADD, 0); } public KW_ADMIN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ADMIN, 0); } public KW_AFTER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AFTER, 0); } public KW_ALLOC_FRACTION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALLOC_FRACTION, 0); } public KW_ANALYZE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ANALYZE, 0); } public KW_ARCHIVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ARCHIVE, 0); } public KW_ASC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ASC, 0); } public KW_AST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AST, 0); } public KW_AT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AT, 0); } public KW_AUTOCOMMIT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_AUTOCOMMIT, 0); } public KW_BATCH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BATCH, 0); } public KW_BEFORE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BEFORE, 0); } public KW_BUCKET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BUCKET, 0); } public KW_BUCKETS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BUCKETS, 0); } public KW_CACHE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CACHE, 0); } public KW_CASCADE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CASCADE, 0); } public KW_CBO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CBO, 0); } public KW_CHANGE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CHANGE, 0); } public KW_CHECK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CHECK, 0); } public KW_CLUSTER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CLUSTER, 0); } public KW_CLUSTERED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CLUSTERED, 0); } public KW_CLUSTERSTATUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CLUSTERSTATUS, 0); } public KW_COLLECTION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COLLECTION, 0); } public KW_COLUMNS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COLUMNS, 0); } public KW_COMMENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMMENT, 0); } public KW_COMPACT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMPACT, 0); } public KW_COMPACTIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMPACTIONS, 0); } public KW_COMPUTE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COMPUTE, 0); } public KW_CONCATENATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CONCATENATE, 0); } public KW_CONTINUE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CONTINUE, 0); } public KW_COST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_COST, 0); } public KW_CRON(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CRON, 0); } public KW_DATA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATA, 0); } public KW_DATABASES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATABASES, 0); } public KW_DATETIME(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATETIME, 0); } public KW_DAY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DAY, 0); } public KW_DAYS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DAYS, 0); } public KW_DAYOFWEEK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DAYOFWEEK, 0); } public KW_DBPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DBPROPERTIES, 0); } public KW_DCPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DCPROPERTIES, 0); } public KW_DEBUG(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEBUG, 0); } public KW_DEFAULT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEFAULT, 0); } public KW_DEFERRED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEFERRED, 0); } public KW_DEFINED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEFINED, 0); } public KW_DELIMITED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DELIMITED, 0); } public KW_DEPENDENCY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEPENDENCY, 0); } public KW_DESC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DESC, 0); } public KW_DETAIL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DETAIL, 0); } public KW_DIRECTORIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DIRECTORIES, 0); } public KW_DIRECTORY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DIRECTORY, 0); } public KW_DISABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DISABLE, 0); } public KW_DISABLED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DISABLED, 0); } public KW_DISTRIBUTE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DISTRIBUTE, 0); } public KW_DISTRIBUTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DISTRIBUTED, 0); } public KW_DO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DO, 0); } public KW_DUMP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DUMP, 0); } public KW_ELEM_TYPE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ELEM_TYPE, 0); } public KW_ENABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ENABLE, 0); } public KW_ENABLED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ENABLED, 0); } public KW_ENFORCED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ENFORCED, 0); } public KW_ESCAPED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ESCAPED, 0); } public KW_EVERY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EVERY, 0); } public KW_EXCLUSIVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXCLUSIVE, 0); } public KW_EXECUTE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXECUTE, 0); } public KW_EXECUTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXECUTED, 0); } public KW_EXPIRE_SNAPSHOTS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXPIRE_SNAPSHOTS, 0); } public KW_EXPLAIN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXPLAIN, 0); } public KW_EXPORT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXPORT, 0); } public KW_EXPRESSION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_EXPRESSION, 0); } public KW_FIELDS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FIELDS, 0); } public KW_FILE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FILE, 0); } public KW_FILEFORMAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FILEFORMAT, 0); } public KW_FIRST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FIRST, 0); } public KW_FORMAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FORMAT, 0); } public KW_FORMATTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FORMATTED, 0); } public KW_FUNCTIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FUNCTIONS, 0); } public KW_HOLD_DDLTIME(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_HOLD_DDLTIME, 0); } public KW_HOUR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_HOUR, 0); } public KW_HOURS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_HOURS, 0); } public KW_IDXPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IDXPROPERTIES, 0); } public KW_IGNORE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IGNORE, 0); } public KW_INDEX(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INDEX, 0); } public KW_INDEXES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INDEXES, 0); } public KW_INPATH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INPATH, 0); } public KW_INPUTDRIVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INPUTDRIVER, 0); } public KW_INPUTFORMAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INPUTFORMAT, 0); } public KW_ISOLATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ISOLATION, 0); } public KW_ITEMS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ITEMS, 0); } public KW_JAR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_JAR, 0); } public KW_JOINCOST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_JOINCOST, 0); } public KW_KEY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_KEY, 0); } public KW_KEYS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_KEYS, 0); } public KW_KEY_TYPE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_KEY_TYPE, 0); } public KW_KILL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_KILL, 0); } public KW_LAST(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LAST, 0); } public KW_LEVEL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LEVEL, 0); } public KW_LIMIT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LIMIT, 0); } public KW_LINES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LINES, 0); } public KW_LOAD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOAD, 0); } public KW_LOCATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCATION, 0); } public KW_LOCK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCK, 0); } public KW_LOCKS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOCKS, 0); } public KW_LOGICAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LOGICAL, 0); } public KW_LONG(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LONG, 0); } public KW_MANAGED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MANAGED, 0); } public KW_MANAGEDLOCATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MANAGEDLOCATION, 0); } public KW_MANAGEMENT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MANAGEMENT, 0); } public KW_MAPJOIN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MAPJOIN, 0); } public KW_MAPPING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MAPPING, 0); } public KW_MATCHED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MATCHED, 0); } public KW_MATERIALIZED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MATERIALIZED, 0); } public KW_METADATA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_METADATA, 0); } public KW_MINUTE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MINUTE, 0); } public KW_MINUTES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MINUTES, 0); } public KW_MONTH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MONTH, 0); } public KW_MONTHS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MONTHS, 0); } public KW_MOVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MOVE, 0); } public KW_MSCK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MSCK, 0); } public KW_NORELY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NORELY, 0); } public KW_NOSCAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOSCAN, 0); } public KW_NOVALIDATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NOVALIDATE, 0); } public KW_NO_DROP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NO_DROP, 0); } public KW_NULLS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NULLS, 0); } public KW_OFFLINE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OFFLINE, 0); } public KW_OFFSET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OFFSET, 0); } public KW_OPERATOR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OPERATOR, 0); } public KW_OPTION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OPTION, 0); } public KW_OUTPUTDRIVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OUTPUTDRIVER, 0); } public KW_OUTPUTFORMAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OUTPUTFORMAT, 0); } public KW_OVERWRITE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OVERWRITE, 0); } public KW_OWNER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_OWNER, 0); } public KW_PARTITIONED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PARTITIONED, 0); } public KW_PARTITIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PARTITIONS, 0); } public KW_PATH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PATH, 0); } public KW_PLAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PLAN, 0); } public KW_PLANS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PLANS, 0); } public KW_PLUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PLUS, 0); } public KW_POOL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_POOL, 0); } public KW_PRINCIPALS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PRINCIPALS, 0); } public KW_PROTECTION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PROTECTION, 0); } public KW_PURGE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PURGE, 0); } public KW_QUARTER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_QUARTER, 0); } public KW_QUERY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_QUERY, 0); } public KW_QUERY_PARALLELISM(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_QUERY_PARALLELISM, 0); } public KW_READ(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_READ, 0); } public KW_READONLY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_READONLY, 0); } public KW_REBUILD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REBUILD, 0); } public KW_RECORDREADER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RECORDREADER, 0); } public KW_RECORDWRITER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RECORDWRITER, 0); } public KW_RELOAD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RELOAD, 0); } public KW_RELY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RELY, 0); } public KW_REMOTE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REMOTE, 0); } public KW_RENAME(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RENAME, 0); } public KW_REOPTIMIZATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REOPTIMIZATION, 0); } public KW_REPAIR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REPAIR, 0); } public KW_REPL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REPL, 0); } public KW_REPLACE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REPLACE, 0); } public KW_REPLICATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REPLICATION, 0); } public KW_RESOURCE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RESOURCE, 0); } public KW_RESPECT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RESPECT, 0); } public KW_RESTRICT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RESTRICT, 0); } public KW_REWRITE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REWRITE, 0); } public KW_ROLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROLE, 0); } public KW_ROLES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ROLES, 0); } public KW_SCHEDULED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SCHEDULED, 0); } public KW_SCHEDULING_POLICY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SCHEDULING_POLICY, 0); } public KW_SCHEMA(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SCHEMA, 0); } public KW_SCHEMAS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SCHEMAS, 0); } public KW_SECOND(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SECOND, 0); } public KW_SECONDS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SECONDS, 0); } public KW_SEMI(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SEMI, 0); } public KW_SERDE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERDE, 0); } public KW_SERDEPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERDEPROPERTIES, 0); } public KW_SERVER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SERVER, 0); } public KW_SETS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SETS, 0); } public KW_SET_CURRENT_SNAPSHOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SET_CURRENT_SNAPSHOT, 0); } public KW_SHARED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SHARED, 0); } public KW_SHOW(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SHOW, 0); } public KW_SHOW_DATABASE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SHOW_DATABASE, 0); } public KW_SKEWED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SKEWED, 0); } public KW_SNAPSHOT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SNAPSHOT, 0); } public KW_SORT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SORT, 0); } public KW_SORTED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SORTED, 0); } public KW_SPEC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SPEC, 0); } public KW_SSL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SSL, 0); } public KW_STATISTICS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STATISTICS, 0); } public KW_STATUS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STATUS, 0); } public KW_STORED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STORED, 0); } public KW_STREAMTABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STREAMTABLE, 0); } public KW_STRING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STRING, 0); } public KW_STRUCT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STRUCT, 0); } public KW_SUMMARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SUMMARY, 0); } public KW_SYSTEM_TIME(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SYSTEM_TIME, 0); } public KW_SYSTEM_VERSION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SYSTEM_VERSION, 0); } public KW_TABLES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TABLES, 0); } public KW_TBLPROPERTIES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TBLPROPERTIES, 0); } public KW_TEMPORARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TEMPORARY, 0); } public KW_TERMINATED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TERMINATED, 0); } public KW_TIMESTAMPTZ(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TIMESTAMPTZ, 0); } public KW_TINYINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TINYINT, 0); } public KW_TOUCH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TOUCH, 0); } public KW_TRANSACTION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRANSACTION, 0); } public KW_TRANSACTIONAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRANSACTIONAL, 0); } public KW_TRANSACTIONS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRANSACTIONS, 0); } public KW_TRIM(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRIM, 0); } public KW_TYPE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TYPE, 0); } public KW_UNARCHIVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNARCHIVE, 0); } public KW_UNDO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNDO, 0); } public KW_UNIONTYPE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNIONTYPE, 0); } public KW_UNKNOWN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNKNOWN, 0); } public KW_UNLOCK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNLOCK, 0); } public KW_UNMANAGED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNMANAGED, 0); } public KW_UNSET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNSET, 0); } public KW_UNSIGNED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNSIGNED, 0); } public KW_URI(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_URI, 0); } public KW_URL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_URL, 0); } public KW_USE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_USE, 0); } public KW_UTC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UTC, 0); } public KW_UTCTIMESTAMP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UTCTIMESTAMP, 0); } public KW_VALIDATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VALIDATE, 0); } public KW_VALUE_TYPE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VALUE_TYPE, 0); } public KW_VECTORIZATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VECTORIZATION, 0); } public KW_VIEW(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VIEW, 0); } public KW_VIEWS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VIEWS, 0); } public KW_WAIT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WAIT, 0); } public KW_WEEK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WEEK, 0); } public KW_WEEKS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WEEKS, 0); } public KW_WHILE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WHILE, 0); } public KW_WITHIN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITHIN, 0); } public KW_WORK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WORK, 0); } public KW_WORKLOAD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WORKLOAD, 0); } public KW_WRITE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WRITE, 0); } public KW_YEAR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_YEAR, 0); } public KW_YEARS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_YEARS, 0); } public KW_ZONE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ZONE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_nonReserved; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterNonReserved) { listener.enterNonReserved(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitNonReserved) { listener.exitNonReserved(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitNonReserved) { return visitor.visitNonReserved(this); } else { return visitor.visitChildren(this); } } } export class Sql11ReservedKeywordsUsedAsFunctionNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ARRAY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ARRAY, 0); } public KW_BIGINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BIGINT, 0); } public KW_BINARY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BINARY, 0); } public KW_BOOLEAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_BOOLEAN, 0); } public KW_CURRENT_DATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CURRENT_DATE, 0); } public KW_CURRENT_TIMESTAMP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_CURRENT_TIMESTAMP, 0); } public KW_DATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DATE, 0); } public KW_DOUBLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DOUBLE, 0); } public KW_FLOAT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FLOAT, 0); } public KW_GROUPING(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_GROUPING, 0); } public KW_IF(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_IF, 0); } public KW_INT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INT, 0); } public KW_INTEGER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_INTEGER, 0); } public KW_MAP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MAP, 0); } public KW_REAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_REAL, 0); } public KW_SMALLINT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SMALLINT, 0); } public KW_TIMESTAMP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TIMESTAMP, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_sql11ReservedKeywordsUsedAsFunctionName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSql11ReservedKeywordsUsedAsFunctionName) { listener.enterSql11ReservedKeywordsUsedAsFunctionName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSql11ReservedKeywordsUsedAsFunctionName) { listener.exitSql11ReservedKeywordsUsedAsFunctionName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSql11ReservedKeywordsUsedAsFunctionName) { return visitor.visitSql11ReservedKeywordsUsedAsFunctionName(this); } else { return visitor.visitChildren(this); } } } export class HintContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public hintList(): HintListContext { return this.getRuleContext(0, HintListContext)!; } public EOF(): antlr.TerminalNode { return this.getToken(HiveSqlParser.EOF, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_hint; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterHint) { listener.enterHint(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitHint) { listener.exitHint(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitHint) { return visitor.visitHint(this); } else { return visitor.visitChildren(this); } } } export class HintListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public hintItem(): HintItemContext[]; public hintItem(i: number): HintItemContext | null; public hintItem(i?: number): HintItemContext[] | HintItemContext | null { if (i === undefined) { return this.getRuleContexts(HintItemContext); } return this.getRuleContext(i, HintItemContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_hintList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterHintList) { listener.enterHintList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitHintList) { listener.exitHintList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitHintList) { return visitor.visitHintList(this); } else { return visitor.visitChildren(this); } } } export class HintItemContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public hintName(): HintNameContext { return this.getRuleContext(0, HintNameContext)!; } public LPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.LPAREN, 0); } public hintArgs(): HintArgsContext | null { return this.getRuleContext(0, HintArgsContext); } public RPAREN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.RPAREN, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_hintItem; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterHintItem) { listener.enterHintItem(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitHintItem) { listener.exitHintItem(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitHintItem) { return visitor.visitHintItem(this); } else { return visitor.visitChildren(this); } } } export class HintNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_MAPJOIN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MAPJOIN, 0); } public KW_SEMI(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SEMI, 0); } public KW_STREAMTABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_STREAMTABLE, 0); } public KW_PKFK_JOIN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PKFK_JOIN, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_hintName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterHintName) { listener.enterHintName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitHintName) { listener.exitHintName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitHintName) { return visitor.visitHintName(this); } else { return visitor.visitChildren(this); } } } export class HintArgsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public hintArgName(): HintArgNameContext[]; public hintArgName(i: number): HintArgNameContext | null; public hintArgName(i?: number): HintArgNameContext[] | HintArgNameContext | null { if (i === undefined) { return this.getRuleContexts(HintArgNameContext); } return this.getRuleContext(i, HintArgNameContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_hintArgs; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterHintArgs) { listener.enterHintArgs(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitHintArgs) { listener.exitHintArgs(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitHintArgs) { return visitor.visitHintArgs(this); } else { return visitor.visitChildren(this); } } } export class HintArgNameContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public Identifier(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Identifier, 0); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public KW_NONE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NONE, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_hintArgName; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterHintArgName) { listener.enterHintArgName(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitHintArgName) { listener.exitHintArgName(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitHintArgName) { return visitor.visitHintArgName(this); } else { return visitor.visitChildren(this); } } } export class PrepareStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_PREPARE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PREPARE, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_FROM(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_FROM, 0)!; } public queryStatementExpression(): QueryStatementExpressionContext { return this.getRuleContext(0, QueryStatementExpressionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_prepareStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPrepareStatement) { listener.enterPrepareStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPrepareStatement) { listener.exitPrepareStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPrepareStatement) { return visitor.visitPrepareStatement(this); } else { return visitor.visitChildren(this); } } } export class ExecuteStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_EXECUTE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_EXECUTE, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_USING(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_USING, 0)!; } public executeParamList(): ExecuteParamListContext { return this.getRuleContext(0, ExecuteParamListContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_executeStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExecuteStatement) { listener.enterExecuteStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExecuteStatement) { listener.exitExecuteStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExecuteStatement) { return visitor.visitExecuteStatement(this); } else { return visitor.visitChildren(this); } } } export class ExecuteParamListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public constant(): ConstantContext[]; public constant(i: number): ConstantContext | null; public constant(i?: number): ConstantContext[] | ConstantContext | null { if (i === undefined) { return this.getRuleContexts(ConstantContext); } return this.getRuleContext(i, ConstantContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_executeParamList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterExecuteParamList) { listener.enterExecuteParamList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitExecuteParamList) { listener.exitExecuteParamList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitExecuteParamList) { return visitor.visitExecuteParamList(this); } else { return visitor.visitChildren(this); } } } export class ResourcePlanDdlStatementsContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public createResourcePlanStatement(): CreateResourcePlanStatementContext | null { return this.getRuleContext(0, CreateResourcePlanStatementContext); } public alterResourcePlanStatement(): AlterResourcePlanStatementContext | null { return this.getRuleContext(0, AlterResourcePlanStatementContext); } public dropResourcePlanStatement(): DropResourcePlanStatementContext | null { return this.getRuleContext(0, DropResourcePlanStatementContext); } public globalWmStatement(): GlobalWmStatementContext | null { return this.getRuleContext(0, GlobalWmStatementContext); } public replaceResourcePlanStatement(): ReplaceResourcePlanStatementContext | null { return this.getRuleContext(0, ReplaceResourcePlanStatementContext); } public createTriggerStatement(): CreateTriggerStatementContext | null { return this.getRuleContext(0, CreateTriggerStatementContext); } public alterTriggerStatement(): AlterTriggerStatementContext | null { return this.getRuleContext(0, AlterTriggerStatementContext); } public dropTriggerStatement(): DropTriggerStatementContext | null { return this.getRuleContext(0, DropTriggerStatementContext); } public createPoolStatement(): CreatePoolStatementContext | null { return this.getRuleContext(0, CreatePoolStatementContext); } public alterPoolStatement(): AlterPoolStatementContext | null { return this.getRuleContext(0, AlterPoolStatementContext); } public dropPoolStatement(): DropPoolStatementContext | null { return this.getRuleContext(0, DropPoolStatementContext); } public createMappingStatement(): CreateMappingStatementContext | null { return this.getRuleContext(0, CreateMappingStatementContext); } public alterMappingStatement(): AlterMappingStatementContext | null { return this.getRuleContext(0, AlterMappingStatementContext); } public dropMappingStatement(): DropMappingStatementContext | null { return this.getRuleContext(0, DropMappingStatementContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_resourcePlanDdlStatements; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterResourcePlanDdlStatements) { listener.enterResourcePlanDdlStatements(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitResourcePlanDdlStatements) { listener.exitResourcePlanDdlStatements(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitResourcePlanDdlStatements) { return visitor.visitResourcePlanDdlStatements(this); } else { return visitor.visitChildren(this); } } } export class RpAssignContext extends antlr.ParserRuleContext { public _parallelism?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_QUERY_PARALLELISM(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_QUERY_PARALLELISM, 0); } public EQUAL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.EQUAL, 0)!; } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public KW_DEFAULT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEFAULT, 0); } public KW_POOL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_POOL, 0); } public poolPath(): PoolPathContext | null { return this.getRuleContext(0, PoolPathContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_rpAssign; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRpAssign) { listener.enterRpAssign(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRpAssign) { listener.exitRpAssign(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRpAssign) { return visitor.visitRpAssign(this); } else { return visitor.visitChildren(this); } } } export class RpAssignListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public rpAssign(): RpAssignContext[]; public rpAssign(i: number): RpAssignContext | null; public rpAssign(i?: number): RpAssignContext[] | RpAssignContext | null { if (i === undefined) { return this.getRuleContexts(RpAssignContext); } return this.getRuleContext(i, RpAssignContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_rpAssignList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRpAssignList) { listener.enterRpAssignList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRpAssignList) { listener.exitRpAssignList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRpAssignList) { return visitor.visitRpAssignList(this); } else { return visitor.visitChildren(this); } } } export class RpUnassignContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_QUERY_PARALLELISM(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_QUERY_PARALLELISM, 0); } public KW_DEFAULT(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEFAULT, 0); } public KW_POOL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_POOL, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_rpUnassign; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRpUnassign) { listener.enterRpUnassign(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRpUnassign) { listener.exitRpUnassign(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRpUnassign) { return visitor.visitRpUnassign(this); } else { return visitor.visitChildren(this); } } } export class RpUnassignListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public rpUnassign(): RpUnassignContext[]; public rpUnassign(i: number): RpUnassignContext | null; public rpUnassign(i?: number): RpUnassignContext[] | RpUnassignContext | null { if (i === undefined) { return this.getRuleContexts(RpUnassignContext); } return this.getRuleContext(i, RpUnassignContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_rpUnassignList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterRpUnassignList) { listener.enterRpUnassignList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitRpUnassignList) { listener.exitRpUnassignList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitRpUnassignList) { return visitor.visitRpUnassignList(this); } else { return visitor.visitChildren(this); } } } export class CreateResourcePlanStatementContext extends antlr.ParserRuleContext { public _name?: Id_Context; public _likeName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_RESOURCE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RESOURCE, 0)!; } public KW_PLAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PLAN, 0)!; } public KW_LIKE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_LIKE, 0); } public ifNotExists(): IfNotExistsContext | null { return this.getRuleContext(0, IfNotExistsContext); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public rpAssignList(): RpAssignListContext | null { return this.getRuleContext(0, RpAssignListContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createResourcePlanStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateResourcePlanStatement) { listener.enterCreateResourcePlanStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateResourcePlanStatement) { listener.exitCreateResourcePlanStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateResourcePlanStatement) { return visitor.visitCreateResourcePlanStatement(this); } else { return visitor.visitChildren(this); } } } export class WithReplaceContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WITH(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WITH, 0)!; } public KW_REPLACE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REPLACE, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_withReplace; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWithReplace) { listener.enterWithReplace(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWithReplace) { listener.exitWithReplace(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWithReplace) { return visitor.visitWithReplace(this); } else { return visitor.visitChildren(this); } } } export class ActivateContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ACTIVATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ACTIVATE, 0)!; } public withReplace(): WithReplaceContext | null { return this.getRuleContext(0, WithReplaceContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_activate; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterActivate) { listener.enterActivate(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitActivate) { listener.exitActivate(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitActivate) { return visitor.visitActivate(this); } else { return visitor.visitChildren(this); } } } export class EnableContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ENABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ENABLE, 0); } public KW_ENABLED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ENABLED, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_enable; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterEnable) { listener.enterEnable(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitEnable) { listener.exitEnable(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitEnable) { return visitor.visitEnable(this); } else { return visitor.visitChildren(this); } } } export class DisableContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DISABLE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DISABLE, 0); } public KW_DISABLED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DISABLED, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_disable; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDisable) { listener.enterDisable(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDisable) { listener.exitDisable(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDisable) { return visitor.visitDisable(this); } else { return visitor.visitChildren(this); } } } export class UnmanagedContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_UNMANAGED(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_UNMANAGED, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_unmanaged; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterUnmanaged) { listener.enterUnmanaged(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitUnmanaged) { listener.exitUnmanaged(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitUnmanaged) { return visitor.visitUnmanaged(this); } else { return visitor.visitChildren(this); } } } export class YearContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_YEAR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_YEAR, 0); } public KW_YEARS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_YEARS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_year; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterYear) { listener.enterYear(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitYear) { listener.exitYear(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitYear) { return visitor.visitYear(this); } else { return visitor.visitChildren(this); } } } export class MonthContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_MONTH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MONTH, 0); } public KW_MONTHS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MONTHS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_month; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterMonth) { listener.enterMonth(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitMonth) { listener.exitMonth(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitMonth) { return visitor.visitMonth(this); } else { return visitor.visitChildren(this); } } } export class WeekContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WEEK(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WEEK, 0); } public KW_WEEKS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WEEKS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_week; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterWeek) { listener.enterWeek(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitWeek) { listener.exitWeek(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitWeek) { return visitor.visitWeek(this); } else { return visitor.visitChildren(this); } } } export class DayContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DAY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DAY, 0); } public KW_DAYS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DAYS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_day; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDay) { listener.enterDay(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDay) { listener.exitDay(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDay) { return visitor.visitDay(this); } else { return visitor.visitChildren(this); } } } export class HourContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_HOUR(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_HOUR, 0); } public KW_HOURS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_HOURS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_hour; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterHour) { listener.enterHour(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitHour) { listener.exitHour(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitHour) { return visitor.visitHour(this); } else { return visitor.visitChildren(this); } } } export class MinuteContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_MINUTE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MINUTE, 0); } public KW_MINUTES(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MINUTES, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_minute; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterMinute) { listener.enterMinute(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitMinute) { listener.exitMinute(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitMinute) { return visitor.visitMinute(this); } else { return visitor.visitChildren(this); } } } export class SecondContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_SECOND(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SECOND, 0); } public KW_SECONDS(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SECONDS, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_second; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterSecond) { listener.enterSecond(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitSecond) { listener.exitSecond(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitSecond) { return visitor.visitSecond(this); } else { return visitor.visitChildren(this); } } } export class DecimalContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DEC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DEC, 0); } public KW_DECIMAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DECIMAL, 0); } public KW_NUMERIC(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_NUMERIC, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_decimal; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDecimal) { listener.enterDecimal(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDecimal) { listener.exitDecimal(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDecimal) { return visitor.visitDecimal(this); } else { return visitor.visitChildren(this); } } } export class AlterResourcePlanStatementContext extends antlr.ParserRuleContext { public _name?: Id_Context; public _newName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALTER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ALTER, 0)!; } public KW_RESOURCE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RESOURCE, 0)!; } public KW_PLAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PLAN, 0)!; } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public KW_VALIDATE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_VALIDATE, 0); } public disable(): DisableContext | null { return this.getRuleContext(0, DisableContext); } public KW_SET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SET, 0); } public rpAssignList(): RpAssignListContext | null { return this.getRuleContext(0, RpAssignListContext); } public KW_UNSET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNSET, 0); } public rpUnassignList(): RpUnassignListContext | null { return this.getRuleContext(0, RpUnassignListContext); } public KW_RENAME(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RENAME, 0); } public KW_TO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TO, 0); } public activate(): ActivateContext | null { return this.getRuleContext(0, ActivateContext); } public enable(): EnableContext | null { return this.getRuleContext(0, EnableContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterResourcePlanStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterResourcePlanStatement) { listener.enterAlterResourcePlanStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterResourcePlanStatement) { listener.exitAlterResourcePlanStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterResourcePlanStatement) { return visitor.visitAlterResourcePlanStatement(this); } else { return visitor.visitChildren(this); } } } export class GlobalWmStatementContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_WORKLOAD(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WORKLOAD, 0)!; } public KW_MANAGEMENT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MANAGEMENT, 0)!; } public enable(): EnableContext | null { return this.getRuleContext(0, EnableContext); } public disable(): DisableContext | null { return this.getRuleContext(0, DisableContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_globalWmStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterGlobalWmStatement) { listener.enterGlobalWmStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitGlobalWmStatement) { listener.exitGlobalWmStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitGlobalWmStatement) { return visitor.visitGlobalWmStatement(this); } else { return visitor.visitChildren(this); } } } export class ReplaceResourcePlanStatementContext extends antlr.ParserRuleContext { public _src?: Id_Context; public _dest?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_REPLACE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_REPLACE, 0)!; } public KW_ACTIVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ACTIVE, 0); } public KW_RESOURCE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_RESOURCE, 0); } public KW_PLAN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PLAN, 0); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_replaceResourcePlanStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterReplaceResourcePlanStatement) { listener.enterReplaceResourcePlanStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitReplaceResourcePlanStatement) { listener.exitReplaceResourcePlanStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitReplaceResourcePlanStatement) { return visitor.visitReplaceResourcePlanStatement(this); } else { return visitor.visitChildren(this); } } } export class DropResourcePlanStatementContext extends antlr.ParserRuleContext { public _name?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_RESOURCE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_RESOURCE, 0)!; } public KW_PLAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_PLAN, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public ifExists(): IfExistsContext | null { return this.getRuleContext(0, IfExistsContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropResourcePlanStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropResourcePlanStatement) { listener.enterDropResourcePlanStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropResourcePlanStatement) { listener.exitDropResourcePlanStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropResourcePlanStatement) { return visitor.visitDropResourcePlanStatement(this); } else { return visitor.visitChildren(this); } } } export class PoolPathContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public DOT(): antlr.TerminalNode[]; public DOT(i: number): antlr.TerminalNode | null; public DOT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.DOT); } else { return this.getToken(HiveSqlParser.DOT, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_poolPath; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPoolPath) { listener.enterPoolPath(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPoolPath) { listener.exitPoolPath(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPoolPath) { return visitor.visitPoolPath(this); } else { return visitor.visitChildren(this); } } } export class TriggerExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public triggerAtomExpression(): TriggerAtomExpressionContext { return this.getRuleContext(0, TriggerAtomExpressionContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_triggerExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTriggerExpression) { listener.enterTriggerExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTriggerExpression) { listener.exitTriggerExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTriggerExpression) { return visitor.visitTriggerExpression(this); } else { return visitor.visitChildren(this); } } } export class TriggerExpressionStandaloneContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public triggerExpression(): TriggerExpressionContext { return this.getRuleContext(0, TriggerExpressionContext)!; } public EOF(): antlr.TerminalNode { return this.getToken(HiveSqlParser.EOF, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_triggerExpressionStandalone; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTriggerExpressionStandalone) { listener.enterTriggerExpressionStandalone(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTriggerExpressionStandalone) { listener.exitTriggerExpressionStandalone(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTriggerExpressionStandalone) { return visitor.visitTriggerExpressionStandalone(this); } else { return visitor.visitChildren(this); } } } export class TriggerOrExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public triggerAndExpression(): TriggerAndExpressionContext[]; public triggerAndExpression(i: number): TriggerAndExpressionContext | null; public triggerAndExpression(i?: number): TriggerAndExpressionContext[] | TriggerAndExpressionContext | null { if (i === undefined) { return this.getRuleContexts(TriggerAndExpressionContext); } return this.getRuleContext(i, TriggerAndExpressionContext); } public KW_OR(): antlr.TerminalNode[]; public KW_OR(i: number): antlr.TerminalNode | null; public KW_OR(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_OR); } else { return this.getToken(HiveSqlParser.KW_OR, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_triggerOrExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTriggerOrExpression) { listener.enterTriggerOrExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTriggerOrExpression) { listener.exitTriggerOrExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTriggerOrExpression) { return visitor.visitTriggerOrExpression(this); } else { return visitor.visitChildren(this); } } } export class TriggerAndExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public triggerAtomExpression(): TriggerAtomExpressionContext[]; public triggerAtomExpression(i: number): TriggerAtomExpressionContext | null; public triggerAtomExpression(i?: number): TriggerAtomExpressionContext[] | TriggerAtomExpressionContext | null { if (i === undefined) { return this.getRuleContexts(TriggerAtomExpressionContext); } return this.getRuleContext(i, TriggerAtomExpressionContext); } public KW_AND(): antlr.TerminalNode[]; public KW_AND(i: number): antlr.TerminalNode | null; public KW_AND(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.KW_AND); } else { return this.getToken(HiveSqlParser.KW_AND, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_triggerAndExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTriggerAndExpression) { listener.enterTriggerAndExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTriggerAndExpression) { listener.exitTriggerAndExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTriggerAndExpression) { return visitor.visitTriggerAndExpression(this); } else { return visitor.visitChildren(this); } } } export class TriggerAtomExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public comparisionOperator(): ComparisionOperatorContext { return this.getRuleContext(0, ComparisionOperatorContext)!; } public triggerLiteral(): TriggerLiteralContext { return this.getRuleContext(0, TriggerLiteralContext)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_triggerAtomExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTriggerAtomExpression) { listener.enterTriggerAtomExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTriggerAtomExpression) { listener.exitTriggerAtomExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTriggerAtomExpression) { return visitor.visitTriggerAtomExpression(this); } else { return visitor.visitChildren(this); } } } export class TriggerLiteralContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_triggerLiteral; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTriggerLiteral) { listener.enterTriggerLiteral(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTriggerLiteral) { listener.exitTriggerLiteral(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTriggerLiteral) { return visitor.visitTriggerLiteral(this); } else { return visitor.visitChildren(this); } } } export class ComparisionOperatorContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public GREATERTHAN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.GREATERTHAN, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_comparisionOperator; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterComparisionOperator) { listener.enterComparisionOperator(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitComparisionOperator) { listener.exitComparisionOperator(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitComparisionOperator) { return visitor.visitComparisionOperator(this); } else { return visitor.visitChildren(this); } } } export class TriggerActionExpressionContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_KILL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_KILL, 0); } public KW_MOVE(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_MOVE, 0); } public KW_TO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TO, 0); } public poolPath(): PoolPathContext | null { return this.getRuleContext(0, PoolPathContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_triggerActionExpression; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTriggerActionExpression) { listener.enterTriggerActionExpression(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTriggerActionExpression) { listener.exitTriggerActionExpression(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTriggerActionExpression) { return visitor.visitTriggerActionExpression(this); } else { return visitor.visitChildren(this); } } } export class TriggerActionExpressionStandaloneContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public triggerActionExpression(): TriggerActionExpressionContext { return this.getRuleContext(0, TriggerActionExpressionContext)!; } public EOF(): antlr.TerminalNode { return this.getToken(HiveSqlParser.EOF, 0)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_triggerActionExpressionStandalone; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterTriggerActionExpressionStandalone) { listener.enterTriggerActionExpressionStandalone(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitTriggerActionExpressionStandalone) { listener.exitTriggerActionExpressionStandalone(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitTriggerActionExpressionStandalone) { return visitor.visitTriggerActionExpressionStandalone(this); } else { return visitor.visitChildren(this); } } } export class CreateTriggerStatementContext extends antlr.ParserRuleContext { public _rpName?: Id_Context; public _triggerName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_TRIGGER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TRIGGER, 0)!; } public DOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.DOT, 0)!; } public KW_WHEN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WHEN, 0)!; } public triggerExpression(): TriggerExpressionContext { return this.getRuleContext(0, TriggerExpressionContext)!; } public KW_DO(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DO, 0)!; } public triggerActionExpression(): TriggerActionExpressionContext { return this.getRuleContext(0, TriggerActionExpressionContext)!; } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createTriggerStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateTriggerStatement) { listener.enterCreateTriggerStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateTriggerStatement) { listener.exitCreateTriggerStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateTriggerStatement) { return visitor.visitCreateTriggerStatement(this); } else { return visitor.visitChildren(this); } } } export class AlterTriggerStatementContext extends antlr.ParserRuleContext { public _rpName?: Id_Context; public _triggerName?: Id_Context; public _poolName?: PoolPathContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALTER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ALTER, 0)!; } public KW_TRIGGER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TRIGGER, 0)!; } public DOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.DOT, 0)!; } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public KW_WHEN(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WHEN, 0); } public triggerExpression(): TriggerExpressionContext | null { return this.getRuleContext(0, TriggerExpressionContext); } public KW_DO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DO, 0); } public triggerActionExpression(): TriggerActionExpressionContext | null { return this.getRuleContext(0, TriggerActionExpressionContext); } public KW_ADD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ADD, 0); } public KW_TO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TO, 0); } public KW_DROP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DROP, 0); } public KW_FROM(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_FROM, 0); } public KW_POOL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_POOL, 0); } public KW_UNMANAGED(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNMANAGED, 0); } public poolPath(): PoolPathContext | null { return this.getRuleContext(0, PoolPathContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterTriggerStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterTriggerStatement) { listener.enterAlterTriggerStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterTriggerStatement) { listener.exitAlterTriggerStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterTriggerStatement) { return visitor.visitAlterTriggerStatement(this); } else { return visitor.visitChildren(this); } } } export class DropTriggerStatementContext extends antlr.ParserRuleContext { public _rpName?: Id_Context; public _triggerName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_TRIGGER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_TRIGGER, 0)!; } public DOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.DOT, 0)!; } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropTriggerStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropTriggerStatement) { listener.enterDropTriggerStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropTriggerStatement) { listener.exitDropTriggerStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropTriggerStatement) { return visitor.visitDropTriggerStatement(this); } else { return visitor.visitChildren(this); } } } export class PoolAssignContext extends antlr.ParserRuleContext { public _allocFraction?: Token | null; public _parallelism?: Token | null; public _policy?: Token | null; public _path?: PoolPathContext; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALLOC_FRACTION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ALLOC_FRACTION, 0); } public EQUAL(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.EQUAL, 0); } public KW_QUERY_PARALLELISM(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_QUERY_PARALLELISM, 0); } public KW_SCHEDULING_POLICY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SCHEDULING_POLICY, 0); } public KW_PATH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_PATH, 0); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public StringLiteral(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.StringLiteral, 0); } public poolPath(): PoolPathContext | null { return this.getRuleContext(0, PoolPathContext); } public override get ruleIndex(): number { return HiveSqlParser.RULE_poolAssign; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPoolAssign) { listener.enterPoolAssign(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPoolAssign) { listener.exitPoolAssign(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPoolAssign) { return visitor.visitPoolAssign(this); } else { return visitor.visitChildren(this); } } } export class PoolAssignListContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public poolAssign(): PoolAssignContext[]; public poolAssign(i: number): PoolAssignContext | null; public poolAssign(i?: number): PoolAssignContext[] | PoolAssignContext | null { if (i === undefined) { return this.getRuleContexts(PoolAssignContext); } return this.getRuleContext(i, PoolAssignContext); } public COMMA(): antlr.TerminalNode[]; public COMMA(i: number): antlr.TerminalNode | null; public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] { if (i === undefined) { return this.getTokens(HiveSqlParser.COMMA); } else { return this.getToken(HiveSqlParser.COMMA, i); } } public override get ruleIndex(): number { return HiveSqlParser.RULE_poolAssignList; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterPoolAssignList) { listener.enterPoolAssignList(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitPoolAssignList) { listener.exitPoolAssignList(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitPoolAssignList) { return visitor.visitPoolAssignList(this); } else { return visitor.visitChildren(this); } } } export class CreatePoolStatementContext extends antlr.ParserRuleContext { public _rpName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_POOL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_POOL, 0)!; } public DOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.DOT, 0)!; } public poolPath(): PoolPathContext { return this.getRuleContext(0, PoolPathContext)!; } public KW_WITH(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_WITH, 0)!; } public poolAssignList(): PoolAssignListContext { return this.getRuleContext(0, PoolAssignListContext)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_createPoolStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreatePoolStatement) { listener.enterCreatePoolStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreatePoolStatement) { listener.exitCreatePoolStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreatePoolStatement) { return visitor.visitCreatePoolStatement(this); } else { return visitor.visitChildren(this); } } } export class AlterPoolStatementContext extends antlr.ParserRuleContext { public _rpName?: Id_Context; public _triggerName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALTER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ALTER, 0)!; } public KW_POOL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_POOL, 0)!; } public DOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.DOT, 0)!; } public poolPath(): PoolPathContext { return this.getRuleContext(0, PoolPathContext)!; } public id_(): Id_Context[]; public id_(i: number): Id_Context | null; public id_(i?: number): Id_Context[] | Id_Context | null { if (i === undefined) { return this.getRuleContexts(Id_Context); } return this.getRuleContext(i, Id_Context); } public KW_SET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SET, 0); } public poolAssignList(): PoolAssignListContext | null { return this.getRuleContext(0, PoolAssignListContext); } public KW_UNSET(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_UNSET, 0); } public KW_SCHEDULING_POLICY(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_SCHEDULING_POLICY, 0); } public KW_TRIGGER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TRIGGER, 0); } public KW_ADD(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ADD, 0); } public KW_DROP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_DROP, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterPoolStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterPoolStatement) { listener.enterAlterPoolStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterPoolStatement) { listener.exitAlterPoolStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterPoolStatement) { return visitor.visitAlterPoolStatement(this); } else { return visitor.visitChildren(this); } } } export class DropPoolStatementContext extends antlr.ParserRuleContext { public _rpName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_POOL(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_POOL, 0)!; } public DOT(): antlr.TerminalNode { return this.getToken(HiveSqlParser.DOT, 0)!; } public poolPath(): PoolPathContext { return this.getRuleContext(0, PoolPathContext)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropPoolStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropPoolStatement) { listener.enterDropPoolStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropPoolStatement) { listener.exitDropPoolStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropPoolStatement) { return visitor.visitDropPoolStatement(this); } else { return visitor.visitChildren(this); } } } export class CreateMappingStatementContext extends antlr.ParserRuleContext { public _mappingType?: Token | null; public _name?: Token | null; public _rpName?: Id_Context; public _path?: PoolPathContext; public _order?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_CREATE(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_CREATE, 0)!; } public KW_MAPPING(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MAPPING, 0)!; } public KW_IN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_IN, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_USER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_USER, 0); } public KW_GROUP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_GROUP, 0); } public KW_APPLICATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_APPLICATION, 0); } public KW_TO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TO, 0); } public unmanaged(): UnmanagedContext | null { return this.getRuleContext(0, UnmanagedContext); } public poolPath(): PoolPathContext | null { return this.getRuleContext(0, PoolPathContext); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_ORDER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ORDER, 0); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_createMappingStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterCreateMappingStatement) { listener.enterCreateMappingStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitCreateMappingStatement) { listener.exitCreateMappingStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitCreateMappingStatement) { return visitor.visitCreateMappingStatement(this); } else { return visitor.visitChildren(this); } } } export class AlterMappingStatementContext extends antlr.ParserRuleContext { public _mappingType?: Token | null; public _name?: Token | null; public _rpName?: Id_Context; public _path?: PoolPathContext; public _order?: Token | null; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_ALTER(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_ALTER, 0)!; } public KW_MAPPING(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MAPPING, 0)!; } public KW_IN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_IN, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_USER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_USER, 0); } public KW_GROUP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_GROUP, 0); } public KW_APPLICATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_APPLICATION, 0); } public KW_TO(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_TO, 0); } public unmanaged(): UnmanagedContext | null { return this.getRuleContext(0, UnmanagedContext); } public poolPath(): PoolPathContext | null { return this.getRuleContext(0, PoolPathContext); } public KW_WITH(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_WITH, 0); } public KW_ORDER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_ORDER, 0); } public Number(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.Number, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_alterMappingStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterAlterMappingStatement) { listener.enterAlterMappingStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitAlterMappingStatement) { listener.exitAlterMappingStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitAlterMappingStatement) { return visitor.visitAlterMappingStatement(this); } else { return visitor.visitChildren(this); } } } export class DropMappingStatementContext extends antlr.ParserRuleContext { public _mappingType?: Token | null; public _name?: Token | null; public _rpName?: Id_Context; public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } public KW_DROP(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_DROP, 0)!; } public KW_MAPPING(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_MAPPING, 0)!; } public KW_IN(): antlr.TerminalNode { return this.getToken(HiveSqlParser.KW_IN, 0)!; } public StringLiteral(): antlr.TerminalNode { return this.getToken(HiveSqlParser.StringLiteral, 0)!; } public id_(): Id_Context { return this.getRuleContext(0, Id_Context)!; } public KW_USER(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_USER, 0); } public KW_GROUP(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_GROUP, 0); } public KW_APPLICATION(): antlr.TerminalNode | null { return this.getToken(HiveSqlParser.KW_APPLICATION, 0); } public override get ruleIndex(): number { return HiveSqlParser.RULE_dropMappingStatement; } public override enterRule(listener: HiveSqlParserListener): void { if(listener.enterDropMappingStatement) { listener.enterDropMappingStatement(this); } } public override exitRule(listener: HiveSqlParserListener): void { if(listener.exitDropMappingStatement) { listener.exitDropMappingStatement(this); } } public override accept(visitor: HiveSqlParserVisitor): Result | null { if (visitor.visitDropMappingStatement) { return visitor.visitDropMappingStatement(this); } else { return visitor.visitChildren(this); } } }