Skip to content
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

[SPARK-50388][PYTHON][TESTS] Further centralize import checks #48926

Closed
wants to merge 2 commits into from

Conversation

zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Nov 22, 2024

What changes were proposed in this pull request?

Further centralized import checks:
1, move have_xxx from sqlutils.py/pandasutils.py/xxx to utils.py;
2, but still keep have_pandas and have_pyarrow in sqlutils.py, by importing them from utils.py, because there are too many usage places

Why are the changes needed?

simplify the import checks, e.g. have_plotly has been defined in multiple places

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

@zhengruifeng zhengruifeng changed the title [SPARK-50388][PYTHON][TESTS] Further centralized import checks [SPARK-50388][PYTHON][TESTS] Further centralize import checks Nov 22, 2024
@zhengruifeng
Copy link
Contributor Author

thanks, merged to master

@zhengruifeng zhengruifeng deleted the py_dep_2 branch November 22, 2024 02:23
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.

2 participants