c

io.delta.sql.parser

DeltaSqlAstBuilder

class DeltaSqlAstBuilder extends DeltaSqlBaseBaseVisitor[AnyRef]

Define how to convert an AST generated from DeltaSqlBase.g4 to a LogicalPlan. The parent class DeltaSqlBaseBaseVisitor defines all visitXXX methods generated from # instructions in DeltaSqlBase.g4 (such as #vacuumTable).

Linear Supertypes
DeltaSqlBaseBaseVisitor[AnyRef], DeltaSqlBaseVisitor[AnyRef], AbstractParseTreeVisitor[AnyRef], ParseTreeVisitor[AnyRef], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DeltaSqlAstBuilder
  2. DeltaSqlBaseBaseVisitor
  3. DeltaSqlBaseVisitor
  4. AbstractParseTreeVisitor
  5. ParseTreeVisitor
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DeltaSqlAstBuilder()

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def defaultResult(): AnyRef
    Attributes
    protected[tree]
    Definition Classes
    AbstractParseTreeVisitor
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def shouldVisitNextChild(arg0: RuleNode, arg1: AnyRef): Boolean
    Attributes
    protected[tree]
    Definition Classes
    AbstractParseTreeVisitor
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. def typedVisit[T](ctx: ParseTree): T
    Attributes
    protected
  21. def visit(arg0: ParseTree): AnyRef
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  22. def visitAddTableConstraint(ctx: AddTableConstraintContext): LogicalPlan

    Visit a parse tree produced by the addTableConstraint labeled alternative in DeltaSqlBaseParser#statement.

    Visit a parse tree produced by the addTableConstraint labeled alternative in DeltaSqlBaseParser#statement.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  23. def visitBigDecimalLiteral(ctx: BigDecimalLiteralContext): AnyRef

    Visit a parse tree produced by the bigDecimalLiteral labeled alternative in DeltaSqlBaseParser#number.

    Visit a parse tree produced by the bigDecimalLiteral labeled alternative in DeltaSqlBaseParser#number.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  24. def visitBigIntLiteral(ctx: BigIntLiteralContext): AnyRef

    Visit a parse tree produced by the bigIntLiteral labeled alternative in DeltaSqlBaseParser#number.

    Visit a parse tree produced by the bigIntLiteral labeled alternative in DeltaSqlBaseParser#number.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  25. def visitCheckConstraint(ctx: CheckConstraintContext): AnyRef

    Visit a parse tree produced by the checkConstraint labeled alternative in DeltaSqlBaseParser#constraint.

    Visit a parse tree produced by the checkConstraint labeled alternative in DeltaSqlBaseParser#constraint.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  26. def visitChildren(arg0: RuleNode): AnyRef
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  27. def visitColType(ctx: ColTypeContext): StructField

    Visit a parse tree produced by DeltaSqlBaseParser#colType.

    Visit a parse tree produced by DeltaSqlBaseParser#colType.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  28. def visitColTypeList(ctx: ColTypeListContext): Seq[StructField]

    Visit a parse tree produced by DeltaSqlBaseParser#colTypeList.

    Visit a parse tree produced by DeltaSqlBaseParser#colTypeList.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  29. def visitConvert(ctx: ConvertContext): LogicalPlan

    Visit a parse tree produced by the convert labeled alternative in DeltaSqlBaseParser#statement.

    Visit a parse tree produced by the convert labeled alternative in DeltaSqlBaseParser#statement.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  30. def visitDecimalLiteral(ctx: DecimalLiteralContext): AnyRef

    Visit a parse tree produced by the decimalLiteral labeled alternative in DeltaSqlBaseParser#number.

    Visit a parse tree produced by the decimalLiteral labeled alternative in DeltaSqlBaseParser#number.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  31. def visitDescribeDeltaDetail(ctx: DescribeDeltaDetailContext): LogicalPlan

    Visit a parse tree produced by the describeDeltaDetail labeled alternative in DeltaSqlBaseParser#statement.

    Visit a parse tree produced by the describeDeltaDetail labeled alternative in DeltaSqlBaseParser#statement.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  32. def visitDescribeDeltaHistory(ctx: DescribeDeltaHistoryContext): LogicalPlan

    Visit a parse tree produced by the describeDeltaHistory labeled alternative in DeltaSqlBaseParser#statement.

    Visit a parse tree produced by the describeDeltaHistory labeled alternative in DeltaSqlBaseParser#statement.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  33. def visitDoubleLiteral(ctx: DoubleLiteralContext): AnyRef

    Visit a parse tree produced by the doubleLiteral labeled alternative in DeltaSqlBaseParser#number.

    Visit a parse tree produced by the doubleLiteral labeled alternative in DeltaSqlBaseParser#number.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  34. def visitDropTableConstraint(ctx: DropTableConstraintContext): LogicalPlan

    Visit a parse tree produced by the dropTableConstraint labeled alternative in DeltaSqlBaseParser#statement.

    Visit a parse tree produced by the dropTableConstraint labeled alternative in DeltaSqlBaseParser#statement.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  35. def visitErrorNode(arg0: ErrorNode): AnyRef
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  36. def visitExprToken(ctx: ExprTokenContext): AnyRef

    Visit a parse tree produced by DeltaSqlBaseParser#exprToken.

    Visit a parse tree produced by DeltaSqlBaseParser#exprToken.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  37. def visitGenerate(ctx: GenerateContext): LogicalPlan

    Visit a parse tree produced by the generate labeled alternative in DeltaSqlBaseParser#statement.

    Visit a parse tree produced by the generate labeled alternative in DeltaSqlBaseParser#statement.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  38. def visitIntegerLiteral(ctx: IntegerLiteralContext): AnyRef

    Visit a parse tree produced by the integerLiteral labeled alternative in DeltaSqlBaseParser#number.

    Visit a parse tree produced by the integerLiteral labeled alternative in DeltaSqlBaseParser#number.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  39. def visitNonReserved(ctx: NonReservedContext): AnyRef

    Visit a parse tree produced by DeltaSqlBaseParser#nonReserved.

    Visit a parse tree produced by DeltaSqlBaseParser#nonReserved.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  40. def visitOptimizeTable(ctx: OptimizeTableContext): AnyRef

    Create a OptimizeTableCommand logical plan.

    Create a OptimizeTableCommand logical plan. Syntax:

    OPTIMIZE <table-identifier>
      [WHERE predicate-using-partition-columns]
      [ZORDER BY [(] col1, col2 ..[)]]

    Examples:

    OPTIMIZE '/path/to/delta/table';
    OPTIMIZE delta_table_name;
    OPTIMIZE delta.`/path/to/delta/table`;
    OPTIMIZE delta_table_name WHERE partCol = 25;
    OPTIMIZE delta_table_name WHERE partCol = 25 ZORDER BY col2, col2;
    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  41. def visitPassThrough(ctx: PassThroughContext): LogicalPlan

    Visit a parse tree produced by the passThrough labeled alternative in DeltaSqlBaseParser#statement.

    Visit a parse tree produced by the passThrough labeled alternative in DeltaSqlBaseParser#statement.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  42. def visitPredicateToken(ctx: PredicateTokenContext): AnyRef

    Visit a parse tree produced by DeltaSqlBaseParser#predicateToken.

    Visit a parse tree produced by DeltaSqlBaseParser#predicateToken.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  43. def visitPrimitiveDataType(ctx: PrimitiveDataTypeContext): DataType

    Visit a parse tree produced by the primitiveDataType labeled alternative in DeltaSqlBaseParser#dataType.

    Visit a parse tree produced by the primitiveDataType labeled alternative in DeltaSqlBaseParser#dataType.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  44. def visitQualifiedName(ctx: QualifiedNameContext): AnyRef

    Visit a parse tree produced by DeltaSqlBaseParser#qualifiedName.

    Visit a parse tree produced by DeltaSqlBaseParser#qualifiedName.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  45. def visitQuotedIdentifier(ctx: QuotedIdentifierContext): AnyRef

    Visit a parse tree produced by DeltaSqlBaseParser#quotedIdentifier.

    Visit a parse tree produced by DeltaSqlBaseParser#quotedIdentifier.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  46. def visitQuotedIdentifierAlternative(ctx: QuotedIdentifierAlternativeContext): AnyRef

    Visit a parse tree produced by the quotedIdentifierAlternative labeled alternative in DeltaSqlBaseParser#identifier.

    Visit a parse tree produced by the quotedIdentifierAlternative labeled alternative in DeltaSqlBaseParser#identifier.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  47. def visitRestore(ctx: RestoreContext): LogicalPlan

    Visit a parse tree produced by the restore labeled alternative in DeltaSqlBaseParser#statement.

    Visit a parse tree produced by the restore labeled alternative in DeltaSqlBaseParser#statement.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  48. def visitSingleStatement(ctx: SingleStatementContext): LogicalPlan

    Visit a parse tree produced by DeltaSqlBaseParser#singleStatement.

    Visit a parse tree produced by DeltaSqlBaseParser#singleStatement.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  49. def visitSmallIntLiteral(ctx: SmallIntLiteralContext): AnyRef

    Visit a parse tree produced by the smallIntLiteral labeled alternative in DeltaSqlBaseParser#number.

    Visit a parse tree produced by the smallIntLiteral labeled alternative in DeltaSqlBaseParser#number.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  50. def visitTableIdentifier(ctx: QualifiedNameContext): TableIdentifier
    Attributes
    protected
  51. def visitTemporalClause(ctx: TemporalClauseContext): AnyRef

    Visit a parse tree produced by DeltaSqlBaseParser#temporalClause.

    Visit a parse tree produced by DeltaSqlBaseParser#temporalClause.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  52. def visitTerminal(arg0: TerminalNode): AnyRef
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  53. def visitTinyIntLiteral(ctx: TinyIntLiteralContext): AnyRef

    Visit a parse tree produced by the tinyIntLiteral labeled alternative in DeltaSqlBaseParser#number.

    Visit a parse tree produced by the tinyIntLiteral labeled alternative in DeltaSqlBaseParser#number.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  54. def visitUnquotedIdentifier(ctx: UnquotedIdentifierContext): AnyRef

    Visit a parse tree produced by the unquotedIdentifier labeled alternative in DeltaSqlBaseParser#identifier.

    Visit a parse tree produced by the unquotedIdentifier labeled alternative in DeltaSqlBaseParser#identifier.

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

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
    Annotations
    @Override()
  55. def visitVacuumTable(ctx: VacuumTableContext): AnyRef

    Create a VacuumTableCommand logical plan.

    Create a VacuumTableCommand logical plan. Example SQL:

    VACUUM ('/path/to/dir' | delta.`/path/to/dir`) [RETAIN number HOURS] [DRY RUN];
    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  56. def visitZorderSpec(ctx: ZorderSpecContext): Seq[UnresolvedAttribute]

    Provides a list of unresolved attributes for multi dimensional clustering.

    Provides a list of unresolved attributes for multi dimensional clustering.

    ctx

    the parse tree

    returns

    the visitor result

    Definition Classes
    DeltaSqlAstBuilderDeltaSqlBaseBaseVisitorDeltaSqlBaseVisitor
  57. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from DeltaSqlBaseBaseVisitor[AnyRef]

Inherited from DeltaSqlBaseVisitor[AnyRef]

Inherited from AbstractParseTreeVisitor[AnyRef]

Inherited from ParseTreeVisitor[AnyRef]

Inherited from AnyRef

Inherited from Any

Ungrouped