You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/09/08 07:36:21 UTC
[GitHub] [doris] qidaye commented on a diff in pull request #12401: [Enhancement](DOE): Doe support object/nested use string
qidaye commented on code in PR #12401:
URL: https://github.com/apache/doris/pull/12401#discussion_r965604625
##########
fe/fe-core/src/main/java/org/apache/doris/external/elasticsearch/EsUtil.java:
##########
@@ -358,22 +358,23 @@ public static List<Column> genColumnsFromEs(EsRestClient client, String indexNam
List<Column> columns = new ArrayList<>();
for (String key : keys) {
JSONObject field = (JSONObject) mappingProps.get(key);
+ Type type;
// Complex types are not currently supported.
Review Comment:
```suggestion
// Complex types are treating as STRING types for now.
```
##########
fe/fe-core/src/main/java/org/apache/doris/external/elasticsearch/MappingPhase.java:
##########
@@ -119,6 +119,8 @@ private static void resolveDocValuesFields(SearchContext searchContext, JSONObje
if (!docValue) {
return;
}
+ } else if (fieldType == null) {
Review Comment:
Add some comments to explain why we need this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org