steven_brandt
04/16/2021, 12:09 PMjsonschema.exceptions.ValidationError: '-6667.0' is not of type 'null', 'number'
I debugged my tap code and figured out that it works as desired and prints the values as floats - as desired. When running my tap (without Meltano) into the target-csv I also get correct values and data types.
When running it through Meltano at some point the datatype of the field gets converted into a string and the verification of the specified schema fails.
"subt_nat_amount": {
"type": ["null", "number"],
"format": "singer.decimal"
}
I’ve experienced the same problem with the open source singer-runner.
I’m not sure why and where this conversion is introduced and how to fix it. I guess it does not happen as a part of my tap code, as it is printed correctly to CLI and CSV when running manually.
Thanks,
Stevenvisch
04/16/2021, 12:56 PMmeltano invoke tap-yourtap > output , does that give you the value in the correct form or not. I'd assume it wouldn't but it'd give a good place to start troubleshooting from if it's different from just running tap-yourtap directlydouwe_maan
04/16/2021, 2:09 PMmeltano --log-level=debug elt <tap> <target> (https://meltano.com/docs/command-line-interface.html#debugging), which will print the tap's output lines with a <tap> (out) prefix. Do those RECORD messages have the number as expected?steven_brandt
04/17/2021, 4:03 PM"subt_nat_amount": "10000.0"
Just to double-check, I invoked my tap again directly and it creates the desired result:
"subt_nat_amount": 49.99
Any idea how I could approach further debugging?steven_brandt
04/17/2021, 4:09 PMERROR Loading failed (1): '-6667.0'
DEBUG ELT could not be completed: Loader failedsteven_brandt
04/17/2021, 4:13 PMvisch
04/17/2021, 4:23 PMvisch
04/17/2021, 4:29 PMsteven_brandt
04/17/2021, 5:46 PMvisch
04/17/2021, 6:00 PMvisch
04/17/2021, 6:04 PMsteven_brandt
04/17/2021, 6:24 PMsteven_brandt
04/17/2021, 6:25 PMvisch
04/17/2021, 8:55 PMvisch
04/17/2021, 8:59 PMvisch
04/17/2021, 9:00 PMvisch
04/17/2021, 9:04 PMsteven_brandt
04/17/2021, 10:08 PMvisch
04/19/2021, 12:50 PMvisch
04/19/2021, 12:50 PMsteven_brandt
04/22/2021, 10:59 AMvisch
04/22/2021, 12:45 PMsteven_brandt
04/22/2021, 1:02 PM