7  Query Notebook

EdgeSet provides a notebook interface for running SQL queries. You can also run queries using your favorite Presto-compatible client (see Clients).

7.1 The query box

The query box is the first thing you see when navigating to the “Notebook” menu in EdgeSet.

the query notebook loads with an empty query box ready for SQL input

Enter your SQL query into the box and run the query by clicking Run or pressing Ctrl+Enter.

7.1.1 Notifications

Below the query box is a Notify checkbox. If selected, EdgeSet will send you a notification once data is available. How the notification is displayed depends on your web browser and operating system.

Note that the first time you click the Notify checkbox your web browser may prompt you to allow notifications from EdgeSet.

7.2 Query cards

Once you’ve run a query, a query card will appear for it in the notebook above the query box. The query card will show information about the query, whether EdgeSet has returned a result already or the query is still active or waiting.

This query card is displaying the query result table

In case of a result table, you can resize the columns of the table by dragging the top right part of a column in the header. Each column can be automatically resized to fit the column’s content by double clicking the same part top right part of the column header. The result table also supports toggleable viewers for JSON and Long text on the cell for ease of viewing those values.

A column resizer displayed on hover over the table header column

You can also reload the results of a previously completed query or revise the query. Clicking the “edit” icon on a query card will load that query’s SQL into the query box (overwriting anything already in the box).

The controls on the query card allow you to move the card up and down or minimize or close them in the notebook. A drag handle is also provided at the top of the card to allow dragging the card to a desired location.

A query result bar showing the “move query up”, “move query down”, “edit”, “reload”, “minimize” and “close” icons

Drag handle on the query card

Edgeset supports exporting query results to CSV or TSV. At any point during the query’s lifetime you can select an export option (if the query has not started yet, an export and file download will be triggered automatically once the result becomes available).

Export menu as displayed on the query card footer

Clicking the “close” (x) icon on a running query will cancel the query.

7.3 Large query results

EdgeSet is capable of handling very large query results. It does so by streaming the results from the query engine to your web browser and rendering only the results you’ve scrolled into view. Once EdgeSet has fetched enough results to display a table, the query engine will put the query into an idle state. If you scroll to the bottom of the results table, EdgeSet will fetch and display more rows.

7.3.1 Query timeouts

The query engine will only keep idle queries alive for 5 minutes before they will be terminated. If this happens and you try to load more results, EdgeSet will ask if you want to rerun the query.