-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-54517][PYTHON][TESTS] Added utility decorators for Spark Connect parity tests #53223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM. Thank you, @ueshin and @HyukjinKwon .
Merged to master/4.1.
…ct parity tests ### What changes were proposed in this pull request? This PR aims to add utility decorators in Spark Connect cross version tests. - `skip_if_server_version_is` - `skip_if_server_version_is_greater_than_or_equal_to` ### Why are the changes needed? This is a forward-port from #53222. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? No. Closes #53223 from ueshin/issues/SPARK-54517/decorators. Authored-by: Takuya Ueshin <ueshin@databricks.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit d9dcb5c) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
|
Hi, @ueshin . It seems a little weird but this PR causes some CI failures. Could you take a look at that? https://github.com/apache/spark/actions/runs/19711591103/job/56473581543 (Python 3.10) |
|
@dongjoon-hyun oh, sure, let me check. |
|
Thank you so much~ |
|
Submitted the follow-up: #53238 |
### What changes were proposed in this pull request? This is a follow-up of #53223. Fixes a typehint using ellipsis that are not available as type arguments in Python 3.10. ### Why are the changes needed? #53223 caused a test failure in Python 3.10 tests: ``` File "/__w/spark/spark/python/pyspark/testing/connectutils.py", line 312, in <module> ) -> Callable[[...], ...]: ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 1206, in __getitem__ return self.__getitem_inner__(params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 312, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 1212, in __getitem_inner__ result = _type_check(result, msg) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 176, in _type_check raise TypeError(f"{msg} Got {arg!r:.100}.") TypeError: Callable[args, result]: result must be a type. Got Ellipsis. ``` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? The existing tests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #53238 from ueshin/issues/SPARK-54517/typehints. Authored-by: Takuya Ueshin <ueshin@databricks.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
### What changes were proposed in this pull request? This is a follow-up of #53223. Fixes a typehint using ellipsis that are not available as type arguments in Python 3.10. ### Why are the changes needed? #53223 caused a test failure in Python 3.10 tests: ``` File "/__w/spark/spark/python/pyspark/testing/connectutils.py", line 312, in <module> ) -> Callable[[...], ...]: ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 1206, in __getitem__ return self.__getitem_inner__(params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 312, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 1212, in __getitem_inner__ result = _type_check(result, msg) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/pypy/pypy3.10/lib/pypy3.10/typing.py", line 176, in _type_check raise TypeError(f"{msg} Got {arg!r:.100}.") TypeError: Callable[args, result]: result must be a type. Got Ellipsis. ``` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? The existing tests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #53238 from ueshin/issues/SPARK-54517/typehints. Authored-by: Takuya Ueshin <ueshin@databricks.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit c11edf9) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
This PR aims to add utility decorators in Spark Connect cross version tests.
skip_if_server_version_isskip_if_server_version_is_greater_than_or_equal_toWhy are the changes needed?
This is a forward-port from #53222.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
N/A
Was this patch authored or co-authored using generative AI tooling?
No.