Skip to content

Commit

Permalink
[SPARK-47480][PYTHON][CONNECT][TESTS] Enable doctest for `createDataF…
Browse files Browse the repository at this point in the history
…rame`

### What changes were proposed in this pull request?
Enable doctest for `createDataFrame`

### Why are the changes needed?
for test coverage

536ac30 had refined the doctests, and it can be reused in connect

### Does this PR introduce _any_ user-facing change?
no, test only

### How was this patch tested?
ci

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

Closes #45606 from zhengruifeng/enable_create_df_doc_test.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
zhengruifeng authored and HyukjinKwon committed Mar 20, 2024
1 parent ad8ac17 commit a5910a2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/pyspark/sql/connect/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,6 @@ def _test() -> None:
# Spark Connect does not support to set master together.
pyspark.sql.connect.session.SparkSession.__doc__ = None
del pyspark.sql.connect.session.SparkSession.Builder.master.__doc__
# RDD API is not supported in Spark Connect.
del pyspark.sql.connect.session.SparkSession.createDataFrame.__doc__

# TODO(SPARK-41811): Implement SparkSession.sql's string formatter
del pyspark.sql.connect.session.SparkSession.sql.__doc__
Expand Down

0 comments on commit a5910a2

Please sign in to comment.