-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.17 is not a multiple of 0.0001 #11
Comments
https://github.com/singer-io/target-csv/pull/25/files works as a hotfix for this. |
@visch You are correct, adding a flag to allow users to prevent validation is a possible fix. My question is what is your use case that the |
I have data coming from an Oracle tap that has data in this format. The thing is that the Schema is correct the incorrect portion is how the validation is validating the data. 0.0001 is a multiple of 1.1700 but it comes down to how precise decimal is being (I'm pretty sure, I'd have to dive into a fix I did for a different tap a while back) |
I have another use case from MSSQL as well with Balance information that has this issue. My workaround right now is in MSSQL just convert it to a string so the target doesn't see it as a number |
@visch Spent some time looking into this today – looks like it's an issue that Singer Python already addressed by parsing with Updating the |
13:41:07,19 INFO: stderr from second_pipe_cmd: b'jsonschema.exceptions.ValidationError: 1.17 is not a multiple of 0.0001\r\n'
13:41:07,20 INFO: stderr from second_pipe_cmd: b'\r\n'
13:41:07,20 INFO: stderr from second_pipe_cmd: b"Failed validating 'multipleOf' in schema['properties']['balance1']:\r\n"
13:41:07,21 INFO: stderr from second_pipe_cmd: b" {'inclusion': 'available',\r\n"
13:41:07,21 INFO: stderr from second_pipe_cmd: b" 'multipleOf': 0.0001,\r\n"
13:41:07,21 INFO: stderr from second_pipe_cmd: b" 'type': ['null', 'number']}\r\n"
13:41:07,22 INFO: stderr from second_pipe_cmd: b'\r\n'
13:41:07,22 INFO: stderr from second_pipe_cmd: b"On instance['balance1']:\r\n"
13:41:07,23 INFO: stderr from second_pipe_cmd: b' 1.17\r\n'
To replicate
Take this file
And pipe it into the target-csv.
My guess this is something to do with decimal precision
The text was updated successfully, but these errors were encountered: