jiangjiangtian opened a new pull request, #10706:
URL: https://github.com/apache/incubator-gluten/pull/10706
## What changes are proposed in this pull request?
For now, if PartialProject evaluates expressions that accept data whose type
is struct and its input has NULL values for some fields, the evaluation will
throw out exception like follows:
```
Reason: Operator::getOutput failed for [operator: ValueStream, plan node ID:
0]: Error during calling Java code from native code:
java.lang.IllegalStateException: Value at index is null
at org.apache.arrow.vector.BitVector.get(BitVector.java:252)
at
org.apache.gluten.vectorized.ArrowWritableColumnVector$BooleanAccessor.getBoolean(ArrowWritableColumnVector.java:913)
at
org.apache.gluten.vectorized.ArrowWritableColumnVector.getBoolean(ArrowWritableColumnVector.java:471)
at
org.apache.spark.sql.vectorized.ColumnarRow.getBoolean(ColumnarRow.java:104)
at org.apache.spark.sql.vectorized.ColumnarRow.get(ColumnarRow.java:162)
at
org.apache.spark.sql.catalyst.expressions.GetStructField.nullSafeEval(complexTypeExtractors.scala:128)
```
The reason is that ColumnarRow in Spark doesn't check whether the field to
get is null. This PR fixes this bug.
## How was this patch tested?
Unit tests.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]