Skip to main content

translate_datafusion_error

Function translate_datafusion_error 

Source
pub fn translate_datafusion_error(msg: &str) -> TranslatedError
Expand description

Translates a DataFusion error message into a user-friendly TranslatedError.

Pattern-matches known DataFusion error formats and rewrites them with structured error codes and helpful messages. Unrecognized patterns fall back to LDB-9000 with the message sanitized (internal prefixes stripped).

When available_columns is provided, column-not-found errors include a “Did you mean ‘…’?” hint based on edit distance.