Skip to content

rust: Add sedona-error crate to make error handling between crates less verbose #1033

Description

@paleolimbot

In general, we use DataFusionError everywhere in the sedona crates, except for the few crates that don't involve DataFusion (e.g., sedona-geometry, sedona-raster). Sedona raster rather awkwardly uses ArrowError, because that is the error type it more directly uses most of the time. It's fairly common for sedona-geometry's error to be used in kernels, where there is a lot of .map_err()s instead of ?s.

We can consolidate errors to a crate sedona-error that has features arrow and datafusion, which, when enabled, add error variants and From<> implementations for ArrowError and DataFusionError. This will hopefully make the error handling between crates a bit more unified and reduce the number of dedicated error classes we need.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions