Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
SchemaExt in datafusion::common - Rust
[go: Go Back, main page]

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§