ahmedriza commented on issue #3617:
URL: 
https://github.com/apache/arrow-datafusion/issues/3617#issuecomment-1433915462

   After sorting out the `protobuf` serialisation of the `GetIndexedFieldExpr`, 
`ballista` now works. Tested the fixes on a branch at 
https://github.com/ahmedriza/arrow-datafusion/tree/get_indexed_proto.  Will 
raise a PR after checking it a bit more carefully.
   
   Now this code works as expected:
   ```rust
   async fn ballista_query()  {
       let config = BallistaConfig::new().unwrap();
       let ctx = BallistaContext::standalone(&config, 10).await.unwrap();
       ctx.register_parquet("t", 
part-00000-f6337bce-7fcd-4021-9f9d-040413ea83f8-c000.snappy.parquet,
           ParquetReadOptions::default()).await.unwrap();
       let df = ctx.sql("select id, a[0], a[1], a[2], a[3], a[100] from 
t").await.unwrap();
       df.show().await.unwrap();
   
       Ok(())
   }
   ```
   
   ```
   +----+--------+--------+--------+--------+----------+
   | id | t.a[0] | t.a[1] | t.a[2] | t.a[3] | t.a[100] |
   +----+--------+--------+--------+--------+----------+
   | 1  |        | 1.71   | 2.71   | 3.71   |          |
   +----+--------+--------+--------+--------+----------+
   ```


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to