datafusion_common

Trait SchemaExt

Source
pub trait SchemaExt {
    // Required methods
    fn equivalent_names_and_types(&self, other: &Self) -> bool;
    fn logically_equivalent_names_and_types(&self, other: &Self) -> bool;
}
Expand description

DataFusion-specific extensions to Schema.

Required Methods§

Source

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

This is a specialized version of Eq that ignores differences in nullability and metadata.

It works the same as DFSchema::equivalent_names_and_types.

Source

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

Returns true if the two schemas have the same qualified named fields with logically equivalent data types. Returns false otherwise.

Use DFSchema::equivalent_names_and_types for stricter semantic type equivalence checking.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SchemaExt for Schema

Implementors§