Quickstart

Lakehouse runtimeDownload PDF (5.6 MB)

This section takes you from an empty warehouse to a query result you export. You need access to a warehouse (the list in Lakehouse shows the warehouses you can see) and permission to create databases and tables in it. Your administrator sets those permissions.

1. Open the Lakehouse and pick a warehouse#

Choose Lakehouse in the top navigation bar. The Warehouses page lists the warehouses you can see, with who created them and when. Type in the Search... box to filter by name, and click a name to open its workspace.

The Warehouses page lists each warehouse with its creator and creation date.
The Warehouses page lists each warehouse with its creator and creation date.

To register a new bucket as a warehouse, use Create Warehouse on this page; the Lakehouse chapter of the Data features guide walks through it.

2. Choose a compute and start a session#

The workspace opens with the compute selector at the top left, the databases tree below it and an empty SQL editor. SQL cannot run yet.

A new workspace before a session starts: compute selector, tree and editor.
A new workspace before a session starts: compute selector, tree and editor.
  1. Open the Compute list. Each option shows its name, memory and vCPU.
  2. Set Minimum Workers under the options (the default is 2, the lowest value is 1). Use more workers for scans over very large tables.
  3. Click the green play button (Start session).
The compute list with the Minimum Workers stepper.
The compute list with the Minimum Workers stepper.

The button shows a spinner while the engine starts. When the notification "Session started successfully" appears, the button turns into a red stop button and Run query is enabled. The compute is locked until you stop the session.

A running session: the compute is locked and the stop button is red.
A running session: the compute is locked and the stop button is red.

3. Create a database and a table#

Type the statements below in the editor. Run them one at a time: each press of Run query sends the whole tab.

sql
CREATE DATABASE IF NOT EXISTS sales
sql
CREATE TABLE sales.orders (
  order_id    BIGINT,
  customer_id BIGINT,
  store_id    INT,
  order_ts    TIMESTAMP,
  order_total DECIMAL(12, 2),
  channel     STRING,
  status      STRING
) USING iceberg
PARTITIONED BY (days(order_ts))

After each statement the Messages tab reads "Query executed successfully." Statements that create or change things return no rows, so there is no results grid. Click the refresh icon next to the breadcrumb to reload the tree and see the new database and table.

4. Insert rows#

sql
INSERT INTO sales.orders VALUES
  (1001, 501, 12, TIMESTAMP '2026-09-29 09:14:00', 129.90, 'online',     'COMPLETE'),
  (1002, 502, 12, TIMESTAMP '2026-09-29 11:02:00',  45.00, 'in_store',   'COMPLETE'),
  (1003, 503,  7, TIMESTAMP '2026-09-30 16:45:00', 310.25, 'mobile_app', 'COMPLETE'),
  (1004, 501, 12, TIMESTAMP '2026-09-30 18:20:00',  18.75, 'online',     'RETURNED'),
  (1005, 504,  7, TIMESTAMP '2026-10-01 08:05:00',  99.00, 'marketplace','COMPLETE')

5. Query the table#

sql
SELECT channel,
       COUNT(*)         AS orders,
       SUM(order_total) AS revenue
FROM sales.orders
WHERE status = 'COMPLETE'
GROUP BY channel
ORDER BY revenue DESC

While the query runs, the Messages tab shows "Executing Query..." and a pill counts the seconds. When it finishes, the Results grid opens. Each column header shows its name and its type, and the toolbar shows the row count, rows per page, the page number and the response time.

A result: typed columns, a row count, rows per page and the response time.
A result: typed columns, a row count, rows per page and the response time.

6. Save and export#

Click Save query, enter a name and press Save to keep the SQL for later (see Saved queries). To keep the rows, use the download icon in the results toolbar: Download current page as CSV saves the rows on screen. Results larger than the 100,000 rows kept in the session also offer Export, which writes every row to one CSV or Parquet file (see Exports).

7. Stop the session#

Click the red stop button when you finish. The notification "Session stopped successfully" confirms that the compute is released. A session you forget is stopped for you after 30 minutes without activity.