sterling_paramore
05/20/2022, 11:21 PMtarget-bigquery
. A field was added in my source tap (one I’m developing custom) and I’m getting an error (below). Is this expected? I assumed that meltano/singer would automagically handle schema updates, or is this something to do with my tap?
google.api_core.exceptions.BadRequest: 400 Provided Schema does not match Table mse-user-sterling-1:meltano_quickbase_json.wo_tags. Cannot add fields (field: wo_tag)
edgar_ramirez_mondragon
05/22/2022, 1:31 PMIf you add new columns to an existing table schema, the columns must be NULLABLE or REPEATED. You cannot add a REQUIRED column to an existing table schema. If you attempt to add a REQUIRED column to an existing table schema in the API or bq command-line tool, the following error is returned: BigQuery error in update operation: Provided Schema does not match Table project_id:dataset.table. Cannot add required columns to an existing schema.
https://cloud.google.com/bigquery/docs/managing-table-schemas#manually_adding_an_empty_column
edgar_ramirez_mondragon
05/22/2022, 1:34 PM"type": ["string", "null"]
sterling_paramore
05/23/2022, 3:50 PM'configuration': {'load': {'schema': {'fields': [{'name': 'wo_tag', 'type': 'STRING', 'mode': 'NULLABLE'}
sterling_paramore
05/23/2022, 5:57 PMtransferwise
variant and it was able to detect a new column and apply a schema change. So does this mean that the default bigquery target for meltano doesn’t support schema changes?
Unfortunately the transferwise
one doesn’t support date fields so I can’t really use that one either because my data has dates.edgar_ramirez_mondragon
05/23/2022, 8:20 PMpip_url: git+<https://github.com/jmriego/pipelinewise-target-bigquery.git>
sterling_paramore
05/23/2022, 8:24 PMedgar_ramirez_mondragon
05/23/2022, 8:29 PMjose_riego_valenzuela
05/27/2022, 12:50 PM