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

[FLINK-36760][sql-client] Supports to deploy script via sql client #25754

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

fsk119
Copy link
Member

@fsk119 fsk119 commented Dec 6, 2024

What is the purpose of the change

Support to deploy script via SQL Client.

Brief change log

  • Support to deploy script
  • Support to deploy script with remote jar
  • Relax the limitation that script exists in local

Verifying this change

This change added tests and can be verified as follows:

  • Added integration tests to check deploy script with fake target
  • Added E2E case to fetch resources from the remote jar

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot
Copy link
Collaborator

flinkbot commented Dec 6, 2024

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@davidradl
Copy link
Contributor

Reviewed by Chi on 12/12/24 Group to test and/or review outside of the meeting. @tomncooper one you might want to look at.

Copy link
Contributor

@hackergin hackergin left a comment

Choose a reason for hiding this comment

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

@fsk119 Thanks for your contribution, only some minor comments.

@@ -251,6 +254,11 @@ public List<String> completeStatement(String statement, int position) {
throw new UnsupportedOperationException();
}

@Override
public String deployScript(@Nullable String script, @Nullable @Nullable URI path) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The @nullable annotation here seems to be duplicated.

@@ -213,6 +213,8 @@ public AttributedString build() {

public static final String MESSAGE_EXECUTE_STATEMENT = "Execute statement succeeded.";

public static final String MESSAGE_DEPLOY_SCRIPT = "Deploy script in cluster: ";
Copy link
Contributor

Choose a reason for hiding this comment

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

The log message ‘Deploy script in cluster’ could be improved. It would be helpful to explicitly indicate that this is submitting in Application mode and include the corresponding clusterId as xx to enhance readability and informativeness.

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.

4 participants