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

[fix] handle empty properties in GeoJson file #2381

Merged

Conversation

lixun910
Copy link
Collaborator

See issue: #2377

When the sampled values of a property are all null in a GeoJson file, kepler will not be able to load the file and raise error 'Cannot read properties of undefined (reading 'type')'.

Description

In getFieldsFromData(), the Analyzer.computeColMeta will dump empty fields so the related fieldMeta is undefined, which causes the issue above.

To fix this, in this PR, we simply assign the field type to STRING for the dumped field, since dropping the column in the RowData could be expensive.

Update the test case by adding a column with null values.

@lixun910 lixun910 merged commit df1397f into keplergl:master Oct 27, 2023
7 checks passed
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