case object ResolveReferencesInUpdate extends SQLConfHelper with ColumnResolutionHelper with Product with Serializable
A virtual rule to resolve UnresolvedAttribute in UpdateTable. It's only used by the real
rule ResolveReferences. The column resolution order for UpdateTable is:
1. Resolves the column to AttributeReference with the output of the child plan. This
includes metadata columns as well.
2. Resolves the column to a literal function which is allowed to be invoked without braces, e.g.
SELECT col, current_date FROM t.
3. Resolves the column to the default value expression, if the column is the assignment value
and the corresponding assignment key is a top-level column.
- Alphabetic
- By Inheritance
- ResolveReferencesInUpdate
- Serializable
- Product
- Equals
- ColumnResolutionHelper
- DataTypeErrorsBase
- Logging
- SQLConfHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(u: UpdateTable): UpdateTable
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def conf: SQLConf
The active config object within the current scope.
The active config object within the current scope. See SQLConf.get for more information.
- Definition Classes
- SQLConfHelper
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getQueryContext(sqlContext: SQLQueryContext): Array[QueryContext]
- Definition Classes
- DataTypeErrorsBase
- def getSummary(sqlContext: SQLQueryContext): String
- Definition Classes
- DataTypeErrorsBase
- def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def log: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logName: String
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def quoteByDefault(elem: String): String
- Attributes
- protected
- Definition Classes
- DataTypeErrorsBase
- def resolveColWithAgg(e: Expression, plan: LogicalPlan): Expression
- Attributes
- protected
- Definition Classes
- ColumnResolutionHelper
- def resolveExprInAssignment(expr: Expression, hostPlan: LogicalPlan): Expression
- Definition Classes
- ColumnResolutionHelper
- def resolveExpressionByPlanChildren(e: Expression, q: LogicalPlan, allowOuter: Boolean = false): Expression
Resolves
UnresolvedAttribute,GetColumnByOrdinaland extract value expressions(s) by the input plan's children output attributes.Resolves
UnresolvedAttribute,GetColumnByOrdinaland extract value expressions(s) by the input plan's children output attributes.- e
The expression need to be resolved.
- q
The LogicalPlan whose children are used to resolve expression's attribute.
- returns
resolved Expression.
- Definition Classes
- ColumnResolutionHelper
- def resolveExpressionByPlanOutput(expr: Expression, plan: LogicalPlan, throws: Boolean = false, allowOuter: Boolean = false): Expression
Resolves
UnresolvedAttribute,GetColumnByOrdinaland extract value expressions(s) by the input plan's output attributes.Resolves
UnresolvedAttribute,GetColumnByOrdinaland extract value expressions(s) by the input plan's output attributes. In order to resolve the nested fields correctly, this function makes use ofthrowsparameter to control when to raise an AnalysisException.Example : SELECT * FROM t ORDER BY a.b
In the above example, after
ais resolved to a struct-type column, we may fail to resolvebif there is no such nested field named "b". We should not fail and wait for other rules to resolve it if possible.- Definition Classes
- ColumnResolutionHelper
- def resolveExprsAndAddMissingAttrs(exprs: Seq[Expression], plan: LogicalPlan): (Seq[Expression], LogicalPlan)
This method tries to resolve expressions and find missing attributes recursively.
This method tries to resolve expressions and find missing attributes recursively. Specifically, when the expressions used in
SortorFiltercontain unresolved attributes or resolved attributes which are missing from child output. This method tries to find the missing attributes and add them into the projection.- Attributes
- protected
- Definition Classes
- ColumnResolutionHelper
- def resolveLateralColumnAlias(selectList: Seq[Expression]): Seq[Expression]
- Attributes
- protected
- Definition Classes
- ColumnResolutionHelper
- def resolveOuterRef(e: Expression): Expression
- Attributes
- protected
- Definition Classes
- ColumnResolutionHelper
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toSQLConf(conf: String): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLId(parts: Seq[String]): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLId(parts: String): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLStmt(text: String): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLType(t: AbstractDataType): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLType(text: String): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLValue(value: Double): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLValue(value: Float): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLValue(value: Long): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLValue(value: Int): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLValue(value: Short): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLValue(value: UTF8String): String
- Definition Classes
- DataTypeErrorsBase
- def toSQLValue(value: String): String
- Definition Classes
- DataTypeErrorsBase
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()