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
Errorcrosses into DataFusion once, asDataFusionError::External, throughFrom. There is no conversion back;find_algeon_errorwalks whatever DataFusion wrapped around it. - A native
QueryErroris converted when it reaches the adapter, throughfrom_native.kindandstatusare derived fromcode, 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, outsidemessage(), logs andDebug, because the Flight server logs the message verbatim. - Ordinary DataFusion errors keep their identity;
classifyassigns them a server code without making them Algeon errors.
Structs§
- Error
- Structured adapter error with stable classification and facts.
- Error
LogDiagnostics - Bounded source diagnostics for privileged server-side logs.
- Error
Source Diagnostics - Human diagnostics derived from an error source chain.
- Facts
- Machine-readable facts attached to an
Error. - LogSafe
Fact Projection - Sanitized, bounded facts approved for logs and retained diagnostics.
Enums§
- Client
Detail - Caller schema detail an error names.
- Error
Code - Stable, machine-readable adapter error codes.
- Error
Kind - Coarse adapter error category.
- Error
Status - Retry and remediation status for adapter errors.
Traits§
- Data
Fusion Error Ext - 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.