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

Better type adaption / validation on OGR import. #325

Merged
merged 1 commit into from
Dec 8, 2020
Merged

Conversation

olsen232
Copy link
Collaborator

@olsen232 olsen232 commented Dec 8, 2020

Description

Makes sure fixed-precision numerics are stored in sno as strings, the type required for numeric by V2 datasets, since it

  • fits easily in messagepack
  • losslessly represents numerics (ie, numerics and decimal strings are the same thing, just wrapped differently)

They were being imported as floats, which would have failed a schema violation check, but no schema violation checks are performed on import.

Also added extra validation making sure other types are what they are supposed to be.

@craigds craigds merged commit e4fd5dd into master Dec 8, 2020
@craigds craigds deleted the import-fix branch December 8, 2020 02:32
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

Successfully merging this pull request may close these issues.

None yet

2 participants