Skip to content

Commit

Permalink
[SPARK-43005][PYSPARK] Fix typo in pyspark/pandas/config.py
Browse files Browse the repository at this point in the history
By comparing compute.isin_limit and plotting.max_rows, `v is v` is likely to be a typo.

### What changes were proposed in this pull request?

fix `v is v >= 0` with `v >= 0`.

### Why are the changes needed?

By comparing compute.isin_limit and plotting.max_rows, `v is v` is likely to be a typo.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

By GitHub Actions.

Closes #40620 from thyecust/patch-2.

Authored-by: thyecust <thy@mail.ecust.edu.cn>
Signed-off-by: Sean Owen <srowen@gmail.com>
(cherry picked from commit 5ac2b0f)
Signed-off-by: Sean Owen <srowen@gmail.com>
  • Loading branch information
thyecust authored and srowen committed Apr 3, 2023
1 parent 568fbcf commit 7773740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/pandas/config.py
Expand Up @@ -204,7 +204,7 @@ def validate(self, v: Any) -> None:
default=1000,
types=int,
check_func=(
lambda v: v is v >= 0,
lambda v: v >= 0,
"'plotting.max_rows' should be greater than or equal to 0.",
),
),
Expand Down

0 comments on commit 7773740

Please sign in to comment.