What happens if the SQL in my query is bad?
Or:
I got a Database Error, what does that mean?
If there's a mistake in your SQL, dbt will return the error that your database returns.
$ dbt run --select customersRunning with dbt=0.15.0Found 3 models, 9 tests, 0 snapshots, 0 analyses, 133 macros, 0 operations, 0 seed files, 0 sources14:04:12 | Concurrency: 1 threads (target='dev')14:04:12 |14:04:12 | 1 of 1 START view model dbt_alice.customers.......................... [RUN]14:04:13 | 1 of 1 ERROR creating view model dbt_alice.customers................. [ERROR in 0.81s]14:04:13 |14:04:13 | Finished running 1 view model in 1.68s.Completed with 1 error and 0 warnings:Database Error in model customers (models/customers.sql)Syntax error: Expected ")" but got identifier `grand-highway-265418` at [13:15]compiled SQL at target/run/jaffle_shop/customers.sqlDone. PASS=0 WARN=0 ERROR=1 SKIP=0 TOTAL=1
Any models downstream of this model will also be skipped. Use the error message and the compiled SQL to debug any errors.