zemelLeong opened a new issue #2090:
URL: https://github.com/apache/arrow-datafusion/issues/2090


   I use [connectorx](https://github.com/sfu-db/connector-x) query data to 
datafusion got this error.
   ```markdown
   mismatched types
   expected reference `&Vec<datafusion::arrow::record_batch::RecordBatch>`
      found reference `&Vec<arrow::record_batch::RecordBatch>`
   perhaps two different versions of crate `arrow` are being 
used?rustc[E0308](https://doc.rust-lang.org/error-index.html#E0308)
   ```
   ```rust
       debug!("loading database table data...");
       let mut destination = ArrowDestination::new();
       let source = MySQLSource::<BinaryProtocol>::new(t.get_uri_str(), 
2).unwrap();
       let queries = &[format!("SELECT * FROM {}", t.name)];
       let dispatcher = Dispatcher::<
           MySQLSource<BinaryProtocol>,
           ArrowDestination,
           MySQLArrowTransport<BinaryProtocol>,
       >::new(source, &mut destination, queries, None);
       dispatcher.run().unwrap();
       let data: &Vec<RecordBatch> = &destination.arrow().unwrap();
   ```
   
![image](https://user-images.githubusercontent.com/26835087/160083299-f49f7a3c-0e6a-4622-8334-25a2030dab4d.png)
   
   Is there any way to fix this?


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