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:
[email protected]