Skip to content

Conversation

@gabotechs
Copy link
Collaborator

@gabotechs gabotechs commented Sep 3, 2025

Closes #110

Previously, the ArrowFlightReadExec node could choose any partitioning scheme regardless of the child that was passed, but in reality it should be exposing the child partitioning scheme unmodified, as it's pretty just a network passthrough.

Also, ArrowFLightReadExec is not really prepared to have something other than a RepartitionExec as a child, so this PR also accounts for that in the tests while manually building a distributed plan.

Additionally, some tests are unignored, as they are working now.

use datafusion::physical_plan::ExecutionPlan;
use std::sync::Arc;

pub fn distribute_aggregate(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They way function was distributing a plan for the tests is just wrong, so now the normal planner is used.

Copy link
Collaborator

@NGA-TRAN NGA-TRAN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

│partitions [out:3 <-- in:1 ] RepartitionExec: partitioning=RoundRobinBatch(3), input_partitions=1
│partitions [out:1 <-- in:1 ] PartitionIsolatorExec [providing upto 1 partitions]
│partitions [out:1 <-- in:1 ] AggregateExec: mode=Partial, gby=[RainToday@0 as RainToday], aggr=[count(Int64(1))]
│partitions [out:1 ] DataSourceExec: file_groups={1 group: [[/testdata/weather.parquet]]}, projection=[RainToday], file_type=parquet
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am glad we already have available tests to verify the fix

@gabotechs gabotechs merged commit b900fec into main Sep 3, 2025
3 checks passed
@gabotechs gabotechs deleted the gabrielmusat/fix-panics-in-tests branch September 3, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"partition not used yet" panics during tests

3 participants