添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Here is a basic example query to illustrate my issue:

Select parsed_json_data.ex1 from ( Select parse_json('{"ex2":"example"}') AS parsed_json_data ) AS t1

When I run this query directly in the BigQuery console it correctly outputs NULL.

But when I run that same query in dbt Cloud I get:

Encountered an error: Runtime Error the JSON object must be str, bytes or bytearray, not NoneType

This is just a token example, but it’s preventing me from querying JSON where some fields are missing some of the time. Seems like this would be a somewhat frequent issue for others.

Anyone have any more info or workarounds for this?

### Is this a new bug in dbt-bigquery? - [X] I believe this is a new bug in dbt

I don’t think the adapter page is the right place to post this since it’s a Cloud IDE problem rather than being a direct problem with the adapter

Note: @Mike Stanley originally posted this reply in Slack . It might not have transferred perfectly.