Crate datafusion_common
source ·Re-exports
pub use scalar::ScalarType;
pub use scalar::ScalarValue;
pub use stats::ColumnStatistics;
pub use stats::Statistics;
Modules
- This module provides DataFusion specific casting functions that provide error handling. They are intended to “never fail” but provide an error message rather than a panic, as the corresponding kernels in arrow-rs such as
as_boolean_array
do. - Runtime configuration, via
ConfigOptions
- Contains utility functions for shifting Date objects.
- Types for plan display
- Interval parsing logic
- This module provides ScalarValue, an enum that can be used for storage of single elements
- This module provides data structures to represent statistics
- Utility functions to make testing DataFusion based crates easier
- This module provides common traits for visiting or rewriting tree data structures easily.
- This module provides the bisect function, which implements binary search.
Macros
- A macro to assert that one string is contained within another with a nice error message if they are not.
- A macro to assert that one string is NOT contained within another with a nice error message if they are are.
- Downcast an Arrow Array to a concrete type, return an
DataFusionError::Internal
if the cast is not possible. In normal usage of DataFusion the downcast should always succeed. - Convenience macro to create
ExtensionsOptions
. - Unwrap an
Option
if possible. Otherwise return anDataFusionError::Internal
. In normal usage of DataFusion the unwrap should always succeed.
Structs
- A named reference to a qualified field in a schema.
- DFField wraps an Arrow field and adds an optional qualifier
- DFSchema wraps an Arrow schema and adds relation names
- A resolved path to a table of the form “catalog.schema.table”
Enums
- DataFusion error
- Join constraint
- Join type
- Schema-related errors
TableReference
s represent a multi part identifier (path) to a table that may require further resolution.
Traits
- Provides schema information needed by certain methods of
Expr
(defined in the datafusion-common crate). - Convenience trait to convert Schema like things to DFSchema and DFSchemaRef with fewer keystrokes
Functions
- Create a “field not found” DataFusion::SchemaError
- Convenience wrapper over
field_not_found
for when there is no qualifier
Type Definitions
- A reference-counted reference to a
DFSchema
. - This is a
TableReference
that has ’static lifetime (aka it owns the underlying string) - Result type for operations that could result in an DataFusionError
- Result type for operations that could result in an DataFusionError and needs to be shared (wrapped into
Arc
).