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

Yicong Huang resolved SPARK-59555.
----------------------------------
    Fix Version/s: 4.4.0
       Resolution: Fixed

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

> Fix flaky DataFrameReader.json doctest by sorting multi-directory read
> ----------------------------------------------------------------------
>
>                 Key: SPARK-59555
>                 URL: https://issues.apache.org/jira/browse/SPARK-59555
>             Project: Spark
>          Issue Type: Bug
>          Components: Documentation, PySpark
>    Affects Versions: 4.4.0
>            Reporter: Yicong Huang
>            Assignee: Yicong Huang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.4.0
>
>
> Example 2 in `DataFrameReader.json` docstring reads two directories `[d1, 
> d2]` (two rows across two dirs) and calls `.show()` without ordering, so the 
> row order is nondeterministic and the doctest fails ~50% of the time. Add 
> `.sort("name")` for deterministic output, consistent with Example 4 and the 
> parquet/text examples in the same file. The expected output block is 
> unchanged (Alice, Bob is already sorted).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to