[feature](ES Catalog) map nested/object type in ES to JSON type in Doris (#37101) (#37182)

backport #37101
This commit is contained in:
qiye
2024-07-05 10:48:32 +08:00
committed by GitHub
parent 256221a574
commit f8cee439b6
21 changed files with 240 additions and 140 deletions

View File

@ -293,17 +293,19 @@ public class EsUtil {
case "keyword":
case "text":
case "ip":
case "nested":
case "object":
case "wildcard":
case "constant_keyword":
type = ScalarType.createStringType();
break;
case "nested":
case "object":
type = Type.JSONB;
break;
default:
type = Type.UNSUPPORTED;
}
} else {
type = Type.STRING;
type = Type.JSONB;
column.setComment("Elasticsearch no type");
}
if (arrayFields.contains(fieldName)) {