1
0

[MINOR] fix get classname for hive sync (#2008)

This commit is contained in:
Gary Li
2020-08-31 16:26:10 -07:00
committed by GitHub
parent 6461927eac
commit 48a58c98a1
2 changed files with 18 additions and 5 deletions

View File

@@ -157,8 +157,7 @@ public class HiveSyncTool extends AbstractSyncTool {
if (!tableExists) {
LOG.info("Hive table " + tableName + " is not found. Creating it");
HoodieFileFormat baseFileFormat = HoodieFileFormat.valueOf(cfg.baseFileFormat.toUpperCase());
String inputFormatClassName = HoodieInputFormatUtils.getInputFormatClassName(baseFileFormat, useRealTimeInputFormat,
new Configuration());
String inputFormatClassName = HoodieInputFormatUtils.getInputFormatClassName(baseFileFormat, useRealTimeInputFormat);
if (baseFileFormat.equals(HoodieFileFormat.PARQUET) && cfg.usePreApacheInputFormat) {
// Parquet input format had an InputFormat class visible under the old naming scheme.