1
0

[HUDI-1953] Fix NPE due to not set the output type of the operator (#3023)

Co-authored-by: enter58xuan <enter58xuan@zto.com>
This commit is contained in:
taylorliao
2021-06-03 14:20:57 +08:00
committed by GitHub
parent 05a9830e86
commit 86007e9a13
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ public class HoodieFlinkStreamer {
.uid("uid_bucket_assigner")
// shuffle by fileId(bucket id)
.keyBy(record -> record.getCurrentLocation().getFileId())
.transform("hoodie_stream_write", null, operatorFactory)
.transform("hoodie_stream_write", TypeInformation.of(Object.class), operatorFactory)
.uid("uid_hoodie_stream_write")
.setParallelism(numWriteTask);
if (StreamerUtil.needsScheduleCompaction(conf)) {

View File

@@ -125,7 +125,7 @@ public class StreamWriteITCase extends TestLogger {
.uid("uid_bucket_assigner")
// shuffle by fileId(bucket id)
.keyBy(record -> record.getCurrentLocation().getFileId())
.transform("hoodie_stream_write", null, operatorFactory)
.transform("hoodie_stream_write", TypeInformation.of(Object.class), operatorFactory)
.uid("uid_hoodie_stream_write");
execEnv.addOperator(dataStream.getTransformation());