Skip to content

AbstractMethodError: CometBroadcastExchangeExec missing sparkContext() from BroadcastExchangeLike #4318

@dor-bernstein

Description

@dor-bernstein

Describe the bug

When using Apache Comet 0.16 with Spark 3.5.6, queries that involve a broadcast exchange fail with:

java.lang.AbstractMethodError: Receiver class org.apache.spark.sql.comet.CometBroadcastExchangeExec
does not define or inherit an implementation of the resolved method
'abstract org.apache.spark.SparkContext org$apache$spark$sql$execution$exchange$BroadcastExchangeLike$$super$sparkContext()'
of interface org.apache.spark.sql.execution.exchange.BroadcastExchangeLike.

Steps to reproduce

  1. Use Apache Comet 0.16 with Spark 3.5.6
  2. Run a query that triggers a broadcast join / CometBroadcastExchangeExec

Expected behavior

CometBroadcastExchangeExec should correctly implement (or inherit) the sparkContext() method required by the BroadcastExchangeLike interface, and the query should execute successfully.

Additional context

Reported in apache/datafusion-comet#4125 alongside an unrelated Iceberg scan error. The original issue (reflection failure with AWS Glue) was resolved by the fix in #3895 (released in 0.16), but this new error surfaced afterward.

Metadata

Metadata

Assignees

Labels

priority:highCrashes, panics, segfaults, major functional breakage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions