class VariableResolution extends SQLConfHelper
- Alphabetic
- By Inheritance
- VariableResolution
- SQLConfHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new VariableResolution(tempVariableManager: TempVariableManager)
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lookupVariable(nameParts: Seq[String]): Option[VariableReference]
Look up variable by nameParts.
Look up variable by nameParts. If in SQL Script, first check local variables. If not found fall back to session variables.
- nameParts
NameParts of the variable.
- returns
Reference to the variable.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def resolveMultipartName(nameParts: Seq[String], resolvingView: Boolean, referredTempVariableNames: Seq[Seq[String]]): Option[Expression]
Resolves a
multipartNameto an Expression tree, supporting nested field access.Resolves a
multipartNameto an Expression tree, supporting nested field access.This method implements a longest-match strategy similar to column resolution, preferring fully qualified variable names to avoid naming conflicts. It supports accessing nested fields within variables through dot notation.
The resolution process works as follows: 1. Attempts to resolve the full name as a variable 2. If unsuccessful, treats the rightmost parts as nested field access 3. Continues until a variable is found or all combinations are exhausted 4. Wraps the result in ExtractValue expressions for nested field access
- nameParts
The sequence of name parts representing the variable identifier (e.g., ["catalog", "schema", "variable", "field1", "field2"])
- resolvingView
Whether this resolution is happening within a view context. When true, only variables explicitly referred to in the view definition are accessible.
- referredTempVariableNames
When resolving within a view, this contains the list of variable names that the view explicitly references and should have access to.
- returns
Some(Expression) if a variable is successfully resolved, potentially wrapped in ExtractValue expressions for nested field access. None if no variable can be resolved from the given name parts.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withSQLConf[T](pairs: (String, String)*)(f: => T): T
Sets all SQL configurations specified in
pairs, callsf, and then restores all SQL configurations.Sets all SQL configurations specified in
pairs, callsf, and then restores all SQL configurations.- Attributes
- protected
- Definition Classes
- SQLConfHelper
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)