public class RelationConversions
extends org.apache.spark.sql.catalyst.rules.Rule<org.apache.spark.sql.catalyst.plans.logical.LogicalPlan>
implements scala.Product, scala.Serializable
- When writing to non-partitioned Hive-serde Parquet/Orc tables - When scanning Hive-serde Parquet/ORC tables
This rule must be run before all other DDL post-hoc resolution rules, i.e.
PreprocessTableCreation
, PreprocessTableInsertion
, DataSourceAnalysis
and HiveAnalysis
.
Constructor and Description |
---|
RelationConversions(org.apache.spark.sql.internal.SQLConf conf,
org.apache.spark.sql.hive.HiveSessionCatalog sessionCatalog) |
Modifier and Type | Method and Description |
---|---|
org.apache.spark.sql.catalyst.plans.logical.LogicalPlan |
apply(org.apache.spark.sql.catalyst.plans.logical.LogicalPlan plan) |
org.apache.spark.sql.internal.SQLConf |
conf() |
org.apache.spark.sql.hive.HiveSessionCatalog |
sessionCatalog() |
static String |
toString() |
initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, org$apache$spark$internal$Logging$$log__$eq, org$apache$spark$internal$Logging$$log_, ruleName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
productArity, productElement, productIterator, productPrefix
initializeLogging, log_
public RelationConversions(org.apache.spark.sql.internal.SQLConf conf, org.apache.spark.sql.hive.HiveSessionCatalog sessionCatalog)
public static String toString()
public org.apache.spark.sql.internal.SQLConf conf()
public org.apache.spark.sql.hive.HiveSessionCatalog sessionCatalog()
public org.apache.spark.sql.catalyst.plans.logical.LogicalPlan apply(org.apache.spark.sql.catalyst.plans.logical.LogicalPlan plan)
apply
in class org.apache.spark.sql.catalyst.rules.Rule<org.apache.spark.sql.catalyst.plans.logical.LogicalPlan>