Class

com.qubole.spark.datasources.hiveacid.sql.catalyst.parser

AstBuilder

Related Doc: package parser

Permalink

class AstBuilder extends SqlHiveBaseVisitor[AnyRef] with Logging

An adaptation of org.apache.spark.sql.catalyst.parser.AstBuilder

Linear Supertypes
Logging, SqlHiveBaseVisitor[AnyRef], SqlHiveVisitor[AnyRef], AbstractParseTreeVisitor[AnyRef], ParseTreeVisitor[AnyRef], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AstBuilder
  2. Logging
  3. SqlHiveBaseVisitor
  4. SqlHiveVisitor
  5. AbstractParseTreeVisitor
  6. ParseTreeVisitor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AstBuilder()

    Permalink
  2. new AstBuilder(conf: SQLConf)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def aggregateResult(arg0: AnyRef, arg1: AnyRef): AnyRef

    Permalink
    Attributes
    protected[org.antlr.v4.runtime.tree]
    Definition Classes
    AbstractParseTreeVisitor
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def createSchema(ctx: ColTypeListContext): StructType

    Permalink

    Create top level table schema.

    Create top level table schema.

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

    Permalink

    Create a StructType from a sequence of StructFields.

    Create a StructType from a sequence of StructFields.

    Attributes
    protected
  9. def defaultResult(): AnyRef

    Permalink
    Attributes
    protected[org.antlr.v4.runtime.tree]
    Definition Classes
    AbstractParseTreeVisitor
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def expression(ctx: ParserRuleContext): Expression

    Permalink

    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
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  17. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  20. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  30. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def plan(tree: ParserRuleContext): LogicalPlan

    Permalink
    Attributes
    protected
  36. def shouldVisitNextChild(arg0: RuleNode, arg1: AnyRef): Boolean

    Permalink
    Attributes
    protected[org.antlr.v4.runtime.tree]
    Definition Classes
    AbstractParseTreeVisitor
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. def typedVisit[T](ctx: ParseTree): T

    Permalink
    Attributes
    protected
  40. def visit(arg0: ParseTree): AnyRef

    Permalink
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  41. def visitAggregation(ctx: AggregationContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  42. def visitAliasedQuery(ctx: AliasedQueryContext): LogicalPlan

    Permalink

    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)
    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  43. def visitAliasedRelation(ctx: AliasedRelationContext): LogicalPlan

    Permalink

    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)
    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  44. def visitArithmeticBinary(ctx: ArithmeticBinaryContext): Expression

    Permalink

    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: '|'

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  45. def visitArithmeticUnary(ctx: ArithmeticUnaryContext): Expression

    Permalink

    Create a unary arithmetic expression.

    Create a unary arithmetic expression. The following arithmetic operators are supported: - Plus: '+' - Minus: '-' - Bitwise Not: '~'

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  46. def visitBigDecimalLiteral(ctx: BigDecimalLiteralContext): Literal

    Permalink

    Create a BigDecimal Literal expression.

    Create a BigDecimal Literal expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  47. def visitBigIntLiteral(ctx: BigIntLiteralContext): Literal

    Permalink

    Create a Long Literal expression.

    Create a Long Literal expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  48. def visitBooleanLiteral(ctx: BooleanLiteralContext): Literal

    Permalink

    Create a Boolean literal expression.

    Create a Boolean literal expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  49. def visitBooleanValue(ctx: BooleanValueContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  50. def visitCast(ctx: CastContext): Expression

    Permalink

    Create a Cast expression.

    Create a Cast expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  51. def visitChildren(node: RuleNode): AnyRef

    Permalink

    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
  52. def visitColType(ctx: ColTypeContext): StructField

    Permalink

    Create a top level StructField from a column definition.

    Create a top level StructField from a column definition.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  53. def visitColTypeList(ctx: ColTypeListContext): Seq[StructField]

    Permalink

    Create a StructType from a number of column definitions.

    Create a StructType from a number of column definitions.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  54. def visitColumnReference(ctx: ColumnReferenceContext): Expression

    Permalink

    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

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  55. def visitComparison(ctx: ComparisonContext): Expression

    Permalink

    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: '>='

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  56. def visitComparisonOperator(ctx: ComparisonOperatorContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  57. def visitComplexColType(ctx: ComplexColTypeContext): StructField

    Permalink

    Create a StructField from a column definition.

    Create a StructField from a column definition.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  58. def visitComplexColTypeList(ctx: ComplexColTypeListContext): Seq[StructField]

    Permalink

    Create a StructType from a number of column definitions.

    Create a StructType from a number of column definitions.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  59. def visitComplexDataType(ctx: ComplexDataTypeContext): DataType

    Permalink

    Create a complex DataType.

    Create a complex DataType. Arrays, Maps and Structures are supported.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  60. def visitConstantDefault(ctx: ConstantDefaultContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  61. def visitCtes(ctx: CtesContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  62. def visitDecimalLiteral(ctx: DecimalLiteralContext): Literal

    Permalink

    Create a decimal literal for a regular decimal number.

    Create a decimal literal for a regular decimal number.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  63. def visitDelete(ctx: DeleteContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  64. def visitDeleteCommand(ctx: DeleteCommandContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  65. def visitDereference(ctx: DereferenceContext): Expression

    Permalink

    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.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  66. def visitDoubleLiteral(ctx: DoubleLiteralContext): Literal

    Permalink

    Create a Double Literal expression.

    Create a Double Literal expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  67. def visitErrorNode(arg0: ErrorNode): AnyRef

    Permalink
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  68. def visitExists(ctx: ExistsContext): Expression

    Permalink

    Create a filtering correlated sub-query (EXISTS).

    Create a filtering correlated sub-query (EXISTS).

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  69. def visitExpression(ctx: ExpressionContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  70. def visitExtract(ctx: ExtractContext): Expression

    Permalink

    Create a Extract expression.

    Create a Extract expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  71. def visitFirst(ctx: FirstContext): Expression

    Permalink

    Create a First expression.

    Create a First expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  72. def visitFrameBound(ctx: FrameBoundContext): Expression

    Permalink

    Create or resolve a frame boundary expressions.

    Create or resolve a frame boundary expressions.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  73. def visitFromClause(ctx: FromClauseContext): LogicalPlan

    Permalink

    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.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  74. def visitFunctionCall(ctx: FunctionCallContext): Expression

    Permalink

    Create a (windowed) Function expression.

    Create a (windowed) Function expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  75. def visitFunctionName(ctx: QualifiedNameContext): FunctionIdentifier

    Permalink

    Create a function database (optional) and name pair.

    Create a function database (optional) and name pair.

    Attributes
    protected
  76. def visitFunctionTable(ctx: FunctionTableContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  77. def visitGroupingSet(ctx: GroupingSetContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  78. def visitHint(ctx: HintContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  79. def visitHintStatement(ctx: HintStatementContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  80. def visitIdentifier(ctx: IdentifierContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  81. def visitIdentifierList(ctx: IdentifierListContext): Seq[String]

    Permalink

    Create a Sequence of Strings for a parenthesis enclosed alias list.

    Create a Sequence of Strings for a parenthesis enclosed alias list.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  82. def visitIdentifierSeq(ctx: IdentifierSeqContext): Seq[String]

    Permalink

    Create a Sequence of Strings for an identifier list.

    Create a Sequence of Strings for an identifier list.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  83. def visitInlineTable(ctx: InlineTableContext): LogicalPlan

    Permalink

    Create an inline table (a virtual table in Hive parlance).

    Create an inline table (a virtual table in Hive parlance).

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  84. def visitInlineTableDefault1(ctx: InlineTableDefault1Context): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  85. def visitInlineTableDefault2(ctx: InlineTableDefault2Context): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  86. def visitInsertFieldList(ctx: InsertFieldListContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  87. def visitIntegerLiteral(ctx: IntegerLiteralContext): Literal

    Permalink

    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.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  88. def visitInterval(ctx: IntervalContext): Literal

    Permalink

    Create a CalendarInterval literal expression.

    Create a CalendarInterval literal expression. An interval expression can contain multiple unit value pairs, for instance: interval 2 months 2 days.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  89. def visitIntervalField(ctx: IntervalFieldContext): CalendarInterval

    Permalink

    Create a CalendarInterval for a unit value pair.

    Create a CalendarInterval for a unit value pair. Two unit configuration types are supported: - Single unit. - From-To unit (only 'YEAR TO MONTH' and 'DAY TO SECOND' are supported).

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  90. def visitIntervalLiteral(ctx: IntervalLiteralContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  91. def visitIntervalValue(ctx: IntervalValueContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  92. def visitJoinCriteria(ctx: JoinCriteriaContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  93. def visitJoinRelation(ctx: JoinRelationContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  94. def visitJoinType(ctx: JoinTypeContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  95. def visitLambda(ctx: LambdaContext): Expression

    Permalink

    Create an LambdaFunction.

    Create an LambdaFunction.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  96. def visitLast(ctx: LastContext): Expression

    Permalink

    Create a Last expression.

    Create a Last expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  97. def visitLateralView(ctx: LateralViewContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  98. def visitLogicalBinary(ctx: LogicalBinaryContext): Expression

    Permalink

    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.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  99. def visitLogicalNot(ctx: LogicalNotContext): Expression

    Permalink

    Invert a boolean expression.

    Invert a boolean expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  100. def visitMerge(ctx: MergeContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  101. def visitMergeCommand(ctx: MergeCommandContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  102. def visitMerge_action(ctx: Merge_actionContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  103. def visitMerge_condition(ctx: Merge_conditionContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  104. def visitMultiInsertQueryBody(ctx: MultiInsertQueryBodyContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  105. def visitNamedExpression(ctx: NamedExpressionContext): Expression

    Permalink

    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.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  106. def visitNamedExpressionSeq(ctx: NamedExpressionSeqContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  107. def visitNamedQuery(ctx: NamedQueryContext): SubqueryAlias

    Permalink

    Create a named logical plan.

    Create a named logical plan.

    This is only used for Common Table Expressions.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  108. def visitNamedWindow(ctx: NamedWindowContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  109. def visitNonReserved(ctx: NonReservedContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  110. def visitNullLiteral(ctx: NullLiteralContext): Literal

    Permalink

    Create a NULL literal expression.

    Create a NULL literal expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  111. def visitNumericLiteral(ctx: NumericLiteralContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  112. def visitParenthesizedExpression(ctx: ParenthesizedExpressionContext): Expression

    Permalink

    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.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  113. def visitPivotClause(ctx: PivotClauseContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  114. def visitPivotColumn(ctx: PivotColumnContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  115. def visitPivotValue(ctx: PivotValueContext): Expression

    Permalink

    Create a Pivot column value with or without an alias.

    Create a Pivot column value with or without an alias.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  116. def visitPosition(ctx: PositionContext): Expression

    Permalink

    Create a Position expression.

    Create a Position expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  117. def visitPredicate(ctx: PredicateContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  118. def visitPredicated(ctx: PredicatedContext): Expression

    Permalink

    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
    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  119. def visitPrimitiveDataType(ctx: PrimitiveDataTypeContext): DataType

    Permalink

    Resolve/create a primitive type.

    Resolve/create a primitive type.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  120. def visitQualifiedName(ctx: QualifiedNameContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  121. def visitQuery(ctx: QueryContext): LogicalPlan

    Permalink

    Create a top-level plan with Common Table Expressions.

    Create a top-level plan with Common Table Expressions.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  122. def visitQueryNoWith(ctx: QueryNoWithContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  123. def visitQueryOrganization(ctx: QueryOrganizationContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  124. def visitQueryPrimaryDefault(ctx: QueryPrimaryDefaultContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  125. def visitQuerySpecification(ctx: QuerySpecificationContext): LogicalPlan

    Permalink

    Create a logical plan using a query specification.

    Create a logical plan using a query specification.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  126. def visitQueryTermDefault(ctx: QueryTermDefaultContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  127. def visitQuotedIdentifier(ctx: QuotedIdentifierContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  128. def visitQuotedIdentifierAlternative(ctx: QuotedIdentifierAlternativeContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  129. def visitRelation(ctx: RelationContext): LogicalPlan

    Permalink

    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
    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  130. def visitRowConstructor(ctx: RowConstructorContext): Expression

    Permalink

    Create a CreateStruct expression.

    Create a CreateStruct expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  131. def visitRowFormatDelimited(ctx: RowFormatDelimitedContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  132. def visitRowFormatSerde(ctx: RowFormatSerdeContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  133. def visitSample(ctx: SampleContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  134. def visitSampleByBucket(ctx: SampleByBucketContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  135. def visitSampleByBytes(ctx: SampleByBytesContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  136. def visitSampleByPercentile(ctx: SampleByPercentileContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  137. def visitSampleByRows(ctx: SampleByRowsContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  138. def visitSearchedCase(ctx: SearchedCaseContext): Expression

    Permalink

    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

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  139. def visitSetOperation(ctx: SetOperationContext): LogicalPlan

    Permalink

    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]

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  140. def visitSetQuantifier(ctx: SetQuantifierContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  141. def visitSimpleCase(ctx: SimpleCaseContext): Expression

    Permalink

    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
    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  142. def visitSingleStatement(ctx: SingleStatementContext): LogicalPlan

    Permalink
    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  143. def visitSmallIntLiteral(ctx: SmallIntLiteralContext): Literal

    Permalink

    Create a Short Literal expression.

    Create a Short Literal expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  144. def visitSortItem(ctx: SortItemContext): SortOrder

    Permalink

    Create a SortOrder expression.

    Create a SortOrder expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  145. def visitStar(ctx: StarContext): Expression

    Permalink

    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.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  146. def visitStringConstant(ctx: ConstantContext): String

    Permalink

    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
  147. def visitStringLiteral(ctx: StringLiteralContext): Literal

    Permalink

    Create a String literal expression.

    Create a String literal expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  148. def visitStruct(ctx: StructContext): Expression

    Permalink

    Create a CreateStruct expression.

    Create a CreateStruct expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  149. def visitSubquery(ctx: SubqueryContext): LogicalPlan

    Permalink

    Create a logical plan for a sub-query.

    Create a logical plan for a sub-query.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  150. def visitSubqueryExpression(ctx: SubqueryExpressionContext): Expression

    Permalink

    Create a ScalarSubquery expression.

    Create a ScalarSubquery expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  151. def visitSubscript(ctx: SubscriptContext): Expression

    Permalink

    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.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  152. def visitTable(ctx: TableContext): LogicalPlan

    Permalink

    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
    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  153. def visitTableAlias(ctx: TableAliasContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  154. def visitTableIdentifier(ctx: TableIdentifierContext): TableIdentifier

    Permalink

    Create a TableIdentifier from a 'tableName' or 'databaseName'.'tableName' pattern.

    Create a TableIdentifier from a 'tableName' or 'databaseName'.'tableName' pattern.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  155. def visitTableName(ctx: TableNameContext): LogicalPlan

    Permalink

    Create an aliased table reference.

    Create an aliased table reference. This is typically used in FROM clauses.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  156. def visitTableProperty(ctx: TablePropertyContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  157. def visitTablePropertyKey(ctx: TablePropertyKeyContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  158. def visitTablePropertyList(ctx: TablePropertyListContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  159. def visitTablePropertyValue(ctx: TablePropertyValueContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  160. def visitTableValuedFunction(ctx: TableValuedFunctionContext): LogicalPlan

    Permalink

    Create a table-valued function call with arguments, e.g.

    Create a table-valued function call with arguments, e.g. range(1000)

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  161. def visitTerminal(arg0: TerminalNode): AnyRef

    Permalink
    Definition Classes
    AbstractParseTreeVisitor → ParseTreeVisitor
  162. def visitTinyIntLiteral(ctx: TinyIntLiteralContext): Literal

    Permalink

    Create a Byte Literal expression.

    Create a Byte Literal expression.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  163. def visitTypeConstructor(ctx: TypeConstructorContext): Literal

    Permalink

    Create a typed Literal expression.

    Create a typed Literal expression. A typed literal has the following SQL syntax:

    [TYPE] '[VALUE]'

    Currently Date, Timestamp and Binary typed literals are supported.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  164. def visitUnquotedIdentifier(ctx: UnquotedIdentifierContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  165. def visitUpdate(ctx: UpdateContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  166. def visitUpdateCommand(ctx: UpdateCommandContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  167. def visitUpdateField(ctx: UpdateFieldContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  168. def visitUpdateFieldList(ctx: UpdateFieldListContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  169. def visitValueExpressionDefault(ctx: ValueExpressionDefaultContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  170. def visitWhenClause(ctx: WhenClauseContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  171. def visitWindowDef(ctx: WindowDefContext): WindowSpecDefinition

    Permalink

    Create a window definition, i.e.

    Create a window definition, i.e. WindowSpecDefinition.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  172. def visitWindowFrame(ctx: WindowFrameContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  173. def visitWindowRef(ctx: WindowRefContext): WindowSpecReference

    Permalink

    Create a reference to a window frame, i.e.

    Create a reference to a window frame, i.e. WindowSpecReference.

    Definition Classes
    AstBuilderSqlHiveBaseVisitorSqlHiveVisitor
  174. def visitWindows(ctx: WindowsContext): AnyRef

    Permalink
    Definition Classes
    SqlHiveBaseVisitorSqlHiveVisitor
  175. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  176. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  177. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  178. def withRepartitionByExpression(ctx: QueryOrganizationContext, expressions: Seq[Expression], query: LogicalPlan): LogicalPlan

    Permalink

    Create a clause for DISTRIBUTE BY.

    Create a clause for DISTRIBUTE BY.

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

    Permalink

    Create a (Hive based) ScriptInputOutputSchema.

    Create a (Hive based) ScriptInputOutputSchema.

    Attributes
    protected

Inherited from Logging

Inherited from SqlHiveBaseVisitor[AnyRef]

Inherited from SqlHiveVisitor[AnyRef]

Inherited from AbstractParseTreeVisitor[AnyRef]

Inherited from ParseTreeVisitor[AnyRef]

Inherited from AnyRef

Inherited from Any

Ungrouped