-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove 'RUN SCRIPT' functionality from KSQL Server #2179
Comments
I know that folks like @ybyzek rely a lot on |
Just to clarify one point: automated demos rely on |
The plan here is to deprecate the This work has already been done in #2331. It would be great if you could pull down the 5.2 release an ensure everything works to your satisfaction |
This is not true. If user used to send the Thanks for keeping me in the loop. I definitely want to test this to ensure it works, but I'm slammed this week. Is there time allowance to wait until I test this next week? cc: @rmoff |
@big-andy-coates , I'm a bit confused. Today this is how automated demos run a set of KSQL commands: https://github.com/confluentinc/examples/blob/5.1.0-post/music/start.sh#L23 How is the new functionality going to be different? |
@ybyzek That should still work, assuming that the CLI and the server are on the same machine. The CLI will continue to take the statements in the sql file passed to run script and then send them as individual statements in a single multiline rest request to the server. As Andy mentioned at the top, this is much more robust as all the existing validations are performed in the latter. It seems to me that the main change is that now the script has to be on the machine running the CLI. Previously, the script had to be on the machine running the server. Is this true @big-andy-coates ? If so, this still may break some usecases of |
@apurvam even today the script is co-located with the CLI, not the KSQL server (see cp-demo example: docker-compose.yml and execution of script). My understanding of this |
@ybyzek if that’s true then this should be transparent to the CLI. |
It won't! The CLI does the heavy lifting for you. It loads the script and fires it at the server as a single multi-line request, which the server processes. So from your standpoint nothing should change. |
After some discussion we've decided to have the rest API flatten any
|
The KSQL rest API supports a single request having multiple statements. So it seems unnecessary to have a second 'run script' functionality which is just another way of achieving the same thing, but circumnavigating all the validation and quotes the rest endpoint would otherwise do on the statements.
Run script statements bypass validation and are just written to the command topic, where each server picks up and tries to execute.
We should either completely remove the run script functionality from the REST api, or at the very least mark it as deprecated in the documentation and change the implementation so that the rest api just unpacks it and executes the scripts as though they came through the normal mech.
The text was updated successfully, but these errors were encountered: