You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "gnehil (via GitHub)" <gi...@apache.org> on 2023/04/09 05:07:21 UTC

[GitHub] [doris] gnehil commented on pull request #18438: [fix](es) ClassCastException when getting root schema

gnehil commented on PR #18438:
URL: https://github.com/apache/doris/pull/18438#issuecomment-1501042570

   I think we are not having the same problem.
   The problem I have encountered is that when calling the `getRootSchema` method, when the `mappingType` is null and there is `dynamic` parameter in the mapping json, since the first element obtained by traversing the mapping json through the iterator is `dynamic`, and its type is `TextNode`, a `ClassCastException` will appear when running the following codeļ¼š
   ```java
   ObjectNode firstData = (ObjectNode) mappings.get(firstType);
   ```
   All this happens before calling the `replaceFieldAlias` method.


-- 
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