You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2023/10/22 05:55:00 UTC

[jira] [Resolved] (SPARK-45604) Converting timestamp_ntz to array can cause NPE or SEGFAULT on parquet vectorized reader

     [ https://issues.apache.org/jira/browse/SPARK-45604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Gekk resolved SPARK-45604.
------------------------------
    Fix Version/s: 3.5.1
                   4.0.0
                   3.4.2
       Resolution: Fixed

Issue resolved by pull request 43451
[https://github.com/apache/spark/pull/43451]

> Converting timestamp_ntz to array<timestamp_ntz> can cause NPE or SEGFAULT on parquet vectorized reader
> -------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-45604
>                 URL: https://issues.apache.org/jira/browse/SPARK-45604
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 3.5.0
>            Reporter: Zamil Majdy
>            Assignee: Zamil Majdy
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.5.1, 4.0.0, 3.4.2
>
>
> Repro:
> ```
> val path = "/tmp/sample_parquet_file"
> spark.sql("SELECT CAST('2019-01-01' AS TIMESTAMP_NTZ) AS field").write.parquet(path)
> spark.read.schema("field ARRAY<TIMESTAMP_NTZ>").parquet(path).collect()
> ```
> Depending on the memory mode, it will throw an NPE on OnHeap mode and SEGFAULT on OffHeap mode.



--
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