[ 
https://issues.apache.org/jira/browse/ARROW-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16072438#comment-16072438
 ] 

Emilio Lahr-Vivaz commented on ARROW-1175:
------------------------------------------

Note: I don't think it's directly supported by the Writer API, so you have to 
do it slightly manually. Here is our code for writing dictionary values encoded 
children in a map vector (FYI there is some non-relevant bits that involve our 
integration with geotools, and it's in scala):

https://github.com/locationtech/geomesa/blob/master/geomesa-arrow/geomesa-arrow-gt/src/main/scala/org/locationtech/geomesa/arrow/vector/ArrowAttributeWriter.scala#L189-L191
https://github.com/locationtech/geomesa/blob/master/geomesa-arrow/geomesa-arrow-gt/src/main/scala/org/locationtech/geomesa/arrow/vector/ArrowAttributeWriter.scala#L224-L225

https://github.com/locationtech/geomesa/blob/master/geomesa-arrow/geomesa-arrow-gt/src/main/scala/org/locationtech/geomesa/arrow/vector/ArrowAttributeReader.scala#L148
https://github.com/locationtech/geomesa/blob/master/geomesa-arrow/geomesa-arrow-gt/src/main/scala/org/locationtech/geomesa/arrow/vector/ArrowAttributeReader.scala#L164-L167

> [Java] Implement/test dictionary-encoded subfields
> --------------------------------------------------
>
>                 Key: ARROW-1175
>                 URL: https://issues.apache.org/jira/browse/ARROW-1175
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Java - Vectors
>            Reporter: Wes McKinney
>
> We do not have any tests about types like:
> {code}
> List<Dictionary-encoded String>
> {code}
> cc [~julienledem] [~elahrvivaz]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to