-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-6308] Extract hardcoded py4j values to constants #5056
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
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.
It looks like the GitHub Action build failed due to line length errors. Could you please check and fix them?
Error: src/main/java/org/apache/zeppelin/python/PythonDockerInterpreter.java:[94] (sizes) LineLength: Line is longer than 100 characters (found 106).
Error: src/main/java/org/apache/zeppelin/python/PythonInterpreter.java:[189] (sizes) LineLength: Line is longer than 100 characters (found 103).
Error: src/main/java/org/apache/zeppelin/python/PythonInterpreter.java:[215] (sizes) LineLength: Line is longer than 100 characters (found 105).
Thanks! Fixed the line length issues by breaking the long lines to stay under 100 characters. This was my first experience with automated code style checks - really appreciate how these guidelines help maintain code quality and readability across the project! |
ParkGyeongTae
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.
LGTM 👍
### What is this PR for? This PR extracts hardcoded py4j values to constants in Python interpreters to improve maintainability. It creates a new PythonConstants class to centralize py4j version and file path constants, replacing hardcoded strings across multiple Python interpreter classes. This addresses the TODO comment requesting to avoid hardcoded py4j values. ### What type of PR is it? Refactoring ### Todos * [x] - Create PythonConstants class with py4j constants * [x] - Replace hardcoded py4j values in IPythonInterpreter * [x] - Replace hardcoded py4j values in PythonInterpreter * [x] - Replace hardcoded py4j values in PythonDockerInterpreter ### What is the Jira issue? [ZEPPELIN-6308](https://issues.apache.org/jira/browse/ZEPPELIN-6308) ### How should this be tested? ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #5056 from celinayk/ZEPPELIN-6308. Signed-off-by: ParkGyeongTae <[email protected]> (cherry picked from commit 4297661) Signed-off-by: ParkGyeongTae <[email protected]>
|
Merged into |
What is this PR for?
This PR extracts hardcoded py4j values to constants in Python interpreters to improve maintainability. It creates a new PythonConstants class to centralize py4j version and file path constants, replacing hardcoded strings across multiple Python interpreter classes. This addresses the TODO comment requesting to avoid hardcoded py4j values.
What type of PR is it?
Refactoring
Todos
What is the Jira issue?
ZEPPELIN-6308
How should this be tested?
Screenshots (if appropriate)
Questions: