You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing an issue where dbt reports a successful build, but the created database object actually contains errors that only surface when queried.
dbt run output (reports success):
1 of 1 START sql view model schema.model_name [RUN]
1 of 1 OK created sql view model schema.model_name [OK in 3.75s]
Completed successfully
Done. PASS=1 WARN=0 ERROR=0 SKIP=0 TOTAL=1
Actual database error (when querying the view):
[BAD_REQUEST] [CAST_INVALID_INPUT] The value 'text,values,here' of type "STRING" cannot be cast to "BIGINT" because it is malformed.
The "database" is Databricks.
The code causing the issue:
-- This creates a view that compiles successfully but fails at query timeunion allselect
objectid as object_id,
CAST(activity_check ASINT), -- Contains string data that can't be cast to INT-- ... other fields ...from table_v2
My questions:
Is this expected behavior for dbt to run without errors even when the database don't ? ( I tried a lot of keywords to find a definitive answer in the documentation but couldn't find it)
Can I configure dbt to actually test/validate the created objects rather than just checking if DDL executed?
Are there ways to make dbt catch these runtime errors during the build process?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm experiencing an issue where dbt reports a successful build, but the created database object actually contains errors that only surface when queried.
dbt run output (reports success):
Actual database error (when querying the view):
The "database" is Databricks.
The code causing the issue:
My questions:
Beta Was this translation helpful? Give feedback.
All reactions