Skip to content

[SPARK-45049][CONNECT][DOCS][TESTS] Refine docstrings of coalesce/repartition/repartitionByRange - #42770

Closed
zhengruifeng wants to merge 2 commits into
apache:masterfrom
zhengruifeng:enable_doctest_partition
Closed

[SPARK-45049][CONNECT][DOCS][TESTS] Refine docstrings of coalesce/repartition/repartitionByRange#42770
zhengruifeng wants to merge 2 commits into
apache:masterfrom
zhengruifeng:enable_doctest_partition

Conversation

@zhengruifeng

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Enable doctests for coalesce/repartition/repartitionByRange, by using explain instead of rdd.getNumPartitions

Why are the changes needed?

test coverage

Does this PR introduce any user-facing change?

yes

How was this patch tested?

updated doctests

Was this patch authored or co-authored using generative AI tooling?

NO

@zhengruifeng

zhengruifeng commented Sep 2, 2023

Copy link
Copy Markdown
ContributorAuthor

@zhengruifengzhengruifeng changed the title [SPARK-45049][CONNECT][TESTS] Enable doctests for coalesce/repartition/repartitionByRange[SPARK-45049][CONNECT][DOCS][TESTS] Refine docstrings of coalesce/repartition/repartitionByRangeSep 2, 2023
Comment threadpython/pyspark/sql/dataframe.py Outdated
@zhengruifeng
zhengruifengforce-pushed the enable_doctest_partition branch from 3075b4f to fad313aCompareSeptember 4, 2023 10:19
@HyukjinKwon

Copy link
Copy Markdown
Member

Merged to master.

@zhengruifeng
zhengruifeng deleted the enable_doctest_partition branch September 5, 2023 02:23
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@zhengruifeng@HyukjinKwon@allisonwang-db