john_sequeira
06/12/2023, 2:47 PMVARCHAR
. Can I get a pointer on where to get started /code/doc sample/etc? I see in the target code where types are assigned, but not sure if that’s the right place (vs say adding a mapper)Henning Holgersen
06/12/2023, 3:38 PMjohn_sequeira
06/12/2023, 4:04 PMpoetry run target-mssql --input table2.json --config config.json
This will write the json data into my table without trying to alter table
to update the types.
When I run it using run
e.g.
meltano --environment dev invoke tap-snowflake--cd cd_field_map target-mssql
(the cd_field_map
field map does some field renaming) I am passing in (via yml config) a catalog with the correct data types.
The target connector then tries to change the column data types and fails (only because of embedded spaces in column names). So somehow the types is sees are not compatible now but they were before?
What I guess I want is the OOB singer behavior and to skip whatever meltano is adding.
Is there an easy way to skip this casting?Henning Holgersen
06/12/2023, 4:09 PMHenning Holgersen
06/12/2023, 4:12 PMjohn_sequeira
06/12/2023, 4:14 PMalter
statement that fails because of spaces I could fix but I actually do not want the target table to be altered.
In this case, I have a time
field in snowflake that I’d like to load as a time
field in mssql. When I invoke the mssql-target with a json file, this is the behavior I get.
When I do meltano run
I get addition behavior (the alter table
). because the field types are somehow being flagged as incompatible. I’m not sure why…Henning Holgersen
06/12/2023, 4:18 PMjohn_sequeira
06/12/2023, 4:20 PMHave you tried to run both with log-level=debug and fish out the singer records and schema?Yes to both. Let me do some scrubbing and I can post an example…