pub enum DataFrameError {
Show 14 variants
Io {
source: Error,
path: Option<PathBuf>,
},
SchemaMismatch {
message: String,
},
TypeMismatch {
column: Option<String>,
expected: String,
actual: String,
},
ColumnNotFound {
name: String,
},
InvalidOperation {
message: String,
},
Configuration {
option: String,
message: String,
},
Arrow {
source: ArrowError,
},
Parquet {
source: ParquetError,
},
ResourceLimitExceeded {
limit: u64,
observed: u64,
max_in_flight_batches: usize,
observed_batches: usize,
scope: ResourceScope,
},
StreamClosed,
StreamCancelled,
StreamFailed {
code: &'static str,
classification: StreamFailureClass,
},
StreamingUnsupported {
subject: String,
reason: String,
},
StreamingRequiresMaterialization {
subject: String,
reason: String,
},
}Expand description
Re-export of the crate error type and result alias.
Errors returned by alopex-dataframe operations.
Variants§
Io
OS-level I/O error (optionally associated with a path).
SchemaMismatch
Arrow schema-related mismatch (e.g. different schema across batches).
TypeMismatch
Data type mismatch (e.g. non-numeric aggregation or incompatible dtypes).
ColumnNotFound
Referenced column does not exist.
InvalidOperation
Operation is not supported or invalid for the current inputs.
Configuration
Invalid configuration option was provided.
Arrow
Error originating from Arrow compute / record batch APIs.
Fields
source: ArrowErrorParquet
Error originating from Parquet APIs.
Fields
source: ParquetErrorResourceLimitExceeded
A bounded execution reservation was rejected before the requested ownership began.
Fields
scope: ResourceScopeAllocation domain that requested the reservation.
StreamClosed
A stream was closed by its consumer before normal completion.
StreamCancelled
A stream was cancelled by its consumer before normal completion.
StreamFailed
A stream failed and must reproduce its initial structured diagnostic.
Fields
classification: StreamFailureClassStable broad failure classification.
StreamingUnsupported
Streaming was rejected before the source was opened.
StreamingRequiresMaterialization
Streaming would require global materialization and has no approved bounded algorithm.
Implementations§
Source§impl DataFrameError
impl DataFrameError
Sourcepub fn io_with_path(source: Error, path: impl Into<PathBuf>) -> Self
pub fn io_with_path(source: Error, path: impl Into<PathBuf>) -> Self
Create an I/O error associated with a path.
Sourcepub fn schema_mismatch(message: impl Into<String>) -> Self
pub fn schema_mismatch(message: impl Into<String>) -> Self
Create a schema mismatch error with a message.
Sourcepub fn type_mismatch(
column: impl Into<Option<String>>,
expected: impl Into<String>,
actual: impl Into<String>,
) -> Self
pub fn type_mismatch( column: impl Into<Option<String>>, expected: impl Into<String>, actual: impl Into<String>, ) -> Self
Create a type mismatch error with optional column context.
Sourcepub fn column_not_found(name: impl Into<String>) -> Self
pub fn column_not_found(name: impl Into<String>) -> Self
Create a missing column error.
Sourcepub fn invalid_operation(message: impl Into<String>) -> Self
pub fn invalid_operation(message: impl Into<String>) -> Self
Create an invalid operation error.
Sourcepub fn configuration(
option: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn configuration( option: impl Into<String>, message: impl Into<String>, ) -> Self
Create an invalid configuration error.
Sourcepub fn resource_limit_exceeded(
limit: u64,
observed: u64,
max_in_flight_batches: usize,
observed_batches: usize,
scope: ResourceScope,
) -> Self
pub fn resource_limit_exceeded( limit: u64, observed: u64, max_in_flight_batches: usize, observed_batches: usize, scope: ResourceScope, ) -> Self
Create a structured resource-limit error.
Sourcepub const fn stream_closed() -> Self
pub const fn stream_closed() -> Self
Create the repeatable early-close terminal error.
Sourcepub const fn stream_cancelled() -> Self
pub const fn stream_cancelled() -> Self
Create the repeatable cancellation terminal error.
Sourcepub const fn stream_failed(
code: &'static str,
classification: StreamFailureClass,
) -> Self
pub const fn stream_failed( code: &'static str, classification: StreamFailureClass, ) -> Self
Create the repeatable structured stream-failure error.
Trait Implementations§
Source§impl Debug for DataFrameError
impl Debug for DataFrameError
Source§impl Display for DataFrameError
impl Display for DataFrameError
Source§impl Error for DataFrameError
impl Error for DataFrameError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()