-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
base: master
Are you sure you want to change the base?
Conversation
…n application mode
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. |
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.
@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) { |
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.
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: "; |
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.
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.
What is the purpose of the change
Support to deploy script via SQL Client.
Brief change log
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation