[MINOR] Fix typo,'Hooide' corrected to 'Hoodie' (#4007)
This commit is contained in:
@@ -183,7 +183,7 @@ object HoodieOptionConfig {
|
|||||||
params.get(DataSourceWriteOptions.PRECOMBINE_FIELD.key).filter(_.nonEmpty)
|
params.get(DataSourceWriteOptions.PRECOMBINE_FIELD.key).filter(_.nonEmpty)
|
||||||
}
|
}
|
||||||
|
|
||||||
def deleteHooideOptions(options: Map[String, String]): Map[String, String] = {
|
def deleteHoodieOptions(options: Map[String, String]): Map[String, String] = {
|
||||||
options.filterNot(_._1.startsWith("hoodie.")).filterNot(kv => keyMapping.contains(kv._1))
|
options.filterNot(_._1.startsWith("hoodie.")).filterNot(kv => keyMapping.contains(kv._1))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ case class CreateHoodieTableCommand(table: CatalogTable, ignoreIfExists: Boolean
|
|||||||
val serdeFormat = HoodieInputFormatUtils.getSerDeClassName(HoodieFileFormat.PARQUET)
|
val serdeFormat = HoodieInputFormatUtils.getSerDeClassName(HoodieFileFormat.PARQUET)
|
||||||
|
|
||||||
// only parameters irrelevant to hudi can be set to storage.properties
|
// only parameters irrelevant to hudi can be set to storage.properties
|
||||||
val storageProperties = HoodieOptionConfig.deleteHooideOptions(options)
|
val storageProperties = HoodieOptionConfig.deleteHoodieOptions(options)
|
||||||
val newStorage = new CatalogStorageFormat(
|
val newStorage = new CatalogStorageFormat(
|
||||||
Some(new Path(path).toUri),
|
Some(new Path(path).toUri),
|
||||||
Some(inputFormat),
|
Some(inputFormat),
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class TestHoodieOptionConfig extends HoodieClientTestBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
def testDeleteHooideOptions(): Unit = {
|
def testDeleteHoodieOptions(): Unit = {
|
||||||
val sqlOptions = Map("primaryKey" -> "id,addr",
|
val sqlOptions = Map("primaryKey" -> "id,addr",
|
||||||
"preCombineField" -> "timestamp",
|
"preCombineField" -> "timestamp",
|
||||||
"type" -> "mor",
|
"type" -> "mor",
|
||||||
@@ -86,7 +86,7 @@ class TestHoodieOptionConfig extends HoodieClientTestBase {
|
|||||||
"hoodie.compact.inline" -> "true",
|
"hoodie.compact.inline" -> "true",
|
||||||
"key123" -> "value456"
|
"key123" -> "value456"
|
||||||
)
|
)
|
||||||
val tableConfigs = HoodieOptionConfig.deleteHooideOptions(sqlOptions)
|
val tableConfigs = HoodieOptionConfig.deleteHoodieOptions(sqlOptions)
|
||||||
assertTrue(tableConfigs.size == 1)
|
assertTrue(tableConfigs.size == 1)
|
||||||
assertTrue(tableConfigs("key123") == "value456")
|
assertTrue(tableConfigs("key123") == "value456")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user