-
Notifications
You must be signed in to change notification settings - Fork 3
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
float('inf') not supported on OEP #13
Comments
@MGlauer Is this easy to fix? Like just add the 'Infinity' to a whitelist or something like that? |
It is a bit more difficult. The communication format is JSON, which just uses the string representation "Infinity". For the API there is no way to distinguish this from the actual string "Infinity". Therefore, we have to do something more elaborate and extend the API to make those entities distinguishable (as is done already with different date formats). |
This seems even more complicated: Pythons json-encode uses a extension of the json standard and this extension is more or less hard-coded in the JSONEncoder class. It seems like the only viable solution is for us to write our own version of |
If we want to implement this, could you estimate the time needed for the implementation? @MGlauer |
Already done. See ec6c8cb |
oh have not refreshed the page for a while :D good job |
Yay! Also: why is there no PR for this, or am I missing something? |
It seems like we need to update the master branch and change the default branch to develop. |
Hi @MGlauer,
A colleague tries to upload
float('inf')
into OEP.Normally, this is supported by postgresql type
double precision
and it works locally.The following code works with my local postgresql, but fails with OEDialect (engine='postgresql+oedialect'):
Error message from
json_details
is:As I know, OEP runs on postgresql server - could you allow for uploading
'Infinity'
floats as well?The text was updated successfully, but these errors were encountered: