-
Notifications
You must be signed in to change notification settings - Fork 76
bug: ValueError: Out of range float values are not JSON compliant #2213
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
Comments
Hi @dgawlowsky, thanks for logging! I think having There's also the question of how the Do start a PR and we can discuss the details there! Related: #2211 |
Hi @edgarrmondragon - thanks for prompt response again. Opened PR with this one line change. Let's discuss there. |
Also running into this issue, and also in an AWS DocumentDB context. |
@menzenski the situation should've improved somewhat with v0.45.6, which shipped Can you confirm if that's enough for your use case or do you need to actually communicate the NaN values to the target somehow? |
@edgarrmondragon I updated my tap-mongodb fork from 0.41.0 to 0.45.11 today. The changes you mention had no effect for me, but looking at the code I think that's expected - the issues I am experiencing are in the values of a field that I declare as just |
Ok, I'm now convinced that we should just force those values to be encoded as Does that make sense for your use case @menzenski? |
Yes - for my use case it would be awesome to have it handled globally like that |
@edgarrmondragon thanks for making that change so fast. I've tested meltano/sdk commit b3a7cb3 in my tap and it solves this for me. very very appreciated! |
Singer SDK Version
0.34.1
Is this a regression?
Python Version
3.9
Bug scope
Taps (catalog, state, etc.)
Operating System
MacOS
Description
I get
ValueError: Out of range float values are not JSON compliant
when trying to sync Amazon Document DB collection.The probably reason is that
simple_json.dumps()
hasallow_nan=False
default, while standarddumps()
function from standardjson
library hasallow_nan=True
.As there is no way to pass configuration from outside could we add this functionality? I can introduce relevant fix.
Code
No response
The text was updated successfully, but these errors were encountered: