object SchemaPruning extends SQLConfHelper
- Alphabetic
- By Inheritance
- SchemaPruning
- SQLConfHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class RootField(field: StructField, derivedFromAtt: Boolean, prunedIfAnyChildAccessed: Boolean = false) extends Product with Serializable
This represents a "root" schema field (aka top-level, no-parent).
This represents a "root" schema field (aka top-level, no-parent).
fieldis theStructFieldfor field name and datatype.derivedFromAttindicates whether it was derived from an attribute or had a proper child.prunedIfAnyChildAccessedmeans whether this root field can be pruned if any of child field is used in the query.
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]) @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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def identifyRootFields(projects: Seq[NamedExpression], filters: Seq[Expression]): Seq[RootField]
Returns the set of fields from projection and filtering predicates that the query plan needs.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pruneSchema(schema: StructType, requestedRootFields: Seq[RootField]): StructType
Prunes the nested schema by the requested fields.
Prunes the nested schema by the requested fields. For example, if the schema is:
id int, s struct<a:int, b:int>, and given requested field "s.a", the inner field "b" is pruned in the returned schema:id int, s struct<a:int>. Note that:- The schema field ordering at original schema is still preserved in pruned schema. 2. The top-level fields are not pruned here.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()