Skip to content

Commit

Permalink
hotfix_metorikku_hive_sync_manually: CatalogTable set provider hive (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Irenez753 authored Apr 13, 2020
1 parent 388fe48 commit c6100fe
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class HudiOutputWriter(props: Map[String, Object], hudiOutput: Option[Hudi]) ext
false,
Map[String, String]())

val tableDefinition = new CatalogTable(identifier, tableType, storage, df.schema,
val tableDefinition = new CatalogTable(identifier, tableType, storage, df.schema, Option("hive"),
partitionColumnNames = manualHiveSyncPartitions match {
case Some(partitions) => Seq(partitions.keySet.toSeq: _*)
case _ => Seq.empty
Expand Down Expand Up @@ -408,7 +408,6 @@ class HudiOutputWriter(props: Map[String, Object], hudiOutput: Option[Hudi]) ext
// alter location if needed
ss.sharedState.externalCatalog.alterTable(tableDefinition)


// Create partitions
manualHiveSyncPartitions match {
case Some(partitions) => {
Expand Down

0 comments on commit c6100fe

Please sign in to comment.