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/12/16 20:56:00 UTC

[jira] [Assigned] (SPARK-41553) Change num_files to repartition

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

Apache Spark reassigned SPARK-41553:
------------------------------------

    Assignee:     (was: Apache Spark)

> Change num_files to repartition
> -------------------------------
>
>                 Key: SPARK-41553
>                 URL: https://issues.apache.org/jira/browse/SPARK-41553
>             Project: Spark
>          Issue Type: Improvement
>          Components: Pandas API on Spark
>    Affects Versions: 3.4.0
>            Reporter: Bjørn Jørgensen
>            Priority: Major
>
> Functions have this signature. 
>  
> def to_json(
> (..)
> num_files: Optional[int] = None,
>  
>  
> .. note:: pandas-on-Spark writes JSON files into the directory, `path`, and writes
> multiple `part-...` files in the directory when `path` is specified.
> This behavior was inherited from Apache Spark. The number of files can
> be controlled by `num_files`.
>  
>  
>  
> if num_files is not None:
> warnings.warn(
> "`num_files` has been deprecated and might be removed in a future version. "
> "Use `DataFrame.spark.repartition` instead.",
> FutureWarning,
> )
>  
>  
> I will change num_files to repartition



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