@@ -9,7 +9,7 @@ or remote Trino cluster.
99> production workloads. Treat the current release as an early-stage demo;
1010> production-ready builds and documentation are planned.
1111
12- ![ Trino Query UI Demo ] ( demos.gif " Trino Query UI Demo ")
12+ ![ Trino Query UI] ( screenshot.png " Trino Query UI ")
1313
1414Implementation details:
1515* React TypeScript project with Vite
@@ -29,7 +29,7 @@ import { QueryEditor } from 'trino-query-ui'
2929import ' trino-query-ui/dist/index.css'
3030
3131function MyTrinoApp() {
32- return <QueryEditor />
32+ return <QueryEditor theme = " dark " height = { 800 } />
3333}
3434
3535export default MyTrinoApp
@@ -51,8 +51,10 @@ npm run build
5151
5252### Copying into Trino
5353
54+ ```
5455mkdir -p $TRINO_HOME/core/trino-main/src/main/resources/query_ui_webapp/
5556cp -r dist/* $TRINO_HOME/core/trino-main/src/main/resources/query_ui_webapp/
57+ ```
5658
5759### Modifying Trino to respond to /query/
5860
@@ -126,7 +128,7 @@ npm run dev
126128
127129The local URL is displayed, and you can open it in your browser.
128130
129- ### Set Up proxying to a local Trino instance
131+ ### Set up proxying to a local Trino instance
130132
131133Update ` vite.config.ts ` with the following so that queries can be
132134proxied to Trino's query endpoint running on ` http://localhost:8080 ` (or any
@@ -182,19 +184,19 @@ cases are:
182184
183185The approach:
1841861 . Direct integration into the Trino UI
185- - No need for an additional authentication hop (although it could be added
186- in the future)
187- - Authenticates as the user executing the query when using OAuth2
188- - Trino does the heavy lifting
187+ - No need for an additional authentication hop (although it could be added
188+ in the future)
189+ - Authenticates as the user executing the query when using OAuth2
190+ - Trino does the heavy lifting
1891912 . Remove friction so you can simply write a query
190- - Autocomplete understands the Trino language, tables, and columns
191- - Provides syntax highlighting and validation
192- - Offers a comprehensive catalog explorer
192+ - Autocomplete understands the Trino language, tables, and columns
193+ - Provides syntax highlighting and validation
194+ - Offers a comprehensive catalog explorer
1931953 . Avoid black-box query execution
194- - Show progress and execution details. People ask "why is my query slow?"
195- mostly because they only see a spinner for minutes.
196- - Link to the Trino Query UI to drill into query performance
197- - Show stages and split counts like the Trino console client
196+ - Show progress and execution details. People ask "why is my query slow?"
197+ mostly because they only see a spinner for minutes.
198+ - Link to the Trino Query UI to drill into query performance
199+ - Show stages and split counts like the Trino console client
1982004 . Keep the experience easy to navigate
199201
200202### Gaps and future direction
0 commit comments