Skip to content

[AURON #2090] Convert CoalesceExec to native implementation#2124

Open
guixiaowen wants to merge 1 commit intoapache:masterfrom
guixiaowen:convertCoalesceExec
Open

[AURON #2090] Convert CoalesceExec to native implementation#2124
guixiaowen wants to merge 1 commit intoapache:masterfrom
guixiaowen:convertCoalesceExec

Conversation

@guixiaowen
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #2090

Rationale for this change

Convert CoalesceExec to native.

What changes are included in this PR?

Are there any user-facing changes?

How was this patch tested?

UT

@github-actions github-actions bot added the spark label Mar 27, 2026
@cxzl25 cxzl25 changed the title [AURON #2090] Convert CoalesceExec to native implementation. #2090 [AURON #2090] Convert CoalesceExec to native implementation Mar 27, 2026
.withKey("auron.enable.coalesce")
.withCategory("Operator Supports")
.withDescription("Enable CoalesceExec operation conversion to native Auron implementations.")
.withDefaultValue(true);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: needs a new line here

child.execute()
}

val partitions: Array[Partition] = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be a lazy val instead for lazy computation. The way it is set up right now, I think it will try to compute this eagerly during planning.

class AuronNativeCoalesceExecSuite extends AuronQueryTest with BaseAuronSQLSuite {
import testImplicits._

test("test CoalesceExec to native") {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should improve the testing here, some cases I can think about

  1. numPartitions > inputPartitions (no-op or expansion)
  2. numPartitions = 1, numPartitions = 0
  3. empty dataset

@guixiaowen guixiaowen force-pushed the convertCoalesceExec branch from 1532596 to a047144 Compare March 28, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert CoalesceExec to native implementation.

2 participants