[HUDI-1667]: Fix a null value related bug for spark vectorized reader. (#2636)
This commit is contained in:
@@ -281,7 +281,7 @@ class HoodieMergeOnReadRDD(@transient sc: SparkContext,
|
|||||||
tableState.requiredStructSchema.foreach(
|
tableState.requiredStructSchema.foreach(
|
||||||
f => {
|
f => {
|
||||||
val curPos = posIterator.next()
|
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)
|
rowToReturn.update(curIndex, curField)
|
||||||
curIndex = curIndex + 1
|
curIndex = curIndex + 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user