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

   
   Issue Description
   
   I have some pyarrow vector data which is transported to java arrow flight 
server.
   In python arrow flight client , my code is like this:
   ```python
   
writer,reader=client.do_exchange(descriptor=pa.flight.FlightDescriptor.for_path("streamed.parquet"))
   start = time()
   writer.begin(schema=schema)
   with writer:
       while True:
           pop=q.get()
           if pop is None:
               break
           # print("send")
           batch = pa.record_batch([pa.array(q.get())], schema)
           writer.write_batch(batch)
   ```
   in java arrow flight server, my code is like this:
   ```java
   VectorSchemaRoot vectorSchemaRootReceived = null;
   FieldVector v = null;
   try {
       while (reader.next()) {
           vectorSchemaRootReceived = reader.getRoot();
           // arb = unloader.getRecordBatch();
           rows += vectorSchemaRootReceived.getRowCount();
           v = vectorSchemaRootReceived.getVector("tensor"); 
       }
   }catch (Exception e){
       e.printStackTrace();
   }
   ```
   
   I known arrow flight can transport Vector data type, but I want to transport 
Tensor data type because I want to tansfer it into nd4j's INDArray type.
   
   I have noticed that arrow in java does not have Tensor data type, so how can 
I realize it ?
   


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