bassel
07/06/2023, 2:15 PMtarget-snowflake
meltanolabs variant .. but having an issue when validating values like this
jsonschema.exceptions.ValidationError: '[{"amount": -50, "bucketId": "66cd03a6"}]' is not of type 'null', 'object'
Failed validating 'type' in schema['properties']['transaction_buckets']
I did enable the flattening option ..
flattening_enabled: true
flattening_max_depth: 1
not sure if also this one a know issue or not .. I did a research but did not land on anything yet.
The column's data-type is json
in the Db though. Not sure if I can change the schema or define it manually to tell meltano what is the type of it .. somehting like this variant
instead of `object`:
- name: transaction_buckets
datatype: variant
user
07/06/2023, 2:30 PMuser
07/06/2023, 2:31 PMbassel
07/06/2023, 2:35 PMtap-mysql
I generated the catalog meltano --environment=dev invoke --dump=catalog tap-mysql > catalog.json
and verified the field
"transaction_buckets": {
"inclusion": "available",
"type": [
"null",
"object"
]
},
but the type in the Db is json
and its an array of json objects '[{"amount": -50, "bucketId": "66cd03a6"}]'
======================
Also, its complaining about another column with type longtext
in the db
Invalid character length: 4,294,967,295. Must be between 1 and 16,777,216
with the maxLength value:
"data": {
"inclusion": "available",
"maxLength": 4294967295,
"type": [
"null",
"string"
]
},
user
07/06/2023, 3:00 PMpat_nadolny
07/06/2023, 4:14 PMpat_nadolny
07/06/2023, 4:16 PMbassel
07/06/2023, 4:23 PMuser
07/06/2023, 4:24 PMI think since array and object are different types they wouldnt be interchangeable like this@pat_nadolny That's correct.
pat_nadolny
07/06/2023, 6:55 PMmeltano install loader target-snowflake --clean
otherwise bump the pinned version to 0.3.1 then run that install commanddouwe_maan
07/07/2023, 7:28 PM['array', 'null']
using this feature? https://docs.meltano.com/concepts/plugins#schema-extra