You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/03/08 02:20:31 UTC
[GitHub] [hudi] garyli1019 commented on a change in pull request #2636: [HUDI-1667]: Fix bug when HoodieMergeOnReadRDD read record from base …
garyli1019 commented on a change in pull request #2636:
URL: https://github.com/apache/hudi/pull/2636#discussion_r589133673
##########
File path: hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/hudi/HoodieMergeOnReadRDD.scala
##########
@@ -281,7 +281,7 @@ class HoodieMergeOnReadRDD(@transient sc: SparkContext,
tableState.requiredStructSchema.foreach(
f => {
val curPos = posIterator.next()
- val curField = row.get(curPos, f.dataType)
+ val curField = if (row.isNullAt(curPos)) null else row.get(curPos, f.dataType)
Review comment:
Hi @Liulietong , thanks for your contribution! Is that possible to add a test case to verify this will fix the vectorized reader bug?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org