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

[feat] EngineConn no longer imports the dependencies of the underlying engine #4278

Merged
merged 6 commits into from
Mar 8, 2023

Conversation

GuoPhilipse
Copy link
Member

@GuoPhilipse GuoPhilipse commented Feb 27, 2023

What is the purpose of the change

EngineConn no longer imports the dependencies of the underlying engine. and remove json4s from ec to reduce engine dependency

Related issues/PRs

Related issues: #4186
Related pr:#4278

Brief change log

  • move engine version to outside
  • remove json4s from ec
  • remove json4s from spark profile

Checklist

  • I have read the Contributing Guidelines on pull requests.
  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the Linkis mailing list first)
  • If this is a code change: I have written unit tests to fully verify the new behavior.

@GuoPhilipse GuoPhilipse changed the title [Improve] EngineConn no longer imports the dependencies of the underlying engine [feat] EngineConn no longer imports the dependencies of the underlying engine Feb 27, 2023
@@ -33,8 +33,6 @@ import java.util.concurrent.TimeUnit
import scala.concurrent.{Await, ExecutionContext, Future}
import scala.concurrent.duration.Duration

import org.json4s._

/**
*/
abstract class ProcessInterpreter(process: Process) extends Interpreter with Logging {
Copy link
Contributor

Choose a reason for hiding this comment

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

can delete ProcessInterpreter,No longer use

Copy link
Member Author

Choose a reason for hiding this comment

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

seems PythonInterpreter still extends from ProcessInterpreter

private class PythonInterpreter(process: Process, gatewayServer: GatewayServer)
    extends ProcessInterpreter(process)
    with Logging {

Copy link
Contributor

Choose a reason for hiding this comment

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

@GuoPhilipse Yes, but it is no longer used, we can remove inheritance and remove unused methods

Copy link
Contributor

@peacewong peacewong left a comment

Choose a reason for hiding this comment

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

LGTM.

@peacewong peacewong merged commit 9563457 into apache:dev-1.4.0 Mar 8, 2023
@GuoPhilipse GuoPhilipse deleted the removeunderlyingversion branch March 10, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants