-
Notifications
You must be signed in to change notification settings - Fork 310
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
[Bug]: String 字段包含空值,NULL指针异常 #1104
Comments
请粘贴完整的输出日志,附加运行环境说明更佳 |
我找到了大概问题的原因,在HdfsHelper.java中的244至251行代码处的逻辑判断出了点问题。 |
本地测试无问题
|
那就奇怪了,我用的4.1.6的版本测试是存在问题的,我修改后重新编译可以正常运行通过 |
方便的话,请给出完整的任务运行输出,能附上MySQL 样例数据更佳 |
对了,我这里输出的不是orc是parquet格式,看上去你测试的orcFileStartWrite方法不会进入到issue代码 |
transportParRecord的方法在HdfsHelper只有一个调用
orc格式进入的是orcFileStartWrite的方法,不会调用group = transportParRecord(record, columns, taskPluginCollector, simpleGroupFactory); |
What happened?
source 是 mysql, sink是HDFS,如果源表字段存在空值的行,出现空指针异常。
Version
4.1.6 (Default)
OS Type
Linux (Default)
Java JDK Version
Oracle JDK 1.8.0
Relevant log output
The text was updated successfully, but these errors were encountered: