New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String #488
Comments
从Hive里读取的数据是 写入ClickHouse的时候,需要字段类型严格匹配,不匹配的需要进行数据转换,数据转换可以通过
|
这是因为Waterdrop封装的时候Date 和 DateTime 格式都必要转成字符串才可以写入。上述链接也有说明的。 |
也就是说我要在从hive通过sql获取数据的时候就通过sql把date类型转换成string类型对么? |
@terriblegirl 是的。 |
我的意思是使用这两个插件进行数据转换, 插件的使用参考https://interestinglab.github.io/waterdrop-docs/#/zh-cn/v1/configuration/base 具体的文档即可。 |
Closed
ruanwenjun
added a commit
to ruanwenjun/incubator-seatunnel
that referenced
this issue
Nov 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
**Waterdrop Version(waterdrop-1.4.3)
A clear version of Waterdrop.
**Spark Version(spark-2.4.5-bin-hadoop2.7)
A clear version of Spark.
**Java Version(1.8.0_242)
A clear version of Java.
Waterdrop Config(Waterdrop配置文件)
Please delete sensitive information(请注意删除敏感信息)
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
ISSUE:在从hive到clickhouse的过程中,报错如下:
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
截图:
hive的建表情况
clickhouse的建表情况
猜测是数据类型不匹配的问题,但是string已经是最宽泛的一种数据类型了,为什么还会报这种错误?
The text was updated successfully, but these errors were encountered: