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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   When a ChunkedArray has two chunks with different dictionary, FlightServer 
only process the dictionary data of first chunk.
   
   To reproduce:
   
   ```python
   import pyarrow as pa
   from pyarrow import flight
   
   class FlightDataServer(flight.FlightServerBase):
        def do_get(self, context, ticket):
            a1 = pa.array(list('abc')).dictionary_encode()
            a2 = pa.array(list('defg')).dictionary_encode()
            arr = pa.chunked_array([a1, a2])
            return flight.RecordBatchStream(pa.table([arr], names=['a']))
   
   server = FlightDataServer()
   client = flight.FlightClient(('localhost', server.port))
   reader = client.do_get(flight.Ticket(b''))
   table = reader.read_all()
   print(table)
   ```
   
   output:
   
   ```python
   pyarrow.Table
   a: dictionary<values=string, indices=int32, ordered=0>
   ----
   a: [  -- dictionary:
   ["a","b","c"]  -- indices:
   [0,1,2],  -- dictionary:
   ["a","b","c"]  -- indices:   # ERROR!!!  expected `["d", "e", "f", "g"]` here
   [0,1,2,3]]
   ```
   
   
   pyarrow  version: 11.0.0
   
   ### Component(s)
   
   FlightRPC


-- 
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