nil
10/05/2020, 6:49 PMdouwe_maan
10/05/2020, 6:51 PMnil
10/05/2020, 7:19 PMdouwe_maan
10/05/2020, 8:42 PMnil
10/05/2020, 9:06 PMmeltano install loader pipelinewise-target-bigquery, or the executable name may be incorrect.`douwe_maan
10/05/2020, 9:07 PMtarget-bigquery , not pipelinewise-target-bigquery , so you'll just have to change that in meltano.yml ๐douwe_maan
10/05/2020, 9:09 PMnil
10/05/2020, 9:13 PMzlatan
10/06/2020, 5:52 PMnil
10/06/2020, 5:55 PMzlatan
10/06/2020, 6:12 PMnil
10/06/2020, 8:54 PMdouwe_maan
10/06/2020, 8:55 PMmeltano.yml definition, and any error messages you're seeing from target-bigquery?nil
10/06/2020, 9:12 PMmeltano | Loading failed (1): google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see <https://cloud.google.com/docs/authentication/getting-started>
and the .env is:
export GOOGLE_APPLICATION_CREDENTIALS=./cred.json
With point 2, the loader definition is:
loaders:
- name: target-bigquery
namespace: bigquery
pip_url: pipelinewise-target-bigquery
executable: target-bigquery
settings:
- name: project_id
- name: dataset_id
config:
project_id: tester
dataset_id: re_test
GOOGLE_APPLICATION_CREDENTIALS: cred.json
default_target_schema: re_test
where cred.json is the bigquery credentials-json-file (inside project root folder)douwe_maan
10/06/2020, 9:18 PMcredentials_path under config rather than GOOGLE_APPLICATION_CREDENTIALS ?nil
10/06/2020, 9:23 PMloaders:
- name: target-bigquery
namespace: bigquery
pip_url: pipelinewise-target-bigquery
executable: target-bigquery
settings:
- name: project_id
- name: dataset_id
- name: credentials_path
env: GOOGLE_APPLICATION_CREDENTIALS
config:
project_id: tester
dataset_id: re_test
default_target_schema: re_test
credentials_path: ./cred.jsonnil
10/06/2020, 9:45 PMtarget-bigquery | google.api_core.exceptions.BadRequest: 400 Query error: Value of type ARRAY<STRUCT<name STRING, value STRING>> cannot be assigned to properties, which has type ARRAY<STRING> at [5:891]
is something to do with pipelinewise-target-bigquery (so as far as meltano is concerned all works i think, from tap-recharge i can see record were fetched so that is working as it should 100%)
I think the problem is that the schema is not correctly created for bq, the correct schema/field is:
FIELD TYPE MODE
==========================================
properties RECORD REPEATED
properties.value RECORD NULLABLE
properties.value.name STRING NULLABLE
properties.value.value STRING NULLABLE
where as the one that is created is, hence it fails when it comes to loading of the the actual records/values/data into the table
FIELD TYPE MODE
==========================================
properties STRING REPEATED
If you still want i can provide full log of this error if it helps.
I think i might have to look at other target-bigquery as well :)douwe_maan
10/06/2020, 9:49 PMSCHEMA messages that don't match the actual schema of the RECORD messages output later?douwe_maan
10/06/2020, 9:49 PMnil
10/06/2020, 10:12 PMdouwe_maan
10/06/2020, 10:13 PM