This is an automated email from the ASF dual-hosted git repository.
yihua pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 810b65da9c87 feat: Use storage conf for alter rename command (#14389)
810b65da9c87 is described below
commit 810b65da9c87a5586cf4df1f07cd500b8d020a1e
Author: Shawn Chang <[email protected]>
AuthorDate: Tue Dec 2 21:23:35 2025 -0800
feat: Use storage conf for alter rename command (#14389)
---
.../apache/spark/sql/hudi/command/AlterHoodieTableRenameCommand.scala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/AlterHoodieTableRenameCommand.scala
b/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/AlterHoodieTableRenameCommand.scala
index a87572dbf950..327fa7ffa305 100644
---
a/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/AlterHoodieTableRenameCommand.scala
+++
b/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/AlterHoodieTableRenameCommand.scala
@@ -18,7 +18,6 @@
package org.apache.spark.sql.hudi.command
import org.apache.hudi.common.table.HoodieTableMetaClient
-import org.apache.hudi.hadoop.fs.HadoopFSUtils
import org.apache.spark.sql.{Row, SparkSession}
import org.apache.spark.sql.catalyst.TableIdentifier
@@ -43,7 +42,7 @@ case class AlterHoodieTableRenameCommand(
.fromProperties(hoodieCatalogTable.tableConfig.getProps)
.setTableName(newName.table)
.initTable(
-
HadoopFSUtils.getStorageConf(sparkSession.sessionState.newHadoopConf()),
+ hoodieCatalogTable.storage.getConf,
hoodieCatalogTable.tableLocation)
// Call AlterTableRenameCommand#run to rename table in meta.