Skip to content

Make PhysicalExprAdapterFactory::create fallible #19956

Closed

Description

@niebayes

Currently, the PhysicalExprAdapterFactory::create method is infallible (does not return errors). However, we encode certain metadata in the physical file schema, and decoding this metadata is a fallible operation. Therefore, I propose making PhysicalExprAdapterFactory::create fallible to allow proper error propagation.

Activity

  1. adriangb commented on Jan 23, 2026

    @adriangb
    Contributor

    I think this is reasonable. Of course not everyone is going to have this use case but I think it makes sense to support it for those that do. Does it force any of the call sites in DataFusion to change? I.e. how invasive is the change going to be?

  2. niebayes commented on Jan 26, 2026

    @niebayes
    ContributorAuthor

    @adriangb Since the return type is changed, callers of PhysicalExprAdapterFactory::create will be affected and I think this is a breaking change. However, this change is not invasive as it only changes the return type.

  3. adriangb commented on Jan 26, 2026

    @adriangb
    Contributor

    Ok let's see a PR diff and go from there!

  4. niebayes commented on Jan 27, 2026

    @niebayes
    ContributorAuthor

    @adriangb Filed a PR, PTAL.

  5. added a commit that references this issue on Jan 27, 2026
    aae3e0f
  6. added a commit that references this issue on Mar 24, 2026
    d972007
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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions