Docs
Preview local changes

Preview local changes

Preview local changes before committing and deploying them.

The Preview local changes drawer.The Preview local changes drawer.

Overview

Utilize the bottom drawer function to preview local changes.

Exploring the options

The Preview Local Changes menu offers the following functionalities:

  • Preview data
  • View the compiled query of your asset

Data query preview

Shortcut: COMMAND + ENTER

To preview a partial SQL query, select the portion you want to preview (available in both Data Catalog and Code mode) and use the same shortcut as above or right click to preview.

Use CMD + ENTER or right click to either preview the query or parts of it.Use CMD + ENTER or right click to either preview the query or parts of it.

Preview 100 rows vs Full preview

Choose to either preview the first 100 rows or opt for a full preview, which materializes the previewed query as a table inside the Data Warehouse (DWH) with a 24-hour time-to-live period.

Data query options: first 100 rows or full preview.Data query options: first 100 rows or full preview.

Utilizing the full preview feature grants you the capability to apply filters across all rows, transcending the initial 100-row limit. This becomes possible once the asset has been materialized as a table. This feature is particularly useful for verifying specific row data against your expectations before committing changes and building your asset.

Data query filter in action.Data query filter in action.

Group by preview data

You can aggregate results and group them by specific columns in the preview. Click on the three dots of any column for more actions, navigate to the second tab with three horizontal lines (aggregations), and select Group By <column_name>.

Group by the resultset.Group by the resultset.

Pivot preview data

You can pivot the preview result set. Click on the <n>/<m> columns label and toggle Pivot on. You can now select the Row Groups, Values, and Column Labels by dragging columns from the list.

Pivot the resultset.Pivot the resultset.

Warehouse selection for previewing data [Snowflake only]

For Snowflake-connected spaces, you can select from the available warehouses to preview data.

Select warehouse to use when previewing data.Select warehouse to use when previewing data.

Compiled query

Shortcut: COMMAND + ALT + ENTER

To compile a partial SQL query, select the portion you want to compile (available in both Data Catalog and Code mode) and use the same shortcut as above or right click to compile.

Use CMD + ALT + ENTER or right click to either compile the query or parts of it.Use CMD + ALT + ENTER or right click to either compile the query or parts of it.

In this section, view the compiled query utilizing the underlying data warehouse tables and views. Learn more about the naming conventions utilized for branches and assets.

products.sql
compiled_query

_10
select
_10
cast(id as string) as product_id,
_10
created_at,
_10
make,
_10
model,
_10
price,
_10
`year` as production_year
_10
from {{ source('airbyte-postgres', 'products') }}

FAQ

The preview is running long or timing out. How can I improve the performance?