1
0

[HUDI-1002] Ignore case when setting incremental mode in hive query (#1715)

This commit is contained in:
Shen Hong
2020-06-08 19:38:32 +08:00
committed by GitHub
parent e0a5e0d343
commit 2901f5423a
2 changed files with 4 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ public class HoodieHiveUtil {
Map<String, String> tablesModeMap = job.getConfiguration()
.getValByRegex(HOODIE_CONSUME_MODE_PATTERN_STRING.pattern());
List<String> result = tablesModeMap.entrySet().stream().map(s -> {
if (s.getValue().trim().equals(INCREMENTAL_SCAN_MODE)) {
if (s.getValue().trim().toUpperCase().equals(INCREMENTAL_SCAN_MODE)) {
Matcher matcher = HOODIE_CONSUME_MODE_PATTERN_STRING.matcher(s.getKey());
return (!matcher.find() ? null : matcher.group(1));
}