Skip to content

Conversation

@xinrong-meng
Copy link
Member

@xinrong-meng xinrong-meng commented Apr 14, 2021

What changes were proposed in this pull request?

Consolidate PySpark testing utils by removing python/pyspark/pandas/testing, and then creating a file pandasutils under python/pyspark/testing for test utilities used in pyspark/pandas.

Why are the changes needed?

python/pyspark/pandas/testing hold test utilites for pandas-on-spark, and python/pyspark/testing contain test utilities for pyspark. Consolidating them makes code cleaner and easier to maintain.

Updated import statements are as shown below:

  • from pyspark.testing.sqlutils import SQLTestUtils
  • from pyspark.testing.pandasutils import PandasOnSparkTestCase, TestUtils
    (PandasOnSparkTestCase is the original ReusedSQLTestCase in python/pyspark/pandas/testing/utils.py)

Minor improvements include:

  • Usage of missing library's requirement_message
  • except ImportError rather than except
  • import pyspark.pandas alias as ps rather than pp

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit tests under python/pyspark/pandas/tests.

Keyword:SPARK-34849

@xinrong-meng
Copy link
Member Author

xinrong-meng commented Apr 14, 2021

[DONE] This PR ought to be adjusted and merged after #32139 and #32152.

@SparkQA
Copy link

SparkQA commented Apr 14, 2021

Test build #137372 has finished for PR 32177 at commit b31ab33.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@xinrong-meng xinrong-meng changed the title [SPARK-34999][PYTHON] Consolidate PySpark testing utils [WIP][SPARK-34999][PYTHON] Consolidate PySpark testing utils Apr 14, 2021
@github-actions
Copy link

Test build #749688774 for PR 32177 at commit b31ab33.

@SparkQA
Copy link

SparkQA commented Apr 14, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41950/

@SparkQA
Copy link

SparkQA commented Apr 14, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41950/

@github-actions
Copy link

Test build #750536294 for PR 32177 at commit 9781e5d.

@github-actions
Copy link

Test build #750538121 for PR 32177 at commit de6cb1e.

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Test build #137392 has finished for PR 32177 at commit 9781e5d.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Test build #137395 has finished for PR 32177 at commit de6cb1e.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Kubernetes integration test unable to build dist.

exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41970/

Copy link
Member

@Yikun Yikun left a comment

Choose a reason for hiding this comment

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

There are some suggestion on inline comments

@github-actions
Copy link

Test build #752784527 for PR 32177 at commit 6638d40.

@github-actions
Copy link

Test build #752884941 for PR 32177 at commit c79a606.

@github-actions
Copy link

Test build #752891640 for PR 32177 at commit 47af208.

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Kubernetes integration test unable to build dist.

exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42006/

@github-actions
Copy link

Test build #752927701 for PR 32177 at commit 73ce19a.

@github-actions
Copy link

Test build #752931779 for PR 32177 at commit aa3590e.

@github-actions
Copy link

Test build #752986243 for PR 32177 at commit b70bba9.

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Test build #137430 has finished for PR 32177 at commit 73ce19a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Test build #137432 has finished for PR 32177 at commit aa3590e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42007/

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42007/

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42009/

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Test build #137429 has finished for PR 32177 at commit 6638d40.

  • This patch fails PySpark unit tests.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 15, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42009/

@SparkQA
Copy link

SparkQA commented Apr 22, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42346/

@SparkQA
Copy link

SparkQA commented Apr 22, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42346/

@SparkQA
Copy link

SparkQA commented Apr 22, 2021

Test build #137816 has finished for PR 32177 at commit 95bdbcf.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@ueshin ueshin left a comment

Choose a reason for hiding this comment

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

LGTM, pending tests.

@ueshin
Copy link
Member

ueshin commented Apr 22, 2021

Thanks! merging to master.

@ueshin ueshin closed this in 4d2b559 Apr 22, 2021
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.

4 participants