Trait datafusion::common::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.

Object Safety§

This trait is not object safe.

Implementors§