-
Notifications
You must be signed in to change notification settings - Fork 13k
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-22064][sql-client] Support ADD JAR command in sql client #15558
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 e97df4a (Sat Aug 28 12:15:22 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:
|
Sorry for the late response... Could you rebase your branch to the master? I am ready to review recently. |
Hi, @xiangtao. After quick review, I think it's better to use calcite parser to parse the command. We can throw exception early if users only input You can refer to #15087 about how to extends the grammer in |
The current test only tells us we can ADD JAR into the classloader. But does it really means whether we can load the function from the added jars? The most convenient way to verify is to use The ADD JAR has two parts in SQL client actually:
By the way, you should also consider RESET to rollback the added jar files. Also I am confused why do you use list as the input of the |
@xiangtao Are you still working on this branch? I am willing to help. |
CC #15925 |
@fsk119 sorry , i can help to test code |
What is the purpose of the change
this change is to support "ADD JAR" statement in the SQL Client
Brief change log
ADD JAR
statementVerifying this change
This change added tests and can be verified as follows:
SqlToOperationConverterTest
add jar
statement in resources/sql/add.qDoes this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation