wangpeix opened a new issue, #6804:
URL: https://github.com/apache/inlong/issues/6804

   ### What happened
   
   When the data type of ES is `text` or `keyword`, an IllegalArgumentException 
exception is thrown.
   
   ### What you expected to happen
   
   When the data type is `text`, the following exception occurs.
   ```java
   java.lang.IllegalArgumentException: Unsupported FieldType : text
        at 
org.apache.inlong.manager.common.enums.FieldType.forName(FieldType.java:63) 
~[manager-common-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
org.apache.inlong.manager.pojo.sort.util.FieldInfoUtils.convertFieldFormat(FieldInfoUtils.java:162)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
org.apache.inlong.manager.pojo.sort.util.FieldInfoUtils.getFieldInfo(FieldInfoUtils.java:125)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
org.apache.inlong.manager.pojo.sort.util.FieldInfoUtils.parseSinkFieldInfo(FieldInfoUtils.java:68)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
org.apache.inlong.manager.pojo.sort.util.LoadNodeUtils.lambda$createLoadNode$1(LoadNodeUtils.java:108)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 
~[?:1.8.0_151]
        at 
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1380) 
~[?:1.8.0_151]
        at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) 
~[?:1.8.0_151]
        at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) 
~[?:1.8.0_151]
        at 
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) 
~[?:1.8.0_151]
        at 
java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 
~[?:1.8.0_151]
        at 
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) 
~[?:1.8.0_151]
        at 
org.apache.inlong.manager.pojo.sort.util.LoadNodeUtils.createLoadNode(LoadNodeUtils.java:109)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
org.apache.inlong.manager.pojo.sort.util.LoadNodeUtils.lambda$createLoadNodes$0(LoadNodeUtils.java:99)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 
~[?:1.8.0_151]
        at 
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1380) 
~[?:1.8.0_151]
        at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) 
~[?:1.8.0_151]
        at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) 
~[?:1.8.0_151]
        at 
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) 
~[?:1.8.0_151]
        at 
java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 
~[?:1.8.0_151]
        at 
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) 
~[?:1.8.0_151]
        at 
org.apache.inlong.manager.pojo.sort.util.LoadNodeUtils.createLoadNodes(LoadNodeUtils.java:100)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   ```
   
   When the data type is `keyword`, the following exception occurs.
   
   ```java
   java.lang.IllegalArgumentException: Unsupported FieldType : keyword
        at 
org.apache.inlong.manager.common.enums.FieldType.forName(FieldType.java:63) 
~[manager-common-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
org.apache.inlong.manager.pojo.sort.util.FieldInfoUtils.convertFieldFormat(FieldInfoUtils.java:162)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
org.apache.inlong.manager.pojo.sort.util.FieldInfoUtils.getFieldInfo(FieldInfoUtils.java:125)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
org.apache.inlong.manager.pojo.sort.util.FieldInfoUtils.parseSinkFieldInfo(FieldInfoUtils.java:68)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
org.apache.inlong.manager.pojo.sort.util.LoadNodeUtils.lambda$createLoadNode$1(LoadNodeUtils.java:108)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
        at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 
~[?:1.8.0_151]
        at 
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1380) 
~[?:1.8.0_151]
        at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) 
~[?:1.8.0_151]
        at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) 
~[?:1.8.0_151]
        at 
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) 
~[?:1.8.0_151]
        at 
java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 
~[?:1.8.0_151]
        at 
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) 
~[?:1.8.0_151]
        at 
org.apache.inlong.manager.pojo.sort.util.LoadNodeUtils.createLoadNode(LoadNodeUtils.java:109)
 ~[manager-pojo-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   ```
   
   ### How to reproduce
   
   Use the following configuration to reproduce the problem.
   
   
![image](https://user-images.githubusercontent.com/105137931/206592491-252f35e4-bd93-45ab-b21c-22d402a40325.png)
   
   ### Environment
   
   _No response_
   
   ### InLong version
   
   master
   
   ### InLong Component
   
   InLong Manager
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to