Expand description
Error translation layer for DataFusion errors.
Translates internal DataFusion/Arrow error messages into user-friendly
LaminarDB errors with structured error codes (LDB-NNNN) and hints.
§Error Code Ranges
| Range | Category |
|---|---|
LDB-1001..LDB-1099 | SQL syntax errors |
LDB-1100..LDB-1199 | Schema / column errors |
LDB-1200..LDB-1299 | Type errors |
LDB-2000..LDB-2099 | Window / watermark errors |
LDB-3000..LDB-3099 | Join errors |
LDB-9000..LDB-9099 | Internal errors |
Modules§
Structs§
- Translated
Error - A translated error with structured code, message, and optional hint.
Functions§
- suggest_
column - Suggests a column name correction based on edit distance.
- translate_
datafusion_ error - Translates a DataFusion error message into a user-friendly
TranslatedError. - translate_
datafusion_ error_ with_ context - Like
translate_datafusion_errorbut accepts an optional list of available column names for typo suggestions.