Alejandro A
06/26/2024, 10:45 AMGOOGLE_APPLICATION_CREDENTIALS
but I cannot find it anywhere in the python code where is being set upAlejandro A
06/26/2024, 11:22 AMPlease consider adding any settings you have defined locally to this definition on MeltanoHub by making a pull request to the YAML file that defines the settings for this plugin.
Alejandro A
06/26/2024, 11:23 AMReuben (Matatika)
06/26/2024, 11:47 AMUse to delegate to an environment variable for overriding this setting's value.So it should not be set when the plugin is invoked - rather it can be used to configure the setting via that environment variable. Are you seeing something different?
Alejandro A
06/26/2024, 1:21 PMAlejandro A
06/26/2024, 1:21 PMReuben (Matatika)
06/26/2024, 1:24 PMsettings
in the meltano.yml
, but you might have to re-declare all of them - not just credentials_path
.Reuben (Matatika)
06/26/2024, 1:25 PM.lock
file, although not recommended.Alejandro A
06/26/2024, 1:38 PMAlejandro A
06/26/2024, 1:38 PMAlejandro A
06/26/2024, 1:39 PMAlejandro A
06/26/2024, 1:39 PMReuben (Matatika)
06/26/2024, 1:40 PMmeltano.yml
now, you'll see there is already an override for pip_url
that Meltano uses over the one in the .lock
file (they just happen to be the same value initially). I would assume you have to completely replace settings
, but I could be wrong.Alejandro A
06/26/2024, 1:41 PMReuben (Matatika)
06/26/2024, 1:43 PM- name: tap-bigquery
variant: anelendata
pip_url: tap-bigquery
settings: [
{
"name": "streams",
"kind": "array",
"label": "Streams",
"description": "Array of objects with `name`, `table`, `columns`, `datetime_key`, and `filters` keys:\n\n- `name`: The entity name, used by most loaders as the name of the table to be created.\n- `table`: Fully qualified table name in BigQuery, with format `` `<project>.<dataset>.<table>` ``. Since backticks have special meaning in YAML, values in `meltano.yml` should be wrapped in double quotes.\n- `columns`: Array of column names to select. Using `[\"*\"]` is not recommended as it can become very expensive for a table with a large number of columns.\n- `datetime_key`: Name of datetime column to use as [replication key](<https://docs.meltano.com/guide/integration#replication-key>).\n- `filters`: Optional array of `WHERE` clauses to filter extracted data, e.g. `\"column='value'\"`.\n"
},
{
"name": "credentials_path",
"env": "GOOGLE_APPLICATION_CREDENTIALS",
"value": "$MELTANO_PROJECT_ROOT/client_secrets.json",
"label": "Credentials Path",
"description": "Fully qualified path to `client_secrets.json` for your service account.\n\nSee the [\"Activate the Google BigQuery API\" section of the repository's README](<https://github.com/anelendata/tap-bigquery#step-1-activate-the-google-bigquery-api>) and <<https://cloud.google.com/docs/authentication/production>>.\n\nBy default, this file is expected to be at the root of your project directory.\n"
},
{
"name": "start_datetime",
"kind": "date_iso8601",
"label": "Start Datetime",
"description": "Determines how much historical data will be extracted. Please be aware that the larger the time period and amount of data, the longer the initial extraction can be expected to take."
},
{
"name": "end_datetime",
"kind": "date_iso8601",
"label": "End Datetime",
"description": "Date up to when historical data will be extracted."
},
{
"name": "limit",
"kind": "integer",
"label": "Limit",
"description": "Limits the number of records returned in each stream, applied as a limit in the query."
},
{
"name": "start_always_inclusive",
"kind": "boolean",
"value": true,
"label": "Start Always Inclusive",
"description": "When replicating incrementally, disable to only select records whose `datetime_key` is greater than the maximum value replicated in the last run, by excluding records whose timestamps match exactly. This could cause records to be missed that were created after the last run finished, but during the same second and with the same timestamp."
}
]
Reuben (Matatika)
06/26/2024, 1:44 PMReuben (Matatika)
06/26/2024, 1:47 PMcredentials_path
will do:
- name: tap-bigquery
variant: anelendata
pip_url: tap-bigquery
settings: [
{
"name": "credentials_path",
"value": "$MELTANO_PROJECT_ROOT/client_secrets.json",
"label": "Credentials Path",
"description": "My `credentials_path` override"
}
]
or
- name: tap-bigquery
variant: anelendata
pip_url: tap-bigquery
settings:
- name: credentials_path
value: $MELTANO_PROJECT_ROOT/client_secrets.json
label: Credentials Path
description: My `credentials_path` override
Reuben (Matatika)
06/26/2024, 1:52 PMIt tries to take both the settings from the .lock and merge them with the ones defined in meltano.yml or it is a complete replacement?it seems to merge down to (and including)
settings
, but not the properties of an individual setting.Alejandro A
06/26/2024, 2:02 PMReuben (Matatika)
06/26/2024, 2:03 PMdescription
in my above example, I no longer see it displayed in meltano config tap-bigquery list
.
I was just saying that you have to complete replace credentials_path
only, without all the other settings.Alejandro A
06/26/2024, 2:05 PMReuben (Matatika)
06/26/2024, 2:08 PMenv
are pretty unclear, so I suspect what you are actually seeing is that environment variable always getting set at runtime. I was confusing env
with aliases earlier.
https://github.com/meltano/meltano/issues/8600Alejandro A
06/26/2024, 2:27 PMReuben (Matatika)
06/26/2024, 2:27 PM