Use the SQL preview feature to view a quick analysis over structured datasets. The SQL preview consists of an SQL "scratchpad", where you can run read-only SQL queries, including the following:
JOIN
queriesFollow the steps below to use the SQL preview feature.
You can search for a dataset for a join by entering the name of the dataset within backticks, "`". A dropdown list of datasets that match the name will appear.
Hovering over any dataset within the dropdown list will show you the full resource name and file path.
Cmd + Enter
(macOS) or Ctrl + Enter
(Windows) key command. Only one query is allowed to run at a time. If you have multiple queries, highlight one query to run it.The SQL engine supports the Spark SQL dialect. In Spark SQL, identifiers such as table names should be quoted using backticks ( ` ) rather than single or double quotes.
For example:
Copied!1
SELECT column_name FROM \`table_name\`;
For more information on the Spark SQL dialect and its syntax, refer to the official Spark SQL documentation ↗.
You can share your SQL queries directly from the SQL preview panel.
In dataset preview, you can share a query using the following steps:
Sharing a query does not grant access to the data itself. Recipients must already have access to the resources referenced in your query.
If using the query sharing capability from Data Lineage, rather than from dataset preview, follow the same steps as above.
Note the following differences: