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

auto conversion of data types? #192

Open
ttomasz opened this issue Jul 12, 2024 · 3 comments
Open

auto conversion of data types? #192

ttomasz opened this issue Jul 12, 2024 · 3 comments

Comments

@ttomasz
Copy link

ttomasz commented Jul 12, 2024

I have a dataset in big query table where column type is string but when loaded into dekart it becomes float. Since dataset contains strings that are not numbers (e.g. 'L702') they become NaNs and values are lost.

Does dekart try to change the data types based on some sample of data? Is there a way to override that behaviour?

@delfrrr
Copy link
Contributor

delfrrr commented Jul 12, 2024

@ttomasz hey this is kepler.gl behaviour. It guessing types by first row (from top of my head) 😔.

Common work-around is to apply sorting.

@delfrrr
Copy link
Contributor

delfrrr commented Jul 12, 2024

I will be upgrading Dekart to newer versions and evaluating moving Apache arrow which should resolve scalar type problem fundamentally.

@ttomasz
Copy link
Author

ttomasz commented Jul 12, 2024

@ttomasz hey this is kepler.gl behaviour. It guessing types by first row (from top of my head) 😔.

Common work-around is to apply sorting.

Wow that kind of sucks. I guess I can prepend some character in the query to the field to make it extra clear to kepler that just because something has digits does not mean it's a number. Thanks for a very fast answer.

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