Skip to content

External Error prefix is repeated multiple times #14080

Description

@gz

Describe the bug

I'm getting errors in the form of DataFusionError::External(External(External(External(External(External(xyz)))) when throwing them from https://docs.rs/datafusion/latest/datafusion/physical_plan/trait.ExecutionPlan.html#tymethod.execute

To Reproduce

Implement a TableProvider that throws an error and call it

    fn execute(
        &self,
        partition: usize,
        _context: Arc<TaskContext>,
    ) -> datafusion::common::Result<SendableRecordBatchStream> {
            return Err(DataFusionError::Execution(
                format!("error"),
            ));
    }

Expected behavior

I'd expect the External(External(External(External(External flattened to just one External

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions