pub fn translate_datafusion_error(msg: &str) -> TranslatedErrorExpand 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.