Skip to content
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

CKAN Datastore - type autodetection issue #110

Open
jjelosua opened this issue Jul 8, 2014 · 1 comment
Open

CKAN Datastore - type autodetection issue #110

jjelosua opened this issue Jul 8, 2014 · 1 comment

Comments

@jjelosua
Copy link

jjelosua commented Jul 8, 2014

Hi,

In an instance of CKAN (2.2) I was trying to push a resource into the Datastore through the DataPusher, but I encountered a formatting error with an invalid timestamp. Having a look at what was going on I ended up in messy tables type_guess function not working on my data.

It tires to parse "0/ 0" into a DateUtilType and crashes:
""Error: CKAN DataStore bad response. Status code: 409 Conflict. At: http://130.206.83.32/api/3/action/datastore_create. Response: {u'error': {u'__type': u'Validation Error', u'data': u'(DataError) invalid input syntax for type timestamp: "0/ 0"\nLINE 2: ... VALUES ('V20020275501', 2002, '2755/ 1', '0/ 0', '4...\n ^\n', u'info': {u'orig': [u'invalid input syntax for type timestamp: "0/ 0"\nLINE 2: ... VALUES ('V20020275501', 2002, '2755/ 1', '0/ 0', '4...\n ^\n']}}"

I think that maybe the type detection is mislead by the forward slash in the data, but maybe the way it handles the Date detection is too loose.

I do not know if this issue should be treated inside the messytables or inside the CKAN use of messytables, If you think it is more appropriate on the CKAN repo, just tell me.

Cheers

Juan

@domoritz
Copy link
Contributor

domoritz commented Jul 9, 2014

I believe it's a messytables issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants