krishna_chaitanya
04/28/2021, 6:54 PMvisch
04/28/2021, 6:55 PMvisch
04/28/2021, 7:00 PMdouwe_maan
04/28/2021, 7:21 PMmeltano elt finishes the data should be in BigQuery. Like Derek mentioned, seeing the command output may help us figure out what's wrong.douwe_maan
04/28/2021, 7:21 PMtap_postgreskrishna_chaitanya
04/29/2021, 5:41 AMkrishna_chaitanya
04/29/2021, 5:52 AMkrishna_chaitanya
04/29/2021, 9:16 AMdouwe_maan
04/29/2021, 3:24 PMtarget-bigquery? That may give us an indication of what's happeningkrishna_chaitanya
04/29/2021, 4:13 PMtarget-bigquery | INFO Copy t_public-agency_block_reason_a4a6a379b1364bd496b5dc04e27d3def to public-agency_block_reason
target-bigquery | INFO Pushing state: {'bookmarks': {'public-agency_block_reason': {'last_replication_method': 'FULL_TABLE', 'version': 1619691790096, 'xmin': None}}, 'currently_syncing': None}
target-bigquery (out) | {"bookmarks": {"public-agency_block_reason": {"last_replication_method": "FULL_TABLE", "version": 1619691790096, "xmin": null}}, "currently_syncing": null}
meltano | INFO Incremental state has been updated at 2021-04-29 10:23:18.458198.
meltano | DEBUG Incremental state: {'bookmarks': {'public-agency_block_reason': {'last_replication_method': 'FULL_TABLE', 'version': 1619691790096, 'xmin': None}}, 'currently_syncing': None}
meltano | DEBUG Deleted configuration at /root/meltano-projects/demo/.meltano/run/elt/2021-04-29T102255--tap-postgres--target-bigquery/5fdabc9c-eace-456d-9f90-54eede94f5b0/target.config.json
meltano | DEBUG Deleted configuration at /root/meltano-projects/demo/.meltano/run/elt/2021-04-29T102255--tap-postgres--target-bigquery/5fdabc9c-eace-456d-9f90-54eede94f5b0/tap.config.json
meltano | INFO Extract & load complete!
meltano | INFO Transformation skipped.douwe_maan
04/29/2021, 4:20 PMtarget-bigquery is claiming the last thing it did was copying from a temporary table to public-agency_block_reason , which is coming from https://github.com/adswerve/target-bigquery/blob/master/target_bigquery/processhandler.py#L155. After that, it deletes the temporary table: https://github.com/adswerve/target-bigquery/blob/master/target_bigquery/processhandler.py#L172, which matches with the "Delete" you mentioned seeing in the usage logs.
From what we're seeing in the target-bigquery output, it successfully loaded the data into BigQuery, and this is a pretty popular target so we can be reasonably confident it actually works correctly.
Can you show me the target-bigquery config that's used in your pipeline? You can get that using meltano elt tap-postgres target-bigquery --job_id=postgres-to-bigquery-testing --dump=loader-config . You can of course remove anything sensitivekrishna_chaitanya
04/29/2021, 4:25 PM{
"project_id": "Actual_Project_ID",
"dataset_id": "meltano_postgres_nh",
"location": "EU",
"credentials_path": "/root/meltano-projects/demo/bi-pipeline-meltano-service-account-bigquery-sync.json",
"validate_records": true,
"add_metadata_columns": true,
"replication_method": "append",
"max_cache": 50
}douwe_maan
04/29/2021, 4:26 PMdouwe_maan
04/29/2021, 4:27 PMRECORD messages show up in the logs with a tap-postgres (out) prefix? If not, then the tap isn't actually extracting any records which would also explain why we're not seeing anything in BQ 🙂krishna_chaitanya
04/29/2021, 4:34 PMtap-postgres | FROM "public"."agency_block_reason"
tap-postgres | ORDER BY xmin::text ASC with itersize 20000
tap-postgres (out) | {"type": "RECORD", "stream": data data data}
tap-postgres (out) | {"type": "RECORD", "stream": data data data}
tap-postgres (out) | {"type": "RECORD", "stream": data data data}
tap-postgres (out) | {"type": "RECORD", "stream": "data data data}
replaced the content with data data datadouwe_maan
04/29/2021, 4:39 PMdouwe_maan
04/29/2021, 4:40 PMmeltano_postgres_nh dataset is completely empty? In the usage logs, do you see which table are being created/inserted and deleted?krishna_chaitanya
04/29/2021, 4:41 PMdouwe_maan
04/29/2021, 5:01 PMproject_id was set incorrectly because the BigQuery interface is confusingkrishna_chaitanya
04/29/2021, 5:19 PMdouwe_maan
04/29/2021, 5:22 PM