You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "nsivabalan (via GitHub)" <gi...@apache.org> on 2026/06/25 03:05:16 UTC

Re: [I] Spark SQL queries support setting parameters through set [hudi]

nsivabalan commented on issue #15599:
URL: https://github.com/apache/hudi/issues/15599#issuecomment-4795452331

   Triage on current master: this appears resolved.
   
   Spark SQL `SET hoodie.xxx=yyy` (and `SET spark.hoodie.xxx=yyy`) is now picked up on both paths:
   
   - **Write path** — `ProvidesHoodieConfig.combineOptions` pulls `sqlConf.getAllConfs` and merges via `extractSparkPrefixedHoodieConfigs` + `filterHoodieConfigs` (`hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/ProvidesHoodieConfig.scala` ~L524 and `HoodieSqlCommonUtils.scala` L248-254).
   - **Read path** — `DefaultSource.createRelation` filters `sqlContext.getAllConfs` for `hoodie.*` / `spark.hoodie.*` and feeds them into the read options (`hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/DefaultSource.scala` ~L110).
   
   This was originally added via PR #7339 (the PR linked above) and reinforced more recently by f867059b3c0a (PR #18297) for the `spark.hoodie.*` prefix on writes.
   
   If you're still seeing a specific config not take effect via `SET`, please share the exact key + a small repro. Otherwise this issue / HUDI-5301 looks safe to close.


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org