wooch82 opened a new issue, #7752:
URL: https://github.com/apache/datafusion-comet/issues/7752

   ### Describe the bug
   
   With the Delta contrib enabled, every Delta table on Azure Data Lake Storage 
Gen2 falls back to Spark's reader. The fallback reason is:
   
   ```
   Scan parquet [COMET: Native Delta scan does not support object-store paths 
whose authority carries userinfo
   (e.g. the container in an abfss:// path): the native object-store cache, 
ObjectStoreUrl and DataFusion registry
   all key on scheme, host and port only, so two containers on one storage 
account share a single store handle
   (found: abfss://***@myaccount.dfs.core.windows.net)]
   ```
   
   ADLS Gen2 paths always carry the container in the authority 
(`abfss://<container>@<account>.dfs.core.windows.net/...`), the only form 
Hadoop's ABFS driver and Spark use. So on Azure the native Delta scan never 
applies, whatever the table.
   
   Plain Parquet reads of the same files work natively with the core scan 
(`CometNativeScan`, including Workload Identity auth), which according to the 
data sources guide resolves credentials for one container and account per scan.
   
   ### Steps to reproduce
   
   1. Spark 4.1.1, Delta 4.3.1, Comet `1.3.0-SNAPSHOT` 
(`comet-spark-spark4.1_2.13-1.3.0-20261123.034630-27`), 
`comet-contrib-delta-spark4.1_2.13` built from `main` at `f141d90` with 
`-Pspark-4.1,delta`.
   2. Configs: `spark.plugins=org.apache.spark.CometPlugin`, 
`spark.shuffle.manager=org.apache.spark.sql.comet.execution.shuffle.CometShuffleManager`,
 `spark.comet.scan.delta.enabled=true`, 
`spark.comet.explain.fallback.enabled=true`, Delta session extension and 
catalog. ADLS auth through Hadoop `fs.azure.*` 
(`WorkloadIdentityTokenProvider`).
   3. Read any Delta table on ADLS Gen2:
   
   ```python
   df = (spark.read.format("delta")
         
.load("abfss://<container>@<account>.dfs.core.windows.net/path/to/table/")
         .where("event_date IN ('2026-11-19', '2026-11-20')"))
   df.groupBy("event_date", "arena_id").count().explain()
   ```
   
   
   ### Expected behavior
   
   The native Delta scan claims the table, as the core native Parquet scan does 
for the same `abfss://` files.
   
   ### Additional context
   
   - Related: #6058 (the same "nothing is accelerated on ADLS Gen2" gap for the 
native Iceberg scan). Different code path and cause: there the `abfs`/`abfss` 
scheme is missing from the Iceberg storage factory; here the scheme is accepted 
but the contrib declines because the store cache keys on scheme/host/port and 
the container lives in the userinfo.
   - Possibly touches the same code as #5658 (moving the Delta contrib's cloud 
compatibility gating into a shared helper beside the object store 
configuration) and #5659 (scoping object store credentials to the selected 
authorities); for ABFS the authority that matters is `<container>@<account>`, 
not the host alone.
   - Delta `_delta_log` reads (`Scan ExistingRDD Delta Table State`, JSON) also 
stay in Spark; that is expected and not part of this issue.
   
   ### Willingness to contribute
   
   None


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to