FrankChen021 opened a new pull request, #20642: URL: https://github.com/apache/druid/pull/20642
### Description The SQL editor now suggests query context parameters after `SET`. It loads the public parameters from `sys.query_context_parameters` and shows each parameter's type, default, description and deprecation in the completion popup. - The default shown is the one this Broker applies (`effective_value`), with a note on where it comes from: the Broker dynamic configuration, the default query context, or a runtime property. - Without `READ` permission on the `CONFIG` resource, the popup shows the declared default and notes that the Broker may override it. - A default that is the value of a runtime property is shown as that property. - Links in descriptions point to the Druid docs site. Only `https` links are rendered. - Names that need quoting after `SET`, such as reserved keywords, are quoted. - If the table can't be read, such as on an older Druid, the editor falls back to the previous fixed list. <img width="854" height="223" alt="image" src="https://github.com/user-attachments/assets/f504029b-6d5c-4d9a-95a6-f518e3370984" /> #### Release note The web console's SQL editor suggests query context parameters after `SET`, with their type, default and description. <hr> This PR has: - [x] been self-reviewed. - [x] added unit tests or modified existing tests to cover new code paths. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
