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

Automatic field type guessing is wrong sometimes #836

Open
ptormene opened this issue Aug 28, 2023 · 0 comments
Open

Automatic field type guessing is wrong sometimes #836

ptormene opened this issue Aug 28, 2023 · 0 comments
Assignees
Labels

Comments

@ptormene
Copy link
Member

This happens for instance when we download a csv oq-engine output into a QGIS table.
For instance a column "year" that contains all 1 values is automatically assigned boolean type, so in the loaded table all values are displayed as true instead of 1.
In order to obtain correct field types, we would need to get those types from the engine (for instance though a API call that would take in input the output type and would return a dict like {field[name]: field[type] for field in output_fields}

@ptormene ptormene added the bug label Aug 28, 2023
@ptormene ptormene self-assigned this Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant