Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx committed Feb 7, 2024
1 parent 70e2a40 commit 58348fc
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ private static void checkNonPropertiesFields(ObjectNode mappings, List<String> a
mappings.remove("dynamic_templates");
// remove `dynamic` field
mappings.remove("dynamic");
// remove `_default` field, we do not parse `_default_` mapping, only explicit mapping.
// `_default` _mapping type is deprecated in 7.0 and removed in 8.0
// https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html
mappings.remove("_default_");
// check explicit mapping
if (mappings.isEmpty()) {
throw new DorisEsException("Do not support index without explicit mapping.");
Expand Down Expand Up @@ -295,6 +291,8 @@ private static Column parseEsField(String fieldName, ObjectNode fieldValue, List
case "ip":
case "nested":
case "object":
case "wildcard":
case "constant_keyword":
type = ScalarType.createStringType();
break;
default:
Expand Down

0 comments on commit 58348fc

Please sign in to comment.