Skip to content

Improve error message for Could not find matching type in union #225

Closed

Description

@Fokko

Hey @martin-g,

I've been working on Iceberg-Rust, which we depend on in PyIceberg. I get errors from PyIceberg Could not find matching type in union, but that makes it pretty hard to debug. Would it be possible to add a field-name in there? Happy to dig into this myself as well, but I'm not a rustacean (yet) :)

Activity

  1. martin-g commented on Jul 17, 2025

    @martin-g
    Member

    Hey @Fokko !

    #228

    With this change the error message would look like:

    apache_avro::error::Error: Could not find matching type in UnionSchema { schemas: [Int, Null], variant_index: {Null: 1, Int: 0} } for Long(5)
    
  2. Fokko commented on Jul 17, 2025

    @Fokko
    ContributorAuthor

    @martin-g Thanks for jumping right in here, that looks great!

  3. added 3 commits that reference this issue on Jul 22, 2025
  4. added this to the 0.20.0 milestone on Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions