[HUDI-1002] Ignore case when setting incremental mode in hive query (#1715)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user