kevin
03/29/2023, 1:14 AM(meltano_env) ubuntu@ip-172-31-26-110:~/repos/lane-meltano$ meltano add loader target-snowflake
Loader 'target-snowflake' already exists in your Meltano project
To add it to your project another time so that each can be configured differently,
add a new plugin inheriting from the existing one with its own unique name:
meltano add loader target-snowflake--new --inherit-from target-snowflake
Installing loader 'target-snowflake'...
Username for '<https://gitlab.com>':
Password for '<https://gitlab.com>':
Loader 'target-snowflake' could not be installed: failed to install plugin 'target-snowflake'.
Running command git clone --filter=blob:none --quiet <https://gitlab.com/gitlab-data/edcast-target-snowflake> /tmp/pip-req-build-hdft4rrz
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See <https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied>
fatal: Authentication failed for '<https://gitlab.com/gitlab-data/edcast-target-snowflake.git/>'
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet <https://gitlab.com/gitlab-data/edcast-target-snowflake> /tmp/pip-req-build-hdft4rrz did not run successfully.
│ exit code: 128
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet <https://gitlab.com/gitlab-data/edcast-target-snowflake> /tmp/pip-req-build-hdft4rrz did not run successfully.
│ exit code: 128
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Failed to install plugin(s)
edgar_ramirez_mondragon
03/29/2023, 5:03 PMpat_nadolny
03/29/2023, 5:06 PMtaylor
03/29/2023, 6:43 PMkevin
03/30/2023, 2:38 PMkevin
03/30/2023, 2:40 PMmeltano.yml
loaders:
- name: target-snowflake
variant: meltano
pip_url: git+<https://gitlab.com/gitlab-data/edcast-target-snowflake>
config:
taylor
03/30/2023, 2:40 PMkevin
03/30/2023, 2:40 PMtaylor
03/30/2023, 2:41 PMpipelinewise-target-snowflake
but the config might be different. It might be easier to remove that loader and do a fresh install of the default varianttaylor
03/30/2023, 2:43 PMkevin
03/30/2023, 3:13 PMpip install pipelinewise-target-snowflake
?taylor
03/30/2023, 3:15 PMmeltano remove loader target-snowflake
followed by meltano add loader target-snowflake
which will do everything you want. replacing just the pip_url may have some unintended consequenceskevin
03/30/2023, 3:16 PMrigerta
03/30/2023, 4:48 PMtarget-snowflake--edcast
is: https://gitlab.com/gitlab-data/target-snowflake-edcast
Sorry about that, I do not have the info when/why this was changed, can look it up or discuss it with the team.kevin
03/31/2023, 3:18 PMpipelinewise-target-snowflake
and running the elt command i do get this error:
snowflake.connector.errors.ProgrammingError: 090105 (22000): Cannot perform CREATE TABLE. This session does not have a current database. Call 'USE DATABASE', or use a qualified name
I have granted the role and user usage and other grants on the appropriate db and schema. Meltano yml looks like:
- name: target-snowflake
variant: transferwise
pip_url: pipelinewise-target-snowflake
config:
account: **************
dbname: RAW_MELTANO_DB
user: meltano_user
warehouse: ELT_WH
role: meltano_role
file_format: csv
default_target_schema: HELLOBATON
taylor
03/31/2023, 3:42 PMkevin
03/31/2023, 4:02 PMtaylor
03/31/2023, 4:04 PMpat_nadolny
03/31/2023, 4:09 PMpat_nadolny
03/31/2023, 4:10 PMkevin
03/31/2023, 7:02 PMkevin
03/31/2023, 7:51 PM2023-03-31T19:50:04.021981Z [info ] from cryptography.hazmat.backends.openssl.x509 import _Certificate cmd_type=loader name=target-snowflake--edcast run_id=e7bdb8a9-83ad-4997-80a7-6ec772eb6495 state_id=2023-03-31T194958--tap-hellobaton--target-snowflake--edcast stdio=stderr
2023-03-31T19:50:04.022049Z [info ] ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509' cmd_type=loader name=target-snowflake--edcast run_id=e7bdb8a9-83ad-4997-80a7-6ec772eb6495 state_id=2023-03-31T194958--tap-hellobaton--target-snowflake--edcast stdio=stderr
2023-03-31T19:50:04.054556Z [error ] Loading failed code=1 message=ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509' name=meltano run_id=e7bdb8a9-83ad-4997-80a7-6ec772eb6495 state_id=2023-03-31T194958--tap-hellobaton--target-snowflake--edcast
seems to be a dependency thingkevin
03/31/2023, 7:51 PMcryptography.hazmat.backends.openssl.x509
rigerta
03/31/2023, 8:55 PMrigerta
03/31/2023, 8:59 PMmeltano_role
only has full permissions on the schema
, but not on the database
. Can you try granting it all privileges / ownership on the raw_meltano_db
database as well?kevin
04/03/2023, 2:46 PMmeltano elt tap-hellobaton target-snowflake
i get:
2023-04-03T14:37:59.796720Z [info ] snowflake.connector.errors.ProgrammingError: 000904 (42000): SQL compilation error: error line 1 at position 767 cmd_type=loader name=target-snowflake run_id=e7307e7e-7ee4-44b6-83f4-b658ff3e6205 state_id=2023-04-03T143457--tap-hellobaton--target-snowflake stdio=stderr
2023-04-03T14:37:59.796877Z [info ] invalid identifier 'GROUP'
Looks like it is complaining about a column named group
renaming the column is not an option though and it comes directly from the json of the connector. Any ideas on how to bypass this?pat_nadolny
04/03/2023, 3:07 PMpat_nadolny
04/03/2023, 3:07 PMkevin
04/03/2023, 3:12 PMraw_meltano_db.hellobaton
). All the column names are there where it was extracted using the old target snowflake in a previous pipeline:
git+<https://gitlab.com/gitlab-data/edcast-target-snowflake>
Since that old pip url changed, the new pip url caused the import errors i mentioned above (cryptography
) . That is when i switched over to the pipelinewise-target-snowflake
target and now when running meltano elt tap-hellobaton target-snowflake
I started getting the most recent errorkevin
04/03/2023, 3:13 PMpat_nadolny
04/03/2023, 3:18 PMkevin
04/03/2023, 3:33 PMtaps:
- name: tap-hellobaton
# ... (other tap configuration)
mappers:
- rename_columns_mapper
pat_nadolny
04/03/2023, 3:54 PMTITLE
to title
using stream maps on the SDK based target, if its helpful. You'd configure it on the tap side thoughkevin
04/03/2023, 4:14 PM- name: target-apprise-singer-activity
config:
stream_maps:
PROD-SLACK_NOTIFICATIONS-SLACK_ALERTS:
title: TITLE
body: BODY
should i rename PROD-SLACK_NOTIFICATIONS-SLACK_ALERTS
to activity t~ap-hellobaton~pat_nadolny
04/03/2023, 4:46 PMshould i renameyep!to activityPROD-SLACK_NOTIFICATIONS-SLACK_ALERTS
kevin
04/03/2023, 4:50 PMversion: 1
send_anonymous_usage_stats: true
project_id: c817018d-de7b-45fb-9fff-260fa84ddaf9
plugins:
extractors:
- name: tap-hellobaton
namespace: tap_hellobaton
pip_url: git+<https://github.com/dluftspring/tap-hellobaton.git>
executable: tap-hellobaton
capabilities:
- catalog
- state
- discover
settings:
- name: company
kind: string
- name: api_key
kind: password
- name: user_agent
kind: string
config:
company: ***
user_agent: Singer Tap for hellobaton
load_schema: hellobaton
loaders:
- name: target-snowflake
variant: transferwise
pip_url: pipelinewise-target-snowflake
config:
account: *********
dbname: RAW_MELTANO_DB
user: meltano_user
password: ******
warehouse: ELT_WH
role: meltano_role
file_format: RAW_MELTANO_DB.HELLOBATON.CSV
metadata:
column_mapping:
GROUP: user_group
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: git+<https://github.com/MeltanoLabs/meltano-map-transform.git>
executable: meltano-map-transform
mappings:
- name: column_rename
config:
stream_maps:
activity:
group: activity_group
Am i missing anything? I did a fresh meltano installkevin
04/03/2023, 4:51 PMmappers:
- column_rename
to tap-hellobaton extractor configkevin
04/03/2023, 5:48 PMedgar_ramirez_mondragon
04/03/2023, 5:51 PMkevin
04/03/2023, 5:54 PMadd_metadata_columns: true
?kevin
04/03/2023, 5:59 PM_SDC_BATCHED_AT
, _SDC_DELETED_AT
, and _SDC_EXTRACTED_AT
which all have null values. Is this expected?edgar_ramirez_mondragon
04/03/2023, 6:34 PMkevin
04/03/2023, 9:13 PM2023-04-03T19:57:51.474009Z [info ] if 'string' in schema['properties'][key]['type'] and \ cmd_type=loader name=target-snowflake run_id=aa51541d-d597-4821-b33d-ea733638e4f6 state_id=2023-04-03T193859--tap-hellobaton--target-snowflake stdio=stderr
2023-04-03T19:57:51.474168Z [info ] KeyError: 'type' cmd_type=loader name=target-snowflake run_id=aa51541d-d597-4821-b33d-ea733638e4f6 state_id=2023-04-03T193859--tap-hellobaton--target-snowflake stdio=stderr
2023-04-03T19:57:51.816177Z [error ] Loading failed
is this a case where we need to override the schema under the appropriate stream?edgar_ramirez_mondragon
04/03/2023, 11:26 PMmeltano.yml
?