class AstBuilder extends SqlBaseParserBaseVisitor[AnyRef] with SQLConfHelper with Logging
The AstBuilder converts an ANTLR4 ParseTree into a catalyst Expression, LogicalPlan or TableIdentifier.
- Alphabetic
- By Inheritance
- AstBuilder
- Logging
- SQLConfHelper
- SqlBaseParserBaseVisitor
- SqlBaseParserVisitor
- AbstractParseTreeVisitor
- ParseTreeVisitor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AstBuilder()
Type Members
- type InsertDirParams = (Boolean, CatalogStorageFormat, Option[String])
Parameters used for writing query to a directory: (isLocal, CatalogStorageFormat, provider).
- type InsertTableParams = (UnresolvedRelation, Seq[String], Map[String, Option[String]], Boolean)
Parameters used for writing query to a table: (UnresolvedRelation, tableColumnList, partitionKeys, ifPartitionNotExists).
- type ScriptIOFormat = (Seq[(String, String)], Option[String], Seq[(String, String)], Option[String])
- type TableClauses = (Seq[Transform], Seq[StructField], Option[BucketSpec], Map[String, String], Map[String, String], Option[String], Option[String], Option[SerdeInfo])
Type to keep track of table clauses: - partition transforms - partition columns - bucketSpec - properties - options - location - comment - serde
Type to keep track of table clauses: - partition transforms - partition columns - bucketSpec - properties - options - location - comment - serde
Note: Partition transforms are based on existing table schema definition. It can be simple column names, or functions like
year(date_col). Partition columns are column names with data types likei INT, which should be appended to the existing table schema. - type TableHeader = (Seq[String], Boolean, Boolean, Boolean)
Type to keep track of a table header: (identifier, isTemporary, ifNotExists, isExternal).
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def aggregateResult(arg0: AnyRef, arg1: AnyRef): AnyRef
- Attributes
- protected[tree]
- Definition Classes
- AbstractParseTreeVisitor
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cleanTableOptions(ctx: ParserRuleContext, options: Map[String, String], location: Option[String]): (Map[String, String], Option[String])
- def cleanTableProperties(ctx: ParserRuleContext, properties: Map[String, String]): Map[String, String]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def conf: SQLConf
The active config object within the current scope.
The active config object within the current scope. See SQLConf.get for more information.
- Definition Classes
- SQLConfHelper
- def createSchema(ctx: CreateOrReplaceTableColTypeListContext): StructType
Create top level table schema.
Create top level table schema.
- Attributes
- protected
- def createSchema(ctx: ColTypeListContext): StructType
Create top level table schema.
Create top level table schema.
- Attributes
- protected
- def createStructType(ctx: ComplexColTypeListContext): StructType
Create a StructType from a sequence of StructFields.
Create a StructType from a sequence of StructFields.
- Attributes
- protected
- def defaultResult(): AnyRef
- Attributes
- protected[tree]
- Definition Classes
- AbstractParseTreeVisitor
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def expression(ctx: ParserRuleContext): Expression
Create an expression from the given context.
Create an expression from the given context. This method just passes the context on to the visitor and only takes care of typing (We assume that the visitor returns an Expression here).
- Attributes
- protected
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getFunctionMultiparts(ctx: FunctionNameContext): Seq[String]
- Attributes
- protected
- def getRowFormatDelimited(ctx: RowFormatDelimitedContext): ScriptIOFormat
- Attributes
- protected
- def getSerdeInfo(rowFormatCtx: Seq[RowFormatContext], createFileFormatCtx: Seq[CreateFileFormatContext], ctx: ParserRuleContext): Option[SerdeInfo]
- Attributes
- protected
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def log: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logName: String
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parseIntervalLiteral(ctx: IntervalContext): CalendarInterval
Create a CalendarInterval object
Create a CalendarInterval object
- Attributes
- protected
- def plan(tree: ParserRuleContext): LogicalPlan
- Attributes
- protected
- def shouldVisitNextChild(arg0: RuleNode, arg1: AnyRef): Boolean
- Attributes
- protected[tree]
- Definition Classes
- AbstractParseTreeVisitor
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def typedVisit[T](ctx: ParseTree): T
- Attributes
- protected
- def validateRowFormatFileFormat(rowFormatCtx: Seq[RowFormatContext], createFileFormatCtx: Seq[CreateFileFormatContext], parentCtx: ParserRuleContext): Unit
- Attributes
- protected
- def validateRowFormatFileFormat(rowFormatCtx: RowFormatContext, createFileFormatCtx: CreateFileFormatContext, parentCtx: ParserRuleContext): Unit
Throw a ParseException if the user specified incompatible SerDes through ROW FORMAT and STORED AS.
Throw a ParseException if the user specified incompatible SerDes through ROW FORMAT and STORED AS.
The following are allowed. Anything else is not: ROW FORMAT SERDE ... STORED AS [SEQUENCEFILE | RCFILE | TEXTFILE] ROW FORMAT DELIMITED ... STORED AS TEXTFILE ROW FORMAT ... STORED AS INPUTFORMAT ... OUTPUTFORMAT ...
- Attributes
- protected
- def visit(arg0: ParseTree): AnyRef
- Definition Classes
- AbstractParseTreeVisitor → ParseTreeVisitor
- def visitAddTableColumns(ctx: AddTableColumnsContext): LogicalPlan
Parse a AlterTableAddColumns command.
Parse a AlterTableAddColumns command.
For example:
ALTER TABLE table1 ADD COLUMNS (col_name data_type [COMMENT col_comment], ...);
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitAddTablePartition(ctx: AddTablePartitionContext): LogicalPlan
Create an AddPartitions.
Create an AddPartitions.
For example:
ALTER TABLE multi_part_name ADD [IF NOT EXISTS] PARTITION spec [LOCATION 'loc1'] ALTER VIEW multi_part_name ADD [IF NOT EXISTS] PARTITION specALTER VIEW ... ADD PARTITION ... is not supported because the concept of partitioning is associated with physical tables
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitAggregationClause(ctx: AggregationClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#aggregationClause.Visit a parse tree produced by
SqlBaseParser#aggregationClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitAliasedQuery(ctx: AliasedQueryContext): LogicalPlan
Create an alias (SubqueryAlias) for a sub-query.
Create an alias (SubqueryAlias) for a sub-query. This is practically the same as visitAliasedRelation and visitNamedExpression, ANTLR4 however requires us to use 3 different hooks. We could add alias names for output columns, for example:
SELECT col1, col2 FROM testData AS t(col1, col2)
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitAliasedRelation(ctx: AliasedRelationContext): LogicalPlan
Create an alias (SubqueryAlias) for a join relation.
Create an alias (SubqueryAlias) for a join relation. This is practically the same as visitAliasedQuery and visitNamedExpression, ANTLR4 however requires us to use 3 different hooks. We could add alias names for output columns, for example:
SELECT a, b, c, d FROM (src1 s1 INNER JOIN src2 s2 ON s1.id = s2.id) dst(a, b, c, d)
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitAlterColumnAction(ctx: AlterColumnActionContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#alterColumnAction.Visit a parse tree produced by
SqlBaseParser#alterColumnAction.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitAlterTableAlterColumn(ctx: AlterTableAlterColumnContext): LogicalPlan
Parse a AlterTableAlterColumn command to alter a column's property.
Parse a AlterTableAlterColumn command to alter a column's property.
For example:
ALTER TABLE table1 ALTER COLUMN a.b.c TYPE bigint ALTER TABLE table1 ALTER COLUMN a.b.c SET NOT NULL ALTER TABLE table1 ALTER COLUMN a.b.c DROP NOT NULL ALTER TABLE table1 ALTER COLUMN a.b.c COMMENT 'new comment' ALTER TABLE table1 ALTER COLUMN a.b.c FIRST ALTER TABLE table1 ALTER COLUMN a.b.c AFTER x- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitAlterViewQuery(ctx: AlterViewQueryContext): LogicalPlan
Alter the query of a view.
Alter the query of a view. This creates a AlterViewAs
For example:
ALTER VIEW multi_part_name AS SELECT ...;
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitAnalyze(ctx: AnalyzeContext): LogicalPlan
Create an AnalyzeTable, or an AnalyzeColumn.
Create an AnalyzeTable, or an AnalyzeColumn. Example SQL for analyzing a table or a set of partitions :
ANALYZE TABLE multi_part_name [PARTITION (partcol1[=val1], partcol2[=val2], ...)] COMPUTE STATISTICS [NOSCAN];
Example SQL for analyzing columns :
ANALYZE TABLE multi_part_name COMPUTE STATISTICS FOR COLUMNS column1, column2;
Example SQL for analyzing all columns of a table:
ANALYZE TABLE multi_part_name COMPUTE STATISTICS FOR ALL COLUMNS;
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitAnalyzeTables(ctx: AnalyzeTablesContext): LogicalPlan
Create an AnalyzeTables.
Create an AnalyzeTables. Example SQL for analyzing all tables in default database:
ANALYZE TABLES IN default COMPUTE STATISTICS;
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitAnsiNonReserved(ctx: AnsiNonReservedContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#ansiNonReserved.Visit a parse tree produced by
SqlBaseParser#ansiNonReserved.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitAny_value(ctx: Any_valueContext): Expression
Create an AnyValue expression.
Create an AnyValue expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitApplyTransform(ctx: ApplyTransformContext): AnyRef
Visit a parse tree produced by the
applyTransformlabeled alternative inSqlBaseParser#transform.Visit a parse tree produced by the
applyTransformlabeled alternative inSqlBaseParser#transform.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitArithmeticBinary(ctx: ArithmeticBinaryContext): Expression
Create a binary arithmetic expression.
Create a binary arithmetic expression. The following arithmetic operators are supported: - Multiplication: '*' - Division: '/' - Hive Long Division: 'DIV' - Modulo: '%' - Addition: '+' - Subtraction: '-' - Binary AND: '&' - Binary XOR - Binary OR: '|'
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitArithmeticOperator(ctx: ArithmeticOperatorContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#arithmeticOperator.Visit a parse tree produced by
SqlBaseParser#arithmeticOperator.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitArithmeticUnary(ctx: ArithmeticUnaryContext): Expression
Create a unary arithmetic expression.
Create a unary arithmetic expression. The following arithmetic operators are supported: - Plus: '+' - Minus: '-' - Bitwise Not: '~'
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitAssignment(ctx: AssignmentContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#assignment.Visit a parse tree produced by
SqlBaseParser#assignment.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitAssignmentList(ctx: AssignmentListContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#assignmentList.Visit a parse tree produced by
SqlBaseParser#assignmentList.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitBackQuotedIdentifier(ctx: BackQuotedIdentifierContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#backQuotedIdentifier.Visit a parse tree produced by
SqlBaseParser#backQuotedIdentifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitBigDecimalLiteral(ctx: BigDecimalLiteralContext): Literal
Create a BigDecimal Literal expression.
Create a BigDecimal Literal expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitBigIntLiteral(ctx: BigIntLiteralContext): Literal
Create a Long Literal expression.
Create a Long Literal expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitBooleanLiteral(ctx: BooleanLiteralContext): Literal
Create a Boolean literal expression.
Create a Boolean literal expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitBooleanValue(ctx: BooleanValueContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#booleanValue.Visit a parse tree produced by
SqlBaseParser#booleanValue.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitBucketSpec(ctx: BucketSpecContext): BucketSpec
Create a BucketSpec.
Create a BucketSpec.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCacheTable(ctx: CacheTableContext): LogicalPlan
Create a CacheTable or CacheTableAsSelect.
Create a CacheTable or CacheTableAsSelect.
For example:
CACHE [LAZY] TABLE multi_part_name [OPTIONS tablePropertyList] [[AS] query]
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCast(ctx: CastContext): Expression
Create a Cast expression.
Create a Cast expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitChildren(node: RuleNode): AnyRef
Override the default behavior for all visit methods.
Override the default behavior for all visit methods. This will only return a non-null result when the context has only one child. This is done because there is no generic method to combine the results of the context children. In all other cases null is returned.
- Definition Classes
- AstBuilder → AbstractParseTreeVisitor → ParseTreeVisitor
- def visitClearCache(ctx: ClearCacheContext): AnyRef
Visit a parse tree produced by the
clearCachelabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
clearCachelabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitColDefinitionOption(ctx: ColDefinitionOptionContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#colDefinitionOption.Visit a parse tree produced by
SqlBaseParser#colDefinitionOption.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitColPosition(ctx: ColPositionContext): ColumnPosition
Visit a parse tree produced by
SqlBaseParser#colPosition.Visit a parse tree produced by
SqlBaseParser#colPosition.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitColType(ctx: ColTypeContext): StructField
Create a top level StructField from a column definition.
Create a top level StructField from a column definition.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitColTypeList(ctx: ColTypeListContext): Seq[StructField]
Create a StructType from a number of column definitions.
Create a StructType from a number of column definitions.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitColumnReference(ctx: ColumnReferenceContext): Expression
Create an UnresolvedAttribute expression or a UnresolvedRegex if it is a regex quoted in
Create an UnresolvedAttribute expression or a UnresolvedRegex if it is a regex quoted in
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitComment(ctx: CommentContext): String
Visit a parse tree produced by
SqlBaseParser#comment.Visit a parse tree produced by
SqlBaseParser#comment.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCommentNamespace(ctx: CommentNamespaceContext): LogicalPlan
Visit a parse tree produced by the
commentNamespacelabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
commentNamespacelabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCommentSpec(ctx: CommentSpecContext): String
Create a comment string.
Create a comment string.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCommentSpecList(ctx: List[CommentSpecContext]): Option[String]
Create an optional comment string.
Create an optional comment string.
- Attributes
- protected
- def visitCommentTable(ctx: CommentTableContext): LogicalPlan
Visit a parse tree produced by the
commentTablelabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
commentTablelabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCommonSelectQueryClausePlan(relation: LogicalPlan, expressions: Seq[Expression], lateralView: List[LateralViewContext], whereClause: WhereClauseContext, aggregationClause: AggregationClauseContext, havingClause: HavingClauseContext, windowClause: WindowClauseContext, isDistinct: Boolean): LogicalPlan
- def visitComparison(ctx: ComparisonContext): Expression
Create a comparison expression.
Create a comparison expression. This compares two expressions. The following comparison operators are supported: - Equal: '=' or '==' - Null-safe Equal: '<=>' - Not Equal: '<>' or '!=' - Less than: '<' - Less than or Equal: '<=' - Greater than: '>' - Greater than or Equal: '>='
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitComparisonOperator(ctx: ComparisonOperatorContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#comparisonOperator.Visit a parse tree produced by
SqlBaseParser#comparisonOperator.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitComplexColType(ctx: ComplexColTypeContext): StructField
Create a StructField from a column definition.
Create a StructField from a column definition.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitComplexColTypeList(ctx: ComplexColTypeListContext): Seq[StructField]
Create a StructType from a number of column definitions.
Create a StructType from a number of column definitions.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitComplexDataType(ctx: ComplexDataTypeContext): DataType
Create a complex DataType.
Create a complex DataType. Arrays, Maps and Structures are supported.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitConfigKey(ctx: ConfigKeyContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#configKey.Visit a parse tree produced by
SqlBaseParser#configKey.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitConfigValue(ctx: ConfigValueContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#configValue.Visit a parse tree produced by
SqlBaseParser#configValue.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitConstantDefault(ctx: ConstantDefaultContext): AnyRef
Visit a parse tree produced by the
constantDefaultlabeled alternative inSqlBaseParser#primaryExpression.Visit a parse tree produced by the
constantDefaultlabeled alternative inSqlBaseParser#primaryExpression.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitConstantList(ctx: ConstantListContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#constantList.Visit a parse tree produced by
SqlBaseParser#constantList.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitCreateFileFormat(ctx: CreateFileFormatContext): SerdeInfo
Create a SerdeInfo for creating tables.
Create a SerdeInfo for creating tables.
Format: STORED AS (name | INPUTFORMAT input_format OUTPUTFORMAT output_format)
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCreateFunction(ctx: CreateFunctionContext): AnyRef
Visit a parse tree produced by the
createFunctionlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
createFunctionlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitCreateIndex(ctx: CreateIndexContext): LogicalPlan
Create an index, returning a CreateIndex logical plan.
Create an index, returning a CreateIndex logical plan. For example:
CREATE INDEX index_name ON [TABLE] table_name [USING index_type] (column_index_property_list) [OPTIONS indexPropertyList] column_index_property_list: column_name [OPTIONS(indexPropertyList)] [ , . . . ] indexPropertyList: index_property_name [= index_property_value] [ , . . . ]
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCreateNamespace(ctx: CreateNamespaceContext): LogicalPlan
Create a CreateNamespace command.
Create a CreateNamespace command.
For example:
CREATE NAMESPACE [IF NOT EXISTS] ns1.ns2.ns3 create_namespace_clauses; create_namespace_clauses (order insensitive): [COMMENT namespace_comment] [LOCATION path] [WITH PROPERTIES (key1=val1, key2=val2, ...)]
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCreateOrReplaceTableColType(ctx: CreateOrReplaceTableColTypeContext): StructField
Create a top level StructField from a CREATE TABLE column definition.
Create a top level StructField from a CREATE TABLE column definition.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCreateOrReplaceTableColTypeList(ctx: CreateOrReplaceTableColTypeListContext): Seq[StructField]
Create a StructType from a number of CREATE TABLE column definitions.
Create a StructType from a number of CREATE TABLE column definitions.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCreateTable(ctx: CreateTableContext): LogicalPlan
Create a table, returning a CreateTable or CreateTableAsSelect logical plan.
Create a table, returning a CreateTable or CreateTableAsSelect logical plan.
Expected format:
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] [db_name.]table_name [USING table_provider] create_table_clauses [[AS] select_statement]; create_table_clauses (order insensitive): [PARTITIONED BY (partition_fields)] [OPTIONS table_property_list] [ROW FORMAT row_format] [STORED AS file_format] [CLUSTERED BY (col_name, col_name, ...) [SORTED BY (col_name [ASC|DESC], ...)] INTO num_buckets BUCKETS ] [LOCATION path] [COMMENT table_comment] [TBLPROPERTIES (property_name=property_value, ...)] partition_fields: col_name, transform(col_name), transform(constant, col_name), ... | col_name data_type [NOT NULL] [COMMENT col_comment], ...- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCreateTableClauses(ctx: CreateTableClausesContext): TableClauses
Visit a parse tree produced by
SqlBaseParser#createTableClauses.Visit a parse tree produced by
SqlBaseParser#createTableClauses.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCreateTableHeader(ctx: CreateTableHeaderContext): TableHeader
Validate a create table statement and return the TableIdentifier.
Validate a create table statement and return the TableIdentifier.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitCreateTableLike(ctx: CreateTableLikeContext): AnyRef
Visit a parse tree produced by the
createTableLikelabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
createTableLikelabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitCreateTempViewUsing(ctx: CreateTempViewUsingContext): AnyRef
Visit a parse tree produced by the
createTempViewUsinglabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
createTempViewUsinglabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitCreateView(ctx: CreateViewContext): AnyRef
Visit a parse tree produced by the
createViewlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
createViewlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitCtes(ctx: CtesContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#ctes.Visit a parse tree produced by
SqlBaseParser#ctes.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitCurrentLike(ctx: CurrentLikeContext): Expression
Visit a parse tree produced by the
currentLikelabeled alternative inSqlBaseParser#primaryExpression.Visit a parse tree produced by the
currentLikelabeled alternative inSqlBaseParser#primaryExpression.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDatetimeUnit(ctx: DatetimeUnitContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#datetimeUnit.Visit a parse tree produced by
SqlBaseParser#datetimeUnit.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitDayTimeIntervalDataType(ctx: DayTimeIntervalDataTypeContext): DataType
Visit a parse tree produced by the
dayTimeIntervalDataTypelabeled alternative inSqlBaseParser#dataType.Visit a parse tree produced by the
dayTimeIntervalDataTypelabeled alternative inSqlBaseParser#dataType.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDecimalLiteral(ctx: DecimalLiteralContext): Literal
Create a decimal literal for a regular decimal number.
Create a decimal literal for a regular decimal number.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDefaultExpression(ctx: DefaultExpressionContext): String
Create a default string.
Create a default string.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDeleteFromTable(ctx: DeleteFromTableContext): LogicalPlan
Visit a parse tree produced by the
deleteFromTablelabeled alternative inSqlBaseParser#dmlStatementNoWith.Visit a parse tree produced by the
deleteFromTablelabeled alternative inSqlBaseParser#dmlStatementNoWith.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDereference(ctx: DereferenceContext): Expression
Create a dereference expression.
Create a dereference expression. The return type depends on the type of the parent. If the parent is an UnresolvedAttribute, it can be a UnresolvedAttribute or a UnresolvedRegex for regex quoted in
; if the parent is some other expression, it can be UnresolvedExtractValue.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDescribeColName(ctx: DescribeColNameContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#describeColName.Visit a parse tree produced by
SqlBaseParser#describeColName.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitDescribeFuncName(ctx: DescribeFuncNameContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#describeFuncName.Visit a parse tree produced by
SqlBaseParser#describeFuncName.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitDescribeFunction(ctx: DescribeFunctionContext): LogicalPlan
Create a plan for a DESCRIBE FUNCTION statement.
Create a plan for a DESCRIBE FUNCTION statement.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDescribeNamespace(ctx: DescribeNamespaceContext): LogicalPlan
Create a DescribeNamespace.
Create a DescribeNamespace.
For example:
DESCRIBE (DATABASE|SCHEMA|NAMESPACE) [EXTENDED] database;
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDescribeQuery(ctx: DescribeQueryContext): AnyRef
Visit a parse tree produced by the
describeQuerylabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
describeQuerylabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitDescribeRelation(ctx: DescribeRelationContext): LogicalPlan
Create a DescribeColumn or DescribeRelation commands.
Create a DescribeColumn or DescribeRelation commands.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDmlStatement(ctx: DmlStatementContext): AnyRef
Visit a parse tree produced by the
dmlStatementlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
dmlStatementlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDoubleLiteral(ctx: DoubleLiteralContext): Literal
Create a Double Literal expression.
Create a Double Literal expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDropFunction(ctx: DropFunctionContext): AnyRef
Visit a parse tree produced by the
dropFunctionlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
dropFunctionlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitDropIndex(ctx: DropIndexContext): LogicalPlan
Drop an index, returning a DropIndex logical plan.
Drop an index, returning a DropIndex logical plan. For example:
DROP INDEX [IF EXISTS] index_name ON [TABLE] table_name
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDropNamespace(ctx: DropNamespaceContext): LogicalPlan
Create a DropNamespace command.
Create a DropNamespace command.
For example:
DROP (DATABASE|SCHEMA|NAMESPACE) [IF EXISTS] ns1.ns2 [RESTRICT|CASCADE];
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDropTable(ctx: DropTableContext): LogicalPlan
Create a DropTable command.
Create a DropTable command.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDropTableColumns(ctx: DropTableColumnsContext): LogicalPlan
Parse a AlterTableDropColumns command.
Parse a AlterTableDropColumns command.
For example:
ALTER TABLE table1 DROP COLUMN a.b.c ALTER TABLE table1 DROP COLUMNS a.b.c, x, y
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDropTablePartitions(ctx: DropTablePartitionsContext): LogicalPlan
Create an DropPartitions
Create an DropPartitions
For example:
ALTER TABLE multi_part_name DROP [IF EXISTS] PARTITION spec1[, PARTITION spec2, ...] [PURGE]; ALTER VIEW view DROP [IF EXISTS] PARTITION spec1[, PARTITION spec2, ...];
ALTER VIEW ... DROP PARTITION ... is not supported because the concept of partitioning is associated with physical tables
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitDropView(ctx: DropViewContext): AnyRef
Create a DropView command.
Create a DropView command.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitErrorCapturingIdentifier(ctx: ErrorCapturingIdentifierContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#errorCapturingIdentifier.Visit a parse tree produced by
SqlBaseParser#errorCapturingIdentifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitErrorCapturingMultiUnitsInterval(ctx: ErrorCapturingMultiUnitsIntervalContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#errorCapturingMultiUnitsInterval.Visit a parse tree produced by
SqlBaseParser#errorCapturingMultiUnitsInterval.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitErrorCapturingUnitToUnitInterval(ctx: ErrorCapturingUnitToUnitIntervalContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#errorCapturingUnitToUnitInterval.Visit a parse tree produced by
SqlBaseParser#errorCapturingUnitToUnitInterval.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitErrorIdent(ctx: ErrorIdentContext): AnyRef
Visit a parse tree produced by the
errorIdentlabeled alternative inSqlBaseParser#errorCapturingIdentifierExtra.Visit a parse tree produced by the
errorIdentlabeled alternative inSqlBaseParser#errorCapturingIdentifierExtra.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitErrorNode(arg0: ErrorNode): AnyRef
- Definition Classes
- AbstractParseTreeVisitor → ParseTreeVisitor
- def visitExists(ctx: ExistsContext): Expression
Create a filtering correlated sub-query (EXISTS).
Create a filtering correlated sub-query (EXISTS).
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitExplain(ctx: ExplainContext): AnyRef
Visit a parse tree produced by the
explainlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
explainlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitExponentLiteral(ctx: ExponentLiteralContext): Literal
Create a double literal for number with an exponent, e.g.
Create a double literal for number with an exponent, e.g. 1E-30
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitExpression(ctx: ExpressionContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#expression.Visit a parse tree produced by
SqlBaseParser#expression.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitExpressionSeq(ctx: ExpressionSeqContext): Seq[Expression]
Visit a parse tree produced by
SqlBaseParser#expressionSeq.Visit a parse tree produced by
SqlBaseParser#expressionSeq.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitExtract(ctx: ExtractContext): Expression
Create a Extract expression.
Create a Extract expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitFailNativeCommand(ctx: FailNativeCommandContext): AnyRef
Visit a parse tree produced by the
failNativeCommandlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
failNativeCommandlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitFirst(ctx: FirstContext): Expression
Create a First expression.
Create a First expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitFloatLiteral(ctx: FloatLiteralContext): Literal
Create a Float Literal expression.
Create a Float Literal expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitFrameBound(ctx: FrameBoundContext): Expression
Create or resolve a frame boundary expressions.
Create or resolve a frame boundary expressions.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitFromClause(ctx: FromClauseContext): LogicalPlan
Create a logical plan for a given 'FROM' clause.
Create a logical plan for a given 'FROM' clause. Note that we support multiple (comma separated) relations here, these get converted into a single plan by condition-less inner join.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitFromStatement(ctx: FromStatementContext): LogicalPlan
Visit a parse tree produced by
SqlBaseParser#fromStatement.Visit a parse tree produced by
SqlBaseParser#fromStatement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitFromStatementBody(ctx: FromStatementBodyContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#fromStatementBody.Visit a parse tree produced by
SqlBaseParser#fromStatementBody.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitFromStmt(ctx: FromStmtContext): AnyRef
Visit a parse tree produced by the
fromStmtlabeled alternative inSqlBaseParser#queryPrimary.Visit a parse tree produced by the
fromStmtlabeled alternative inSqlBaseParser#queryPrimary.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitFunctionCall(ctx: FunctionCallContext): Expression
Create a (windowed) Function expression.
Create a (windowed) Function expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitFunctionIdentifier(ctx: FunctionIdentifierContext): FunctionIdentifier
Create a FunctionIdentifier from a 'functionName' or 'databaseName'.'functionName' pattern.
Create a FunctionIdentifier from a 'functionName' or 'databaseName'.'functionName' pattern.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitFunctionName(ctx: QualifiedNameContext): FunctionIdentifier
Create a function database (optional) and name pair.
Create a function database (optional) and name pair.
- Attributes
- protected
- def visitFunctionName(ctx: FunctionNameContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#functionName.Visit a parse tree produced by
SqlBaseParser#functionName.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitFunctionTable(ctx: FunctionTableContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#functionTable.Visit a parse tree produced by
SqlBaseParser#functionTable.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitGenerationExpression(ctx: GenerationExpressionContext): String
Create a generation expression string.
Create a generation expression string.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitGenericFileFormat(ctx: GenericFileFormatContext): AnyRef
Visit a parse tree produced by the
genericFileFormatlabeled alternative inSqlBaseParser#fileFormat.Visit a parse tree produced by the
genericFileFormatlabeled alternative inSqlBaseParser#fileFormat.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitGroupByClause(ctx: GroupByClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#groupByClause.Visit a parse tree produced by
SqlBaseParser#groupByClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitGroupingAnalytics(groupingAnalytics: GroupingAnalyticsContext): BaseGroupingSets
Visit a parse tree produced by
SqlBaseParser#groupingAnalytics.Visit a parse tree produced by
SqlBaseParser#groupingAnalytics.The default implementation returns the result of calling
#visitChildrenonctx.- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitGroupingElement(ctx: GroupingElementContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#groupingElement.Visit a parse tree produced by
SqlBaseParser#groupingElement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitGroupingSet(ctx: GroupingSetContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#groupingSet.Visit a parse tree produced by
SqlBaseParser#groupingSet.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitHavingClause(ctx: HavingClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#havingClause.Visit a parse tree produced by
SqlBaseParser#havingClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitHint(ctx: HintContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#hint.Visit a parse tree produced by
SqlBaseParser#hint.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitHintStatement(ctx: HintStatementContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#hintStatement.Visit a parse tree produced by
SqlBaseParser#hintStatement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitHiveChangeColumn(ctx: HiveChangeColumnContext): LogicalPlan
Parse a AlterTableAlterColumn command.
Parse a AlterTableAlterColumn command. This is Hive SQL syntax.
For example:
ALTER TABLE table [PARTITION partition_spec] CHANGE [COLUMN] column_old_name column_new_name column_dataType [COMMENT column_comment] [FIRST | AFTER column_name];
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitHiveReplaceColumns(ctx: HiveReplaceColumnsContext): LogicalPlan
Visit a parse tree produced by the
hiveReplaceColumnslabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
hiveReplaceColumnslabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitIdentifier(ctx: IdentifierContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#identifier.Visit a parse tree produced by
SqlBaseParser#identifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitIdentifierComment(ctx: IdentifierCommentContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#identifierComment.Visit a parse tree produced by
SqlBaseParser#identifierComment.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitIdentifierCommentList(ctx: IdentifierCommentListContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#identifierCommentList.Visit a parse tree produced by
SqlBaseParser#identifierCommentList.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitIdentifierList(ctx: IdentifierListContext): Seq[String]
Create a Sequence of Strings for a parenthesis enclosed alias list.
Create a Sequence of Strings for a parenthesis enclosed alias list.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitIdentifierSeq(ctx: IdentifierSeqContext): Seq[String]
Create a Sequence of Strings for an identifier list.
Create a Sequence of Strings for an identifier list.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitIdentityTransform(ctx: IdentityTransformContext): AnyRef
Visit a parse tree produced by the
identityTransformlabeled alternative inSqlBaseParser#transform.Visit a parse tree produced by the
identityTransformlabeled alternative inSqlBaseParser#transform.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitInlineTable(ctx: InlineTableContext): LogicalPlan
Create an inline table (a virtual table in Hive parlance).
Create an inline table (a virtual table in Hive parlance).
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitInlineTableDefault1(ctx: InlineTableDefault1Context): AnyRef
Visit a parse tree produced by the
inlineTableDefault1labeled alternative inSqlBaseParser#queryPrimary.Visit a parse tree produced by the
inlineTableDefault1labeled alternative inSqlBaseParser#queryPrimary.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitInlineTableDefault2(ctx: InlineTableDefault2Context): AnyRef
Visit a parse tree produced by the
inlineTableDefault2labeled alternative inSqlBaseParser#relationPrimary.Visit a parse tree produced by the
inlineTableDefault2labeled alternative inSqlBaseParser#relationPrimary.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitInsertIntoReplaceWhere(ctx: InsertIntoReplaceWhereContext): AnyRef
Visit a parse tree produced by the
insertIntoReplaceWherelabeled alternative inSqlBaseParser#insertInto.Visit a parse tree produced by the
insertIntoReplaceWherelabeled alternative inSqlBaseParser#insertInto.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitInsertIntoTable(ctx: InsertIntoTableContext): InsertTableParams
Add an INSERT INTO TABLE operation to the logical plan.
Add an INSERT INTO TABLE operation to the logical plan.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitInsertOverwriteDir(ctx: InsertOverwriteDirContext): InsertDirParams
Write to a directory, returning a InsertIntoDir logical plan.
Write to a directory, returning a InsertIntoDir logical plan.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitInsertOverwriteHiveDir(ctx: InsertOverwriteHiveDirContext): InsertDirParams
Write to a directory, returning a InsertIntoDir logical plan.
Write to a directory, returning a InsertIntoDir logical plan.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitInsertOverwriteTable(ctx: InsertOverwriteTableContext): InsertTableParams
Add an INSERT OVERWRITE TABLE operation to the logical plan.
Add an INSERT OVERWRITE TABLE operation to the logical plan.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitIntegerLiteral(ctx: IntegerLiteralContext): Literal
Create an integral literal expression.
Create an integral literal expression. The code selects the most narrow integral type possible, either a BigDecimal, a Long or an Integer is returned.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitInterval(ctx: IntervalContext): Literal
Create a CalendarInterval or ANSI interval literal expression.
Create a CalendarInterval or ANSI interval literal expression. Two syntaxes are supported: - multiple unit value pairs, for instance: interval 2 months 2 days. - from-to unit, for instance: interval '1-2' year to month.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitIntervalLiteral(ctx: IntervalLiteralContext): AnyRef
Visit a parse tree produced by the
intervalLiterallabeled alternative inSqlBaseParser#constant.Visit a parse tree produced by the
intervalLiterallabeled alternative inSqlBaseParser#constant.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitIntervalValue(ctx: IntervalValueContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#intervalValue.Visit a parse tree produced by
SqlBaseParser#intervalValue.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitJoinCriteria(ctx: JoinCriteriaContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#joinCriteria.Visit a parse tree produced by
SqlBaseParser#joinCriteria.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitJoinRelation(ctx: JoinRelationContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#joinRelation.Visit a parse tree produced by
SqlBaseParser#joinRelation.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitJoinType(ctx: JoinTypeContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#joinType.Visit a parse tree produced by
SqlBaseParser#joinType.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitLambda(ctx: LambdaContext): Expression
Create an LambdaFunction.
Create an LambdaFunction.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitLast(ctx: LastContext): Expression
Create a Last expression.
Create a Last expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitLateralView(ctx: LateralViewContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#lateralView.Visit a parse tree produced by
SqlBaseParser#lateralView.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitLegacyDecimalLiteral(ctx: LegacyDecimalLiteralContext): Literal
Create a decimal literal for a regular decimal number or a scientific decimal number.
Create a decimal literal for a regular decimal number or a scientific decimal number.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitLoadData(ctx: LoadDataContext): LogicalPlan
Create a LoadData.
Create a LoadData.
For example:
LOAD DATA [LOCAL] INPATH 'filepath' [OVERWRITE] INTO TABLE multi_part_name [PARTITION (partcol1=val1, partcol2=val2 ...)]
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitLocationSpec(ctx: LocationSpecContext): String
Create a location string.
Create a location string.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitLocationSpecList(ctx: List[LocationSpecContext]): Option[String]
Create an optional location string.
Create an optional location string.
- Attributes
- protected
- def visitLogicalBinary(ctx: LogicalBinaryContext): Expression
Combine a number of boolean expressions into a balanced expression tree.
Combine a number of boolean expressions into a balanced expression tree. These expressions are either combined by a logical And or a logical Or.
A balanced binary tree is created because regular left recursive trees cause considerable performance degradations and can cause stack overflows.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitLogicalNot(ctx: LogicalNotContext): Expression
Invert a boolean expression.
Invert a boolean expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitManageResource(ctx: ManageResourceContext): AnyRef
Visit a parse tree produced by the
manageResourcelabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
manageResourcelabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitMatchedAction(ctx: MatchedActionContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#matchedAction.Visit a parse tree produced by
SqlBaseParser#matchedAction.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitMatchedClause(ctx: MatchedClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#matchedClause.Visit a parse tree produced by
SqlBaseParser#matchedClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitMergeIntoTable(ctx: MergeIntoTableContext): LogicalPlan
Visit a parse tree produced by the
mergeIntoTablelabeled alternative inSqlBaseParser#dmlStatementNoWith.Visit a parse tree produced by the
mergeIntoTablelabeled alternative inSqlBaseParser#dmlStatementNoWith.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitMultiInsertQuery(ctx: MultiInsertQueryContext): LogicalPlan
Create a logical plan which allows for multiple inserts using one 'from' statement.
Create a logical plan which allows for multiple inserts using one 'from' statement. These queries have the following SQL form:
[WITH cte...]? FROM src [INSERT INTO tbl1 SELECT *]+
For example:
FROM db.tbl1 A INSERT INTO dbo.tbl1 SELECT * WHERE A.value = 10 LIMIT 5 INSERT INTO dbo.tbl2 SELECT * WHERE A.value = 12
This (Hive) feature cannot be combined with set-operators.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitMultiInsertQueryBody(ctx: MultiInsertQueryBodyContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#multiInsertQueryBody.Visit a parse tree produced by
SqlBaseParser#multiInsertQueryBody.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitMultiUnitsInterval(ctx: MultiUnitsIntervalContext): CalendarInterval
Creates a CalendarInterval with multiple unit value pairs, e.g.
Creates a CalendarInterval with multiple unit value pairs, e.g. 1 YEAR 2 DAYS.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitMultipartIdentifier(ctx: MultipartIdentifierContext): Seq[String]
Create a multi-part identifier.
Create a multi-part identifier.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitMultipartIdentifierList(ctx: MultipartIdentifierListContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#multipartIdentifierList.Visit a parse tree produced by
SqlBaseParser#multipartIdentifierList.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitMultipartIdentifierProperty(ctx: MultipartIdentifierPropertyContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#multipartIdentifierProperty.Visit a parse tree produced by
SqlBaseParser#multipartIdentifierProperty.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitMultipartIdentifierPropertyList(ctx: MultipartIdentifierPropertyListContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#multipartIdentifierPropertyList.Visit a parse tree produced by
SqlBaseParser#multipartIdentifierPropertyList.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNamedExpression(ctx: NamedExpressionContext): Expression
Create an aliased expression if an alias is specified.
Create an aliased expression if an alias is specified. Both single and multi-aliases are supported.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitNamedExpressionSeq(ctx: NamedExpressionSeqContext): Seq[Expression]
Visit a parse tree produced by
SqlBaseParser#namedExpressionSeq.Visit a parse tree produced by
SqlBaseParser#namedExpressionSeq.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitNamedQuery(ctx: NamedQueryContext): SubqueryAlias
Create a named logical plan.
Create a named logical plan.
This is only used for Common Table Expressions.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitNamedWindow(ctx: NamedWindowContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#namedWindow.Visit a parse tree produced by
SqlBaseParser#namedWindow.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNamespace(ctx: NamespaceContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#namespace.Visit a parse tree produced by
SqlBaseParser#namespace.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNamespaces(ctx: NamespacesContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#namespaces.Visit a parse tree produced by
SqlBaseParser#namespaces.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNestedConstantList(ctx: NestedConstantListContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#nestedConstantList.Visit a parse tree produced by
SqlBaseParser#nestedConstantList.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNonOptionalPartitionSpec(ctx: PartitionSpecContext): Map[String, String]
Create a partition specification map without optional values.
Create a partition specification map without optional values.
- Attributes
- protected
- def visitNonReserved(ctx: NonReservedContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#nonReserved.Visit a parse tree produced by
SqlBaseParser#nonReserved.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNotMatchedAction(ctx: NotMatchedActionContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#notMatchedAction.Visit a parse tree produced by
SqlBaseParser#notMatchedAction.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNotMatchedBySourceAction(ctx: NotMatchedBySourceActionContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#notMatchedBySourceAction.Visit a parse tree produced by
SqlBaseParser#notMatchedBySourceAction.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNotMatchedBySourceClause(ctx: NotMatchedBySourceClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#notMatchedBySourceClause.Visit a parse tree produced by
SqlBaseParser#notMatchedBySourceClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNotMatchedClause(ctx: NotMatchedClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#notMatchedClause.Visit a parse tree produced by
SqlBaseParser#notMatchedClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitNullLiteral(ctx: NullLiteralContext): Literal
Create a NULL literal expression.
Create a NULL literal expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitNumericLiteral(ctx: NumericLiteralContext): AnyRef
Visit a parse tree produced by the
numericLiterallabeled alternative inSqlBaseParser#constant.Visit a parse tree produced by the
numericLiterallabeled alternative inSqlBaseParser#constant.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitOrderedIdentifier(ctx: OrderedIdentifierContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#orderedIdentifier.Visit a parse tree produced by
SqlBaseParser#orderedIdentifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitOrderedIdentifierList(ctx: OrderedIdentifierListContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#orderedIdentifierList.Visit a parse tree produced by
SqlBaseParser#orderedIdentifierList.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitOverlay(ctx: OverlayContext): Expression
Create a Overlay expression.
Create a Overlay expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitParameterLiteral(ctx: ParameterLiteralContext): Expression
Create a named parameter which represents a literal with a non-bound value and unknown type.
Create a named parameter which represents a literal with a non-bound value and unknown type.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitParenthesizedExpression(ctx: ParenthesizedExpressionContext): Expression
Create an expression for an expression between parentheses.
Create an expression for an expression between parentheses. This is need because the ANTLR visitor cannot automatically convert the nested context into an expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPartitionColumn(ctx: PartitionColumnContext): AnyRef
Visit a parse tree produced by the
partitionColumnlabeled alternative inSqlBaseParser#partitionField.Visit a parse tree produced by the
partitionColumnlabeled alternative inSqlBaseParser#partitionField.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitPartitionFieldList(ctx: PartitionFieldListContext): (Seq[Transform], Seq[StructField])
Parse a list of transforms or columns.
Parse a list of transforms or columns.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPartitionSpec(ctx: PartitionSpecContext): Map[String, Option[String]]
Create a partition specification map.
Create a partition specification map.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPartitionSpecLocation(ctx: PartitionSpecLocationContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#partitionSpecLocation.Visit a parse tree produced by
SqlBaseParser#partitionSpecLocation.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitPartitionTransform(ctx: PartitionTransformContext): Transform
Visit a parse tree produced by the
partitionTransformlabeled alternative inSqlBaseParser#partitionField.Visit a parse tree produced by the
partitionTransformlabeled alternative inSqlBaseParser#partitionField.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPartitionVal(ctx: PartitionValContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#partitionVal.Visit a parse tree produced by
SqlBaseParser#partitionVal.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitPercentile(ctx: PercentileContext): Expression
Create a Percentile expression.
Create a Percentile expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPivotClause(ctx: PivotClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#pivotClause.Visit a parse tree produced by
SqlBaseParser#pivotClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitPivotColumn(ctx: PivotColumnContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#pivotColumn.Visit a parse tree produced by
SqlBaseParser#pivotColumn.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitPivotValue(ctx: PivotValueContext): Expression
Create a Pivot column value with or without an alias.
Create a Pivot column value with or without an alias.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPosition(ctx: PositionContext): Expression
Create a Position expression.
Create a Position expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPredicate(ctx: PredicateContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#predicate.Visit a parse tree produced by
SqlBaseParser#predicate.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitPredicateOperator(ctx: PredicateOperatorContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#predicateOperator.Visit a parse tree produced by
SqlBaseParser#predicateOperator.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitPredicated(ctx: PredicatedContext): Expression
Create a predicated expression.
Create a predicated expression. A predicated expression is a normal expression with a predicate attached to it, for example:
a + 1 IS NULL- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPrimitiveDataType(ctx: PrimitiveDataTypeContext): DataType
Resolve/create a primitive type.
Resolve/create a primitive type.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitProperty(ctx: PropertyContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#property.Visit a parse tree produced by
SqlBaseParser#property.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitPropertyKey(key: PropertyKeyContext): String
A property key can either be String or a collection of dot separated elements.
A property key can either be String or a collection of dot separated elements. This function extracts the property key based on whether its a string literal or a property identifier.
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPropertyKeyValues(ctx: PropertyListContext): Map[String, String]
Parse a key-value map from a PropertyListContext, assuming all values are specified.
- def visitPropertyKeys(ctx: PropertyListContext): Seq[String]
Parse a list of keys from a PropertyListContext, assuming no values are specified.
- def visitPropertyList(ctx: PropertyListContext): Map[String, String]
Convert a property list into a key-value map.
Convert a property list into a key-value map. This should be called through visitPropertyKeyValues or visitPropertyKeys.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitPropertyValue(value: PropertyValueContext): String
A property value can be String, Integer, Boolean or Decimal.
A property value can be String, Integer, Boolean or Decimal. This function extracts the property value based on whether its a string, integer, boolean or decimal literal.
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitQualifiedColTypeWithPosition(ctx: QualifiedColTypeWithPositionContext): QualifiedColType
Parse new column info from ADD COLUMN into a QualifiedColType.
Parse new column info from ADD COLUMN into a QualifiedColType.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitQualifiedColTypeWithPositionList(ctx: QualifiedColTypeWithPositionListContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#qualifiedColTypeWithPositionList.Visit a parse tree produced by
SqlBaseParser#qualifiedColTypeWithPositionList.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitQualifiedName(ctx: QualifiedNameContext): Seq[String]
Parse a qualified name to a multipart name.
Parse a qualified name to a multipart name.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitQualifiedNameList(ctx: QualifiedNameListContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#qualifiedNameList.Visit a parse tree produced by
SqlBaseParser#qualifiedNameList.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitQuery(ctx: SqlBaseParser.QueryContext): LogicalPlan
Create a top-level plan with Common Table Expressions.
Create a top-level plan with Common Table Expressions.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitQueryOrganization(ctx: QueryOrganizationContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#queryOrganization.Visit a parse tree produced by
SqlBaseParser#queryOrganization.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitQueryPrimaryDefault(ctx: QueryPrimaryDefaultContext): AnyRef
Visit a parse tree produced by the
queryPrimaryDefaultlabeled alternative inSqlBaseParser#queryPrimary.Visit a parse tree produced by the
queryPrimaryDefaultlabeled alternative inSqlBaseParser#queryPrimary.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitQueryTermDefault(ctx: QueryTermDefaultContext): AnyRef
Visit a parse tree produced by the
queryTermDefaultlabeled alternative inSqlBaseParser#queryTerm.Visit a parse tree produced by the
queryTermDefaultlabeled alternative inSqlBaseParser#queryTerm.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitQuotedIdentifier(ctx: QuotedIdentifierContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#quotedIdentifier.Visit a parse tree produced by
SqlBaseParser#quotedIdentifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitQuotedIdentifierAlternative(ctx: QuotedIdentifierAlternativeContext): AnyRef
Visit a parse tree produced by the
quotedIdentifierAlternativelabeled alternative inSqlBaseParser#strictIdentifier.Visit a parse tree produced by the
quotedIdentifierAlternativelabeled alternative inSqlBaseParser#strictIdentifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitRealIdent(ctx: RealIdentContext): AnyRef
Visit a parse tree produced by the
realIdentlabeled alternative inSqlBaseParser#errorCapturingIdentifierExtra.Visit a parse tree produced by the
realIdentlabeled alternative inSqlBaseParser#errorCapturingIdentifierExtra.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitRecoverPartitions(ctx: RecoverPartitionsContext): LogicalPlan
Create an RecoverPartitions
Create an RecoverPartitions
For example:
ALTER TABLE multi_part_name RECOVER PARTITIONS;
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRefreshFunction(ctx: RefreshFunctionContext): LogicalPlan
Visit a parse tree produced by the
refreshFunctionlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
refreshFunctionlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRefreshResource(ctx: RefreshResourceContext): AnyRef
Visit a parse tree produced by the
refreshResourcelabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
refreshResourcelabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitRefreshTable(ctx: RefreshTableContext): LogicalPlan
Create a RefreshTable.
Create a RefreshTable.
For example:
REFRESH TABLE multi_part_name
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRegularQuerySpecification(ctx: RegularQuerySpecificationContext): LogicalPlan
Visit a parse tree produced by the
regularQuerySpecificationlabeled alternative inSqlBaseParser#querySpecification.Visit a parse tree produced by the
regularQuerySpecificationlabeled alternative inSqlBaseParser#querySpecification.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRelation(ctx: RelationContext): LogicalPlan
Create a single relation referenced in a FROM clause.
Create a single relation referenced in a FROM clause. This method is used when a part of the join condition is nested, for example:
select * from t1 join (t2 cross join t3) on col1 = col2
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRelationExtension(ctx: RelationExtensionContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#relationExtension.Visit a parse tree produced by
SqlBaseParser#relationExtension.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitRenameTable(ctx: RenameTableContext): LogicalPlan
Create a RenameTable command.
Create a RenameTable command.
For example:
ALTER TABLE multi_part_name1 RENAME TO multi_part_name2; ALTER VIEW multi_part_name1 RENAME TO multi_part_name2;
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRenameTableColumn(ctx: RenameTableColumnContext): LogicalPlan
Parse a AlterTableRenameColumn command.
Parse a AlterTableRenameColumn command.
For example:
ALTER TABLE table1 RENAME COLUMN a.b.c TO x
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRenameTablePartition(ctx: RenameTablePartitionContext): LogicalPlan
Create an RenamePartitions
Create an RenamePartitions
For example:
ALTER TABLE multi_part_name PARTITION spec1 RENAME TO PARTITION spec2;
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRepairTable(ctx: RepairTableContext): LogicalPlan
Create a RepairTable.
Create a RepairTable.
For example:
[MSCK] REPAIR TABLE multi_part_name [{ADD|DROP|SYNC} PARTITIONS]- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitReplaceTable(ctx: ReplaceTableContext): LogicalPlan
Replace a table, returning a ReplaceTable or ReplaceTableAsSelect logical plan.
Replace a table, returning a ReplaceTable or ReplaceTableAsSelect logical plan.
Expected format:
[CREATE OR] REPLACE TABLE [db_name.]table_name [USING table_provider] replace_table_clauses [[AS] select_statement]; replace_table_clauses (order insensitive): [OPTIONS table_property_list] [PARTITIONED BY (partition_fields)] [CLUSTERED BY (col_name, col_name, ...) [SORTED BY (col_name [ASC|DESC], ...)] INTO num_buckets BUCKETS ] [LOCATION path] [COMMENT table_comment] [TBLPROPERTIES (property_name=property_value, ...)] partition_fields: col_name, transform(col_name), transform(constant, col_name), ... | col_name data_type [NOT NULL] [COMMENT col_comment], ...- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitReplaceTableHeader(ctx: ReplaceTableHeaderContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#replaceTableHeader.Visit a parse tree produced by
SqlBaseParser#replaceTableHeader.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitResetConfiguration(ctx: ResetConfigurationContext): AnyRef
Visit a parse tree produced by the
resetConfigurationlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
resetConfigurationlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitResetQuotedConfiguration(ctx: ResetQuotedConfigurationContext): AnyRef
Visit a parse tree produced by the
resetQuotedConfigurationlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
resetQuotedConfigurationlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitResource(ctx: ResourceContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#resource.Visit a parse tree produced by
SqlBaseParser#resource.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitRowConstructor(ctx: RowConstructorContext): Expression
Create a CreateStruct expression.
Create a CreateStruct expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRowFormat(ctx: RowFormatContext): SerdeInfo
Create a SerdeInfo used for creating tables.
Create a SerdeInfo used for creating tables.
Example format:
SERDE serde_name [WITH SERDEPROPERTIES (k1=v1, k2=v2, ...)]
OR
DELIMITED [FIELDS TERMINATED BY char [ESCAPED BY char]] [COLLECTION ITEMS TERMINATED BY char] [MAP KEYS TERMINATED BY char] [LINES TERMINATED BY char] [NULL DEFINED AS char]
- def visitRowFormatDelimited(ctx: RowFormatDelimitedContext): SerdeInfo
Create a delimited row format properties object.
Create a delimited row format properties object.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitRowFormatSerde(ctx: RowFormatSerdeContext): SerdeInfo
Create SERDE row format name and properties pair.
Create SERDE row format name and properties pair.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSample(ctx: SampleContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#sample.Visit a parse tree produced by
SqlBaseParser#sample.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSampleByBucket(ctx: SampleByBucketContext): AnyRef
Visit a parse tree produced by the
sampleByBucketlabeled alternative inSqlBaseParser#sampleMethod.Visit a parse tree produced by the
sampleByBucketlabeled alternative inSqlBaseParser#sampleMethod.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSampleByBytes(ctx: SampleByBytesContext): AnyRef
Visit a parse tree produced by the
sampleByByteslabeled alternative inSqlBaseParser#sampleMethod.Visit a parse tree produced by the
sampleByByteslabeled alternative inSqlBaseParser#sampleMethod.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSampleByPercentile(ctx: SampleByPercentileContext): AnyRef
Visit a parse tree produced by the
sampleByPercentilelabeled alternative inSqlBaseParser#sampleMethod.Visit a parse tree produced by the
sampleByPercentilelabeled alternative inSqlBaseParser#sampleMethod.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSampleByRows(ctx: SampleByRowsContext): AnyRef
Visit a parse tree produced by the
sampleByRowslabeled alternative inSqlBaseParser#sampleMethod.Visit a parse tree produced by the
sampleByRowslabeled alternative inSqlBaseParser#sampleMethod.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSearchedCase(ctx: SearchedCaseContext): Expression
Create a condition based CaseWhen expression.
Create a condition based CaseWhen expression. This has the following SQL syntax:
CASE WHEN [predicate] THEN [expression] ... ELSE [expression] END
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSelectClause(ctx: SelectClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#selectClause.Visit a parse tree produced by
SqlBaseParser#selectClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSetCatalog(ctx: SetCatalogContext): AnyRef
Visit a parse tree produced by the
setCataloglabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
setCataloglabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSetClause(ctx: SetClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#setClause.Visit a parse tree produced by
SqlBaseParser#setClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSetConfiguration(ctx: SetConfigurationContext): AnyRef
Visit a parse tree produced by the
setConfigurationlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
setConfigurationlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSetNamespaceLocation(ctx: SetNamespaceLocationContext): LogicalPlan
Create an SetNamespaceLocation logical plan.
Create an SetNamespaceLocation logical plan.
For example:
ALTER (DATABASE|SCHEMA|NAMESPACE) namespace SET LOCATION path;
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSetNamespaceProperties(ctx: SetNamespacePropertiesContext): LogicalPlan
Create an SetNamespaceProperties logical plan.
Create an SetNamespaceProperties logical plan.
For example:
ALTER (DATABASE|SCHEMA|NAMESPACE) database SET (DBPROPERTIES|PROPERTIES) (property_name=property_value, ...);
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSetOperation(ctx: SetOperationContext): LogicalPlan
Connect two queries by a Set operator.
Connect two queries by a Set operator.
Supported Set operators are: - UNION [ DISTINCT | ALL ] - EXCEPT [ DISTINCT | ALL ] - MINUS [ DISTINCT | ALL ] - INTERSECT [DISTINCT | ALL]
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSetQuantifier(ctx: SetQuantifierContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#setQuantifier.Visit a parse tree produced by
SqlBaseParser#setQuantifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSetQuotedConfiguration(ctx: SetQuotedConfigurationContext): AnyRef
Visit a parse tree produced by the
setQuotedConfigurationlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
setQuotedConfigurationlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSetTableLocation(ctx: SetTableLocationContext): LogicalPlan
Create an SetTableLocation command.
Create an SetTableLocation command.
For example:
ALTER TABLE table_name [PARTITION partition_spec] SET LOCATION "loc";- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSetTableProperties(ctx: SetTablePropertiesContext): LogicalPlan
Parse SetViewProperties or SetTableProperties commands.
Parse SetViewProperties or SetTableProperties commands.
For example:
ALTER TABLE table SET TBLPROPERTIES ('table_property' = 'property_value'); ALTER VIEW view SET TBLPROPERTIES ('table_property' = 'property_value');- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSetTableSerDe(ctx: SetTableSerDeContext): LogicalPlan
Create an SetTableSerDeProperties
Create an SetTableSerDeProperties
For example:
ALTER TABLE multi_part_name [PARTITION spec] SET SERDE serde_name [WITH SERDEPROPERTIES props]; ALTER TABLE multi_part_name [PARTITION spec] SET SERDEPROPERTIES serde_properties;
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSetTimeZone(ctx: SetTimeZoneContext): AnyRef
Visit a parse tree produced by the
setTimeZonelabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
setTimeZonelabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitShowCatalogs(ctx: ShowCatalogsContext): AnyRef
Visit a parse tree produced by the
showCatalogslabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
showCatalogslabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitShowColumns(ctx: ShowColumnsContext): LogicalPlan
A command for users to list the column names for a table.
A command for users to list the column names for a table. This function creates a ShowColumns logical plan.
The syntax of using this command in SQL is:
SHOW COLUMNS (FROM | IN) tableName=multipartIdentifier ((FROM | IN) namespace=multipartIdentifier)?- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitShowCreateTable(ctx: ShowCreateTableContext): LogicalPlan
Creates a ShowCreateTable
Creates a ShowCreateTable
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitShowCurrentNamespace(ctx: ShowCurrentNamespaceContext): AnyRef
Visit a parse tree produced by the
showCurrentNamespacelabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
showCurrentNamespacelabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitShowFunctions(ctx: ShowFunctionsContext): LogicalPlan
Create a plan for a SHOW FUNCTIONS command.
Create a plan for a SHOW FUNCTIONS command.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitShowNamespaces(ctx: ShowNamespacesContext): LogicalPlan
Create a ShowNamespaces command.
Create a ShowNamespaces command.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitShowPartitions(ctx: ShowPartitionsContext): LogicalPlan
A command for users to list the partition names of a table.
A command for users to list the partition names of a table. If partition spec is specified, partitions that match the spec are returned. Otherwise an empty result set is returned.
This function creates a ShowPartitionsStatement logical plan
The syntax of using this command in SQL is:
SHOW PARTITIONS multi_part_name [partition_spec];
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitShowTableExtended(ctx: ShowTableExtendedContext): LogicalPlan
Create a ShowTableExtended command.
Create a ShowTableExtended command.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitShowTables(ctx: ShowTablesContext): LogicalPlan
Create a ShowTables command.
Create a ShowTables command.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitShowTblProperties(ctx: ShowTblPropertiesContext): LogicalPlan
A command for users to list the properties for a table.
A command for users to list the properties for a table. If propertyKey is specified, the value for the propertyKey is returned. If propertyKey is not specified, all the keys and their corresponding values are returned. The syntax of using this command in SQL is:
SHOW TBLPROPERTIES multi_part_name[('propertyKey')];- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitShowViews(ctx: ShowViewsContext): LogicalPlan
Create a ShowViews command.
Create a ShowViews command.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSimpleCase(ctx: SimpleCaseContext): Expression
Create a value based CaseWhen expression.
Create a value based CaseWhen expression. This has the following SQL form:
CASE [expression] WHEN [value] THEN [expression] ... ELSE [expression] END
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSingleDataType(ctx: SingleDataTypeContext): DataType
Visit a parse tree produced by
SqlBaseParser#singleDataType.Visit a parse tree produced by
SqlBaseParser#singleDataType.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSingleExpression(ctx: SingleExpressionContext): Expression
Visit a parse tree produced by
SqlBaseParser#singleExpression.Visit a parse tree produced by
SqlBaseParser#singleExpression.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSingleFunctionIdentifier(ctx: SingleFunctionIdentifierContext): FunctionIdentifier
Visit a parse tree produced by
SqlBaseParser#singleFunctionIdentifier.Visit a parse tree produced by
SqlBaseParser#singleFunctionIdentifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSingleInsertQuery(ctx: SingleInsertQueryContext): LogicalPlan
Create a logical plan for a regular (single-insert) query.
Create a logical plan for a regular (single-insert) query.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSingleMultipartIdentifier(ctx: SingleMultipartIdentifierContext): Seq[String]
Visit a parse tree produced by
SqlBaseParser#singleMultipartIdentifier.Visit a parse tree produced by
SqlBaseParser#singleMultipartIdentifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSingleStatement(ctx: SingleStatementContext): LogicalPlan
Visit a parse tree produced by
SqlBaseParser#singleStatement.Visit a parse tree produced by
SqlBaseParser#singleStatement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSingleTableIdentifier(ctx: SingleTableIdentifierContext): TableIdentifier
Visit a parse tree produced by
SqlBaseParser#singleTableIdentifier.Visit a parse tree produced by
SqlBaseParser#singleTableIdentifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSingleTableSchema(ctx: SingleTableSchemaContext): StructType
Visit a parse tree produced by
SqlBaseParser#singleTableSchema.Visit a parse tree produced by
SqlBaseParser#singleTableSchema.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSkewSpec(ctx: SkewSpecContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#skewSpec.Visit a parse tree produced by
SqlBaseParser#skewSpec.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitSmallIntLiteral(ctx: SmallIntLiteralContext): Literal
Create a Short Literal expression.
Create a Short Literal expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSortItem(ctx: SortItemContext): SortOrder
Create a SortOrder expression.
Create a SortOrder expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitStar(ctx: StarContext): Expression
Create a star (i.e.
Create a star (i.e. all) expression; this selects all elements (in the specified object). Both un-targeted (global) and targeted aliases are supported.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitStatementDefault(ctx: StatementDefaultContext): AnyRef
Visit a parse tree produced by the
statementDefaultlabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
statementDefaultlabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitStorageHandler(ctx: StorageHandlerContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#storageHandler.Visit a parse tree produced by
SqlBaseParser#storageHandler.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitStrictNonReserved(ctx: StrictNonReservedContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#strictNonReserved.Visit a parse tree produced by
SqlBaseParser#strictNonReserved.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitStringConstant(ctx: ConstantContext, legacyNullAsString: Boolean = false, keepPartitionSpecAsString: Boolean = false): String
Convert a constant of any type into a string.
Convert a constant of any type into a string. This is typically used in DDL commands, and its main purpose is to prevent slight differences due to back to back conversions i.e.: String -> Literal -> String.
- Attributes
- protected
- def visitStringLit(ctx: StringLitContext): Token
Visit a parse tree produced by
SqlBaseParser#stringLit.Visit a parse tree produced by
SqlBaseParser#stringLit.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitStringLiteral(ctx: StringLiteralContext): Literal
Create a String literal expression.
Create a String literal expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitStruct(ctx: StructContext): Expression
Create a CreateStruct expression.
Create a CreateStruct expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSubquery(ctx: SubqueryContext): LogicalPlan
Create a logical plan for a sub-query.
Create a logical plan for a sub-query.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSubqueryExpression(ctx: SubqueryExpressionContext): Expression
Create a ScalarSubquery expression.
Create a ScalarSubquery expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSubscript(ctx: SubscriptContext): Expression
Create an UnresolvedExtractValue expression, this is used for subscript access to an array.
Create an UnresolvedExtractValue expression, this is used for subscript access to an array.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitSubstring(ctx: SubstringContext): Expression
Create a Substring/Substr expression.
Create a Substring/Substr expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTable(ctx: TableContext): LogicalPlan
Create an un-aliased table reference.
Create an un-aliased table reference. This is typically used for top-level table references, for example:
INSERT INTO db.tbl2 TABLE db.tbl1
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTableAlias(ctx: TableAliasContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#tableAlias.Visit a parse tree produced by
SqlBaseParser#tableAlias.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitTableFileFormat(ctx: TableFileFormatContext): AnyRef
Visit a parse tree produced by the
tableFileFormatlabeled alternative inSqlBaseParser#fileFormat.Visit a parse tree produced by the
tableFileFormatlabeled alternative inSqlBaseParser#fileFormat.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitTableIdentifier(ctx: TableIdentifierContext): TableIdentifier
Create a TableIdentifier from a 'tableName' or 'databaseName'.'tableName' pattern.
Create a TableIdentifier from a 'tableName' or 'databaseName'.'tableName' pattern.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTableName(ctx: TableNameContext): LogicalPlan
Create an aliased table reference.
Create an aliased table reference. This is typically used in FROM clauses.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTableProvider(ctx: TableProviderContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#tableProvider.Visit a parse tree produced by
SqlBaseParser#tableProvider.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitTableValuedFunction(ctx: TableValuedFunctionContext): LogicalPlan
Create a table-valued function call with arguments, e.g.
Create a table-valued function call with arguments, e.g. range(1000)
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTemporalClause(ctx: TemporalClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#temporalClause.Visit a parse tree produced by
SqlBaseParser#temporalClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitTerminal(arg0: TerminalNode): AnyRef
- Definition Classes
- AbstractParseTreeVisitor → ParseTreeVisitor
- def visitTimestampadd(ctx: TimestampaddContext): Expression
Create a TimestampAdd expression.
Create a TimestampAdd expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTimestampdiff(ctx: TimestampdiffContext): Expression
Create a TimestampDiff expression.
Create a TimestampDiff expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTimezone(ctx: TimezoneContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#timezone.Visit a parse tree produced by
SqlBaseParser#timezone.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitTinyIntLiteral(ctx: TinyIntLiteralContext): Literal
Create a Byte Literal expression.
Create a Byte Literal expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTransformArgument(ctx: TransformArgumentContext): Expression
Parse an argument to a transform.
Parse an argument to a transform. An argument may be a field reference (qualified name) or a value literal.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTransformClause(ctx: TransformClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#transformClause.Visit a parse tree produced by
SqlBaseParser#transformClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitTransformQuerySpecification(ctx: TransformQuerySpecificationContext): LogicalPlan
Visit a parse tree produced by the
transformQuerySpecificationlabeled alternative inSqlBaseParser#querySpecification.Visit a parse tree produced by the
transformQuerySpecificationlabeled alternative inSqlBaseParser#querySpecification.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTrim(ctx: TrimContext): Expression
Create a Trim expression.
Create a Trim expression.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTruncateTable(ctx: TruncateTableContext): LogicalPlan
Create a TruncateTable command.
Create a TruncateTable command.
For example:
TRUNCATE TABLE multi_part_name [PARTITION (partcol1=val1, partcol2=val2 ...)]
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitTypeConstructor(ctx: TypeConstructorContext): Literal
Create a typed Literal expression.
Create a typed Literal expression. A typed literal has the following SQL syntax:
[TYPE] '[VALUE]'Currently Date, Timestamp, Interval and Binary typed literals are supported.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitUncacheTable(ctx: UncacheTableContext): LogicalPlan
Create an UncacheTable logical plan.
Create an UncacheTable logical plan.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitUnitInMultiUnits(ctx: UnitInMultiUnitsContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unitInMultiUnits.Visit a parse tree produced by
SqlBaseParser#unitInMultiUnits.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnitInUnitToUnit(ctx: UnitInUnitToUnitContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unitInUnitToUnit.Visit a parse tree produced by
SqlBaseParser#unitInUnitToUnit.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnitToUnitInterval(ctx: UnitToUnitIntervalContext): CalendarInterval
Creates a CalendarInterval with from-to unit, e.g.
Creates a CalendarInterval with from-to unit, e.g. '2-1' YEAR TO MONTH.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitUnpivotAlias(ctx: UnpivotAliasContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unpivotAlias.Visit a parse tree produced by
SqlBaseParser#unpivotAlias.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnpivotClause(ctx: UnpivotClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unpivotClause.Visit a parse tree produced by
SqlBaseParser#unpivotClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnpivotColumn(ctx: UnpivotColumnContext): NamedExpression
Create an Unpivot column.
Create an Unpivot column.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitUnpivotColumnAndAlias(ctx: UnpivotColumnAndAliasContext): (NamedExpression, Option[String])
Create an Unpivot column.
Create an Unpivot column.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitUnpivotColumnSet(ctx: UnpivotColumnSetContext): (Seq[NamedExpression], Option[String])
Create an Unpivot struct column with or without an alias.
Create an Unpivot struct column with or without an alias. Each struct field is renamed to the respective value column name.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitUnpivotMultiValueColumnClause(ctx: UnpivotMultiValueColumnClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unpivotMultiValueColumnClause.Visit a parse tree produced by
SqlBaseParser#unpivotMultiValueColumnClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnpivotNameColumn(ctx: UnpivotNameColumnContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unpivotNameColumn.Visit a parse tree produced by
SqlBaseParser#unpivotNameColumn.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnpivotNullClause(ctx: UnpivotNullClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unpivotNullClause.Visit a parse tree produced by
SqlBaseParser#unpivotNullClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnpivotOperator(ctx: UnpivotOperatorContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unpivotOperator.Visit a parse tree produced by
SqlBaseParser#unpivotOperator.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnpivotSingleValueColumnClause(ctx: UnpivotSingleValueColumnClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unpivotSingleValueColumnClause.Visit a parse tree produced by
SqlBaseParser#unpivotSingleValueColumnClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnpivotValueColumn(ctx: UnpivotValueColumnContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unpivotValueColumn.Visit a parse tree produced by
SqlBaseParser#unpivotValueColumn.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnquotedIdentifier(ctx: UnquotedIdentifierContext): AnyRef
Visit a parse tree produced by the
unquotedIdentifierlabeled alternative inSqlBaseParser#strictIdentifier.Visit a parse tree produced by the
unquotedIdentifierlabeled alternative inSqlBaseParser#strictIdentifier.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUnsetTableProperties(ctx: UnsetTablePropertiesContext): LogicalPlan
Parse UnsetViewProperties or UnsetTableProperties commands.
Parse UnsetViewProperties or UnsetTableProperties commands.
For example:
ALTER TABLE table UNSET TBLPROPERTIES [IF EXISTS] ('comment', 'key'); ALTER VIEW view UNSET TBLPROPERTIES [IF EXISTS] ('comment', 'key');- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitUnsupportedHiveNativeCommands(ctx: UnsupportedHiveNativeCommandsContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#unsupportedHiveNativeCommands.Visit a parse tree produced by
SqlBaseParser#unsupportedHiveNativeCommands.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitUpdateTable(ctx: UpdateTableContext): LogicalPlan
Visit a parse tree produced by the
updateTablelabeled alternative inSqlBaseParser#dmlStatementNoWith.Visit a parse tree produced by the
updateTablelabeled alternative inSqlBaseParser#dmlStatementNoWith.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitUse(ctx: UseContext): LogicalPlan
Create a SetCatalogAndNamespace command.
Create a SetCatalogAndNamespace command.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitUseNamespace(ctx: UseNamespaceContext): AnyRef
Visit a parse tree produced by the
useNamespacelabeled alternative inSqlBaseParser#statement.Visit a parse tree produced by the
useNamespacelabeled alternative inSqlBaseParser#statement.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitValueExpressionDefault(ctx: ValueExpressionDefaultContext): AnyRef
Visit a parse tree produced by the
valueExpressionDefaultlabeled alternative inSqlBaseParser#valueExpression.Visit a parse tree produced by the
valueExpressionDefaultlabeled alternative inSqlBaseParser#valueExpression.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitVersion(ctx: VersionContext): Option[String]
Visit a parse tree produced by
SqlBaseParser#version.Visit a parse tree produced by
SqlBaseParser#version.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitWhenClause(ctx: WhenClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#whenClause.Visit a parse tree produced by
SqlBaseParser#whenClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitWhereClause(ctx: WhereClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#whereClause.Visit a parse tree produced by
SqlBaseParser#whereClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitWindowClause(ctx: WindowClauseContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#windowClause.Visit a parse tree produced by
SqlBaseParser#windowClause.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitWindowDef(ctx: WindowDefContext): WindowSpecDefinition
Create a window definition, i.e.
Create a window definition, i.e. WindowSpecDefinition.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitWindowFrame(ctx: WindowFrameContext): AnyRef
Visit a parse tree produced by
SqlBaseParser#windowFrame.Visit a parse tree produced by
SqlBaseParser#windowFrame.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- Annotations
- @Override()
- def visitWindowRef(ctx: WindowRefContext): WindowSpecReference
Create a reference to a window frame, i.e.
Create a reference to a window frame, i.e. WindowSpecReference.
- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- def visitYearMonthIntervalDataType(ctx: YearMonthIntervalDataTypeContext): DataType
Visit a parse tree produced by the
yearMonthIntervalDataTypelabeled alternative inSqlBaseParser#dataType.Visit a parse tree produced by the
yearMonthIntervalDataTypelabeled alternative inSqlBaseParser#dataType.The default implementation returns the result of calling
#visitChildrenonctx.- ctx
the parse tree
- returns
the visitor result
- Definition Classes
- AstBuilder → SqlBaseParserBaseVisitor → SqlBaseParserVisitor
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withRepartitionByExpression(ctx: QueryOrganizationContext, expressions: Seq[Expression], query: LogicalPlan): LogicalPlan
Create a clause for DISTRIBUTE BY.
Create a clause for DISTRIBUTE BY.
- Attributes
- protected
- def withScriptIOSchema(ctx: ParserRuleContext, inRowFormat: RowFormatContext, recordWriter: Token, outRowFormat: RowFormatContext, recordReader: Token, schemaLess: Boolean): ScriptInputOutputSchema
Create a ScriptInputOutputSchema.
Create a ScriptInputOutputSchema.
- Attributes
- protected