public class FlinkHiveSqlParserImpl extends org.apache.calcite.sql.parser.SqlAbstractParserImpl implements FlinkHiveSqlParserImplConstants
The public wrapper for this parser is SqlParser
.
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
Modifier and Type | Field and Description |
---|---|
static org.apache.calcite.sql.parser.SqlParserImplFactory |
FACTORY
SqlParserImplFactory implementation for creating parser. |
Token |
jj_nt |
boolean |
lookingAhead |
Token |
token |
FlinkHiveSqlParserImplTokenManager |
token_source |
nDynamicParams, originalSql, warnings
A, ABS, ABSENT, ABSOLUTE, ACTION, ADA, ADD, ADMIN, AFTER, ALL, ALLOCATE, ALLOW, ALTER, ALWAYS, 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, BYTES, C, CALL, CALLED, CARDINALITY, CARET, CASCADE, CASCADED, CASE, CAST, CATALOG, CATALOG_NAME, CATALOGS, CEIL, CEILING, CENTURY, CHAIN, CHANGE, 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, COLLECTION, COLON, COLUMN, COLUMN_NAME, COLUMNS, COMMA, COMMAND_FUNCTION, COMMAND_FUNCTION_CODE, COMMENT, COMMENT_END, COMMIT, COMMITTED, 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, DATETIME_INTERVAL_CODE, DATETIME_INTERVAL_PRECISION, DAY, DAYS, DBPROPERTIES, DEALLOCATE, DEC, DECADE, DECIMAL, DECIMAL_NUMERIC_LITERAL, DECLARE, DEFAULT, DEFAULT_, DEFAULTS, DEFERRABLE, DEFERRED, DEFINE, DEFINED, DEFINER, DEGREE, DELETE, DELIMITED, DENSE_RANK, DEPTH, DEREF, DERIVED, DESC, DESCRIBE, DESCRIPTION, DESCRIPTOR, DETERMINISTIC, DIAGNOSTICS, DIGIT, DISABLE, 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, ENABLE, ENCODING, END, END_EXEC, END_FRAME, END_PARTITION, EOF, EPOCH, EQ, EQUALS, ERROR, ESCAPE, ESCAPED, EVERY, EXCEPT, EXCEPTION, EXCLUDE, EXCLUDING, EXEC, EXECUTE, EXISTS, EXP, EXPLAIN, EXPONENT, EXTEND, EXTENDED, EXTERNAL, EXTRACT, FALSE, FETCH, FIELDS, FILEFORMAT, FILTER, FINAL, FIRST, FIRST_VALUE, FLOAT, FLOOR, FOLLOWING, FOR, FOREIGN, FORMAL_COMMENT, FORMAT, FORMATTED, FORTRAN, FOUND, FRAC_SECOND, FRAME_ROW, FREE, FROM, FULL, FUNCTION, FUNCTIONS, 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, INPUTFORMAT, INSENSITIVE, INSERT, INSTANCE, INSTANTIABLE, INT, INTEGER, INTERSECT, INTERSECTION, INTERVAL, INTO, INVOKER, IS, ISODOW, ISOLATION, ISOYEAR, ITEMS, JAR, JARS, JAVA, JOIN, JSON, JSON_ARRAY, JSON_ARRAYAGG, JSON_EXISTS, JSON_OBJECT, JSON_OBJECTAGG, JSON_QUERY, JSON_VALUE, K, KEY, KEY_MEMBER, KEY_TYPE, KEYS, 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, LINES, LN, LOAD, LOCAL, LOCALTIME, LOCALTIMESTAMP, LOCATION, 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, METHOD, MICROSECOND, MILLENNIUM, MILLISECOND, MIN, MINUS, MINUTE, MINUTES, MINVALUE, MOD, MODIFIES, MODULE, MODULES, 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, NORELY, NORMALIZE, NORMALIZED, NOT, NOVALIDATE, 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, OUTPUTFORMAT, OVER, OVERLAPS, OVERLAY, OVERRIDING, OVERWRITE, OWNER, PAD, PARAMETER, PARAMETER_MODE, PARAMETER_NAME, PARAMETER_ORDINAL_POSITION, PARAMETER_SPECIFIC_CATALOG, PARAMETER_SPECIFIC_NAME, PARAMETER_SPECIFIC_SCHEMA, PARTIAL, PARTITION, PARTITIONED, PARTITIONS, 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, PUBLIC, QUARTER, QUOTE, QUOTED_IDENTIFIER, QUOTED_STRING, RANGE, RANK, RAW, RBRACE, RBRACKET, READ, READS, REAL, RECURSIVE, REF, REFERENCES, REFERENCING, REGR_AVGX, REGR_AVGY, REGR_COUNT, REGR_INTERCEPT, REGR_R2, REGR_SLOPE, REGR_SXX, REGR_SXY, REGR_SYY, RELATIVE, RELEASE, RELY, REMOVE, RENAME, 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, SAVEPOINT, SCALA, SCALAR, SCALE, SCHEMA, SCHEMA_NAME, SCOPE, SCOPE_CATALOGS, SCOPE_NAME, SCOPE_SCHEMA, SCROLL, SEARCH, SECOND, SECONDS, SECTION, SECURITY, SEEK, SELECT, SELF, SEMICOLON, SENSITIVE, SEPARATOR, SEQUENCE, SERDE, SERDEPROPERTIES, 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, STDDEV_POP, STDDEV_SAMP, STORED, STREAM, STRING, STRING_AGG, STRUCT, STRUCTURE, STYLE, SUBCLASS_ORIGIN, SUBMULTISET, SUBSET, SUBSTITUTE, SUBSTRING, SUBSTRING_REGEX, SUCCEEDS, SUM, SYMMETRIC, SYSTEM, SYSTEM_TIME, SYSTEM_USER, TABLE, TABLE_NAME, TABLES, TABLESAMPLE, TBLPROPERTIES, TEMPORARY, TERMINATED, THEN, TIES, TIME, TIMESTAMP, 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, TUMBLE, TYPE, UESCAPE, UNBOUNDED, UNCOMMITTED, UNCONDITIONAL, UNDER, UNICODE_QUOTED_ESCAPE_CHAR, UNICODE_QUOTED_IDENTIFIER, UNICODE_STRING_LITERAL, UNION, UNIQUE, UNKNOWN, UNLOAD, 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, VALIDATE, VALUE, VALUE_OF, VALUES, VAR_POP, VAR_SAMP, VARBINARY, VARCHAR, VARYING, VERSION, VERSIONING, VERTICAL_BAR, VIEW, WEEK, WHEN, WHENEVER, WHERE, WHITESPACE, WIDTH_BUCKET, WINDOW, WITH, WITHIN, WITHOUT, WORK, WRAPPER, WRITE, XML, YEAR, YEARS, ZONE
Constructor and Description |
---|
FlinkHiveSqlParserImpl(FlinkHiveSqlParserImplTokenManager tm) |
FlinkHiveSqlParserImpl(InputStream stream) |
FlinkHiveSqlParserImpl(InputStream stream,
String encoding) |
FlinkHiveSqlParserImpl(Reader stream) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.sql.SqlLiteral |
AllOrDistinct() |
void |
Arg(List list,
org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) |
void |
Arg0(List list,
org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) |
org.apache.calcite.sql.SqlNode |
ArrayConstructor()
Parses an ARRAY constructor
|
org.apache.calcite.sql.SqlNode |
AtomicRowExpression()
Parses an atomic row expression.
|
org.apache.calcite.sql.SqlBinaryOperator |
BinaryMultisetOperator()
Parses a binary multiset operator.
|
org.apache.calcite.sql.SqlBinaryOperator |
BinaryQueryOperator()
Parses a binary query operator like UNION.
|
org.apache.calcite.sql.SqlBinaryOperator |
BinaryRowOperator()
Parses a binary row operator like AND.
|
org.apache.calcite.sql.SqlNode |
BuiltinFunctionCall()
Parses a call to a builtin function with special syntax.
|
org.apache.calcite.sql.SqlNode |
CaseExpression() |
org.apache.calcite.sql.SqlTypeNameSpec |
CharacterTypeName(org.apache.calcite.sql.parser.Span s)
Parse character types: char, varchar.
|
org.apache.calcite.sql.SqlCollation |
CollateClause()
Parses a COLLATE clause
|
org.apache.calcite.sql.SqlTypeNameSpec |
CollectionsTypeName(org.apache.calcite.sql.SqlTypeNameSpec elementTypeName)
Parse a collection type name, the input element type name may
also be a collection type.
|
void |
ColumnType(List<org.apache.calcite.sql.SqlNode> list) |
void |
CommaSeparatedSqlHints(List<org.apache.calcite.sql.SqlNode> hints) |
org.apache.calcite.sql.SqlKind |
comp()
Parses a comparison operator inside a SOME / ALL predicate.
|
org.apache.calcite.sql.SqlIdentifier |
CompoundIdentifier()
Parses a compound identifier.
|
void |
CompoundIdentifierType(List<org.apache.calcite.sql.SqlNode> list,
List<org.apache.calcite.sql.SqlNode> extendList)
Parses a compound identifier with optional type.
|
void |
CompoundIdentifierTypeCommaList(List<org.apache.calcite.sql.SqlNode> list,
List<org.apache.calcite.sql.SqlNode> extendList)
Parses a comma-separated list of compound identifiers.
|
org.apache.calcite.sql.SqlIdentifier |
CompoundTableIdentifier()
Parses a compound identifier in the FROM clause.
|
org.apache.calcite.sql.SqlIdentifier |
ConstraintName() |
SqlHiveConstraintTrait |
ConstraintTrait() |
org.apache.calcite.sql.SqlIdentifier |
ContextVariable() |
org.apache.calcite.sql.SqlCharStringLiteral |
createStringLiteral(String s,
org.apache.calcite.sql.parser.SqlParserPos pos) |
org.apache.calcite.sql.SqlNode |
CursorExpression(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses a CURSOR(query) expression.
|
org.apache.calcite.sql.SqlTypeNameSpec |
CustomizedCollectionsTypeName() |
org.apache.calcite.sql.SqlDataTypeSpec |
DataType() |
org.apache.calcite.sql.SqlLiteral |
DateTimeLiteral()
Parses a date/time literal.
|
org.apache.calcite.sql.SqlTypeNameSpec |
DateTimeTypeName()
Parse datetime types: date, time, timestamp.
|
org.apache.calcite.avatica.util.TimeUnit |
Day() |
org.apache.calcite.sql.SqlNode |
Default() |
void |
disable_tracing() |
org.apache.calcite.sql.SqlDynamicParam |
DynamicParam()
Parses a dynamic parameter marker.
|
void |
enable_tracing() |
void |
EnsureAlterTableOnly(org.apache.calcite.sql.SqlNodeList partitionSpec,
String feature) |
org.apache.calcite.sql.SqlExplain.Depth |
ExplainDepth()
Parses WITH TYPE | WITH IMPLEMENTATION | WITHOUT IMPLEMENTATION modifier for
EXPLAIN PLAN.
|
org.apache.calcite.sql.SqlExplainLevel |
ExplainDetailLevel()
Parses INCLUDING ALL ATTRIBUTES modifier for EXPLAIN PLAN.
|
org.apache.calcite.sql.SqlNode |
ExplicitTable(org.apache.calcite.sql.parser.SqlParserPos pos)
Parses an explicit TABLE t reference.
|
org.apache.calcite.sql.SqlNode |
Expression(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses a row expression or a parenthesized expression of any kind.
|
List<Object> |
Expression2(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses a binary row expression, or a parenthesized expression of any
kind.
|
void |
Expression2b(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext,
List<Object> list) |
org.apache.calcite.sql.SqlNode |
Expression3(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses a unary row expression, or a parenthesized expression of any
kind.
|
org.apache.calcite.sql.SqlNodeList |
ExpressionCommaList(org.apache.calcite.sql.parser.Span s,
org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses a list of expressions separated by commas.
|
void |
ExpressionCommaList2(List<org.apache.calcite.sql.SqlNode> list,
org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses a list of expressions separated by commas,
appending expressions to a given list.
|
org.apache.calcite.sql.SqlTypeNameSpec |
ExtendedCollectionsTypeName(org.apache.calcite.sql.SqlTypeNameSpec elementTypeName,
boolean elementNullable) |
org.apache.calcite.sql.SqlDataTypeSpec |
ExtendedDataType()
Different with
DataType() , we support a [ NULL | NOT NULL ] suffix syntax for both the
collection element data type and the data type itself. |
void |
ExtendedFieldNameTypeCommaList(List<org.apache.calcite.sql.SqlIdentifier> fieldNames,
List<org.apache.calcite.sql.SqlDataTypeSpec> fieldTypes,
List<org.apache.calcite.sql.SqlCharStringLiteral> comments) |
org.apache.calcite.sql.SqlTypeNameSpec |
ExtendedSqlBasicTypeName()
A sql type name extended basic data type, it has a counterpart basic
sql type name but always represents as a special alias compared with the standard name.
|
org.apache.calcite.sql.SqlTypeNameSpec |
ExtendedSqlRowTypeName() |
org.apache.calcite.sql.SqlNode |
ExtendedTableRef()
Allows parser to be extended with new types of table references.
|
org.apache.calcite.sql.SqlNodeList |
ExtendList() |
void |
FieldNameTypeCommaList(List<org.apache.calcite.sql.SqlIdentifier> fieldNames,
List<org.apache.calcite.sql.SqlDataTypeSpec> fieldTypes)
Parse a "name1 type1 [NULL | NOT NULL], name2 type2 [NULL | NOT NULL] ..." list,
the field type default is not nullable.
|
org.apache.calcite.sql.SqlNode |
FloorCeilOptions(org.apache.calcite.sql.parser.Span s,
boolean floorFlag) |
org.apache.calcite.sql.SqlNode |
FromClause()
Parses the FROM clause for a SELECT.
|
org.apache.calcite.sql.SqlIdentifier |
FunctionName()
Parses the name of a function (either a compound identifier or
a reserved word which can be used as a function name).
|
List |
FunctionParameterList(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses function parameter lists including DISTINCT keyword recognition,
DEFAULT, and named argument assignment.
|
ParseException |
generateParseException() |
org.apache.calcite.sql.parser.SqlAbstractParserImpl.Metadata |
getMetadata() |
Token |
getNextToken() |
protected org.apache.calcite.sql.parser.SqlParserPos |
getPos() |
Token |
getToken(int index) |
org.apache.calcite.sql.SqlNodeList |
GroupByOpt()
Parses the optional GROUP BY clause for SELECT.
|
org.apache.calcite.sql.SqlCall |
GroupByWindowingCall()
Parses a call to a grouping function inside the GROUP BY clause,
for example
TUMBLE(rowtime, INTERVAL '1' MINUTE) . |
org.apache.calcite.sql.SqlNode |
GroupingElement() |
List<org.apache.calcite.sql.SqlNode> |
GroupingElementList() |
org.apache.calcite.sql.SqlNode |
HavingOpt()
Parses the optional HAVING clause for SELECT.
|
org.apache.calcite.avatica.util.TimeUnit |
Hour() |
String |
Identifier()
Parses a simple identifier as a String.
|
void |
IdentifierSegment(List<String> names,
List<org.apache.calcite.sql.parser.SqlParserPos> positions)
Parses one segment of an identifier that may be composite.
|
org.apache.calcite.sql.SqlLiteral |
IntervalLiteral()
Parses an interval literal.
|
org.apache.calcite.sql.SqlNode |
IntervalLiteralOrExpression()
Parses an interval literal (e.g.
|
org.apache.calcite.sql.SqlIntervalQualifier |
IntervalQualifier() |
org.apache.calcite.sql.SqlIntervalQualifier |
IntervalQualifierStart()
Interval qualifier without 'TO unit'.
|
int |
IntLiteral() |
org.apache.calcite.sql.SqlNode |
JdbcFunctionCall()
Parses a function call expression with JDBC syntax.
|
org.apache.calcite.sql.SqlLiteral |
JdbcOdbcDataType() |
org.apache.calcite.sql.SqlJdbcDataTypeName |
JdbcOdbcDataTypeName() |
org.apache.calcite.sql.SqlNode |
JoinTable(org.apache.calcite.sql.SqlNode e)
Matches "LEFT JOIN t ON ...", "RIGHT JOIN t USING ...", "JOIN t".
|
org.apache.calcite.sql.SqlLiteral |
JoinType() |
List<org.apache.calcite.sql.SqlNode> |
JsonApiCommonSyntax() |
org.apache.calcite.sql.SqlCall |
JsonArrayAggFunctionCall() |
org.apache.calcite.sql.SqlNodeList |
JsonArrayAggOrderByClause() |
org.apache.calcite.sql.SqlCall |
JsonArrayFunctionCall() |
org.apache.calcite.sql.SqlNode |
JsonConstructorNullClause() |
org.apache.calcite.sql.SqlJsonExistsErrorBehavior |
JsonExistsErrorBehavior() |
org.apache.calcite.sql.SqlCall |
JsonExistsFunctionCall() |
void |
JsonInputClause() |
org.apache.calcite.sql.SqlNode |
JsonName() |
List<org.apache.calcite.sql.SqlNode> |
JsonNameAndValue() |
org.apache.calcite.sql.SqlCall |
JsonObjectAggFunctionCall() |
org.apache.calcite.sql.SqlCall |
JsonObjectFunctionCall() |
org.apache.calcite.sql.SqlDataTypeSpec |
JsonOutputClause() |
org.apache.calcite.sql.SqlNode |
JsonPathSpec() |
List<org.apache.calcite.sql.SqlNode> |
JsonQueryEmptyOrErrorBehavior() |
org.apache.calcite.sql.SqlCall |
JsonQueryFunctionCall() |
org.apache.calcite.sql.SqlNode |
JsonQueryWrapperBehavior() |
org.apache.calcite.sql.SqlJsonEncoding |
JsonRepresentation() |
org.apache.calcite.sql.SqlDataTypeSpec |
JsonReturningClause() |
List<org.apache.calcite.sql.SqlNode> |
JsonValueEmptyOrErrorBehavior() |
org.apache.calcite.sql.SqlCall |
JsonValueFunctionCall() |
void |
KeyValueOption(List<org.apache.calcite.sql.SqlNode> list)
Parses an option with format key=val whose key is a simple identifier or string literal
and value is a string literal.
|
org.apache.calcite.sql.SqlNode |
LeafQuery(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses a leaf in a query expression (SELECT, VALUES or TABLE).
|
org.apache.calcite.sql.SqlNode |
LeafQueryOrExpr(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses either a row expression, a leaf query expression, or
a parenthesized expression of any kind.
|
org.apache.calcite.sql.SqlNode |
Literal()
Parses a literal expression, allowing continued string literals.
|
org.apache.calcite.sql.SqlNode |
LiteralOrIntervalExpression()
Parses a literal or an interval expression.
|
org.apache.calcite.sql.SqlNode |
MapConstructor()
Parses a MAP constructor
|
org.apache.calcite.sql.SqlMatchRecognize |
MatchRecognize(org.apache.calcite.sql.SqlNode tableRef)
Parses a MATCH_RECOGNIZE clause following a table expression.
|
org.apache.calcite.sql.SqlCall |
MatchRecognizeCallWithModifier() |
org.apache.calcite.sql.SqlCall |
MatchRecognizeFunctionCall() |
org.apache.calcite.sql.SqlCall |
MatchRecognizeNavigationLogical() |
org.apache.calcite.sql.SqlCall |
MatchRecognizeNavigationPhysical() |
org.apache.calcite.sql.SqlNode |
MeasureColumn() |
org.apache.calcite.sql.SqlNodeList |
MeasureColumnCommaList(org.apache.calcite.sql.parser.Span s) |
org.apache.calcite.avatica.util.TimeUnit |
Minute() |
org.apache.calcite.avatica.util.TimeUnit |
Month() |
org.apache.calcite.sql.SqlNode |
MultisetConstructor()
Parses a MULTISET constructor
|
org.apache.calcite.sql.SqlCall |
NamedCall() |
org.apache.calcite.sql.SqlNode |
NamedFunctionCall()
Parses a call to a named function (could be a builtin with regular
syntax, or else a UDF).
|
org.apache.calcite.sql.SqlNode |
NamedRoutineCall(org.apache.calcite.sql.SqlFunctionCategory routineType,
org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) |
org.apache.calcite.sql.SqlLiteral |
Natural() |
org.apache.calcite.sql.SqlNode |
NewSpecification()
Parses a NEW UDT(...) expression.
|
org.apache.calcite.sql.SqlNode |
NonIntervalLiteral()
Parses a literal that is not an interval literal.
|
String |
NonReservedJdbcFunctionName()
Parses the name of a JDBC function that is a token but is not reserved.
|
String |
NonReservedKeyWord()
Parses a non-reserved keyword for use as an identifier.
|
void |
NonReservedKeyWord0of3() |
void |
NonReservedKeyWord1of3() |
void |
NonReservedKeyWord2of3() |
org.apache.calcite.sql.parser.SqlParseException |
normalizeException(Throwable ex) |
boolean |
NullableOptDefaultFalse()
Parse a nullable option, default is false.
|
boolean |
NullableOptDefaultTrue()
Parse a nullable option, default is true.
|
org.apache.calcite.util.Pair<org.apache.calcite.sql.parser.SqlParserPos,org.apache.calcite.sql.SqlOperator> |
NullTreatment() |
org.apache.calcite.sql.SqlCall |
nullTreatment(org.apache.calcite.sql.SqlCall arg) |
org.apache.calcite.sql.SqlLiteral |
NumericLiteral()
Parses a numeric literal (can be signed)
|
org.apache.calcite.sql.SqlNode |
OptionValue()
Parses an option value, it's either a string or a numeric.
|
org.apache.calcite.sql.SqlNodeList |
OrderBy(boolean accept)
Parses an ORDER BY clause.
|
org.apache.calcite.sql.SqlNode |
OrderedQueryOrExpr(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses either a row expression or a query expression with an optional
ORDER BY.
|
org.apache.calcite.sql.SqlNode |
OrderItem()
Parses one list item in an ORDER BY clause.
|
org.apache.calcite.util.Pair<org.apache.calcite.sql.SqlNodeList,org.apache.calcite.sql.SqlNodeList> |
ParenthesizedCompoundIdentifierList()
List of compound identifiers in parentheses.
|
org.apache.calcite.sql.SqlNode |
ParenthesizedExpression(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses a parenthesized query or single row expression.
|
org.apache.calcite.sql.SqlNodeList |
ParenthesizedKeyValueOptionCommaList() |
org.apache.calcite.sql.SqlNodeList |
ParenthesizedLiteralOptionCommaList()
Parses a literal list separated by comma.
|
org.apache.calcite.sql.SqlNodeList |
ParenthesizedQueryOrCommaList(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses a parenthesized query or comma-list of row expressions.
|
org.apache.calcite.sql.SqlNodeList |
ParenthesizedQueryOrCommaListWithDefault(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
As ParenthesizedQueryOrCommaList, but allows DEFAULT
in place of any of the expressions.
|
org.apache.calcite.sql.SqlNodeList |
ParenthesizedSimpleIdentifierList()
List of simple identifiers in parentheses.
|
org.apache.calcite.sql.SqlNode |
parseSqlExpressionEof() |
org.apache.calcite.sql.SqlNode |
parseSqlStmtEof() |
org.apache.calcite.sql.SqlNodeList |
parseSqlStmtList() |
void |
PartColumnDef(List<org.apache.calcite.sql.SqlNode> list) |
void |
PartitionSpecCommaList(org.apache.calcite.sql.SqlNodeList allPartKeys,
org.apache.calcite.sql.SqlNodeList staticSpec)
Parses a partition specifications statement that can contain both static and dynamic partitions.
|
org.apache.calcite.sql.SqlNode |
PatternDefinition() |
org.apache.calcite.sql.SqlNodeList |
PatternDefinitionCommaList(org.apache.calcite.sql.parser.Span s) |
org.apache.calcite.sql.SqlNode |
PatternExpression() |
org.apache.calcite.sql.SqlNode |
PatternFactor() |
org.apache.calcite.sql.SqlNode |
PatternPrimary() |
org.apache.calcite.sql.SqlNode |
PatternTerm() |
org.apache.calcite.sql.SqlNode |
PeriodConstructor()
Parses a PERIOD constructor
|
org.apache.calcite.sql.SqlOperator |
periodOperator() |
org.apache.calcite.sql.SqlNode |
Pivot(org.apache.calcite.sql.SqlNode tableRef)
Parses a PIVOT clause following a table expression.
|
void |
PivotAgg(List<org.apache.calcite.sql.SqlNode> list) |
void |
PivotValue(List<org.apache.calcite.sql.SqlNode> list) |
org.apache.calcite.sql.SqlPostfixOperator |
PostfixRowOperator()
Parses a postfix row operator like IS NOT NULL.
|
int |
PrecisionOpt() |
org.apache.calcite.sql.SqlPrefixOperator |
PrefixRowOperator()
Parses a prefix row operator like NOT.
|
org.apache.calcite.sql.SqlNode |
QueryOrExpr(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses either a row expression or a query expression without ORDER BY.
|
void |
RegularColumn(List<org.apache.calcite.sql.SqlNode> list) |
void |
ReInit(FlinkHiveSqlParserImplTokenManager tm) |
void |
ReInit(InputStream stream) |
void |
ReInit(InputStream stream,
String encoding) |
void |
ReInit(Reader stream) |
org.apache.calcite.sql.SqlIdentifier |
ReservedFunctionName()
Parses a reserved word which is used as the name of a function.
|
org.apache.calcite.sql.SqlNode |
RichSqlInsert()
Parses an INSERT statement.
|
org.apache.calcite.sql.SqlNode |
RowConstructor()
Parses a row constructor in the context of a VALUES expression.
|
void |
RowConstructorList(List<org.apache.calcite.sql.SqlNode> list)
Parses one or more rows in a VALUES expression.
|
org.apache.calcite.sql.SqlNode |
RowExpressionExtension()
Parses a row expression extension, it can be either an identifier,
or a call to a named function.
|
org.apache.calcite.sql.SqlTypeNameSpec |
RowTypeName()
Parse Row type with format: Row(name1 type1, name2 type2).
|
String |
Scope() |
org.apache.calcite.avatica.util.TimeUnit |
Second() |
org.apache.calcite.sql.SqlNode |
SelectExpression()
Parses one unaliased expression in a select list.
|
org.apache.calcite.sql.SqlNode |
SelectItem()
Parses one item in a select list.
|
List<org.apache.calcite.sql.SqlNode> |
SelectList()
Parses the select list of a SELECT statement.
|
org.apache.calcite.sql.SqlCall |
SequenceExpression() |
void |
setConformance(org.apache.calcite.sql.validate.SqlConformance conformance) |
void |
setIdentifierMaxLength(int identifierMaxLength) |
void |
setQuotedCasing(org.apache.calcite.avatica.util.Casing quotedCasing) |
void |
setTabSize(int tabSize) |
void |
setUnquotedCasing(org.apache.calcite.avatica.util.Casing unquotedCasing) |
org.apache.calcite.sql.SqlIdentifier |
SimpleIdentifier()
Parses a simple identifier as an SqlIdentifier.
|
void |
SimpleIdentifierCommaList(List<org.apache.calcite.sql.SqlNode> list)
Parses a comma-separated list of simple identifiers.
|
org.apache.calcite.sql.SqlIdentifier |
SimpleIdentifierFromStringLiteral()
Parses a character literal as an SqlIdentifier.
|
org.apache.calcite.sql.SqlNodeList |
SimpleIdentifierOrList()
List of simple identifiers in parentheses or one simple identifier.
|
org.apache.calcite.sql.SqlSnapshot |
Snapshot(org.apache.calcite.sql.SqlNode tableRef)
Parses a FOR SYSTEM_TIME clause following a table expression.
|
org.apache.calcite.sql.SqlLiteral |
SpecialLiteral()
Parse a special literal keyword
|
SqlAlterTable |
SqlAddHivePartitions(org.apache.calcite.sql.parser.SqlParserPos startPos,
org.apache.calcite.sql.SqlIdentifier tableIdentifier,
boolean ifNotExists)
Hive syntax:
ALTER TABLE table_name ADD [IF NOT EXISTS]
PARTITION partition_spec [LOCATION 'location'][PARTITION partition_spec [LOCATION 'location']][...];
|
SqlAddJar |
SqlAddJar()
Parses an ADD JAR statement.
|
org.apache.calcite.sql.SqlAlter |
SqlAlter()
Parses an expression for setting or resetting an option in SQL, such as QUOTED_IDENTIFIERS,
or explain plan level (physical/logical).
|
SqlAlterDatabase |
SqlAlterDatabase() |
SqlAlterTable |
SqlAlterHiveTableAddReplaceColumn(org.apache.calcite.sql.parser.SqlParserPos startPos,
org.apache.calcite.sql.SqlIdentifier tableIdentifier,
boolean replace) |
SqlAlterTable |
SqlAlterHiveTableChangeColumn(org.apache.calcite.sql.parser.SqlParserPos startPos,
org.apache.calcite.sql.SqlIdentifier tableIdentifier) |
SqlAlterTable |
SqlAlterHiveTableSerDe(org.apache.calcite.sql.parser.SqlParserPos startPos,
org.apache.calcite.sql.SqlIdentifier tableIdentifier,
org.apache.calcite.sql.SqlNodeList partitionSpec) |
SqlAlterTable |
SqlAlterTable() |
SqlAlterView |
SqlAlterView()
Hive syntax:
ALTER VIEW [db_name.]view_name RENAME TO [db_name.]new_view_name;
ALTER VIEW [db_name.]view_name SET TBLPROPERTIES table_properties;
ALTER VIEW [db_name.]view_name AS select_statement;
|
org.apache.calcite.sql.SqlCreate |
SqlCreate()
Parses a CREATE statement.
|
org.apache.calcite.sql.SqlCreate |
SqlCreateCatalog(org.apache.calcite.sql.parser.Span s,
boolean replace)
Parses a create catalog statement.
|
org.apache.calcite.sql.SqlCreate |
SqlCreateDatabase(org.apache.calcite.sql.parser.Span s,
boolean replace)
Parses a create database statement.
|
org.apache.calcite.sql.SqlCreate |
SqlCreateFunction(org.apache.calcite.sql.parser.Span s,
boolean isTemporary)
Hive syntax:
CREATE [TEMPORARY] FUNCTION [db_name.]function_name AS class_name
[USING JAR|FILE|ARCHIVE 'file_uri' [, JAR|FILE|ARCHIVE 'file_uri'] ];
|
org.apache.calcite.sql.SqlCreate |
SqlCreateTable(org.apache.calcite.sql.parser.Span s,
boolean isTemporary) |
org.apache.calcite.sql.SqlCreate |
SqlCreateTemporary(org.apache.calcite.sql.parser.Span s,
boolean replace) |
org.apache.calcite.sql.SqlCreate |
SqlCreateView(org.apache.calcite.sql.parser.Span s,
boolean replace)
Hive syntax:
CREATE VIEW [IF NOT EXISTS] [db_name.]view_name [(column_name [COMMENT column_comment], ...) ]
[COMMENT view_comment]
[TBLPROPERTIES (property_name = property_value, ...)]
AS SELECT ...;
|
org.apache.calcite.sql.SqlNode |
SqlDelete()
Parses a DELETE statement.
|
org.apache.calcite.sql.SqlNode |
SqlDescribe()
Parses a DESCRIBE statement.
|
SqlDescribeCatalog |
SqlDescribeCatalog() |
SqlDescribeDatabase |
SqlDescribeDatabase() |
org.apache.calcite.sql.SqlDrop |
SqlDrop()
Parses a DROP statement.
|
org.apache.calcite.sql.SqlDrop |
SqlDropDatabase(org.apache.calcite.sql.parser.Span s,
boolean replace) |
org.apache.calcite.sql.SqlDrop |
SqlDropFunction(org.apache.calcite.sql.parser.Span s,
boolean replace)
Hive syntax:
DROP [TEMPORARY] FUNCTION [IF EXISTS] function_name;
|
SqlAlterTable |
SqlDropPartitions(org.apache.calcite.sql.parser.SqlParserPos startPos,
org.apache.calcite.sql.SqlIdentifier tableIdentifier,
boolean ifExists)
Hive syntax:
ALTER TABLE table_name DROP [IF EXISTS] PARTITION partition_spec[, PARTITION partition_spec, ...]
[IGNORE PROTECTION] [PURGE];
|
org.apache.calcite.sql.SqlDrop |
SqlDropTable(org.apache.calcite.sql.parser.Span s,
boolean replace) |
org.apache.calcite.sql.SqlDrop |
SqlDropView(org.apache.calcite.sql.parser.Span s,
boolean replace)
Hive syntax:
DROP VIEW [IF EXISTS] [db_name.]view_name;
|
org.apache.calcite.sql.SqlNode |
SqlExplain()
Parses an EXPLAIN PLAN statement.
|
org.apache.calcite.sql.SqlNode |
SqlExpressionEof()
Parses a SQL expression (such as might occur in a WHERE clause) followed by
the end-of-file symbol.
|
org.apache.calcite.sql.SqlNode |
SqlInsert()
Parses an INSERT statement.
|
void |
SqlInsertKeywords(List<org.apache.calcite.sql.SqlLiteral> keywords) |
SqlLoadModule |
SqlLoadModule()
Parses a load module statement.
|
org.apache.calcite.sql.SqlTypeNameSpec |
SqlMapTypeName() |
org.apache.calcite.sql.SqlNode |
SqlMerge()
Parses a MERGE statement.
|
org.apache.calcite.sql.SqlNode |
SqlProcedureCall()
Parses a CALL statement.
|
org.apache.calcite.sql.SqlNode |
SqlQueryEof()
Parses a query (SELECT, UNION, INTERSECT, EXCEPT, VALUES, TABLE) followed by
the end-of-file symbol.
|
org.apache.calcite.sql.SqlNode |
SqlQueryOrDml()
Parses a query (SELECT or VALUES)
or DML statement (INSERT, UPDATE, DELETE, MERGE).
|
SqlRemoveJar |
SqlRemoveJar()
Parses a remove jar statement.
|
SqlRichDescribeTable |
SqlRichDescribeTable()
Here we add Rich in className to distinguish from calcite's original SqlDescribeTable.
|
org.apache.calcite.sql.SqlNode |
SqlRichExplain()
Parses a explain module statement.
|
org.apache.calcite.sql.SqlSelect |
SqlSelect()
Parses a leaf SELECT expression without ORDER BY.
|
void |
SqlSelectKeywords(List<org.apache.calcite.sql.SqlLiteral> keywords) |
org.apache.calcite.sql.SqlSetOption |
SqlSetOption(org.apache.calcite.sql.parser.Span s,
String scope)
Parses "SET <NAME> = VALUE" or "RESET <NAME>", without a leading
"ALTER <SCOPE>".
|
SqlShowCatalogs |
SqlShowCatalogs()
Parse a "Show Catalogs" metadata query command.
|
org.apache.calcite.sql.SqlCall |
SqlShowCurrentCatalogOrDatabase() |
SqlShowDatabases |
SqlShowDatabases()
Parse a "Show Databases" metadata query command.
|
SqlShowFunctions |
SqlShowFunctions()
Parses a show functions statement.
|
SqlShowJars |
SqlShowJars()
Parses a show jars statement.
|
SqlShowModules |
SqlShowModules()
Parses a show modules statement.
|
SqlShowPartitions |
SqlShowPartitions()
Hive syntax:
SHOW PARTITIONS table_name [PARTITION partition_spec];
|
SqlShowTables |
SqlShowTables()
Parse a "Show Tables" metadata query command.
|
org.apache.calcite.sql.SqlNode |
SqlStmt()
Parses an SQL statement.
|
org.apache.calcite.sql.SqlNode |
SqlStmtEof()
Parses an SQL statement followed by the end-of-file symbol.
|
org.apache.calcite.sql.SqlNodeList |
SqlStmtList()
Parses a list of SQL statements separated by semicolon.
|
org.apache.calcite.sql.SqlTypeNameSpec |
SqlTypeName(org.apache.calcite.sql.parser.Span s) |
org.apache.calcite.sql.SqlTypeNameSpec |
SqlTypeName1(org.apache.calcite.sql.parser.Span s) |
org.apache.calcite.sql.SqlTypeNameSpec |
SqlTypeName2(org.apache.calcite.sql.parser.Span s) |
org.apache.calcite.sql.SqlTypeNameSpec |
SqlTypeName3(org.apache.calcite.sql.parser.Span s) |
SqlUnloadModule |
SqlUnloadModule()
Parses an unload module statement.
|
org.apache.calcite.sql.SqlNode |
SqlUpdate()
Parses an UPDATE statement.
|
SqlUseCatalog |
SqlUseCatalog() |
SqlUseDatabase |
SqlUseDatabase() |
SqlUseModules |
SqlUseModules()
Parses an use modules statement.
|
org.apache.calcite.sql.SqlNode |
StandardFloorCeilOptions(org.apache.calcite.sql.parser.Span s,
boolean floorFlag) |
org.apache.calcite.sql.SqlCall |
StringAggFunctionCall()
Parses a call to the STRING_AGG aggregate function (or to an aggregate
function with similar syntax: ARRAY_AGG, ARRAY_CONCAT_AGG, GROUP_CONCAT).
|
org.apache.calcite.sql.SqlNode |
StringLiteral()
Parses a string literal.
|
org.apache.calcite.sql.SqlNode |
SubsetDefinition() |
org.apache.calcite.sql.SqlNodeList |
SubsetDefinitionCommaList(org.apache.calcite.sql.parser.Span s) |
void |
switchTo(org.apache.calcite.sql.parser.SqlAbstractParserImpl.LexicalState state) |
org.apache.calcite.sql.SqlIdentifier |
TableApiIdentifier()
Those methods should not be used in SQL.
|
void |
TableApiIdentifierSegment(List<String> names,
List<org.apache.calcite.sql.parser.SqlParserPos> positions) |
void |
TableColumn(SqlCreateHiveTable.HiveTableCreationContext context) |
void |
TableColumnWithConstraint(SqlCreateHiveTable.HiveTableCreationContext context) |
void |
TableConstraint(SqlCreateHiveTable.HiveTableCreationContext context)
Parses a table constraint for CREATE TABLE.
|
org.apache.calcite.sql.SqlLiteral |
TableConstraintSpec() |
org.apache.calcite.sql.SqlNode |
TableConstructor()
Parses a VALUES leaf query expression.
|
org.apache.calcite.sql.SqlNode |
TableFunctionCall(org.apache.calcite.sql.parser.SqlParserPos pos) |
void |
TableIdentifierSegment(List<String> names,
List<org.apache.calcite.sql.parser.SqlParserPos> positions)
As
IdentifierSegment(java.util.List<java.lang.String>, java.util.List<org.apache.calcite.sql.parser.SqlParserPos>) but part of a table name (for example,
following FROM , INSERT or UPDATE ). |
org.apache.calcite.sql.SqlNode |
TableOption() |
org.apache.calcite.sql.SqlNode |
TableOverOpt()
Allows an OVER clause following a table expression as an extension to
standard SQL syntax.
|
org.apache.calcite.sql.SqlNodeList |
TableProperties()
Parse a table properties.
|
org.apache.calcite.sql.SqlNode |
TableRef()
Parses a table reference in a FROM clause, not lateral unless LATERAL
is explicitly specified.
|
org.apache.calcite.sql.SqlNode |
TableRef2(boolean lateral)
Parses a table reference in a FROM clause.
|
org.apache.calcite.sql.SqlNode |
TableRefWithHintsOpt()
Parses a table reference with optional hints.
|
SqlCreateHiveTable.HiveTableRowFormat |
TableRowFormat(org.apache.calcite.sql.parser.SqlParserPos pos) |
SqlCreateHiveTable.HiveTableStoredAs |
TableStoredAs(org.apache.calcite.sql.parser.SqlParserPos pos) |
org.apache.calcite.sql.SqlCall |
TimestampAddFunctionCall()
Parses a call to TIMESTAMPADD.
|
org.apache.calcite.sql.SqlCall |
TimestampDiffFunctionCall()
Parses a call to TIMESTAMPDIFF.
|
org.apache.calcite.avatica.util.TimeUnit |
TimestampInterval() |
org.apache.calcite.avatica.util.TimeUnit |
TimeUnit()
Parses time unit for EXTRACT, CEIL and FLOOR functions.
|
boolean |
TimeZoneOpt()
Parse a time zone suffix for DateTime types.
|
org.apache.calcite.sql.SqlTypeNameSpec |
TypeName() |
org.apache.calcite.sql.SqlNode |
Unpivot(org.apache.calcite.sql.SqlNode tableRef)
Parses an UNPIVOT clause following a table expression.
|
void |
UnpivotValue(List<org.apache.calcite.sql.SqlNode> list) |
List |
UnquantifiedFunctionParameterList(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext)
Parses function parameter lists.
|
int |
UnsignedIntLiteral() |
org.apache.calcite.sql.SqlNumericLiteral |
UnsignedNumericLiteral()
Parses a unsigned numeric literal
|
org.apache.calcite.sql.SqlNode |
UnsignedNumericLiteralOrParam()
Numeric literal or parameter; used in LIMIT, OFFSET and FETCH clauses.
|
void |
UnusedExtension()
Defines a production which can never be accepted by the parser.
|
org.apache.calcite.sql.SqlUpdate |
WhenMatchedClause(org.apache.calcite.sql.SqlNode table,
org.apache.calcite.sql.SqlIdentifier alias) |
org.apache.calcite.sql.SqlInsert |
WhenNotMatchedClause(org.apache.calcite.sql.SqlNode table) |
org.apache.calcite.sql.SqlNode |
WhereOpt()
Parses the optional WHERE clause for SELECT, DELETE, and UPDATE.
|
org.apache.calcite.sql.SqlNodeList |
WindowOpt()
Parses the optional WINDOW clause for SELECT
|
org.apache.calcite.sql.SqlNode |
WindowRange() |
org.apache.calcite.sql.SqlWindow |
WindowSpecification()
Parses a window specification.
|
org.apache.calcite.sql.SqlCall |
withinDistinct(org.apache.calcite.sql.SqlNode arg) |
org.apache.calcite.sql.SqlCall |
withinGroup(org.apache.calcite.sql.SqlNode arg) |
org.apache.calcite.sql.SqlWithItem |
WithItem() |
org.apache.calcite.sql.SqlNodeList |
WithList() |
org.apache.calcite.avatica.util.TimeUnit |
Year() |
public static final org.apache.calcite.sql.parser.SqlParserImplFactory FACTORY
SqlParserImplFactory
implementation for creating parser.public FlinkHiveSqlParserImplTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public FlinkHiveSqlParserImpl(InputStream stream)
public FlinkHiveSqlParserImpl(InputStream stream, String encoding)
public FlinkHiveSqlParserImpl(Reader stream)
public FlinkHiveSqlParserImpl(FlinkHiveSqlParserImplTokenManager tm)
public org.apache.calcite.sql.parser.SqlParseException normalizeException(Throwable ex)
normalizeException
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
public org.apache.calcite.sql.parser.SqlAbstractParserImpl.Metadata getMetadata()
getMetadata
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
public void setTabSize(int tabSize)
setTabSize
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
public void switchTo(org.apache.calcite.sql.parser.SqlAbstractParserImpl.LexicalState state)
switchTo
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
public void setQuotedCasing(org.apache.calcite.avatica.util.Casing quotedCasing)
setQuotedCasing
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
public void setUnquotedCasing(org.apache.calcite.avatica.util.Casing unquotedCasing)
setUnquotedCasing
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
public void setIdentifierMaxLength(int identifierMaxLength)
setIdentifierMaxLength
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
public void setConformance(org.apache.calcite.sql.validate.SqlConformance conformance)
setConformance
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
public org.apache.calcite.sql.SqlNode parseSqlExpressionEof() throws Exception
parseSqlExpressionEof
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
Exception
public org.apache.calcite.sql.SqlNode parseSqlStmtEof() throws Exception
parseSqlStmtEof
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
Exception
public org.apache.calcite.sql.SqlNodeList parseSqlStmtList() throws Exception
parseSqlStmtList
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
Exception
public final org.apache.calcite.sql.SqlNode ExtendedTableRef() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode TableOverOpt() throws ParseException
ParseException
public final void SqlSelectKeywords(List<org.apache.calcite.sql.SqlLiteral> keywords) throws ParseException
ParseException
public final void SqlInsertKeywords(List<org.apache.calcite.sql.SqlLiteral> keywords) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode FloorCeilOptions(org.apache.calcite.sql.parser.Span s, boolean floorFlag) throws ParseException
ParseException
protected org.apache.calcite.sql.parser.SqlParserPos getPos() throws ParseException
getPos
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
ParseException
public final org.apache.calcite.sql.SqlNode OrderedQueryOrExpr(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
Postgres syntax for limit:
[ LIMIT { count | ALL } ] [ OFFSET start ]
MySQL syntax for limit:
[ LIMIT { count | start, count } ]
SQL:2008 syntax for limit:
[ OFFSET start { ROW | ROWS } ] [ FETCH { FIRST | NEXT } [ count ] { ROW | ROWS } ONLY ]
ParseException
public final org.apache.calcite.sql.SqlNode LeafQuery(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode ParenthesizedExpression(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList ParenthesizedQueryOrCommaList(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
REVIEW jvs 8-Feb-2004: There's a small hole in this production. It can be used to construct something like
WHERE x IN (select count(*) from t where c=d,5)
which should be illegal. The above is interpreted as equivalent to
WHERE x IN ((select count(*) from t where c=d),5)
which is a legal use of a sub-query. The only way to fix the hole is to be able to remember whether a subexpression was parenthesized or not, which means preserving parentheses in the SqlNode tree. This is probably desirable anyway for use in purely syntactic parsing applications (e.g. SQL pretty-printer). However, if this is done, it's important to also make isA() on the paren node call down to its operand so that we can always correctly discriminate a query from a row expression.
ParseException
public final org.apache.calcite.sql.SqlNodeList ParenthesizedQueryOrCommaListWithDefault(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
(x, DEFAULT, null, DEFAULT)
.ParseException
public final List UnquantifiedFunctionParameterList(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final List FunctionParameterList(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlLiteral AllOrDistinct() throws ParseException
ParseException
public final void Arg0(List list, org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final void Arg(List list, org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode Default() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlQueryEof() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList SqlStmtList() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlStmt() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlStmtEof() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCharStringLiteral createStringLiteral(String s, org.apache.calcite.sql.parser.SqlParserPos pos) throws ParseException
ParseException
public final SqlShowDatabases SqlShowDatabases() throws ParseException
ParseException
public final SqlUseDatabase SqlUseDatabase() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCreate SqlCreateDatabase(org.apache.calcite.sql.parser.Span s, boolean replace) throws ParseException
ParseException
public final SqlAlterDatabase SqlAlterDatabase() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDrop SqlDropDatabase(org.apache.calcite.sql.parser.Span s, boolean replace) throws ParseException
ParseException
public final SqlDescribeDatabase SqlDescribeDatabase() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList TableProperties() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode TableOption() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCreate SqlCreateTemporary(org.apache.calcite.sql.parser.Span s, boolean replace) throws ParseException
ParseException
public final SqlShowTables SqlShowTables() throws ParseException
ParseException
public final SqlRichDescribeTable SqlRichDescribeTable() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCreate SqlCreateTable(org.apache.calcite.sql.parser.Span s, boolean isTemporary) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDrop SqlDropTable(org.apache.calcite.sql.parser.Span s, boolean replace) throws ParseException
ParseException
public final void RegularColumn(List<org.apache.calcite.sql.SqlNode> list) throws ParseException
ParseException
public final void PartColumnDef(List<org.apache.calcite.sql.SqlNode> list) throws ParseException
ParseException
public final void TableColumn(SqlCreateHiveTable.HiveTableCreationContext context) throws ParseException
ParseException
public final void TableConstraint(SqlCreateHiveTable.HiveTableCreationContext context) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlLiteral TableConstraintSpec() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIdentifier ConstraintName() throws ParseException
ParseException
public final void TableColumnWithConstraint(SqlCreateHiveTable.HiveTableCreationContext context) throws ParseException
ParseException
public final SqlHiveConstraintTrait ConstraintTrait() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDataTypeSpec ExtendedDataType() throws ParseException
DataType()
, we support a [ NULL | NOT NULL ] suffix syntax for both the
collection element data type and the data type itself.
See #SqlDataTypeSpec
for the syntax details of DataType()
.
ParseException
public final SqlCreateHiveTable.HiveTableStoredAs TableStoredAs(org.apache.calcite.sql.parser.SqlParserPos pos) throws ParseException
ParseException
public final SqlCreateHiveTable.HiveTableRowFormat TableRowFormat(org.apache.calcite.sql.parser.SqlParserPos pos) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec ExtendedSqlBasicTypeName() throws ParseException
For example, STRING is synonym of VARCHAR(INT_MAX).
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec CustomizedCollectionsTypeName() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec ExtendedCollectionsTypeName(org.apache.calcite.sql.SqlTypeNameSpec elementTypeName, boolean elementNullable) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec SqlMapTypeName() throws ParseException
ParseException
public final void ExtendedFieldNameTypeCommaList(List<org.apache.calcite.sql.SqlIdentifier> fieldNames, List<org.apache.calcite.sql.SqlDataTypeSpec> fieldTypes, List<org.apache.calcite.sql.SqlCharStringLiteral> comments) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec ExtendedSqlRowTypeName() throws ParseException
ParseException
public final void PartitionSpecCommaList(org.apache.calcite.sql.SqlNodeList allPartKeys, org.apache.calcite.sql.SqlNodeList staticSpec) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode RichSqlInsert() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIdentifier TableApiIdentifier() throws ParseException
ParseException
public final void TableApiIdentifierSegment(List<String> names, List<org.apache.calcite.sql.parser.SqlParserPos> positions) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCreate SqlCreateFunction(org.apache.calcite.sql.parser.Span s, boolean isTemporary) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDrop SqlDropFunction(org.apache.calcite.sql.parser.Span s, boolean replace) throws ParseException
ParseException
public final SqlShowFunctions SqlShowFunctions() throws ParseException
ParseException
public final SqlShowCatalogs SqlShowCatalogs() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall SqlShowCurrentCatalogOrDatabase() throws ParseException
ParseException
public final SqlDescribeCatalog SqlDescribeCatalog() throws ParseException
ParseException
public final SqlUseCatalog SqlUseCatalog() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCreate SqlCreateCatalog(org.apache.calcite.sql.parser.Span s, boolean replace) throws ParseException
ParseException
public final void EnsureAlterTableOnly(org.apache.calcite.sql.SqlNodeList partitionSpec, String feature) throws ParseException
ParseException
public final SqlAlterTable SqlAlterTable() throws ParseException
ParseException
public final SqlAlterTable SqlAlterHiveTableAddReplaceColumn(org.apache.calcite.sql.parser.SqlParserPos startPos, org.apache.calcite.sql.SqlIdentifier tableIdentifier, boolean replace) throws ParseException
ParseException
public final SqlAlterTable SqlAlterHiveTableChangeColumn(org.apache.calcite.sql.parser.SqlParserPos startPos, org.apache.calcite.sql.SqlIdentifier tableIdentifier) throws ParseException
ParseException
public final SqlAlterTable SqlAlterHiveTableSerDe(org.apache.calcite.sql.parser.SqlParserPos startPos, org.apache.calcite.sql.SqlIdentifier tableIdentifier, org.apache.calcite.sql.SqlNodeList partitionSpec) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCreate SqlCreateView(org.apache.calcite.sql.parser.Span s, boolean replace) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDrop SqlDropView(org.apache.calcite.sql.parser.Span s, boolean replace) throws ParseException
ParseException
public final SqlAlterView SqlAlterView() throws ParseException
ParseException
public final SqlAlterTable SqlAddHivePartitions(org.apache.calcite.sql.parser.SqlParserPos startPos, org.apache.calcite.sql.SqlIdentifier tableIdentifier, boolean ifNotExists) throws ParseException
ParseException
public final SqlAlterTable SqlDropPartitions(org.apache.calcite.sql.parser.SqlParserPos startPos, org.apache.calcite.sql.SqlIdentifier tableIdentifier, boolean ifExists) throws ParseException
ParseException
public final SqlShowPartitions SqlShowPartitions() throws ParseException
ParseException
public final SqlLoadModule SqlLoadModule() throws ParseException
ParseException
public final SqlUnloadModule SqlUnloadModule() throws ParseException
ParseException
public final SqlUseModules SqlUseModules() throws ParseException
ParseException
public final SqlShowModules SqlShowModules() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlRichExplain() throws ParseException
ParseException
public final SqlAddJar SqlAddJar() throws ParseException
ParseException
public final SqlRemoveJar SqlRemoveJar() throws ParseException
ParseException
public final SqlShowJars SqlShowJars() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList ParenthesizedKeyValueOptionCommaList() throws ParseException
ParseException
public final void KeyValueOption(List<org.apache.calcite.sql.SqlNode> list) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode OptionValue() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList ParenthesizedLiteralOptionCommaList() throws ParseException
ParseException
public final void CommaSeparatedSqlHints(List<org.apache.calcite.sql.SqlNode> hints) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode TableRefWithHintsOpt() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlSelect SqlSelect() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlExplain() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlQueryOrDml() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlExplain.Depth ExplainDepth() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlExplainLevel ExplainDetailLevel() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlDescribe() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlProcedureCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode NamedRoutineCall(org.apache.calcite.sql.SqlFunctionCategory routineType, org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlInsert() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlDelete() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlUpdate() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlMerge() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlUpdate WhenMatchedClause(org.apache.calcite.sql.SqlNode table, org.apache.calcite.sql.SqlIdentifier alias) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlInsert WhenNotMatchedClause(org.apache.calcite.sql.SqlNode table) throws ParseException
ParseException
public final List<org.apache.calcite.sql.SqlNode> SelectList() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SelectItem() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SelectExpression() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlLiteral Natural() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlLiteral JoinType() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode JoinTable(org.apache.calcite.sql.SqlNode e) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode FromClause() throws ParseException
FROM is mandatory in standard SQL, optional in dialects such as MySQL, PostgreSQL. The parser allows SELECT without FROM, but the validator fails if conformance is, say, STRICT_2003.
ParseException
public final org.apache.calcite.sql.SqlNode TableRef() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode TableRef2(boolean lateral) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList ExtendList() throws ParseException
ParseException
public final void ColumnType(List<org.apache.calcite.sql.SqlNode> list) throws ParseException
ParseException
public final void CompoundIdentifierType(List<org.apache.calcite.sql.SqlNode> list, List<org.apache.calcite.sql.SqlNode> extendList) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode TableFunctionCall(org.apache.calcite.sql.parser.SqlParserPos pos) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode ExplicitTable(org.apache.calcite.sql.parser.SqlParserPos pos) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode TableConstructor() throws ParseException
ParseException
public final void RowConstructorList(List<org.apache.calcite.sql.SqlNode> list) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode RowConstructor() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode WhereOpt() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList GroupByOpt() throws ParseException
ParseException
public final List<org.apache.calcite.sql.SqlNode> GroupingElementList() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode GroupingElement() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList ExpressionCommaList(org.apache.calcite.sql.parser.Span s, org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final void ExpressionCommaList2(List<org.apache.calcite.sql.SqlNode> list, org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode HavingOpt() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList WindowOpt() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlWindow WindowSpecification() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode WindowRange() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList OrderBy(boolean accept) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode OrderItem() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlSnapshot Snapshot(org.apache.calcite.sql.SqlNode tableRef) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode Pivot(org.apache.calcite.sql.SqlNode tableRef) throws ParseException
ParseException
public final void PivotAgg(List<org.apache.calcite.sql.SqlNode> list) throws ParseException
ParseException
public final void PivotValue(List<org.apache.calcite.sql.SqlNode> list) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode Unpivot(org.apache.calcite.sql.SqlNode tableRef) throws ParseException
ParseException
public final void UnpivotValue(List<org.apache.calcite.sql.SqlNode> list) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlMatchRecognize MatchRecognize(org.apache.calcite.sql.SqlNode tableRef) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList MeasureColumnCommaList(org.apache.calcite.sql.parser.Span s) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode MeasureColumn() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode PatternExpression() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode PatternTerm() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode PatternFactor() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode PatternPrimary() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList SubsetDefinitionCommaList(org.apache.calcite.sql.parser.Span s) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SubsetDefinition() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList PatternDefinitionCommaList(org.apache.calcite.sql.parser.Span s) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode PatternDefinition() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode SqlExpressionEof() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode QueryOrExpr(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList WithList() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlWithItem WithItem() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode LeafQueryOrExpr(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode Expression(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final void Expression2b(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext, List<Object> list) throws ParseException
ParseException
public final List<Object> Expression2(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
The result is as a flat list of operators and operands. The top-level
call to get an expression should call Expression(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext)
, but lower-level
calls should call this, to give the parser the opportunity to associate
operator calls.
For example 'a = b like c = d' should come out '((a = b) like c) = d' because LIKE and '=' have the same precedence, but tends to come out as '(a = b) like (c = d)' because (a = b) and (c = d) are parsed as separate expressions.
ParseException
public final org.apache.calcite.sql.SqlKind comp() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode Expression3(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlOperator periodOperator() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCollation CollateClause() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode UnsignedNumericLiteralOrParam() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode RowExpressionExtension() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall StringAggFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode AtomicRowExpression() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode CaseExpression() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall SequenceExpression() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlSetOption SqlSetOption(org.apache.calcite.sql.parser.Span s, String scope) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlAlter SqlAlter() throws ParseException
ParseException
public final String Scope() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCreate SqlCreate() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDrop SqlDrop() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode Literal() throws ParseException
If the context allows both literals and expressions,
use LiteralOrIntervalExpression()
, which requires less
lookahead.
ParseException
public final org.apache.calcite.sql.SqlNode NonIntervalLiteral() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode LiteralOrIntervalExpression() throws ParseException
We include them in the same production because it is difficult to
distinguish interval literals from interval expression (both of which
start with the INTERVAL
keyword); this way, we can use less
LOOKAHEAD.
ParseException
public final org.apache.calcite.sql.SqlNumericLiteral UnsignedNumericLiteral() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlLiteral NumericLiteral() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlLiteral SpecialLiteral() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode StringLiteral() throws ParseException
ParseException
SqlLiteral.unchain(SqlNode)
,
SqlLiteral.stringValue(SqlNode)
public final org.apache.calcite.sql.SqlLiteral DateTimeLiteral() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode MultisetConstructor() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode ArrayConstructor() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode MapConstructor() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode PeriodConstructor() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlLiteral IntervalLiteral() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode IntervalLiteralOrExpression() throws ParseException
INTERVAL '2:3' HOUR TO MINUTE
)
or an interval expression (e.g. INTERVAL emp.empno MINUTE
or INTERVAL 3 MONTHS
).ParseException
public final org.apache.calcite.avatica.util.TimeUnit Year() throws ParseException
ParseException
public final org.apache.calcite.avatica.util.TimeUnit Month() throws ParseException
ParseException
public final org.apache.calcite.avatica.util.TimeUnit Day() throws ParseException
ParseException
public final org.apache.calcite.avatica.util.TimeUnit Hour() throws ParseException
ParseException
public final org.apache.calcite.avatica.util.TimeUnit Minute() throws ParseException
ParseException
public final org.apache.calcite.avatica.util.TimeUnit Second() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIntervalQualifier IntervalQualifier() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIntervalQualifier IntervalQualifierStart() throws ParseException
ParseException
public final org.apache.calcite.avatica.util.TimeUnit TimeUnit() throws ParseException
ParseException
public final org.apache.calcite.avatica.util.TimeUnit TimestampInterval() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDynamicParam DynamicParam() throws ParseException
ParseException
public final void IdentifierSegment(List<String> names, List<org.apache.calcite.sql.parser.SqlParserPos> positions) throws ParseException
Each time it reads an identifier it writes one element to each list;
the entry in positions
records its position and whether the
segment was quoted.
ParseException
public final void TableIdentifierSegment(List<String> names, List<org.apache.calcite.sql.parser.SqlParserPos> positions) throws ParseException
IdentifierSegment(java.util.List<java.lang.String>, java.util.List<org.apache.calcite.sql.parser.SqlParserPos>)
but part of a table name (for example,
following FROM
, INSERT
or UPDATE
).
In some dialects the lexical rules for table names are different from for other identifiers. For example, in BigQuery, table names may contain hyphens.
ParseException
public final String Identifier() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIdentifier SimpleIdentifier() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIdentifier SimpleIdentifierFromStringLiteral() throws ParseException
ParseException
public final void SimpleIdentifierCommaList(List<org.apache.calcite.sql.SqlNode> list) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList ParenthesizedSimpleIdentifierList() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList SimpleIdentifierOrList() throws ParseException
DEPTNO
(EMPNO, DEPTNO)
ParseException
public final org.apache.calcite.sql.SqlIdentifier CompoundIdentifier() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIdentifier CompoundTableIdentifier() throws ParseException
ParseException
public final void CompoundIdentifierTypeCommaList(List<org.apache.calcite.sql.SqlNode> list, List<org.apache.calcite.sql.SqlNode> extendList) throws ParseException
ParseException
public final org.apache.calcite.util.Pair<org.apache.calcite.sql.SqlNodeList,org.apache.calcite.sql.SqlNodeList> ParenthesizedCompoundIdentifierList() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode NewSpecification() throws ParseException
ParseException
public final int UnsignedIntLiteral() throws ParseException
ParseException
public final int IntLiteral() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDataTypeSpec DataType() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec TypeName() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec SqlTypeName(org.apache.calcite.sql.parser.Span s) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec SqlTypeName1(org.apache.calcite.sql.parser.Span s) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec SqlTypeName2(org.apache.calcite.sql.parser.Span s) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec SqlTypeName3(org.apache.calcite.sql.parser.Span s) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlJdbcDataTypeName JdbcOdbcDataTypeName() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlLiteral JdbcOdbcDataType() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec CollectionsTypeName(org.apache.calcite.sql.SqlTypeNameSpec elementTypeName) throws ParseException
ParseException
public final boolean NullableOptDefaultTrue() throws ParseException
ParseException
public final boolean NullableOptDefaultFalse() throws ParseException
ParseException
public final void FieldNameTypeCommaList(List<org.apache.calcite.sql.SqlIdentifier> fieldNames, List<org.apache.calcite.sql.SqlDataTypeSpec> fieldTypes) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec RowTypeName() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec CharacterTypeName(org.apache.calcite.sql.parser.Span s) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlTypeNameSpec DateTimeTypeName() throws ParseException
ParseException
public final int PrecisionOpt() throws ParseException
ParseException
public final boolean TimeZoneOpt() throws ParseException
We also support "with local time zone".
ParseException
public final org.apache.calcite.sql.SqlNode CursorExpression(org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext exprContext) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode BuiltinFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlJsonEncoding JsonRepresentation() throws ParseException
ParseException
public final void JsonInputClause() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDataTypeSpec JsonReturningClause() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlDataTypeSpec JsonOutputClause() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode JsonPathSpec() throws ParseException
ParseException
public final List<org.apache.calcite.sql.SqlNode> JsonApiCommonSyntax() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlJsonExistsErrorBehavior JsonExistsErrorBehavior() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall JsonExistsFunctionCall() throws ParseException
ParseException
public final List<org.apache.calcite.sql.SqlNode> JsonValueEmptyOrErrorBehavior() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall JsonValueFunctionCall() throws ParseException
ParseException
public final List<org.apache.calcite.sql.SqlNode> JsonQueryEmptyOrErrorBehavior() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode JsonQueryWrapperBehavior() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall JsonQueryFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode JsonName() throws ParseException
ParseException
public final List<org.apache.calcite.sql.SqlNode> JsonNameAndValue() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode JsonConstructorNullClause() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall JsonObjectFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall JsonObjectAggFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall JsonArrayFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNodeList JsonArrayAggOrderByClause() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall JsonArrayAggFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall TimestampAddFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall TimestampDiffFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall GroupByWindowingCall() throws ParseException
TUMBLE(rowtime, INTERVAL '1' MINUTE)
.ParseException
public final org.apache.calcite.sql.SqlCall MatchRecognizeFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall MatchRecognizeCallWithModifier() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall MatchRecognizeNavigationLogical() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall MatchRecognizeNavigationPhysical() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall withinDistinct(org.apache.calcite.sql.SqlNode arg) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall withinGroup(org.apache.calcite.sql.SqlNode arg) throws ParseException
ParseException
public final org.apache.calcite.util.Pair<org.apache.calcite.sql.parser.SqlParserPos,org.apache.calcite.sql.SqlOperator> NullTreatment() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlCall nullTreatment(org.apache.calcite.sql.SqlCall arg) throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode NamedFunctionCall() throws ParseException
NOTE: every UDF has two names: an invocation name and a specific name. Normally, function calls are resolved via overload resolution and invocation names. The SPECIFIC prefix allows overload resolution to be bypassed. Note that usage of the SPECIFIC prefix in queries is non-standard; it is used internally by Farrago, e.g. in stored view definitions to permanently bind references to a particular function after the overload resolution performed by view creation.
TODO jvs 25-Mar-2005: Once we have SQL-Flagger support, flag SPECIFIC as non-standard.
ParseException
public final org.apache.calcite.sql.SqlCall NamedCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode StandardFloorCeilOptions(org.apache.calcite.sql.parser.Span s, boolean floorFlag) throws ParseException
ParseException
public final String NonReservedJdbcFunctionName() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIdentifier FunctionName() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIdentifier ReservedFunctionName() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlIdentifier ContextVariable() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlNode JdbcFunctionCall() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlBinaryOperator BinaryQueryOperator() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlBinaryOperator BinaryMultisetOperator() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlBinaryOperator BinaryRowOperator() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlPrefixOperator PrefixRowOperator() throws ParseException
ParseException
public final org.apache.calcite.sql.SqlPostfixOperator PostfixRowOperator() throws ParseException
ParseException
public final String NonReservedKeyWord() throws ParseException
The method is broken up into several sub-methods; without this
decomposition, parsers such as Babel with more than ~1,000 non-reserved
keywords would generate such deeply nested 'if' statements that javac would
fail with a StackOverflowError
.
The list is generated from the FMPP config data. To add or remove keywords, modify config.fmpp. For parsers except Babel, make sure that keywords are not reserved by the SQL standard.
ParseException
SQL:2003 Part 2 Section 5.2
public final void NonReservedKeyWord0of3() throws ParseException
ParseException
NonReservedKeyWord()
public final void NonReservedKeyWord1of3() throws ParseException
ParseException
NonReservedKeyWord()
public final void NonReservedKeyWord2of3() throws ParseException
ParseException
NonReservedKeyWord()
public final void UnusedExtension() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
ReInit
in class org.apache.calcite.sql.parser.SqlAbstractParserImpl
public void ReInit(FlinkHiveSqlParserImplTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.