[
https://issues.apache.org/jira/browse/SPARK-61500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-61500:
-----------------------------------
Labels: pull-request-available (was: )
> Handle null values in ColumnarArray.get() and ColumnarBatchRow.get()
> --------------------------------------------------------------------
>
> Key: SPARK-61500
> URL: https://issues.apache.org/jira/browse/SPARK-61500
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.1.4
> Reporter: Wechar Yu
> Priority: Major
> Labels: pull-request-available
>
> ColumnarArray.get() and ColumnarBatchRow.get() do not consistently honor null
> flags when reading values from column vectors.
> For primitive-backed types, writing a value such as 42 into a slot and then
> marking it null can cause get() to return 42 even though isNullAt() returns
> true. For NullType vectors, both getters throw an unsupported data type
> exception instead of returning null.
> Enable null handling in ColumnarArray.get() and check isNullAt() before type
> dispatch in ColumnarBatchRow.get(). This makes their null handling consistent
> with UnsafeArrayData.get(), UnsafeRow.get(), and ColumnarRow.get().
> SPARK-53434 addressed the same issue in ColumnarRow.get().
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]