Packages

o

org.apache.spark.sql.delta

TypeWidening

object TypeWidening

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

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 assertTableReadable(conf: SQLConf, protocol: Protocol, metadata: Metadata): Unit

    Asserts that the given table doesn't contain any unsupported type changes.

    Asserts that the given table doesn't contain any unsupported type changes. This should never happen unless a non-compliant writer applied a type change that is not part of the feature specification.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def containsWideningTypeChanges(from: DataType, to: DataType): Boolean

    Compares from and to and returns whether the type was widened, or, for nested types, whether one of the nested fields was widened.

  8. def ensureFeatureConsistentlyEnabled(protocol: Protocol, metadata: Metadata, otherProtocol: Protocol, otherMetadata: Metadata): Unit

    Checks that the type widening table property wasn't disabled or enabled between the two given states, throws an errors if it was.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def isEnabled(protocol: Protocol, metadata: Metadata): Boolean

    Returns whether Type Widening is enabled on this table version.

    Returns whether Type Widening is enabled on this table version. Checks that Type Widening is supported, which is a pre-requisite for enabling Type Widening, throws an error if not. When Type Widening is enabled, the type of existing columns or fields can be widened using ALTER TABLE CHANGE COLUMN.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def isSupported(protocol: Protocol): Boolean

    Returns whether the protocol version supports the Type Widening table feature.

  16. def isTypeChangeSupported(fromType: AtomicType, toType: AtomicType): Boolean

    Returns whether the given type change is eligible for widening.

    Returns whether the given type change is eligible for widening. This only checks atomic types. It is the responsibility of the caller to recurse into structs, maps and arrays.

  17. def isTypeChangeSupportedByIceberg(fromType: AtomicType, toType: AtomicType): Boolean

    Returns whether the given type change is supported by Iceberg, and by extension can be read using Uniform.

    Returns whether the given type change is supported by Iceberg, and by extension can be read using Uniform. See https://iceberg.apache.org/spec/#schema-evolution. Note that these are type promotions supported by Iceberg V1 & V2 (both support the same type promotions). Iceberg V3 will add support for date -> timestamp_ntz and void -> any but Uniform doesn't currently support Iceberg V3.

  18. def isTypeChangeSupportedForSchemaEvolution(fromType: AtomicType, toType: AtomicType, uniformIcebergCompatibleOnly: Boolean): Boolean

    Returns whether the given type change can be applied during schema evolution.

    Returns whether the given type change can be applied during schema evolution. Only a subset of supported type changes are considered for schema evolution.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 AnyRef

Inherited from Any

Ungrouped