Intro
If you have integrated your cloud data warehouse with Domo, you can use Magic ETL to define a data transformation that executes directly on your warehouse data. This enhances the flexibility in your environment and prevents you from having to refactor existing SQL to use in Magic ETL. Whether you have existing SQL code or prefer writing SQL to dragging and dropping tiles (as in the Magic ETL interface), Pass-Through SQL in the Magic ETL SQL tile allows you to use native warehouse SQL syntax to transform your data in ways specific to your use cases. Learn more about the SQL tile. Which cloud data warehouses are supported?Required Grants
In Domo, you need to have the following grants enabled to use Pass-Through SQL:- Edit Adrenaline DataFlow — You must have this grant through your system or custom role. Learn how to add grants to a custom role.
- One of the following:
- (Admin-level) Manage Cloud Accounts — This grant is considered admin-level because it gives the holder access to instance-wide controls.
- Edit DataFlow — This option is available only if Integration Sharing is enabled. If using the Edit DataFlow grant, the holder must also have Can Write permission to the integration account. Learn how to share an integration.
Access Pass-Through SQL
Pass-Through SQL is available while using cloud compute for Magic ETL jobs on Snowflake. When an integration is selected as the Compute Cloud in Magic ETL, the SQL tile allows you to choose the data warehouse as the SQL dialect. Learn more about the SQL tile.Use Pass-Through SQL in Magic ETL
This example describes how to use Pass-Through SQL with Snowflake. The process is the same with other integrations, such as Databricks.- After opening Magic ETL, choose a compute engine from the Compute dropdown menu. In this example, we are using a Snowflake engine, since we want to execute the transform on a Snowflake instance.

- Drag a SQL tile (in the left panel under Utility) onto the canvas to open the tile configuration panel.
-
At the bottom of the configuration panel, select Snowflake from the SQL Dialect menu.
A pop-up displays notes and cautions—writing SQL in this tile executes it directly on your Snowflake instance. You can temporarily or permanently dismiss the pop-up.


- Use the Code tab of the configuration panel to write your SQL.

Note: Pass-Through SQL includes autocomplete features. This means Domo loads a list of all the warehouse databases, schemas, and tables that the account has access to for a smoother authoring experience.
FAQ
Can I use DDL/DML SQL with Pass-Through SQL?
Can I use DDL/DML SQL with Pass-Through SQL?
No, Pass-Through SQL is limited to query functions (SELECT).
How do I control access to Pass-Through SQL?
How do I control access to Pass-Through SQL?
Only the integration account owner can save a DataFlow with Pass-Through SQL enabled. Alternatively, if integration sharing is enabled, only users with the Edit DataFlow grant and Can Write permission to that integration can use this capability.