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-21464][sql-client] Support ADD JAR in SQL Client #15925

Merged
merged 8 commits into from
May 27, 2021

Conversation

fsk119
Copy link
Member

@fsk119 fsk119 commented May 17, 2021

What is the purpose of the change

Support ADD JAR in SQL Client.

Brief change log

  • Add grammer in calcite parser
  • SessionContext supports to create a new classloader and adds the added URL into the configuration

Verifying this change

This change added tests and can be verified as follows:

  • Add end to end test in CliClientTest (load the function in added jar, RESET should reset the classloader also)
  • Test SessionContext to add the legal/illegal path.

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/Mesos, 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 May 17, 2021

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Automated Checks

Last check on commit 3f79a63 (Sat Aug 28 12:12:42 UTC 2021)

Warnings:

  • No documentation files were touched! Remember to keep the Flink docs up to date!

Mention the bot in a comment to re-run the automated checks.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

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 commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@flinkbot
Copy link
Collaborator

flinkbot commented May 17, 2021

CI report:

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

// check the jar path is legal
URL jar;
try {
jar = fromLocalFile(new File(jarPath).getAbsoluteFile()).toUri().toURL();
Copy link
Member

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 .

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

LGTM

@wuchong wuchong merged commit 34ff753 into apache:master May 27, 2021
luoyuxia added a commit to luoyuxia/flink that referenced this pull request May 28, 2021
* 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
  ...
@fsk119 fsk119 deleted the FLINK-21464 branch November 22, 2021 07:44
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