-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-21701][sql-client] Extend the "RESET" syntax in the SQL Client #15332
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
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit c5dbec4 (Mon Mar 22 18:15:30 UTC 2021) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
fsk119
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.
Thanks for your contribution. I left comments.
...l-client/src/test/java/org/apache/flink/table/client/gateway/context/SessionContextTest.java
Show resolved
Hide resolved
...l-client/src/test/java/org/apache/flink/table/client/gateway/context/SessionContextTest.java
Outdated
Show resolved
Hide resolved
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java
Show resolved
Hide resolved
...ble/flink-sql-client/src/main/java/org/apache/flink/table/client/config/YamlConfigUtils.java
Outdated
Show resolved
Hide resolved
...k-sql-client/src/main/java/org/apache/flink/table/client/gateway/context/SessionContext.java
Show resolved
Hide resolved
...e/flink-sql-client/src/test/java/org/apache/flink/table/client/cli/SqlCommandParserTest.java
Show resolved
Hide resolved
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java
Outdated
Show resolved
Hide resolved
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java
Outdated
Show resolved
Hide resolved
|
The title is a little strange? What about |
fsk119
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.
Thanks for your update. Look good to me in general. I left some minor problems.
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java
Outdated
Show resolved
Hide resolved
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java
Outdated
Show resolved
Hide resolved
...ble/flink-sql-client/src/main/java/org/apache/flink/table/client/config/YamlConfigUtils.java
Outdated
Show resolved
Hide resolved
| if (isRemovedKey || isDeprecatedKey) { | ||
| printRemovedAndDeprecatedKeyMessage(key); | ||
| } | ||
| // it's not removedKey, need to print info message | ||
| if (!isRemovedKey) { |
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.
nit: Why don't use
if (...) {
} else {
...
}
It seems deprecated key will also get into this if-block.
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.
because when isDeprecatedKey is true , it need to print a deprecated message in addition to the normal message.
|
It looks good to me. CC @wuchong |
wuchong
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.
Thanks for the contribution. I only left some minor comments.
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java
Outdated
Show resolved
Hide resolved
...l-client/src/test/java/org/apache/flink/table/client/gateway/context/SessionContextTest.java
Outdated
Show resolved
Hide resolved
...l-client/src/test/java/org/apache/flink/table/client/gateway/context/SessionContextTest.java
Outdated
Show resolved
Hide resolved
...l-client/src/test/java/org/apache/flink/table/client/gateway/context/SessionContextTest.java
Outdated
Show resolved
Hide resolved
wuchong
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 the purpose of the change
this change is to Improve support "RESET key" statement in the SQL Client
Brief change log
RESETcommand pattern change to RESET(\s+(\S+)\s)? *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