-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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-37536] [TABLE-SQL] Improve SQL Gateway documentation #26378
base: master
Are you sure you want to change the base?
Conversation
@@ -84,6 +84,14 @@ $ curl --request POST http://localhost:8083/v1/sessions/${sessionHandle}/stateme | |||
|
|||
The `operationHandle` in the return results is used by the SQL Gateway to uniquely identify the submitted SQL. | |||
|
|||
The Flink SQL Gateway allows clients to specify which Flink cluster to submit jobs to, enabling remote execution of SQL statements and facilitating easier interaction with Flink clusters through a REST API. Enrich the POST request body with `executionConfig` variable to set the Flink cluster address. For example: |
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.
Is the executionConfig this if so shouldn't this parameter be documented there? Can the other parts of the executionConfig be specified on the rest call? Or is this a different executionConfig? We should document what the defaults are for the ExecutionContext and its parameters?
Also we should mention in the text why/when you would want to specify a non-default jm endpoint for the gateway.
I think the parameters in the example should be parameterized i.e. {port} and then explain what port is. As is I support port will fail as it is not a number.
@ammu20-dev
You can also override the default job manager configuration in SQL client by explicitly providing the cluster address while initialising the client as below: | ||
|
||
```bash | ||
./bin/sql-client.sh gateway --endpoint <gateway address> -Drest.address=<flink cluster host> -Drest.port=<port> |
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.
This does not look very consistent.
- endpoint . - I assume this will include the port so it should be
- then the other endpoint for the JM is defined as an address and a port.
Is this an opportunity to make them more consistent?
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.
I have left comments requesting changes. Also the Chinese docs should be updated with the english ones.
What is the purpose of the change
This pull request if for improving the SQL gateway documentation
Brief change log
Updated the doc with details on submitting a job via gateway to a remote host.
Verifying this change
Please make sure both new and modified tests in this PR follow the conventions for tests defined in our code quality guide.
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no) - noDocumentation