Class DrillParserWithCompoundIdConverter
java.lang.Object
org.apache.calcite.sql.parser.SqlAbstractParserImpl
org.apache.drill.exec.planner.sql.parser.impl.DrillParserImpl
org.apache.drill.exec.planner.sql.parser.impl.DrillParserWithCompoundIdConverter
- All Implemented Interfaces:
DrillParserImplConstants
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.sql.parser.SqlAbstractParserImpl
org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext, org.apache.calcite.sql.parser.SqlAbstractParserImpl.LexicalState, org.apache.calcite.sql.parser.SqlAbstractParserImpl.Metadata, org.apache.calcite.sql.parser.SqlAbstractParserImpl.MetadataImpl
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.calcite.sql.parser.SqlParserImplFactory
SqlParserImplFactory
implementation for creating parser.Fields inherited from class org.apache.drill.exec.planner.sql.parser.impl.DrillParserImpl
jj_nt, token, token_source
Fields inherited from class org.apache.calcite.sql.parser.SqlAbstractParserImpl
nDynamicParams, originalSql, warnings
Fields inherited from interface org.apache.drill.exec.planner.sql.parser.impl.DrillParserImplConstants
A, ABS, ABSENT, ABSOLUTE, ACTION, ADA, ADD, ADMIN, AFTER, ALIAS, ALIASES, ALL, ALLOCATE, ALLOW, ALTER, ALWAYS, ANALYZE, AND, ANY, APPLY, APPROX_NUMERIC_LITERAL, ARE, ARRAY, ARRAY_AGG, ARRAY_CONCAT_AGG, ARRAY_MAX_CARDINALITY, AS, ASC, ASENSITIVE, ASSERTION, ASSIGNMENT, ASYMMETRIC, AT, ATOMIC, ATTRIBUTE, ATTRIBUTES, AUTHORIZATION, AVG, BACK_QUOTED_IDENTIFIER, BEFORE, BEGIN, BEGIN_FRAME, BEGIN_PARTITION, BEL, BERNOULLI, BETWEEN, BIG_QUERY_BACK_QUOTED_IDENTIFIER, BIG_QUERY_DOUBLE_QUOTED_STRING, BIG_QUERY_QUOTED_STRING, BIGINT, BINARY, BINARY_STRING_LITERAL, BIT, BLOB, BOOLEAN, BOTH, BQHID, BQID, BRACKET_QUOTED_IDENTIFIER, BREADTH, BTID, BY, C, C_STYLE_ESCAPED_STRING_LITERAL, CALL, CALLED, CARDINALITY, CARET, CASCADE, CASCADED, CASE, CAST, CATALOG, CATALOG_NAME, CEIL, CEILING, CENTURY, CHAIN, CHAR, CHAR_LENGTH, CHARACTER, CHARACTER_LENGTH, CHARACTER_SET_CATALOG, CHARACTER_SET_NAME, CHARACTER_SET_SCHEMA, CHARACTERISTICS, CHARACTERS, CHARSETNAME, CHECK, CLASS_ORIGIN, CLASSIFIER, CLOB, CLOSE, COALESCE, COBOL, COLLATE, COLLATION, COLLATION_CATALOG, COLLATION_ID, COLLATION_NAME, COLLATION_SCHEMA, COLLECT, COLON, COLUMN, COLUMN_NAME, COLUMNS, COMMA, COMMAND_FUNCTION, COMMAND_FUNCTION_CODE, COMMENT_END, COMMIT, COMMITTED, COMPUTE, CONCAT, CONDITION, CONDITION_NUMBER, CONDITIONAL, CONNECT, CONNECTION, CONNECTION_NAME, CONSTRAINT, CONSTRAINT_CATALOG, CONSTRAINT_NAME, CONSTRAINT_SCHEMA, CONSTRAINTS, CONSTRUCTOR, CONTAINS, CONTINUE, CONVERT, CORR, CORRESPONDING, COUNT, COVAR_POP, COVAR_SAMP, CREATE, CROSS, CUBE, CUME_DIST, CURRENT, CURRENT_CATALOG, CURRENT_DATE, CURRENT_DEFAULT_TRANSFORM_GROUP, CURRENT_PATH, CURRENT_ROLE, CURRENT_ROW, CURRENT_SCHEMA, CURRENT_TIME, CURRENT_TIMESTAMP, CURRENT_TRANSFORM_GROUP_FOR_TYPE, CURRENT_USER, CURSOR, CURSOR_NAME, CYCLE, DATA, DATABASE, DATABASES, DATE, DATE_TRUNC, DATETIME, DATETIME_INTERVAL_CODE, DATETIME_INTERVAL_PRECISION, DAY, DAYS, DEALLOCATE, DEC, DECADE, DECIMAL, DECIMAL_NUMERIC_LITERAL, DECLARE, DEFAULT, DEFAULT_, DEFAULTS, DEFERRABLE, DEFERRED, DEFINE, DEFINED, DEFINER, DEGREE, DELETE, DENSE_RANK, DEPTH, DEREF, DERIVED, DESC, DESCRIBE, DESCRIPTION, DESCRIPTOR, DETERMINISTIC, DIAGNOSTICS, DIGIT, DISALLOW, DISCONNECT, DISPATCH, DISTINCT, DOLLAR, DOMAIN, DOT, DOT_FORMAT, DOUBLE, DOUBLE_PERIOD, DOW, DOY, DQID, DROP, DYNAMIC, DYNAMIC_FUNCTION, DYNAMIC_FUNCTION_CODE, EACH, ELEMENT, ELSE, EMPTY, ENCODING, END, END_EXEC, END_FRAME, END_PARTITION, EOF, EPOCH, EQ, EQUALS, ERROR, ESCAPE, ESTIMATE, EVERY, EXCEPT, EXCEPTION, EXCLUDE, EXCLUDING, EXEC, EXECUTE, EXISTS, EXP, EXPLAIN, EXPONENT, EXTEND, EXTERNAL, EXTRACT, FALSE, FETCH, FILES, FILTER, FINAL, FIRST, FIRST_VALUE, FLOAT, FLOOR, FOLLOWING, FOR, FOREIGN, FORMAL_COMMENT, FORMAT, FORTRAN, FOUND, FRAC_SECOND, FRAME_ROW, FREE, FRIDAY, FROM, FULL, FUNCTION, FUSION, G, GE, GENERAL, GENERATED, GEOMETRY, GET, GLOBAL, GO, GOTO, GRANT, GRANTED, GROUP, GROUP_CONCAT, GROUPING, GROUPS, GT, HAVING, HEXDIGIT, HIERARCHY, HINT_BEG, HOLD, HOOK, HOP, HOUR, HOURS, HYPHENATED_IDENTIFIER, IDENTIFIER, IDENTITY, IF, IGNORE, ILIKE, IMMEDIATE, IMMEDIATELY, IMPLEMENTATION, IMPORT, IN, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, INCLUDE, INCLUDING, INCREMENT, INDICATOR, INITIAL, INITIALLY, INNER, INOUT, INPUT, INSENSITIVE, INSERT, INSTANCE, INSTANTIABLE, INT, INTEGER, INTERSECT, INTERSECTION, INTERVAL, INTO, INVOKER, IS, ISODOW, ISOLATION, ISOYEAR, JAR, JAVA, JOIN, JSON, JSON_ARRAY, JSON_ARRAYAGG, JSON_EXISTS, JSON_OBJECT, JSON_OBJECTAGG, JSON_QUERY, JSON_VALUE, K, KEY, KEY_MEMBER, KEY_TYPE, LABEL, LAG, LANGUAGE, LARGE, LAST, LAST_VALUE, LATERAL, LBRACE, LBRACE_D, LBRACE_FN, LBRACE_T, LBRACE_TS, LBRACKET, LE, LEAD, LEADING, LEFT, LENGTH, LETTER, LEVEL, LIBRARY, LIKE, LIKE_REGEX, LIMIT, LN, LOCAL, LOCALTIME, LOCALTIMESTAMP, LOCATOR, LOWER, LPAREN, LT, M, MAP, MATCH, MATCH_NUMBER, MATCH_RECOGNIZE, MATCHED, MATCHES, MAX, MAXVALUE, MEASURES, MEMBER, MERGE, MESSAGE_LENGTH, MESSAGE_OCTET_LENGTH, MESSAGE_TEXT, METADATA, METHOD, MICROSECOND, MILLENNIUM, MILLISECOND, MIN, MINUS, MINUTE, MINUTES, MINVALUE, MOD, MODIFIES, MODULE, MONDAY, MONTH, MONTHS, MORE_, MULTI_LINE_COMMENT, MULTISET, MUMPS, NAME, NAMED_ARGUMENT_ASSIGNMENT, NAMES, NANOSECOND, NATIONAL, NATURAL, NCHAR, NCLOB, NE, NE2, NESTING, NEW, NEXT, NO, NONE, NORMALIZE, NORMALIZED, NOT, NTH_VALUE, NTILE, NULL, NULLABLE, NULLIF, NULLS, NUMBER, NUMERIC, OBJECT, OCCURRENCES_REGEX, OCTET_LENGTH, OCTETS, OF, OFFSET, OLD, OMIT, ON, ONE, ONLY, OPEN, OPTION, OPTIONS, OR, ORDER, ORDERING, ORDINALITY, OTHERS, OUT, OUTER, OUTPUT, OVER, OVERLAPS, OVERLAY, OVERRIDING, PAD, PARAMETER, PARAMETER_MODE, PARAMETER_NAME, PARAMETER_ORDINAL_POSITION, PARAMETER_SPECIFIC_CATALOG, PARAMETER_SPECIFIC_NAME, PARAMETER_SPECIFIC_SCHEMA, PARTIAL, PARTITION, PASCAL, PASSING, PASSTHROUGH, PAST, PATH, PATTERN, PER, PERCENT, PERCENT_RANK, PERCENT_REMAINDER, PERCENTILE_CONT, PERCENTILE_DISC, PERIOD, PERMUTE, PIVOT, PLACING, PLAN, PLI, PLUS, PORTION, POSITION, POSITION_REGEX, POWER, PRECEDES, PRECEDING, PRECISION, PREFIXED_STRING_LITERAL, PREPARE, PRESERVE, PREV, PRIMARY, PRIOR, PRIVILEGES, PROCEDURE, PROPERTIES, PUBLIC, QUALIFY, QUARTER, QUARTERS, QUOTE, QUOTED_IDENTIFIER, QUOTED_STRING, RANGE, RANK, RBRACE, RBRACKET, READ, READS, REAL, RECURSIVE, REF, REFERENCES, REFERENCING, REFRESH, REGR_AVGX, REGR_AVGY, REGR_COUNT, REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY, RELATIVE, RELEASE, REMOVE, REPEATABLE, REPLACE, RESET, RESPECT, RESTART, RESTRICT, RESULT, RETURN, RETURNED_CARDINALITY, RETURNED_LENGTH, RETURNED_OCTET_LENGTH, RETURNED_SQLSTATE, RETURNING, RETURNS, REVOKE, RIGHT, RLIKE, ROLE, ROLLBACK, ROLLUP, ROUTINE, ROUTINE_CATALOG, ROUTINE_NAME, ROUTINE_SCHEMA, ROW, ROW_COUNT, ROW_NUMBER, ROWS, RPAREN, RUNNING, SAMPLE, SATURDAY, SAVEPOINT, SCALAR, SCALE, SCH, SCH_LOAD, SCH_NUM, SCH_PAREN_STRING, SCHEMA, SCHEMA_NAME, SCHEMAS, SCOPE, SCOPE_CATALOGS, SCOPE_NAME, SCOPE_SCHEMA, SCROLL, SEARCH, SECOND, SECONDS, SECTION, SECURITY, SEEK, SELECT, SELF, SEMICOLON, SENSITIVE, SEPARATOR, SEQUENCE, SERIALIZABLE, SERVER, SERVER_NAME, SESSION, SESSION_USER, SET, SET_MINUS, SETS, SHOW, SIMILAR, SIMPLE, SINGLE_LINE_COMMENT, SIZE, SKIP_, SLASH, SMALLINT, SOME, SOURCE, SPACE, SPECIFIC, SPECIFIC_NAME, SPECIFICTYPE, SQL, SQL_BIGINT, SQL_BINARY, SQL_BIT, SQL_BLOB, SQL_BOOLEAN, SQL_CHAR, SQL_CLOB, SQL_DATE, SQL_DECIMAL, SQL_DOUBLE, SQL_FLOAT, SQL_INTEGER, SQL_INTERVAL_DAY, SQL_INTERVAL_DAY_TO_HOUR, SQL_INTERVAL_DAY_TO_MINUTE, SQL_INTERVAL_DAY_TO_SECOND, SQL_INTERVAL_HOUR, SQL_INTERVAL_HOUR_TO_MINUTE, SQL_INTERVAL_HOUR_TO_SECOND, SQL_INTERVAL_MINUTE, SQL_INTERVAL_MINUTE_TO_SECOND, SQL_INTERVAL_MONTH, SQL_INTERVAL_SECOND, SQL_INTERVAL_YEAR, SQL_INTERVAL_YEAR_TO_MONTH, SQL_LONGVARBINARY, SQL_LONGVARCHAR, SQL_LONGVARNCHAR, SQL_NCHAR, SQL_NCLOB, SQL_NUMERIC, SQL_NVARCHAR, SQL_REAL, SQL_SMALLINT, SQL_TIME, SQL_TIMESTAMP, SQL_TINYINT, SQL_TSI_DAY, SQL_TSI_FRAC_SECOND, SQL_TSI_HOUR, SQL_TSI_MICROSECOND, SQL_TSI_MINUTE, SQL_TSI_MONTH, SQL_TSI_QUARTER, SQL_TSI_SECOND, SQL_TSI_WEEK, SQL_TSI_YEAR, SQL_VARBINARY, SQL_VARCHAR, SQLEXCEPTION, SQLSTATE, SQLWARNING, SQRT, STAR, START, STATE, STATEMENT, STATIC, STATISTICS, STDDEV_POP, STDDEV_SAMP, STORAGE, STREAM, STRING_AGG, STRUCTURE, STYLE, SUBCLASS_ORIGIN, SUBMULTISET, SUBSET, SUBSTITUTE, SUBSTRING, SUBSTRING_REGEX, SUCCEEDS, SUM, SUNDAY, SYMMETRIC, SYSTEM, SYSTEM_TIME, SYSTEM_USER, TABLE, TABLE_NAME, TABLES, TABLESAMPLE, TEMPORARY, THEN, THURSDAY, TIES, TIME, TIME_DIFF, TIME_TRUNC, TIMESTAMP, TIMESTAMP_DIFF, TIMESTAMP_TRUNC, TIMESTAMPADD, TIMESTAMPDIFF, TIMEZONE_HOUR, TIMEZONE_MINUTE, TINYINT, TO, tokenImage, TOP_LEVEL_COUNT, TRAILING, TRANSACTION, TRANSACTIONS_ACTIVE, TRANSACTIONS_COMMITTED, TRANSACTIONS_ROLLED_BACK, TRANSFORM, TRANSFORMS, TRANSLATE, TRANSLATE_REGEX, TRANSLATION, TREAT, TRIGGER, TRIGGER_CATALOG, TRIGGER_NAME, TRIGGER_SCHEMA, TRIM, TRIM_ARRAY, TRUE, TRUNCATE, TUESDAY, TUMBLE, TYPE, UESCAPE, UNBOUNDED, UNCOMMITTED, UNCONDITIONAL, UNDER, UNICODE_QUOTED_ESCAPE_CHAR, UNICODE_QUOTED_IDENTIFIER, UNICODE_STRING_LITERAL, UNION, UNIQUE, UNKNOWN, UNNAMED, UNNEST, UNPIVOT, UNSIGNED_INTEGER_LITERAL, UPDATE, UPPER, UPSERT, USAGE, USE, USER, USER_DEFINED_TYPE_CATALOG, USER_DEFINED_TYPE_CODE, USER_DEFINED_TYPE_NAME, USER_DEFINED_TYPE_SCHEMA, USING, UTF16, UTF32, UTF8, VALUE, VALUE_OF, VALUES, VAR_POP, VAR_SAMP, VARBINARY, VARCHAR, VARYING, VERSION, VERSIONING, VERTICAL_BAR, VIEW, WEDNESDAY, WEEK, WEEKS, WHEN, WHENEVER, WHERE, WHITESPACE, WIDTH_BUCKET, WINDOW, WITH, WITHIN, WITHOUT, WORK, WRAPPER, WRITE, XML, YEAR, YEARS, ZONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.calcite.sql.util.SqlVisitor<org.apache.calcite.sql.SqlNode>
org.apache.calcite.sql.SqlNode
org.apache.calcite.sql.SqlNode
Methods inherited from class org.apache.drill.exec.planner.sql.parser.impl.DrillParserImpl
AddArg, AddArg0, AddColumnType, AddCompoundIdentifierType, AddCompoundIdentifierTypeCommaList, AddExpression, AddExpression2b, AddExpressions, AddFieldNameType, AddFieldNameTypes, AddGroupingElement, AddHint, AddIdentifierSegment, AddKeyValueOption, AddMeasureColumn, AddOptionValue, AddOrderItem, AddPivotAgg, AddPivotValue, addProperty, AddRowConstructor, AddSelectItem, AddSetOpQuery, AddSetOpQueryOrExpr, AddSimpleIdentifiers, AddSubsetDefinition, AddTableIdentifierSegment, AddUnpivotValue, AddWindowSpec, AddWithItem, AllOrDistinct, ArrayConstructor, ArrayLiteral, AtomicRowExpression, BinaryMultisetOperator, BinaryQueryOperator, BinaryRowOperator, BuiltinFunctionCall, CaseExpression, CharacterTypeName, CollateClause, CollectionsTypeName, comp, CompoundIdentifier, CompoundTableIdentifier, ContextVariable, CreateSetSemanticsTableIfNeeded, CursorExpression, DataType, DateTimeConstructorCall, DateTimeLiteral, DateTimeTypeName, DateTruncFunctionCall, Day, Default, disable_tracing, DrillSqlResetOption, DrillSqlSetOption, DynamicParam, enable_tracing, ExplainDepth, ExplainDetailLevel, ExplicitTable, Expression, Expression2, Expression3, ExpressionCommaList, ExprOrJoinOrOrderedQuery, ExtendedTableRef, ExtendList, ExtendTable, FetchClause, FloorCeilOptions, FromClause, FunctionName, FunctionParameterList, generateParseException, getMetadata, getNextToken, getPos, getToken, GroupBy, GroupByWindowingCall, GroupingElementList, Having, Hour, Identifier, IntervalLiteral, IntervalLiteralOrExpression, IntervalQualifier, IntervalQualifierStart, IntLiteral, JdbcFunctionCall, JdbcOdbcDataType, JdbcOdbcDataTypeName, Join, JoinTable, JoinType, JsonApiCommonSyntax, JsonArrayAggFunctionCall, JsonArrayAggOrderByClause, JsonArrayFunctionCall, JsonConstructorNullClause, JsonExistsErrorBehavior, JsonExistsFunctionCall, JsonInputClause, JsonName, JsonNameAndValue, JsonObjectAggFunctionCall, JsonObjectFunctionCall, JsonOutputClause, JsonPathSpec, JsonQueryEmptyOrErrorBehavior, JsonQueryFunctionCall, JsonQueryWrapperBehavior, JsonRepresentation, JsonReturningClause, JsonValueEmptyOrErrorBehavior, JsonValueFunctionCall, LeafQuery, LeafQueryOrExpr, LimitClause, Literal, LiteralOrIntervalExpression, MapConstructor, MatchRecognize, MatchRecognizeCallWithModifier, MatchRecognizeFunctionCall, MatchRecognizeNavigationLogical, MatchRecognizeNavigationPhysical, MeasureColumnCommaList, Minute, Month, MultisetConstructor, NamedCall, NamedFunctionCall, NamedRoutineCall, Natural, NewSpecification, NonIntervalLiteral, NonReservedJdbcFunctionName, NonReservedKeyWord, NonReservedKeyWord0of3, NonReservedKeyWord1of3, NonReservedKeyWord2of3, normalizeException, NotNullOpt, NullableOptDefaultFalse, NullableOptDefaultTrue, nullTreatment, NullTreatment, NumericLiteral, OffsetClause, OrderBy, OrderByLimitOpt, OrderByOfSetSemanticsTable, OrderedQueryOrExpr, Over, ParenthesizedCompoundIdentifierList, ParenthesizedExpression, ParenthesizedKeyValueOptionCommaList, ParenthesizedLiteralOptionCommaList, ParenthesizedQueryOrCommaList, ParenthesizedQueryOrCommaListWithDefault, ParenthesizedSimpleIdentifierList, parseArray, ParseOptionalFieldList, ParseRequiredFieldList, ParseSchema, parseSqlStmtList, PartitionedByAndOrderBy, PartitionedQueryOrQueryOrExpr, PatternDefinition, PatternDefinitionCommaList, PatternExpression, PatternFactor, PatternPrimary, PatternTerm, PeriodConstructor, periodOperator, Pivot, PostfixRowOperator, PrecisionOpt, PrefixRowOperator, Qualify, Quarter, Query, QueryOrExpr, ReInit, ReInit, ReInit, ReInit, ReservedFunctionName, RowConstructor, RowExpressionExtension, RowTypeName, Scope, Second, SelectExpression, SequenceExpression, setConformance, setIdentifierMaxLength, setQuotedCasing, setTabSize, setUnquotedCasing, SimpleIdentifier, SimpleIdentifierFromStringLiteral, SimpleIdentifierOrList, SimpleStringLiteral, Snapshot, SpecialLiteral, SqlAlter, SqlAlterSchema, SqlAlterSchemaAdd, SqlAlterSchemaRemove, SqlAnalyzeTable, SqlCreateAlias, SqlCreateFunction, SqlCreateOrReplace, SqlCreateSchema, SqlCreateTable, SqlCreateView, SqlDelete, SqlDescribe, SqlDescribeSchema, SqlDescribeTable, SqlDrop, SqlDropAlias, SqlDropAllAliases, SqlDropFunction, SqlDropSchema, SqlDropTable, SqlDropView, SqlExplain, SqlExpressionEof, SqlInsert, SqlInsertKeywords, SqlMerge, SqlProcedureCall, SqlQueryEof, SqlQueryOrDml, SqlRefreshMetadata, SqlSelect, SqlSelectKeywords, SqlSetOption, SqlShowFiles, SqlShowSchemas, SqlShowTables, SqlStmt, SqlStmtEof, SqlStmtList, SqlTypeName, SqlTypeName1, SqlTypeName2, SqlTypeName3, SqlUpdate, SqlUseSchema, StandardFloorCeilOptions, StringAggFunctionCall, StringLiteral, SubsetDefinitionCommaList, switchTo, TableConstructor, TableFunctionCall, TableHints, TableOverOpt, TableParam, TableRef, TableRef1, TableRef2, TableRef3, Tablesample, TimeDiffFunctionCall, TimestampAddFunctionCall, TimestampDiff3FunctionCall, TimestampDiffFunctionCall, TimestampTruncFunctionCall, TimeTruncFunctionCall, TimeUnit, TimeUnitOrName, TimeZoneOpt, TypeName, Unpivot, UnquantifiedFunctionParameterList, UnsignedIntLiteral, UnsignedNumericLiteral, UnsignedNumericLiteralOrParam, UnusedExtension, Week, weekdayName, WhenMatchedClause, WhenNotMatchedClause, Where, Window, WindowRange, WindowSpecification, withinDistinct, withinGroup, WithList, Year
Methods inherited from class org.apache.calcite.sql.parser.SqlAbstractParserImpl
createCall, createCall, getOriginalSql, getSql92ReservedWords, setOriginalSql, setTimeUnitCodes
-
Field Details
-
FACTORY
public static final org.apache.calcite.sql.parser.SqlParserImplFactory FACTORYSqlParserImplFactory
implementation for creating parser.
-
-
Constructor Details
-
DrillParserWithCompoundIdConverter
-
-
Method Details
-
createConverter
protected org.apache.calcite.sql.util.SqlVisitor<org.apache.calcite.sql.SqlNode> createConverter() -
parseSqlExpressionEof
- Overrides:
parseSqlExpressionEof
in classDrillParserImpl
- Throws:
Exception
-
parseSqlStmtEof
- Overrides:
parseSqlStmtEof
in classDrillParserImpl
- Throws:
Exception
-