Skip to main content

Module error

Module error 

Source
Expand description

One error taxonomy for the DataFusion adapter boundary.

Adapter errors classify failures from DataFusion planning/execution, native execution, cuDF calls made directly by the adapter, and native engine errors wrapped at the adapter boundary. The stable machine-readable ErrorCode is the contract; the human message is diagnostic only. Native errors keep their original classification in native_* facts while this layer maps them into adapter-level ErrorCode values suitable for DataFusion.

The boundary rules this module enforces are owned by website/docs/design/errors.mdx:

  • An Error crosses into DataFusion once, as DataFusionError::External, through From. There is no conversion back; find_algeon_error walks whatever DataFusion wrapped around it.
  • A native QueryError is converted when it reaches the adapter, through from_native. kind and status are derived from code, never chosen per site.
  • A candidate decline is a report outcome, never an error from here.
  • Facts are raw unless a producer opts them into the log-safe projection. Caller schema names travel as ClientDetail, outside message(), logs and Debug, because the Flight server logs the message verbatim.
  • Ordinary DataFusion errors keep their identity; classify assigns them a server code without making them Algeon errors.

Structs§

Error
Structured adapter error with stable classification and facts.
ErrorLogDiagnostics
Bounded source diagnostics for privileged server-side logs.
ErrorSourceDiagnostics
Human diagnostics derived from an error source chain.
Facts
Machine-readable facts attached to an Error.
LogSafeFactProjection
Sanitized, bounded facts approved for logs and retained diagnostics.

Enums§

ClientDetail
Caller schema detail an error names.
ErrorCode
Stable, machine-readable adapter error codes.
ErrorKind
Coarse adapter error category.
ErrorStatus
Retry and remediation status for adapter errors.

Traits§

DataFusionErrorExt
DataFusion error inspection helpers provided by algeon-datafusion.

Functions§

datafusion_error_human_message
Returns human-facing text for the current DataFusion error layer.

Type Aliases§

Result
Adapter result type used before conversion to DataFusionError.