benjamin_sims
09/08/2023, 7:30 PMjsonschema.exceptions.ValidationError: '{"id": "1234", "date": "2020-04-08T00:00:00", "name": "name", }' is not of type 'null', 'object'
When I invoke the tap-mysql on its own, I can see that the JSON column is indeed stored as a string.
I believe that this is the same issue as:
https://github.com/transferwise/pipelinewise-tap-mysql/issues/99
and
https://github.com/transferwise/pipelinewise-tap-mysql/issues/165
although the MySQL version is different. Is there a workaround anyone can suggest please?edgar_ramirez_mondragon
09/08/2023, 7:33 PMextractors:
- name: tap-mysql
schema:
my_table_name:
my_column_name:
type: ["string", "null"]benjamin_sims
09/09/2023, 1:29 PMbenjamin_sims
09/09/2023, 1:39 PMNotImplementedError: Altering columns is not supported. Could not convert column 'Column name' from JSONB to VARCHAR'.benjamin_sims
09/09/2023, 5:37 PMmeltano invoke tap-mysql | jq -c 'if .type == "RECORD" then .record.column_name |= fromjson else . end' | meltano invoke target-postgres
So, the problem seems to be that tap-mysql emits JSON stringified, but target-postgres expects it to not be.edgar_ramirez_mondragon
09/11/2023, 4:02 PMbenjamin_sims
09/12/2023, 8:35 AMbenjamin_sims
09/12/2023, 8:39 AMedgar_ramirez_mondragon
09/13/2023, 12:00 AMmeltano.yml should work. Note that the config (and maybe the state) of the variants are not completely compatible.benjamin_sims
09/15/2023, 12:18 PMedgar_ramirez_mondragon
09/15/2023, 3:04 PM