Embed the Trino Query UI in the Trino Web UI
Feature Request / Improvement
Motivation
The Trino Web UI currently focuses on operational and administrative tasks, such as monitoring the cluster and inspecting queries. Running ad hoc queries and exploring catalogs requires a separate client or application.
The Trino Query UI (https://github.com/trinodb/trino-query-ui) provides a reusable react component for browsing catalogs, editing SQL, executing queries, and inspecting results. Embedding it would give users a convenient query interface without requiring another tool.
A local proof of concept confirms that the component can be rendered in the Trino Web UI.
Goal
Make the Trino Query UI available as an integrated part of the Trino Web UI, using the existing Web UI authentication, identity, theme, and navigation. The query-ui component should remain independently maintainable through the published @trinodb/trino-query-ui package so that it can also be embedded into other tools such as Trino Gateway.
A follow-up comment tracks the remaining work as incremental items that can be referenced and completed by individual pull requests.
Proposed high-level solution
- Continue developing the Query UI as a reusable component in
@trinodb/trino-query-uiand consume its published package from trino Web UI. - Integrate query execution with the existing trino Web UI authentication and authorization model. The appropriate request flow, identity propagation, and use of existing or new endpoints need to be investigated before choosing the implementation.
- Embed the component under a new
Query editorroute in the web-ui and make it available by default, with a configuration property allowing operators to disable it. - Align the two projects on bun, typescript, react, MUI, and monaco integration to avoid incompatible or duplicated frontend dependencies.
Source: trinodb/trino