org.apache.spark.sql.catalyst

analysis

package analysis

Provides a logical query plan Analyzer and supporting classes for performing analysis. Analysis consists of translating UnresolvedAttributes and UnresolvedRelations into fully typed objects using information in a schema Catalog.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. analysis
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Analyzer extends RuleExecutor[LogicalPlan] with HiveTypeCoercion

    Provides a logical query plan analyzer, which translates UnresolvedAttributes and UnresolvedRelations into fully typed objects using information in a schema Catalog and a FunctionRegistry.

  2. trait Catalog extends AnyRef

    An interface for looking up relations by name.

  3. trait FunctionRegistry extends AnyRef

    A catalog for looking up user defined functions, used by an Analyzer.

  4. trait HiveTypeCoercion extends AnyRef

    A collection of Rules that can be used to coerce differing types that participate in operations into compatible ones.

  5. trait MultiInstanceRelation extends AnyRef

    A trait that should be mixed into query operators where an single instance might appear multiple times in a logical query plan.

  6. trait OverrideCatalog extends Catalog

    A trait that can be mixed in with other Catalogs allowing specific tables to be overridden with new logical plans.

  7. class SimpleCatalog extends Catalog

  8. case class Star(table: Option[String], mapFunction: (Attribute) ⇒ Expression = ...) extends Attribute with LeafNode[Expression] with Product with Serializable

    Represents all of the input attributes to a given relational operator, for example in "SELECT * FROM .

  9. case class UnresolvedAttribute(name: String) extends Attribute with LeafNode[Expression] with Product with Serializable

    Holds the name of an attribute that has yet to be resolved.

  10. class UnresolvedException[TreeType <: TreeNode[_]] extends TreeNodeException[TreeType]

    Thrown when an invalid attempt is made to access a property of a tree that has yet to be fully resolved.

  11. case class UnresolvedFunction(name: String, children: Seq[Expression]) extends Expression with Product with Serializable

  12. case class UnresolvedRelation(databaseName: Option[String], tableName: String, alias: Option[String] = scala.None) extends BaseRelation with Product with Serializable

    Holds the name of a relation that has yet to be looked up in a Catalog.

Value Members

  1. object EliminateAnalysisOperators extends Rule[LogicalPlan]

    Removes Subquery operators from the plan.

  2. object EmptyCatalog extends Catalog

    A trivial catalog that returns an error when a relation is requested.

  3. object EmptyFunctionRegistry extends FunctionRegistry

    A trivial catalog that returns an error when a function is requested.

  4. object HiveTypeCoercion

  5. object NewRelationInstances extends Rule[LogicalPlan]

    If any MultiInstanceRelation appears more than once in the query plan then the plan is updated so that each instance has unique expression ids for the attributes produced.

  6. object SimpleAnalyzer extends Analyzer

    A trivial Analyzer with an EmptyCatalog and EmptyFunctionRegistry.

Inherited from AnyRef

Inherited from Any

Ungrouped