-
Notifications
You must be signed in to change notification settings - Fork 27
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
TypeError: Object of type Decimal is not JSON serializable #76
Comments
Was not sure what additional information to add or gather. Please let me know 🙏 If necessary I can also try to produce a MRE on this 🤷 |
@jpuris thanks for opening this! Do you have an example of the record thats causing this? That would make it much easier to create a test case for it. I'm wondering if this is related to meltano/sdk#1809. We deserialize as decimals now so that they can be validated properly in python but its possible that the later serialization part is now failing. |
The stream that the issue is reproducible, has multiple decimal columns. I do not know, if this is the offending row or not (I do not know how I can catch the exact row in the batch that it does not like something in), but here are example of a Decimal field in the stream
|
This will be addressed in the next release of the SDK. See meltano/sdk#1826. |
@jpuris we created a new 0.4.1 release https://github.com/MeltanoLabs/target-snowflake/releases/tag/v0.4.1 that includes the SDK fix. I'm going to close this issue for now but please reopen if the issue is not resolved for you. |
External ref: Slack thread on Meltano Slack community
meltano.yaml
The error
Might be related to #66
The text was updated successfully, but these errors were encountered: