Skip to main content

TableFeature

Enum TableFeature 

Source
pub enum TableFeature {
Show 32 variants AppendOnly, Invariants, CheckConstraints, ChangeDataFeed, GeneratedColumns, IdentityColumns, InCommitTimestamp, RowTracking, DomainMetadata, IcebergCompatV1, IcebergCompatV2, IcebergCompatV3, ClusteredTable, MaterializePartitionColumns, AllowColumnDefaults, CatalogManaged, CatalogOwnedPreview, ColumnMapping, DeletionVectors, TimestampNanos, TimestampWithoutTimezone, TypeWidening, TypeWideningPreview, V2Checkpoint, VacuumProtocolCheck, VariantType, VariantTypePreview, VariantShredding, VariantShreddingPreview, AdaptiveMetadataPreview, GeospatialType, Unknown(String),
}
Available on crate feature internal-api only.
Expand description

Table features represent protocol capabilities required to correctly read or write a given table.

  • Readers must implement all features required for correct table reads.
  • Writers must implement all features required for correct table writes.

Each variant corresponds to one such feature. A feature is either:

  • ReaderWriter (must be supported by both readers and writers), or
  • WriterOnly (applies only to writers). There are no ReaderOnly features. See TableFeature::feature_type for the category of each.

The kernel currently supports all reader features.

Variants§

§

AppendOnly

Append Only Tables

§

Invariants

Table invariants

§

CheckConstraints

Check constraints on columns

§

ChangeDataFeed

CDF on a table

§

GeneratedColumns

Columns with generated values

§

IdentityColumns

ID Columns

§

InCommitTimestamp

Monotonically increasing timestamps in the CommitInfo

§

RowTracking

Row tracking on tables

§

DomainMetadata

domain specific metadata

§

IcebergCompatV1

Iceberg V1 compatibility support

§

IcebergCompatV2

Iceberg V2 compatibility support

§

IcebergCompatV3

Iceberg V3 compatibility support

§

ClusteredTable

The Clustered Table feature facilitates the physical clustering of rows that share similar values on a predefined set of clustering columns.

§

MaterializePartitionColumns

Materialize partition columns in parquet data files.

§

AllowColumnDefaults

Column Default Values.

§

CatalogManaged

§

CatalogOwnedPreview

§

ColumnMapping

Mapping of one column to another

§

DeletionVectors

Deletion vectors for merge, update, delete

§

TimestampNanos

Available on crate feature nanosecond-timestamps only.

Nanosecond resolution timestamps

§

TimestampWithoutTimezone

Timestamps without timezone support. The canonical protocol feature name is timestampNtz.

timestampWithoutTimezone is not a Delta protocol feature name, but some existing tables carry it in their reader/writer feature arrays. Kernel accepts it on read for compatibility with those tables and always writes the canonical timestampNtz. See https://github.com/delta-io/delta-kernel-rs/issues/2557.

§

TypeWidening

§

TypeWideningPreview

§

V2Checkpoint

version 2 of checkpointing

§

VacuumProtocolCheck

vacuumProtocolCheck ReaderWriter feature ensures consistent application of reader and writer protocol checks during VACUUM operations

§

VariantType

This feature enables support for the variant data type, which stores semi-structured data.

§

VariantTypePreview

§

VariantShredding

§

VariantShreddingPreview

§

AdaptiveMetadataPreview

Iceberg V4 adaptive metadata tree as the table’s native content metadata format.

TODO(#2866): gated by the adaptive-metadata-in-dev cargo feature until fully supported.

§

GeospatialType

Geospatial type support (geometry and geography columns)

§

Unknown(String)

Trait Implementations§

Source§

impl AsRef<str> for TableFeature

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for TableFeature

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TableFeature

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TableFeature

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for TableFeature

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl EnumCount for TableFeature

Source§

const COUNT: usize = 32usize

Source§

impl Eq for TableFeature

Source§

impl From<&TableFeature> for TableFeature

Source§

fn from(value: &TableFeature) -> Self

Converts to this type from the input type.
Source§

impl From<&str> for TableFeature

Source§

fn from(s: &str) -> TableFeature

Converts to this type from the input type.
Source§

impl From<String> for TableFeature

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<TableFeature> for Scalar

Source§

fn from(feature: TableFeature) -> Self

Converts to this type from the input type.
Source§

impl FromStr for TableFeature

Source§

type Err = !

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<TableFeature, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for TableFeature

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoEnumIterator for TableFeature

Source§

impl PartialEq for TableFeature

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TableFeature

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TableFeature

Source§

impl ToDataType for TableFeature

Source§

fn to_data_type() -> DataType

Available on crate feature internal-api only.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: Any + Send + Sync,

Source§

fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)

Obtains a dyn Any reference to the object: Read more
Source§

fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ

Obtains an Arc<dyn Any> reference to the object: Read more
Source§

fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>

Converts the object to Box<dyn Any>: Read more
Source§

fn type_name(&self) -> &'static str

Convenient wrapper for std::any::type_name, since Any does not provide it and Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynPartialEq for T
where T: PartialEq + AsAny,

Source§

fn dyn_eq(&self, other: &(dyn Any + 'static)) -> bool

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> FoldWithOption for T

Source§

fn fold_with<U>(self, opt: Option<U>, f: impl FnOnce(Self, U) -> Self) -> Self

Available on crate feature internal-api only.
Applies an optional fold operation f to self if opt is Some; otherwise returns self unchanged. Read more
Source§

fn try_fold_with<U, E>( self, opt: Option<U>, f: impl FnOnce(Self, U) -> Result<Self, E>, ) -> Result<Self, E>

Available on crate feature internal-api only.
Fallible fold_with: applies Result-returning f to self if opt is Some, otherwise returns self unchanged (wrapped in Ok).
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> GetStructField for T
where T: ToDataType,

Source§

fn get_struct_field(name: impl Into<String>) -> StructField

Available on crate feature internal-api only.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelType
where ArrowType: TryFromKernel<KernelType>,

Source§

fn try_into_arrow(self) -> Result<ArrowType, ArrowError>

Available on crate feature arrow-conversion and (crate features arrow-conversion or declarative-plans or default-engine-base) only.
Source§

impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowType
where KernelType: TryFromArrow<ArrowType>,

Source§

fn try_into_kernel(self) -> Result<KernelType, ArrowError>

Available on crate feature arrow-conversion and (crate features arrow-conversion or declarative-plans or default-engine-base) only.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more