pub fn to_datafusion_error(error: Error) -> DataFusionError
Converts an iceberg error into a datafusion error.