Error message
Explanation
The data warehouse rejected the SQL before running it. The warehouse’s own explanation follows the wordsSQL compilation error and usually includes a line and position.
Potential causes
- A table, view, or column doesn’t exist, or its name is spelled or cased differently from the SQL.
- The role running the query lacks privileges on an object it uses.
- A syntax error, or a variable that was replaced with an unexpected value.
Resolve the error
-
Read the text after
SQL compilation error:. It names the object or position the warehouse couldn’t accept. - Open the SQL that Maia generated for the component and run it in your warehouse’s query editor, using the same role.
- Confirm the database, schema, table, and column names exist and match in spelling and case.
- Confirm the role has the privileges the query needs.
- Fix the pipeline and re-run.
-
If you still need help, contact Maia Support and include the items listed below.
- The full warehouse error text.
- The role and warehouse used by the environment.