charset for atk-1408 (#2203)

This commit is contained in:
Collapsar
2020-10-26 15:42:49 +08:00
committed by GitHub
parent 1bad4d2423
commit ff2ccd2e83
@@ -95,7 +95,17 @@ public class DefaultDruidParser implements DruidParser {
if (originTableAliasMap == null) {
return null;
}
Map<String, String> tableAliasMap = new HashMap<>(originTableAliasMap);
for (Map.Entry<String, String> entry : originTableAliasMap.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
// fixme: not strict
if (key != null && key.startsWith("`")) {
tableAliasMap.put(key.replaceAll("`", ""), value);
}
}
Iterator<Map.Entry<String, String>> iterator = tableAliasMap.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry<String, String> next = iterator.next();