tom_elliff
10/07/2020, 5:03 PMpipelinewise-tap-postgresql
but when I send it to my target (in my case target-jsonl
) I get errors when handling numeric
columns because the defined schema for the column looks like:
"duration": {
"type": [
"null",
"number"
],
"exclusiveMaximum": true,
"maximum": 100000000000000000000000000000000000000000000000000000000000000,
"multipleOf": 1e-38,
"exclusiveMinimum": true,
"minimum": -100000000000000000000000000000000000000000000000000000000000000
},
which then causes the json schema validation to throw a precision error in Python's decimal class when it tries to divide the column by 1E-38. Has anyone else encountered this? If so how did they handle it?douwe_maan
10/07/2020, 5:06 PMtarget-jsonl
: https://github.com/andyh1203/target-jsonl/commit/95e9fdbf9afcd92fd0ca1d01f92872f4300700e6 Do you have version 0.1.2? You can force it by setting your pip_url
to target-jsonl==0.1.2
and running meltano install loader target-jsonl
tom_elliff
10/07/2020, 5:08 PM$ .meltano/loaders/target-jsonl/venv/bin/pip freeze
jsonschema==2.6.0
pendulum==1.2.0
python-dateutil==2.8.1
pytz==2020.1
pytzdata==2020.1
simplejson==3.11.1
singer-python==2.1.4
six==1.15.0
target-jsonl==0.1.2
tzlocal==2.1
douwe_maan
10/07/2020, 5:14 PMtarget-postgres
to address it fully: https://github.com/meltano/target-postgres/pull/6 https://github.com/meltano/target-postgres/pull/7
I suggest filing an issue in https://github.com/andyh1203/target-jsonl, and I'm sure @andy_huynh would gladly take a contribution with a fix as well.douwe_maan
10/07/2020, 5:15 PMtom_elliff
10/08/2020, 8:55 AMtom_elliff
10/08/2020, 1:54 PM