Provides a logical query plan analyzer, which translates UnresolvedAttributes and UnresolvedRelations into fully typed objects using information in a SessionCatalog and a FunctionRegistry.
Throws user facing errors when passed invalid queries that fail to analyze.
Thrown by a catalog when an item already exists.
A catalog for looking up user defined functions, used by an Analyzer.
Used to assign new names to Generator's output, such as hive udtf.
A trait that should be mixed into query operators where a single instance might appear multiple times in a logical query plan.
Thrown by a catalog when an item cannot be found.
Represents all the resolved input attributes to a given relational operator.
Resolver should return true if the first string refers to the same entity as the second string.
Resolver should return true if the first string refers to the same entity as the second string. For example, by using case insensitive equality.
Represents all of the input attributes to a given relational operator, for example in "SELECT * FROM .
Replaces ordinal in 'order by' or 'group by' with UnresolvedOrdinal expression.
Represents the result of Expression.checkInputDataTypes
.
Holds the expression that has yet to be aliased.
Holds the name of an attribute that has yet to be resolved.
Holds the deserializer expression and the attributes that are available during the resolution for it.
Thrown when an invalid attempt is made to access a property of a tree that has yet to be fully resolved.
Extracts a value or values from an Expression
Represents an unresolved generator, which will be created by the parser for the org.apache.spark.sql.catalyst.plans.logical.Generate operator.
An inline table that has not been resolved yet.
Represents unresolved ordinal used in order by or group by.
Holds the name of a relation that has yet to be looked up in a catalog.
Represents all of the input attributes to a given relational operator, for example in "SELECT * FROM .
A table-valued function, e.
Cleans up unnecessary Aliases inside the plan.
Calculates and propagates precision for fixed-precision decimals.
Removes SubqueryAlias operators from the plan.
Removes Union operators from the plan if it just has one child.
A trivial catalog that returns an error when a function is requested.
Resolve a CreateNamedStruct if it contains NamePlaceholders.
An analyzer rule that replaces UnresolvedInlineTable with LocalRelation.
Rule that resolves table-valued function references.
A trivial Analyzer with a dummy SessionCatalog and EmptyFunctionRegistry.
Maps a time column to multiple time windows using the Expand operator.
A collection of Rule that can be used to coerce differing types that participate in operations into compatible ones.
Analyzes the presence of unsupported operations in a logical plan.
Catches any AnalysisExceptions thrown by f
and attaches t
's position if any.
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.