kevin
12/12/2022, 7:57 PMmeltano elt tap-hellobaton--inherited target-snowflake --job_id=test
-
2022-12-12T20:52:25.205963Z [info ] cursor = connection.execute(text( cmd_type=loader name=target-snowflake run_id=cc0d95c8-7985-4bef-a81f-23409f2dc2dc state_id=2022-12-12T205115--tap-hellobaton--inherited--target-snowflake stdio=stderr
2022-12-12T20:52:25.206097Z [info ] CRITICAL (snowflake.connector.errors.ProgrammingError) 001003 (42000): SQL compilation error: cmd_type=loader name=target-snowflake run_id=cc0d95c8-7985-4bef-a81f-23409f2dc2dc state_id=2022-12-12T205115--tap-hellobaton--inherited--target-snowflake stdio=stderr
2022-12-12T20:52:25.206217Z [info ] CRITICAL syntax error line 1 at position 14 unexpected '-'. cmd_type=loader name=target-snowflake run_id=cc0d95c8-7985-4bef-a81f-23409f2dc2dc state_id=2022-12-12T205115--tap-hellobaton--inherited--target-snowflake stdio=stderr
2022-12-12T20:52:25.206331Z [info ] CRITICAL syntax error line 1 at position 14 unexpected '-'. cmd_type=loader name=target-snowflake run_id=cc0d95c8-7985-4bef-a81f-23409f2dc2dc state_id=2022-12-12T205115--tap-hellobaton--inherited--target-snowflake stdio=stderr
2022-12-12T20:52:25.206495Z [info ] CRITICAL [SQL: MERGE INTO VTS-HELLOBATON.activity USING VTS-HELLOBATON.TMP_ACTIVITY ON VTS-HELLOBATON.activity.id = VTS-HELLOBATON.TMP_ACTIVITY.id WHEN MATCHED THEN UPDATE SET _self = VTS-HELLOBATON.TMP_ACTIVITY._self, actor = VTS-HELLOBATON.TMP_ACTIVITY.actor, child = VTS-HELLOBATON.TMP_ACTIVITY.child, child_type = VTS-HELLOBATON.TMP_ACTIVITY.child_type, created = VTS-HELLOBATON.TMP_ACTIVITY.created, "group" = VTS-HELLOBATON.TMP_ACTIVITY."group", meta = VTS-HELLOBATON.TMP_ACTIVITY.meta, modified = VTS-HELLOBATON.TMP_ACTIVITY.modified, parent = VTS-HELLOBATON.TMP_ACTIVITY.parent, parent_type = VTS-HELLOBATON.TMP_ACTIVITY.parent_type, project = VTS-HELLOBATON.TMP_ACTIVITY.project, type = VTS-HELLOBATON.TMP_ACTIVITY.type, __loaded_at = VTS-HELLOBATON.TMP_ACTIVITY.__loaded_at WHEN NOT MATCHED THEN INSERT (_self, actor, child, child_type, created, "group", id, meta, modified, parent, parent_type, project, type, __loaded_at) VALUES (VTS-HELLOBATON.TMP_ACTIVITY._self, VTS-HELLOBATON.TMP_ACTIVITY.actor, VTS-HELLOBATON.TMP_ACTIVITY.child, VTS-HELLOBATON.TMP_ACTIVITY.child_type, VTS-HELLOBATON.TMP_ACTIVITY.created, VTS-HELLOBATON.TMP_ACTIVITY."group", VTS-HELLOBATON.TMP_ACTIVITY.id, VTS-HELLOBATON.TMP_ACTIVITY.meta, VTS-HELLOBATON.TMP_ACTIVITY.modified, VTS-HELLOBATON.TMP_ACTIVITY.parent, VTS-HELLOBATON.TMP_ACTIVITY.parent_type, VTS-HELLOBATON.TMP_ACTIVITY.project, VTS-HELLOBATON.TMP_ACTIVITY.type, VTS-HELLOBATON.TMP_ACTIVITY.__loaded_at)] cmd_type=loader name=target-snowflake run_id=cc0d95c8-7985-4bef-a81f-23409f2dc2dc state_id=2022-12-12T205115--tap-hellobaton--inherited--target-snowflake stdio=stderr
Anyone have any ideas what this means? It is an inherited plugin i added for hellobaton. Attached my meltano.yml
in the thread. Perhaps i need a specific version of sqlite or something?kevin
12/12/2022, 8:27 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: ***
schema:
project_attachments:
created_by:
type:
- string
- 'null'
time_entries:
created_by:
type:
- string
- 'null'
user:
type:
- string
- 'null'
project_users:
user:
type:
- string
- 'null'
milestones:
start_datetime:
type:
- string
- 'null'
load_schema: hellobaton
- name: tap-hellobaton--inherited
inherit_from: tap-hellobaton
capabilities:
- catalog
- state
- discover
config:
company: ****
user_agent: Singer Tap for hellobaton
schema:
activity:
group:
type:
- string
- 'null'
load_schema: ****
kevin
12/12/2022, 8:56 PMpat_nadolny
12/13/2022, 3:02 PMCRITICAL syntax error line 1 at position 14 unexpected '-'
makes me think that target-snowflake is getting stream names that have invalid characters in them (in this case a hyphen) so its failing. Do those tables exist in Snowflake? What are their names? I assume the hyphen doesnt exist 🤔pat_nadolny
12/13/2022, 3:03 PMkevin
12/13/2022, 7:00 PMpat_nadolny
12/13/2022, 7:47 PMmeltano add mapper meltano-map-transformer
you can then configure a mapping (stream maps docs) to alias youre streams like this where I rename a stream called test123 to test456:
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: git+<https://github.com/MeltanoLabs/meltano-map-transform.git>
mappings:
- name: alias_stream_names
config:
stream_maps:
test123:
"__alias__": "test456"
pat_nadolny
12/13/2022, 7:48 PMalias_stream_names
mapper in between, something like meltano run tap-hellobaton alias_stream_names target-snowflake
pat_nadolny
12/13/2022, 7:51 PMelt
command, I think mappers are only supported with meltano runkevin
12/14/2022, 4:18 PMpat_nadolny
12/14/2022, 4:30 PM- name: tap-hellobaton
variant: dluftspring
pip_url: git+<https://github.com/dluftspring/tap-hellobaton.git>
config:
stream_maps:
test123:
"__alias__": "test456"
pat_nadolny
12/14/2022, 4:31 PM