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
BigQuery fails when trying to use the same filesystem config which works when I use ClickHouse as destination, ie. GCS in s3 compatibility mode (this setting is required by the ClickHouse destination). I get this error:
Use GcpServiceAccountCredentials instead of AwsCredentials in the filesystem destination:
# my_pipeline.py# gcp_credentials are a subset of service account JSON credentials produced by Google Cloud,# namely `project_id`, `private_key_id`, `private_key`, and `client_email`pipe=dlt.pipeline(
destination=dlt.destinations.bigquery(
credentials=GcpServiceAccountCredentials(**gcp_credentials)
),
staging=dlt.destinations.filesystem(
credentials=GcpServiceAccountCredentials(**gcp_credentials)
)
)
The text was updated successfully, but these errors were encountered:
@trymzet AFAIK it is not possible to pass s3 location to a BigQuery load job. and yes - you can share the same staging configuration with less specific config section (exactly as you do) but that need to be the same config. in your case you have two separate locations on two separate buckets.
I probably do not understand what you want to achieve here :)
dlt version
1.5.0
Describe the problem
BigQuery fails when trying to use the same filesystem config which works when I use ClickHouse as destination, ie. GCS in s3 compatibility mode (this setting is required by the ClickHouse destination). I get this error:
It seems this should be working, according to #1272
Expected behavior
I should be able to reuse the same staging config across any destination.
Steps to reproduce
Operating system
Linux
Runtime environment
Local
Python version
3.12
dlt data source
No response
dlt destination
Google BigQuery
Other deployment details
No response
Additional information
Workaround:
s3
togs
:GcpServiceAccountCredentials
instead ofAwsCredentials
in the filesystem destination:The text was updated successfully, but these errors were encountered: