What is the problem the feature request solves?
The Rust log line
INFO core/src/lib.rs: Comet native library version <version> initialized
is emitted even when Comet is disabled at the session level (e.g. spark.comet.enabled=false) or when the plugin bails out on the off-heap gate. The message is misleading because it implies Comet is running
when in fact no plan is being accelerated.
scala> spark.conf.get("spark.comet.enabled")
res0: String = false
scala> spark.read.parquet(s3://dataset/date=2026-07-21/hour=10/").limit(1).explain()
== Physical Plan ==
CollectLimit 1
+- *(1) ColumnarToRow
+- FileScan parquet
scala> :quit
26/08/05 15:01:17 INFO core/src/lib.rs: Comet native library version 1.0.0-apple initialized <<<<< should not be here
Steps to reproduce
- Register the Comet plugin:
--conf spark.plugins=org.apache.spark.CometPlugin.
- Disable Comet at the session level:
--conf spark.comet.enabled=false (or leave spark.memory.offHeap.enabled=false and spark.comet.exec.onHeap.enabled=false so the plugin's off-heap check fails).
- Start a Spark shell / submit a job.
- Observe the driver / executor logs still contain
INFO core/src/lib.rs: Comet native library version ... initialized.
What is the problem the feature request solves?
The Rust log line
is emitted even when Comet is disabled at the session level (e.g.
spark.comet.enabled=false) or when the plugin bails out on the off-heap gate. The message is misleading because it implies Comet is runningwhen in fact no plan is being accelerated.
Steps to reproduce
--conf spark.plugins=org.apache.spark.CometPlugin.--conf spark.comet.enabled=false(or leavespark.memory.offHeap.enabled=falseandspark.comet.exec.onHeap.enabled=falseso the plugin's off-heap check fails).INFO core/src/lib.rs: Comet native library version ... initialized.