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

Can i use as struct variable as a column? #126

Open
hengshan123 opened this issue Jul 5, 2017 · 3 comments
Open

Can i use as struct variable as a column? #126

hengshan123 opened this issue Jul 5, 2017 · 3 comments

Comments

@hengshan123
Copy link

When i use com.esri.hadoop.hive.serde.GeoJsonSerDe as serde method. i find i can't create a table use struct column.

@randallwhitman
Copy link
Contributor

Currently the {Esri,Geo}JsonSerDe supports only primitive field types.
The Spatial-framework-for-Hadoop is open-source and contributions are welcome.
The code change would start with BaseJsonSerDe.initialize and BaseJsonSerDe.generateJsonFromValue and BaseJsonSerDe.setRowFieldFromParser.

@sshikov
Copy link

sshikov commented Feb 11, 2018

Per my understanding I can't also create a column from primitive field, not contained within "properties' object (for GeoJson). This is too inconvenient for typical OpenStreetMap GeoJson, where osm_id and osm_type (just for example) are both top level properties, at the same level as 'geometry'.

I.e., for sample geojson like this:

{ "osm_id": 123 , "type": "Feature" , "geometry": ... , "properties": { "name": "..." } }

I can create Hive columns from "properties" only, not from osm_id.

@randallwhitman
Copy link
Contributor

Cross-reference #9 , #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants