amoeba opened a new issue, #39432:
URL: https://github.com/apache/arrow/issues/39432

   ### Describe the enhancement requested
   
   Writing DictionaryArrays where the value type is nested is not currently 
implemented, see:
   
   
https://github.com/apache/arrow/blob/75c6b642b5ff1ed171bc1d1a758a70098539c48e/cpp/src/parquet/arrow/path_internal.cc#L747-L749
   
   The following code exercises the above code path, where a DictionaryArray is 
created over a ListArray:
   
   ```python
   import pyarrow as pa
   import pyarrow.parquet as pq
   
   arr = pa.DictionaryArray.from_arrays(
       ...:   pa.array([0, 1, 2]),
       ...:   pa.array([["a"], ["b"], ["c"]])
       ...: )
   tbl = pa.Table.from_arrays([arr], ["x"])
   pq.write_table(tbl, "nested.pq")
   # => ArrowNotImplementedError: Writing DictionaryArray with nested 
dictionary type not yet supported
   ```
   
   I didn't see an existing issue for this but please comment below if one does.
   
   ### Component(s)
   
   C++, Parquet


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to