Skip to content

[SPARK-44964][ML][CONNECT][TESTS] Clean up pyspark.ml.connect.functions doctest#42679

Closed
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:SPARK-44964
Closed

[SPARK-44964][ML][CONNECT][TESTS] Clean up pyspark.ml.connect.functions doctest#42679
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:SPARK-44964

Conversation

@HyukjinKwon
Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR proposes to clean up pyspark.ml.connect.functions doctest. All of the tests under that are being skipped.

Why are the changes needed?

To remove unused test codes.

Does this PR introduce any user-facing change?

No, test-only.

How was this patch tested?

Manually ran the tests via:

./python/run-tests --python-executables=python3 --modules=pyspark-ml-connect

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

No

#

"""Spark Connect Python Client - ML module"""
from pyspark.sql.connect.utils import check_dependencies
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and we check the required dependency at the top level of module when it's imported.

@HyukjinKwon HyukjinKwon changed the title [SPARK-44964][ML][CONNECT] Clean up pyspark.ml.connect.functions doctest [SPARK-44964][ML][CONNECT][TESTS] Clean up pyspark.ml.connect.functions doctest Aug 25, 2023
@zhengruifeng
Copy link
Copy Markdown
Contributor

@HyukjinKwon I think this test is working?

https://github.com/apache/spark/actions/runs/5972917734/job/16204296750

Starting test(python3.9): pyspark.ml.connect.functions (temp output: /__w/spark/spark/python/target/e19b8ef9-6a72-4ec1-b6e6-5a5674016f99/python3.9__pyspark.ml.connect.functions__1m6vmd3h.log)
Finished test(python3.9): pyspark.ml.connect.functions (10s)

del pyspark.ml.connect.functions.vector_to_array.__doc__

# TODO: spark.createDataFrame should support UDT
del pyspark.ml.connect.functions.array_to_vector.__doc__
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that works but none of tests are actually running :-)

Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM.

@HyukjinKwon
Copy link
Copy Markdown
Member Author

Thanks!

@HyukjinKwon HyukjinKwon deleted the SPARK-44964 branch January 15, 2024 00:51
Sign up for free to 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