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

GeoJSON support #169

Open
ilijapuaca opened this issue Jun 8, 2020 · 0 comments
Open

GeoJSON support #169

ilijapuaca opened this issue Jun 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ilijapuaca
Copy link
Contributor

Parsing GeoJSON data requires additional work in order to add flexibility when it comes to nested types, and the way they are being extracted by using the utility Row class. This likely also includes adding the ability to parse struct-like data into appropriate Arrow types, which seems to be somewhat straight-forward, quick sample:

auto structArray = std::static_pointer_cast<arrow::StructArray>(this->_getChunk("geometry"));
auto coordinates = structArray->GetFieldByName("coordinates");
auto meta = this->_getListArrayMetadata(coordinates, this->_chunkRowIndex);

return this->_getNestedListData(meta.value(), defaultValue);
@ilijapuaca ilijapuaca added the enhancement New feature or request label Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant