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

Support Dgraph Geo type #72

Open
EnricoMi opened this issue Nov 18, 2020 · 0 comments
Open

Support Dgraph Geo type #72

EnricoMi opened this issue Nov 18, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@EnricoMi
Copy link
Collaborator

EnricoMi commented Nov 18, 2020

Dgraph encode geo coordinates via GeoJSON standard. Currently, the connector represents this as a JSON string, but it should be a proper struct with type and coordinates fields. Depending on the type, the coordinates field has a different type. Example Scala code: https://gist.github.com/iamhatesz/4f4b83fd32c52f002766f9a70c2f6a71.

Maybe JSON is fine, Spark supports parsing that string into a struct, maybe we can hook into that and provide the parsed JSON directly.

@EnricoMi EnricoMi added the enhancement New feature or request label Nov 18, 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