Packages

class AstBuilder extends SqlBaseBaseVisitor[AnyRef] with SQLConfHelper with Logging

The AstBuilder converts an ANTLR4 ParseTree into a catalyst Expression, LogicalPlan or TableIdentifier.

Linear Supertypes
Logging, SQLConfHelper, SqlBaseBaseVisitor[AnyRef], SqlBaseVisitor[AnyRef], AbstractParseTreeVisitor[AnyRef], ParseTreeVisitor[AnyRef], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AstBuilder
  2. Logging
  3. SQLConfHelper
  4. SqlBaseBaseVisitor
  5. SqlBaseVisitor
  6. AbstractParseTreeVisitor
  7. ParseTreeVisitor
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AstBuilder()

Type Members

  1. type InsertDirParams = (Boolean, CatalogStorageFormat, Option[String])

    Parameters used for writing query to a directory: (isLocal, CatalogStorageFormat, provider).

  2. type InsertTableParams = (UnresolvedRelation, Seq[String], Map[String, Option[String]], Boolean)

    Parameters used for writing query to a table: (UnresolvedRelation, tableColumnList, partitionKeys, ifPartitionNotExists).

  3. type ScriptIOFormat = (Seq[(String, String)], Option[String], Seq[(String, String)], Option[String])
  4. 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 like i INT, which should be appended to the existing table schema.

  5. type TableHeader = (Seq[String], Boolean, Boolean, Boolean)

    Type to keep track of a table header: (identifier, isTemporary, ifNotExists, isExternal).

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def aggregateResult(arg0: AnyRef, arg1: AnyRef): AnyRef
    Attributes
    protected[tree]
    Definition Classes
    AbstractParseTreeVisitor
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def cleanTableOptions(ctx: ParserRuleContext, options: Map[String, String], location: Option[String]): (Map[String, String], Option[String])
  7. def cleanTableProperties(ctx: ParserRuleContext, properties: Map[String, String]): Map[String, String]
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  9. 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
  10. def createSchema(ctx: ColTypeListContext): StructType

    Create top level table schema.

    Create top level table schema.

    Attributes
    protected
  11. def createStructType(ctx: ComplexColTypeListContext): StructType

    Create a StructType from a sequence of StructFields.

    Create a StructType from a sequence of StructFields.

    Attributes
    protected
  12. def defaultResult(): AnyRef
    Attributes
    protected[tree]
    Definition Classes
    AbstractParseTreeVisitor
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. 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
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def getFunctionIdentifier(ctx: FunctionNameContext): FunctionIdentifier

    Get a function identifier consist by database (optional) and name.

    Get a function identifier consist by database (optional) and name.

    Attributes
    protected
  18. def getFunctionMultiparts(ctx: FunctionNameContext): Seq[String]
    Attributes
    protected
  19. def getRowFormatDelimited(ctx: RowFormatDelimitedContext): ScriptIOFormat
    Attributes
    protected
  20. def getSerdeInfo(rowFormatCtx: Seq[RowFormatContext], createFileFormatCtx: Seq[CreateFileFormatContext], ctx: ParserRuleContext): Option[SerdeInfo]
    Attributes
    protected
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  23. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  26. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  27. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  34. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  41. def parseIntervalLiteral(ctx: IntervalContext): CalendarInterval

    Create a CalendarInterval object

    Create a CalendarInterval object

    Attributes
    protected
  42. def plan(tree: ParserRuleContext): LogicalPlan
    Attributes
    protected
  43. def shouldVisitNextChild(arg0: RuleNode, arg1: AnyRef): Boolean
    Attributes
    protected[tree]
    Definition Classes
    AbstractParseTreeVisitor
  44. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def typedVisit[T](ctx: ParseTree): T
    Attributes
    protected
  47. def validateRowFormatFileFormat(rowFormatCtx: Seq[RowFormatContext], createFileFormatCtx: Seq[CreateFileFormatContext], parentCtx: ParserRuleContext): Unit
    Attributes
    protected
  48. 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
  49. def visit(arg0: ParseTree): AnyRef
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  50. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  51. 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 spec

    ALTER 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  52. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  53. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  54. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  55. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  56. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  57. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  58. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  59. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  60. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  61. def visitApplyTransform(ctx: ApplyTransformContext): AnyRef

    Visit a parse tree produced by the applyTransform labeled alternative in SqlBaseParser#transform.

    Visit a parse tree produced by the applyTransform labeled alternative in SqlBaseParser#transform.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  62. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  63. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  64. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  65. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  66. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  67. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  68. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  69. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  70. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  71. def visitBucketSpec(ctx: BucketSpecContext): BucketSpec

    Create a BucketSpec.

    Create a BucketSpec.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  72. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  73. def visitCast(ctx: CastContext): Expression

    Create a Cast expression.

    Create a Cast expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  74. 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
  75. def visitClearCache(ctx: ClearCacheContext): AnyRef

    Visit a parse tree produced by the clearCache labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the clearCache labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  76. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  77. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  78. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  79. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  80. def visitCommentNamespace(ctx: CommentNamespaceContext): LogicalPlan

    Visit a parse tree produced by the commentNamespace labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the commentNamespace labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  81. def visitCommentSpec(ctx: CommentSpecContext): String

    Create a comment string.

    Create a comment string.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  82. def visitCommentSpecList(ctx: List[CommentSpecContext]): Option[String]

    Create an optional comment string.

    Create an optional comment string.

    Attributes
    protected
  83. def visitCommentTable(ctx: CommentTableContext): LogicalPlan

    Visit a parse tree produced by the commentTable labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the commentTable labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  84. def visitCommonSelectQueryClausePlan(relation: LogicalPlan, expressions: Seq[Expression], lateralView: List[LateralViewContext], whereClause: WhereClauseContext, aggregationClause: AggregationClauseContext, havingClause: HavingClauseContext, windowClause: WindowClauseContext, isDistinct: Boolean): LogicalPlan
  85. 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 then or Equal: '<=' - Greater than: '>' - Greater then or Equal: '>='

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  86. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  87. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  88. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  89. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  90. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  91. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  92. def visitConstantDefault(ctx: ConstantDefaultContext): AnyRef

    Visit a parse tree produced by the constantDefault labeled alternative in SqlBaseParser#primaryExpression.

    Visit a parse tree produced by the constantDefault labeled alternative in SqlBaseParser#primaryExpression.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  93. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  94. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  95. def visitCreateFunction(ctx: CreateFunctionContext): LogicalPlan

    Create a CREATE FUNCTION statement.

    Create a CREATE FUNCTION statement.

    For example:

    CREATE [OR REPLACE] [TEMPORARY] FUNCTION [IF NOT EXISTS] [db_name.]function_name
    AS class_name [USING JAR|FILE|ARCHIVE 'file_uri' [, JAR|FILE|ARCHIVE 'file_uri']];
    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  96. def visitCreateNamespace(ctx: CreateNamespaceContext): LogicalPlan

    Create a CreateNamespaceStatement command.

    Create a CreateNamespaceStatement 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  97. def visitCreateTable(ctx: CreateTableContext): LogicalPlan

    Create a table, returning a CreateTableStatement logical plan.

    Create a table, returning a CreateTableStatement 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  98. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  99. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  100. def visitCreateTableLike(ctx: CreateTableLikeContext): AnyRef

    Visit a parse tree produced by the createTableLike labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the createTableLike labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  101. def visitCreateTempViewUsing(ctx: CreateTempViewUsingContext): AnyRef

    Visit a parse tree produced by the createTempViewUsing labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the createTempViewUsing labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  102. def visitCreateView(ctx: CreateViewContext): LogicalPlan

    Create or replace a view.

    Create or replace a view. This creates a CreateViewStatement

    For example:

    CREATE [OR REPLACE] [[GLOBAL] TEMPORARY] VIEW [IF NOT EXISTS] multi_part_name
    [(column_name [COMMENT column_comment], ...) ]
    create_view_clauses
    
    AS SELECT ...;
    
    create_view_clauses (order insensitive):
      [COMMENT view_comment]
      [TBLPROPERTIES (property_name = property_value, ...)]
    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  103. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  104. def visitCurrentLike(ctx: CurrentLikeContext): Expression

    Visit a parse tree produced by the currentLike labeled alternative in SqlBaseParser#primaryExpression.

    Visit a parse tree produced by the currentLike labeled alternative in SqlBaseParser#primaryExpression.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  105. def visitDayTimeIntervalDataType(ctx: DayTimeIntervalDataTypeContext): DataType

    Visit a parse tree produced by the dayTimeIntervalDataType labeled alternative in SqlBaseParser#dataType.

    Visit a parse tree produced by the dayTimeIntervalDataType labeled alternative in SqlBaseParser#dataType.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  106. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  107. def visitDeleteFromTable(ctx: DeleteFromTableContext): LogicalPlan

    Visit a parse tree produced by the deleteFromTable labeled alternative in SqlBaseParser#dmlStatementNoWith.

    Visit a parse tree produced by the deleteFromTable labeled alternative in SqlBaseParser#dmlStatementNoWith.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  108. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  109. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  110. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  111. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  112. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  113. def visitDescribeQuery(ctx: DescribeQueryContext): AnyRef

    Visit a parse tree produced by the describeQuery labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the describeQuery labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  114. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  115. def visitDmlStatement(ctx: DmlStatementContext): AnyRef

    Visit a parse tree produced by the dmlStatement labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the dmlStatement labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  116. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  117. def visitDropFunction(ctx: DropFunctionContext): LogicalPlan

    Create a DROP FUNCTION statement.

    Create a DROP FUNCTION statement.

    For example:

    DROP [TEMPORARY] FUNCTION [IF EXISTS] function;
    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  118. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  119. def visitDropTable(ctx: DropTableContext): LogicalPlan

    Create a DropTable command.

    Create a DropTable command.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  120. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  121. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  122. def visitDropView(ctx: DropViewContext): AnyRef

    Create a DropView command.

    Create a DropView command.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  123. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  124. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  125. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  126. def visitErrorIdent(ctx: ErrorIdentContext): AnyRef

    Visit a parse tree produced by the errorIdent labeled alternative in SqlBaseParser#errorCapturingIdentifierExtra.

    Visit a parse tree produced by the errorIdent labeled alternative in SqlBaseParser#errorCapturingIdentifierExtra.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  127. def visitErrorNode(arg0: ErrorNode): AnyRef
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  128. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  129. def visitExplain(ctx: ExplainContext): AnyRef

    Visit a parse tree produced by the explain labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the explain labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  130. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  131. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  132. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  133. def visitExtract(ctx: ExtractContext): Expression

    Create a Extract expression.

    Create a Extract expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  134. def visitFailNativeCommand(ctx: FailNativeCommandContext): AnyRef

    Visit a parse tree produced by the failNativeCommand labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the failNativeCommand labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  135. def visitFirst(ctx: FirstContext): Expression

    Create a First expression.

    Create a First expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  136. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  137. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  138. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  139. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  140. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  141. def visitFromStmt(ctx: FromStmtContext): AnyRef

    Visit a parse tree produced by the fromStmt labeled alternative in SqlBaseParser#queryPrimary.

    Visit a parse tree produced by the fromStmt labeled alternative in SqlBaseParser#queryPrimary.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  142. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  143. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  144. def visitFunctionName(ctx: QualifiedNameContext): FunctionIdentifier

    Create a function database (optional) and name pair.

    Create a function database (optional) and name pair.

    Attributes
    protected
  145. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  146. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  147. def visitGenericFileFormat(ctx: GenericFileFormatContext): AnyRef

    Visit a parse tree produced by the genericFileFormat labeled alternative in SqlBaseParser#fileFormat.

    Visit a parse tree produced by the genericFileFormat labeled alternative in SqlBaseParser#fileFormat.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  148. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  149. 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 #visitChildren on ctx.

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  150. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  151. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  152. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  153. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  154. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  155. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  156. def visitHiveReplaceColumns(ctx: HiveReplaceColumnsContext): LogicalPlan

    Visit a parse tree produced by the hiveReplaceColumns labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the hiveReplaceColumns labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  157. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  158. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  159. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  160. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  161. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  162. def visitIdentityTransform(ctx: IdentityTransformContext): AnyRef

    Visit a parse tree produced by the identityTransform labeled alternative in SqlBaseParser#transform.

    Visit a parse tree produced by the identityTransform labeled alternative in SqlBaseParser#transform.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  163. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  164. def visitInlineTableDefault1(ctx: InlineTableDefault1Context): AnyRef

    Visit a parse tree produced by the inlineTableDefault1 labeled alternative in SqlBaseParser#queryPrimary.

    Visit a parse tree produced by the inlineTableDefault1 labeled alternative in SqlBaseParser#queryPrimary.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  165. def visitInlineTableDefault2(ctx: InlineTableDefault2Context): AnyRef

    Visit a parse tree produced by the inlineTableDefault2 labeled alternative in SqlBaseParser#relationPrimary.

    Visit a parse tree produced by the inlineTableDefault2 labeled alternative in SqlBaseParser#relationPrimary.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  166. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  167. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  168. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  169. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  170. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  171. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  172. def visitIntervalLiteral(ctx: IntervalLiteralContext): AnyRef

    Visit a parse tree produced by the intervalLiteral labeled alternative in SqlBaseParser#constant.

    Visit a parse tree produced by the intervalLiteral labeled alternative in SqlBaseParser#constant.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  173. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  174. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  175. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  176. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  177. def visitLambda(ctx: LambdaContext): Expression

    Create an LambdaFunction.

    Create an LambdaFunction.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  178. def visitLast(ctx: LastContext): Expression

    Create a Last expression.

    Create a Last expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  179. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  180. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  181. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  182. def visitLocationSpec(ctx: LocationSpecContext): String

    Create a location string.

    Create a location string.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  183. def visitLocationSpecList(ctx: List[LocationSpecContext]): Option[String]

    Create an optional location string.

    Create an optional location string.

    Attributes
    protected
  184. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  185. def visitLogicalNot(ctx: LogicalNotContext): Expression

    Invert a boolean expression.

    Invert a boolean expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  186. def visitManageResource(ctx: ManageResourceContext): AnyRef

    Visit a parse tree produced by the manageResource labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the manageResource labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  187. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  188. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  189. def visitMergeIntoTable(ctx: MergeIntoTableContext): LogicalPlan

    Visit a parse tree produced by the mergeIntoTable labeled alternative in SqlBaseParser#dmlStatementNoWith.

    Visit a parse tree produced by the mergeIntoTable labeled alternative in SqlBaseParser#dmlStatementNoWith.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  190. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  191. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  192. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  193. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  194. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  195. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  196. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  197. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  198. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  199. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  200. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  201. 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
  202. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  203. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  204. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  205. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  206. def visitNumericLiteral(ctx: NumericLiteralContext): AnyRef

    Visit a parse tree produced by the numericLiteral labeled alternative in SqlBaseParser#constant.

    Visit a parse tree produced by the numericLiteral labeled alternative in SqlBaseParser#constant.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  207. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  208. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  209. def visitOverlay(ctx: OverlayContext): Expression

    Create a Overlay expression.

    Create a Overlay expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  210. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  211. def visitPartitionColumn(ctx: PartitionColumnContext): AnyRef

    Visit a parse tree produced by the partitionColumn labeled alternative in SqlBaseParser#partitionField.

    Visit a parse tree produced by the partitionColumn labeled alternative in SqlBaseParser#partitionField.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  212. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  213. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  214. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  215. def visitPartitionTransform(ctx: PartitionTransformContext): Transform

    Visit a parse tree produced by the partitionTransform labeled alternative in SqlBaseParser#partitionField.

    Visit a parse tree produced by the partitionTransform labeled alternative in SqlBaseParser#partitionField.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  216. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  217. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  218. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  219. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  220. def visitPosition(ctx: PositionContext): Expression

    Create a Position expression.

    Create a Position expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  221. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  222. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  223. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  224. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  225. def visitPropertyKeyValues(ctx: TablePropertyListContext): Map[String, String]

    Parse a key-value map from a TablePropertyListContext, assuming all values are specified.

  226. def visitPropertyKeys(ctx: TablePropertyListContext): Seq[String]

    Parse a list of keys from a TablePropertyListContext, assuming no values are specified.

  227. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  228. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  229. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  230. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  231. def visitQuery(ctx: 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  232. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  233. def visitQueryPrimaryDefault(ctx: QueryPrimaryDefaultContext): AnyRef

    Visit a parse tree produced by the queryPrimaryDefault labeled alternative in SqlBaseParser#queryPrimary.

    Visit a parse tree produced by the queryPrimaryDefault labeled alternative in SqlBaseParser#queryPrimary.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  234. def visitQueryTermDefault(ctx: QueryTermDefaultContext): AnyRef

    Visit a parse tree produced by the queryTermDefault labeled alternative in SqlBaseParser#queryTerm.

    Visit a parse tree produced by the queryTermDefault labeled alternative in SqlBaseParser#queryTerm.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  235. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  236. def visitQuotedIdentifierAlternative(ctx: QuotedIdentifierAlternativeContext): AnyRef

    Visit a parse tree produced by the quotedIdentifierAlternative labeled alternative in SqlBaseParser#strictIdentifier.

    Visit a parse tree produced by the quotedIdentifierAlternative labeled alternative in SqlBaseParser#strictIdentifier.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  237. def visitRealIdent(ctx: RealIdentContext): AnyRef

    Visit a parse tree produced by the realIdent labeled alternative in SqlBaseParser#errorCapturingIdentifierExtra.

    Visit a parse tree produced by the realIdent labeled alternative in SqlBaseParser#errorCapturingIdentifierExtra.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  238. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  239. def visitRefreshFunction(ctx: RefreshFunctionContext): LogicalPlan

    Visit a parse tree produced by the refreshFunction labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the refreshFunction labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  240. def visitRefreshResource(ctx: RefreshResourceContext): AnyRef

    Visit a parse tree produced by the refreshResource labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the refreshResource labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  241. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  242. def visitRegularQuerySpecification(ctx: RegularQuerySpecificationContext): LogicalPlan

    Visit a parse tree produced by the regularQuerySpecification labeled alternative in SqlBaseParser#querySpecification.

    Visit a parse tree produced by the regularQuerySpecification labeled alternative in SqlBaseParser#querySpecification.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  243. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  244. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  245. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  246. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  247. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  248. def visitReplaceTable(ctx: ReplaceTableContext): LogicalPlan

    Replace a table, returning a ReplaceTableStatement logical plan.

    Replace a table, returning a ReplaceTableStatement 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  249. def visitReplaceTableHeader(ctx: ReplaceTableHeaderContext): TableHeader

    Validate a replace table statement and return the TableIdentifier.

    Validate a replace table statement and return the TableIdentifier.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  250. def visitResetConfiguration(ctx: ResetConfigurationContext): AnyRef

    Visit a parse tree produced by the resetConfiguration labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the resetConfiguration labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  251. def visitResetQuotedConfiguration(ctx: ResetQuotedConfigurationContext): AnyRef

    Visit a parse tree produced by the resetQuotedConfiguration labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the resetQuotedConfiguration labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  252. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  253. def visitRowConstructor(ctx: RowConstructorContext): Expression

    Create a CreateStruct expression.

    Create a CreateStruct expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  254. 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]
  255. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  256. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  257. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  258. def visitSampleByBucket(ctx: SampleByBucketContext): AnyRef

    Visit a parse tree produced by the sampleByBucket labeled alternative in SqlBaseParser#sampleMethod.

    Visit a parse tree produced by the sampleByBucket labeled alternative in SqlBaseParser#sampleMethod.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  259. def visitSampleByBytes(ctx: SampleByBytesContext): AnyRef

    Visit a parse tree produced by the sampleByBytes labeled alternative in SqlBaseParser#sampleMethod.

    Visit a parse tree produced by the sampleByBytes labeled alternative in SqlBaseParser#sampleMethod.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  260. def visitSampleByPercentile(ctx: SampleByPercentileContext): AnyRef

    Visit a parse tree produced by the sampleByPercentile labeled alternative in SqlBaseParser#sampleMethod.

    Visit a parse tree produced by the sampleByPercentile labeled alternative in SqlBaseParser#sampleMethod.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  261. def visitSampleByRows(ctx: SampleByRowsContext): AnyRef

    Visit a parse tree produced by the sampleByRows labeled alternative in SqlBaseParser#sampleMethod.

    Visit a parse tree produced by the sampleByRows labeled alternative in SqlBaseParser#sampleMethod.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  262. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  263. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  264. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  265. def visitSetConfiguration(ctx: SetConfigurationContext): AnyRef

    Visit a parse tree produced by the setConfiguration labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the setConfiguration labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  266. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  267. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  268. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  269. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  270. def visitSetQuotedConfiguration(ctx: SetQuotedConfigurationContext): AnyRef

    Visit a parse tree produced by the setQuotedConfiguration labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the setQuotedConfiguration labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  271. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  272. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  273. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  274. def visitSetTimeZone(ctx: SetTimeZoneContext): AnyRef

    Visit a parse tree produced by the setTimeZone labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the setTimeZone labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  275. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  276. def visitShowCreateTable(ctx: ShowCreateTableContext): LogicalPlan

    Creates a ShowCreateTable

    Creates a ShowCreateTable

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  277. def visitShowCurrentNamespace(ctx: ShowCurrentNamespaceContext): LogicalPlan

    Create a ShowCurrentNamespaceStatement.

    Create a ShowCurrentNamespaceStatement.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  278. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  279. def visitShowNamespaces(ctx: ShowNamespacesContext): LogicalPlan

    Create a ShowNamespaces command.

    Create a ShowNamespaces command.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  280. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  281. def visitShowTableExtended(ctx: ShowTableExtendedContext): LogicalPlan

    Create a ShowTableExtended command.

    Create a ShowTableExtended command.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  282. def visitShowTables(ctx: ShowTablesContext): LogicalPlan

    Create a ShowTables command.

    Create a ShowTables command.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  283. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  284. def visitShowViews(ctx: ShowViewsContext): LogicalPlan

    Create a ShowViews command.

    Create a ShowViews command.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  285. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  286. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  287. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  288. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  289. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  290. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  291. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  292. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  293. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  294. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  295. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  296. def visitSortItem(ctx: SortItemContext): SortOrder

    Create a SortOrder expression.

    Create a SortOrder expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  297. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  298. def visitStatementDefault(ctx: StatementDefaultContext): AnyRef

    Visit a parse tree produced by the statementDefault labeled alternative in SqlBaseParser#statement.

    Visit a parse tree produced by the statementDefault labeled alternative in SqlBaseParser#statement.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  299. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  300. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  301. def visitStringConstant(ctx: ConstantContext, legacyNullAsString: Boolean): 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
  302. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  303. def visitStruct(ctx: StructContext): Expression

    Create a CreateStruct expression.

    Create a CreateStruct expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  304. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  305. def visitSubqueryExpression(ctx: SubqueryExpressionContext): Expression

    Create a ScalarSubquery expression.

    Create a ScalarSubquery expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  306. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  307. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  308. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  309. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  310. def visitTableFileFormat(ctx: TableFileFormatContext): AnyRef

    Visit a parse tree produced by the tableFileFormat labeled alternative in SqlBaseParser#fileFormat.

    Visit a parse tree produced by the tableFileFormat labeled alternative in SqlBaseParser#fileFormat.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  311. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  312. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  313. def visitTableProperty(ctx: TablePropertyContext): AnyRef

    Visit a parse tree produced by SqlBaseParser#tableProperty.

    Visit a parse tree produced by SqlBaseParser#tableProperty.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  314. def visitTablePropertyKey(key: TablePropertyKeyContext): String

    A table property key can either be String or a collection of dot separated elements.

    A table 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 table property identifier.

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  315. def visitTablePropertyList(ctx: TablePropertyListContext): Map[String, String]

    Convert a table property list into a key-value map.

    Convert a table 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  316. def visitTablePropertyValue(value: TablePropertyValueContext): String

    A table property value can be String, Integer, Boolean or Decimal.

    A table 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  317. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  318. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  319. def visitTerminal(arg0: TerminalNode): AnyRef
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  320. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  321. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  322. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  323. def visitTransformQuerySpecification(ctx: TransformQuerySpecificationContext): LogicalPlan

    Visit a parse tree produced by the transformQuerySpecification labeled alternative in SqlBaseParser#querySpecification.

    Visit a parse tree produced by the transformQuerySpecification labeled alternative in SqlBaseParser#querySpecification.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  324. def visitTrim(ctx: TrimContext): Expression

    Create a Trim expression.

    Create a Trim expression.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  325. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  326. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  327. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  328. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  329. def visitUnquotedIdentifier(ctx: UnquotedIdentifierContext): AnyRef

    Visit a parse tree produced by the unquotedIdentifier labeled alternative in SqlBaseParser#strictIdentifier.

    Visit a parse tree produced by the unquotedIdentifier labeled alternative in SqlBaseParser#strictIdentifier.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  330. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  331. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  332. def visitUpdateTable(ctx: UpdateTableContext): LogicalPlan

    Visit a parse tree produced by the updateTable labeled alternative in SqlBaseParser#dmlStatementNoWith.

    Visit a parse tree produced by the updateTable labeled alternative in SqlBaseParser#dmlStatementNoWith.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  333. def visitUse(ctx: UseContext): LogicalPlan

    Create a UseStatement logical plan.

    Create a UseStatement logical plan.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  334. def visitValueExpressionDefault(ctx: ValueExpressionDefaultContext): AnyRef

    Visit a parse tree produced by the valueExpressionDefault labeled alternative in SqlBaseParser#valueExpression.

    Visit a parse tree produced by the valueExpressionDefault labeled alternative in SqlBaseParser#valueExpression.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  335. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  336. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  337. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  338. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  339. 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 #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    SqlBaseBaseVisitorSqlBaseVisitor
    Annotations
    @Override()
  340. 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
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  341. def visitYearMonthIntervalDataType(ctx: YearMonthIntervalDataTypeContext): DataType

    Visit a parse tree produced by the yearMonthIntervalDataType labeled alternative in SqlBaseParser#dataType.

    Visit a parse tree produced by the yearMonthIntervalDataType labeled alternative in SqlBaseParser#dataType.

    The default implementation returns the result of calling #visitChildren on ctx.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    AstBuilderSqlBaseBaseVisitorSqlBaseVisitor
  342. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  343. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  344. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  345. def withRepartitionByExpression(ctx: QueryOrganizationContext, expressions: Seq[Expression], query: LogicalPlan): LogicalPlan

    Create a clause for DISTRIBUTE BY.

    Create a clause for DISTRIBUTE BY.

    Attributes
    protected
  346. def withScriptIOSchema(ctx: ParserRuleContext, inRowFormat: RowFormatContext, recordWriter: Token, outRowFormat: RowFormatContext, recordReader: Token, schemaLess: Boolean): ScriptInputOutputSchema

    Create a ScriptInputOutputSchema.

    Create a ScriptInputOutputSchema.

    Attributes
    protected

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Logging

Inherited from SQLConfHelper

Inherited from SqlBaseBaseVisitor[AnyRef]

Inherited from SqlBaseVisitor[AnyRef]

Inherited from AbstractParseTreeVisitor[AnyRef]

Inherited from ParseTreeVisitor[AnyRef]

Inherited from AnyRef

Inherited from Any

Ungrouped