You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/03/01 14:26:00 UTC

[jira] [Assigned] (SPARK-38363) Avoid runtime error in Dataset.summary() when ANSI mode is on

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

Apache Spark reassigned SPARK-38363:
------------------------------------

    Assignee: Apache Spark  (was: Gengliang Wang)

> Avoid runtime error in Dataset.summary() when ANSI mode is on
> -------------------------------------------------------------
>
>                 Key: SPARK-38363
>                 URL: https://issues.apache.org/jira/browse/SPARK-38363
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Gengliang Wang
>            Assignee: Apache Spark
>            Priority: Major
>
> When executing df.summary(), Spark SQL converts String columns as Double for the 
> percentiles/mean/stddev metrics. 
> This can cause runtime errors with ANSI mode on. 
> Since this API is for getting a quick summary of the Dataframe, I suggest using "TryCast" for the problematic stats so that the API still works under ANSI mode.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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