You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ben Wan (Jira)" <ji...@apache.org> on 2022/05/09 13:25:00 UTC

[jira] [Resolved] (SPARK-39130) How do I read parquet with python object

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

Ben Wan resolved SPARK-39130.
-----------------------------
    Resolution: Won't Do

> How do I read  parquet with python object
> -----------------------------------------
>
>                 Key: SPARK-39130
>                 URL: https://issues.apache.org/jira/browse/SPARK-39130
>             Project: Spark
>          Issue Type: Question
>          Components: PySpark
>    Affects Versions: 2.4.5
>         Environment: pyspark2.4.5
>            Reporter: Ben Wan
>            Priority: Trivial
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> {{python:}}
>  
> import pandas as pd
> a=pd.DataFrame([[1,[2.3,1.2]]],columns=['a','b'])
> a.to_parquet('a.parquet')
>  
> pyspark:
>  
> d2 = spark.read.parquet('a.parquet')
>  
> will return error:
> An error was encountered: An error occurred while calling o277.showString. : org.apache.spark.SparkException: Job aborted due to stage failure: Task 14 in stage 9.0 failed 4 times, most recent failure: Lost task 14.2 in stage 9.0 (TID 63, 10.169.0.196, executor 15): java.lang.IllegalArgumentException: Illegal Capacity: -221
> how can I fix it?
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org