1
0

[HUDI-1667]: Fix a null value related bug for spark vectorized reader. (#2636)

This commit is contained in:
Liulietong
2021-03-20 22:54:20 +08:00
committed by GitHub
parent 900de34e45
commit ce3e8ec870

View File

@@ -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)
rowToReturn.update(curIndex, curField)
curIndex = curIndex + 1
}