Skip to content

AvroError enum for arrow-avro crate #8746

@nathaniel-d-ef

Description

@nathaniel-d-ef

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Newly published crate arrow-avro is missing an AvroError enum, which it should have to follow the pattern of Parquet and others in the project. This became evident when attempting to integrate the new crate into DataFusion, which imports Error from apache-arrow as AvroError, for which there is no clean replacement here.

Describe the solution you'd like

A new AvroError enum should be created following the same pattern as ParquetError. Then:

  • Functions inside the arrow-avro crate should be modified to return Result<..., AvroError>. This includes functions for parsing, compression, and schema validation.
  • Functions that are part of the crate's public API (e.g., Reader::next(), Writer::write()) should be modified to return Result<..., ArrowError>.

Describe alternatives you've considered

Nothing's broken with the current implementation, it's just not as specific as it could be, and doesn't fully follow the patterns of the project.

cc @jecsand838

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions