Packages

c

org.apache.spark.sql.catalyst.analysis

VariableResolution

class VariableResolution extends SQLConfHelper

Linear Supertypes
SQLConfHelper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VariableResolution
  2. SQLConfHelper
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new VariableResolution(tempVariableManager: TempVariableManager)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. 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
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. 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.

  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. def resolveMultipartName(nameParts: Seq[String], resolvingView: Boolean, referredTempVariableNames: Seq[Seq[String]]): Option[Expression]

    Resolves a multipartName to an Expression tree, supporting nested field access.

    Resolves a multipartName to 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.

  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. def withSQLConf[T](pairs: (String, String)*)(f: => T): T

    Sets all SQL configurations specified in pairs, calls f, and then restores all SQL configurations.

    Sets all SQL configurations specified in pairs, calls f, and then restores all SQL configurations.

    Attributes
    protected
    Definition Classes
    SQLConfHelper

Deprecated Value Members

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

    (Since version 9)

Inherited from SQLConfHelper

Inherited from AnyRef

Inherited from Any

Ungrouped