You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ziting Shen (Jira)" <ji...@apache.org> on 2026/06/16 04:35:00 UTC
[jira] [Commented] (SPARK-57484) ColumnarToRowExec can crash codegen when columnar data contains unexpected nulls
[ https://issues.apache.org/jira/browse/SPARK-57484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18089276#comment-18089276 ]
Ziting Shen commented on SPARK-57484:
-------------------------------------
Please assign this to me. I'm working on it.
> ColumnarToRowExec can crash codegen when columnar data contains unexpected nulls
> --------------------------------------------------------------------------------
>
> Key: SPARK-57484
> URL: https://issues.apache.org/jira/browse/SPARK-57484
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.0.0, 3.5.8
> Reporter: Ziting Shen
> Priority: Major
> Labels: pull-request-available
>
> ColumnarToRowExec may materialize null values from a columnar batch even when the planned output attribute is non-nullable, so downstream row codegen can skip null checks and fail with errors such as UTF8String.getBaseObject() NPEs.
> One observed failing plan had this shape:
> HashAggregate
> HashAggregate
> ...
> ColumnarToRow
> Scan parquet ...
> In that case the Parquet reader produced a physical null for a column whose planned output attribute was non-nullable, and downstream generated row code failed with a UTF8String.getBaseObject() NullPointerException.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org