datafusion-ballista icon indicating copy to clipboard operation
datafusion-ballista copied to clipboard

Ensure idempotency in the DataFusion physical optimizer to support Ballista AQE

Open danielhumanmod opened this issue 10 months ago • 3 comments

Is your feature request related to a problem or challenge? Please describe what you are trying to do. Epic #1359 highlights that non-idempotent DataFusion physical optimizer rules cause additional engineering overhead for Ballista, specifically when the optimizer is run multiple times. Addressing this directly in DataFusion is the preferred solution. This issue tracks the specific rules that require fixes.

  1. Double CooperativeExec: Fixing in https://github.com/apache/datafusion/pull/19757
  2. Double `CoalesceBatchesExec', upgrade DF to 52.0 (TODO)

danielhumanmod avatar Jan 12 '26 00:01 danielhumanmod

@milenkovicm I notice CoalesceBatchesExec is marked as deprecated in DF 52.0, we can consider upgrade on ballista side too to see whether the issue still persist

danielhumanmod avatar Jan 12 '26 00:01 danielhumanmod

you're right, looks like it is deprecated as part of https://github.com/apache/datafusion/issues/18779 we will definitely update, thanks @danielhumanmod

milenkovicm avatar Jan 12 '26 09:01 milenkovicm

i guess we can close this task, if new issues are found we could track it in #1359 thanks @danielhumanmod

milenkovicm avatar Jan 19 '26 22:01 milenkovicm