1
0

[HUDI-1718] When query incr view of mor table which has Multi level partitions, the query failed (#2716)

This commit is contained in:
xiarixiaoyao
2021-05-05 12:34:20 +08:00
committed by GitHub
parent c5220b96e9
commit 1db904a12e
2 changed files with 73 additions and 1 deletions

View File

@@ -170,7 +170,7 @@ public class HoodieCombineHiveInputFormat<K extends WritableComparable, V extend
if (job.get(hive_metastoreConstants.META_TABLE_PARTITION_COLUMNS, "").isEmpty()) {
List<String> partitions = new ArrayList<>(part.getPartSpec().keySet());
if (!partitions.isEmpty()) {
String partitionStr = String.join(",", partitions);
String partitionStr = String.join("/", partitions);
LOG.info("Setting Partitions in jobConf - Partition Keys for Path : " + path + " is :" + partitionStr);
job.set(hive_metastoreConstants.META_TABLE_PARTITION_COLUMNS, partitionStr);
} else {