Problem with Inf in decimal field
- Dominant language
- Python
- Stars
- 82
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm experiencing an issue with datapusher failing to upload a CSV file into my CKAN datastore when certain columns contain 'Inf' values. Details below.
I have verified that messytables is detecting the column type correctly (Decimal) from within Python, so I'm assuming that the problem is the Python to PostgreSQL step (i.e. the error I'm seeing is being returned by the database, rather than being a Python error code).
Is this behaviour currently expected? If so, I'll have a look at the source and see if I can suggest a fix.
Thanks,
Chris
### CKAN version 2.5.2 on Ubuntu 14.04 installed from packages
### Error message:
Error: The data was invalid (for example: a numeric value is out of range or was inserted into a text field).
HTTP status code: 409
Response: {"help": "http:///api/3/action/help_show?name=datastore_create", "success": false, "error": {"message": "The data was invalid (for example: a numeric value is out of rang...
Requested URL: http:///api/3/action/datastore_create
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.