Paul Swithers
06/28/2022, 4:42 PMowen
06/28/2022, 5:39 PM--log-format json
flag (which the dagster-dbt library does to make it easier for us to parse out the log messages). This is something that will need to be fixed from their end (this bug is still present in the most recent version of dbt as far as I can tell). We're working on a temporary workaround from our side that will hopefully make it into this week's releasea.sql
-> select 1
and b.sql
-> select * from { ref("a") }
. Then, I just ran dbt --log-format json run --select b
(so b will select from a table that doesn't yet exist). This gave me a JSON serialization error (rather than a pickle error).
I've opened up a PR on dbt's end to fix that issue (https://github.com/dbt-labs/dbt-bigquery/pull/207), but I just want to make sure that this PR will actually fix the issue you're seeing. Is there anything you can think of that would be different about your setup that's leading you to hit a different error?Paul Swithers
06/29/2022, 12:57 PMdbt --log-format json run --select b
{"code": "Z028", "data": {"msg": "Pickling client objects is explicitly not supported."}, "invocation_id": "b9a3c263-5888-43b6-b248-5177908ed7e6", "level": "error", "log_version": 1, "msg": "\u001b[33mPickling client objects is explicitly not supported.\u001b[0m", "node_info": {}, "pid": 93681, "thread_name": "MainThread", "ts": "2022-06-30T17:54:36.030822Z", "type": "log_line"}
{"code": "Z029", "data": {"msg": "Clients have non-trivial state that is local and unpickleable."}, "invocation_id": "b9a3c263-5888-43b6-b248-5177908ed7e6", "level": "error", "log_version": 1, "msg": "Clients have non-trivial state that is local and unpickleable.", "node_info": {}, "pid": 93681, "thread_name": "MainThread", "ts": "2022-06-30T17:54:36.030988Z", "type": "log_line"}
You were right. There must be something about our set up that results in pickling exception messages where you get serialization messages. Could it be that our project is built around BigQuery?
Either way, the correct message should be this one: "404 Not found: Table cbh-paul-swithers:dbt_paul_swithers.a was not found in location US". I got that when I ran this:
dbt run --select b