You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/10/06 15:17:13 UTC

[GitHub] [incubator-seatunnel] FWLamb commented on issue #2987: [Bug] [seatunnel-connectors-v2]when outputting data to clickhouse,a ClassCastException was encountered

FWLamb commented on issue #2987:
URL: https://github.com/apache/incubator-seatunnel/issues/2987#issuecomment-1270248916

   https://github.com/apache/incubator-seatunnel/pull/2988
   
   When I make a judgment and then decide which type to use, I find a problem,
   I use the Array (Double) type, but when I judge its type in ClickhouseSinkWriter, the result is a String type. When I insert data in the local test, the result is correct, which is Double [] . Why is its type not Double [] or array type, but String type? I tried to use other types such as Array (Integer), and the result is still String type, but this problem did not occur in the e2e test I wrote
   
   **In the following picture, the first two are the code in ClickhouseSinkWriter, and the last two are the code written for the clickhouse e2e test**
   
   ![image](https://user-images.githubusercontent.com/58908699/194349693-b18e7835-272e-434d-8af1-101d20f2c8e4.png)
   ![image](https://user-images.githubusercontent.com/58908699/194349891-a2fe87c0-c4a5-4df0-bafa-388bab3c2a58.png)
   
   ![image](https://user-images.githubusercontent.com/58908699/194350013-0d2a7a5f-a441-474a-8355-9e1b2217f641.png)
   ![image](https://user-images.githubusercontent.com/58908699/194350094-7c9bdd49-8ccb-4595-8387-ec2c39884b7d.png)


-- 
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@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org