Skip to content

Commit

Permalink
[HUDI-8396] Bump Spark version from 3.5.1 to 3.5.3 (#12129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zouxxyy authored Oct 19, 2024
1 parent 070c600 commit 358c69c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import org.apache.hudi.common.util.ConfigUtils
import org.apache.hudi.hadoop.fs.HadoopFSUtils
import org.apache.hudi.storage.{HoodieStorageUtils, StoragePath}
import org.apache.spark.sql._
import org.apache.spark.sql.catalyst.{QualifiedTableName, TableIdentifier}
import org.apache.spark.sql.catalyst.TableIdentifier
import org.apache.spark.sql.catalyst.catalog._

/**
Expand All @@ -45,10 +45,7 @@ case class DropHoodieTableCommand(
if (!sparkSession.catalog.tableExists(tableIdentifier.unquotedString)) {
sparkSession.catalog.refreshTable(tableIdentifier.unquotedString)
}
val qualifiedTableName = QualifiedTableName(
tableIdentifier.database.getOrElse(sparkSession.sessionState.catalog.getCurrentDatabase),
tableIdentifier.table)
sparkSession.sessionState.catalog.invalidateCachedTable(qualifiedTableName)
sparkSession.sessionState.catalog.invalidateCachedTable(tableIdentifier)

dropTableInCatalog(sparkSession, tableIdentifier, ifExists, purge)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import org.apache.hudi.metadata.MetadataPartitionType
import org.apache.spark.internal.Logging
import org.apache.spark.sql.catalyst.catalog.CatalogTable
import org.apache.spark.sql.catalyst.expressions.Attribute
import org.apache.spark.sql.catalyst.{QualifiedTableName, TableIdentifier}
import org.apache.spark.sql.catalyst.TableIdentifier
import org.apache.spark.sql.hudi.HoodieSqlCommonUtils.getTableLocation
import org.apache.spark.sql.{Row, SparkSession}

Expand Down Expand Up @@ -62,10 +62,7 @@ case class CreateIndexCommand(table: CatalogTable,

// Invalidate cached table for queries do not access related table
// through {@code DefaultSource}
val qualifiedTableName = QualifiedTableName(
tableId.database.getOrElse(sparkSession.sessionState.catalog.getCurrentDatabase),
tableId.table)
sparkSession.sessionState.catalog.invalidateCachedTable(qualifiedTableName)
sparkSession.sessionState.catalog.invalidateCachedTable(tableId)
Seq.empty
}
}
Expand All @@ -88,10 +85,7 @@ case class DropIndexCommand(table: CatalogTable,

// Invalidate cached table for queries do not access related table
// through {@code DefaultSource}
val qualifiedTableName = QualifiedTableName(
tableId.database.getOrElse(sparkSession.sessionState.catalog.getCurrentDatabase),
tableId.table)
sparkSession.sessionState.catalog.invalidateCachedTable(qualifiedTableName)
sparkSession.sessionState.catalog.invalidateCachedTable(tableId)
Seq.empty
}
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<rocksdbjni.version>7.5.3</rocksdbjni.version>
<spark33.version>3.3.4</spark33.version>
<spark34.version>3.4.3</spark34.version>
<spark35.version>3.5.1</spark35.version>
<spark35.version>3.5.3</spark35.version>
<hudi.spark.module>hudi-spark3.5.x</hudi.spark.module>
<hudi.spark.common.module>hudi-spark3-common</hudi.spark.common.module>
<avro.version>1.8.2</avro.version>
Expand Down

0 comments on commit 358c69c

Please sign in to comment.