-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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-21464][sql-client] Support ADD JAR in SQL Client #15925
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 3f79a63 (Sat Aug 28 12:12:42 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. The 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:
|
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliStrings.java
Outdated
Show resolved
Hide resolved
...k-sql-client/src/main/java/org/apache/flink/table/client/gateway/context/SessionContext.java
Outdated
Show resolved
Hide resolved
...link-sql-client/src/main/java/org/apache/flink/table/client/gateway/local/LocalExecutor.java
Outdated
Show resolved
Hide resolved
// check the jar path is legal | ||
URL jar; | ||
try { | ||
jar = fromLocalFile(new File(jarPath).getAbsoluteFile()).toUri().toURL(); |
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.
Please add some negative tests, e.g. jar from remote url .
...k-sql-client/src/main/java/org/apache/flink/table/client/gateway/context/SessionContext.java
Outdated
Show resolved
Hide resolved
...k-sql-client/src/main/java/org/apache/flink/table/client/gateway/context/SessionContext.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
…ble/client/cli/CliStrings.java Co-authored-by: Jark Wu <[email protected]>
...k-sql-client/src/main/java/org/apache/flink/table/client/gateway/context/SessionContext.java
Outdated
Show resolved
Hide resolved
...k-sql-client/src/main/java/org/apache/flink/table/client/gateway/context/SessionContext.java
Outdated
Show resolved
Hide resolved
...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
...-table/flink-sql-client/src/test/java/org/apache/flink/table/client/cli/CliClientITCase.java
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
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
* upstream/master: (23 commits) [FLINK-22760][Connectors/Hive] Fix issue of HiveParser::setCurrentTimestamp fails with hive-3.1.2 [FLINK-20140][python][docs] Add documentation for TableResult.collect for Python Table API. [FLINK-22780][streaming] Remove volatile from the idle flag in StreamSourceContexts [hotfix][runtime] Remove unused field from OperatorChain [FLINK-22746][docs] Links to connectors in docs are broken [FLINK-22393][docs-zh] Translate the page of "Execution Mode (Batch/Streaming)" into Chinese (apache#15767) [FLINK-21464][sql-client] Support ADD JAR in SQL Client (apache#15925) [FLINK-22777][docs] Restored full Datastream API fraud detection example in Try Flink section [FLINK-22778] Upgrade to JUnit 4.13 [FLINK-22613][tests] Fix FlinkKinesisITCase.testStopWithSavepoint. [FLINK-22784][jepsen] Update rest server leader path [FLINK-22774][sql-connector-kinesis] Update Kinesis SQL connector's Guava to 27.0-jre [FLINK-22740][docs] Drop legacy planner references in docs [FLINK-22319][table][sql-client] Support RESET table option for ALTER TABLE statement fixup: Create the new operator states instead of changing old one [FLINK-22684][runtime] Added ability to ignore in-flight data during the recovery [FLINK-22725][coordination] SlotManagers unregister metrics in suspend() [FLINK-22464][runtime][tests] Disable a test failing with AdaptiveScheduler tracked in FLINK-22464 [FLINK-22639] Override URLClassLoader#getURLs [FLINK-22747] Upgrade to commons-io 2.8.0 ...
What is the purpose of the change
Support ADD JAR in SQL Client.
Brief change log
SessionContext
supports to create a new classloader and adds the added URL into the configurationVerifying this change
This change added tests and can be verified as follows:
SessionContext
to add the legal/illegal path.Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation