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
Executing a run_sql command via dbt rbc against a BigQuery profile returns Object of type Decimal is not JSON serializable. The equivalent command against Redshift, Snowflake, and PostgreSQL connections works correctly.
Steps To Reproduce
A model exists with the body with source as ( select * from {{source('recharge', 'orders')}} ) select * from source.
The query of the model is wrapped in a CTE limiting its results to 100 records:
with run_cte as (with source as ( select * from {{source('recharge', 'orders')}} )) select * from run_cte limit 100
drewbanin
changed the title
run_sql command via rbt rpc returns Object of type Decimal is not JSON serializable
run_sql command via dbt rpc returns Object of type Decimal is not JSON serializable
Apr 20, 2020
Describe the bug
Executing a
run_sql
command viadbt rbc
against a BigQuery profile returnsObject of type Decimal is not JSON serializable
. The equivalent command against Redshift, Snowflake, and PostgreSQL connections works correctly.Steps To Reproduce
A model exists with the body
with source as ( select * from {{source('recharge', 'orders')}} ) select * from source
.The query of the model is wrapped in a CTE limiting its results to 100 records:
And converted to base64:
A request is made to the RPC Server with the
run_sql
command, with the following body:Expected behavior
I would expect this to return the result set of the underlying sql statement.
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using: macOS 10.13.6
The output of
python --version
: 3.7Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: