Skip to content

Commit

Permalink
[HUDI-4183] Fix using HoodieCatalog to create non-hudi tables (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
fuqijun committed Aug 3, 2022
1 parent 7d8524a commit 64fde37
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ class HoodieCatalog extends DelegatingCatalogExtension
schema: StructType,
partitions: Array[Transform],
properties: util.Map[String, String]): Table = {
createHoodieTable(ident, schema, partitions, properties, Map.empty, Option.empty, TableCreationMode.CREATE)
if (sparkAdapter.isHoodieTable(properties)) {
createHoodieTable(ident, schema, partitions, properties, Map.empty, Option.empty, TableCreationMode.CREATE)
} else {
super.createTable(ident, schema, partitions, properties)
}
}

override def tableExists(ident: Identifier): Boolean = super.tableExists(ident)
Expand Down

0 comments on commit 64fde37

Please sign in to comment.