-
Notifications
You must be signed in to change notification settings - Fork 17
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
decimal.DivisionImpossible raised when handling schema items with high levels of precision #2
Comments
Hit this today as well.
|
Should be fixed with #5 |
Closing this as it is fixed with #5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to pull data out of a Postgres database with the pipelinewise-tap-postgres and load it as JSONL with this target. Unfortunately when this target encounters data that is held as a
numeric
type in Postgres it raises the following error:Note that the final line was caused by me monkey patching the _validators.py file with the following change:
so that I could see the precision of the records causing the issue.
This seems to be happening when handling the following schema coming from the Postgres tap:
I'm aware of the fix for an issue with decimal numbers in 95e9fdb but without seeing any tests or anything in the commit message I don't know what exactly was fixed there. It doesn't seem to have solved this issue anyway.
It looks like this was fixed elsewhere by a combination of https://github.com/meltano/target-postgres/pull/6/files and https://github.com/meltano/target-postgres/pull/7/files in another target by checking the precision required for the validation of the 2 values and then increasing the precision to that if it's not high enough already.
The text was updated successfully, but these errors were encountered: