alamb commented on issue #2594:
URL: https://github.com/apache/arrow-rs/issues/2594#issuecomment-1247177043

   Put another way, @maxburke  -- if you use the `patch.crates-io` directive in 
your workspace `Cargo.toml` it will automatically pull in dependent crates
   
   For example, to change datafusion to use arrow (and a new arrow-buffers) in 
https://github.com/apache/arrow-rs/pull/2693 I only had to add this to the 
`datafusion/Cargo.toml`
   
   ```toml
   [patch.crates-io]
   arrow = {  git = "https://github.com/tustvold/arrow-rs.git";, rev="f47a878"}
   parquet = {  git = "https://github.com/tustvold/arrow-rs.git";, rev="f47a878" 
}
   arrow-flight = {  git = "https://github.com/tustvold/arrow-rs.git";, 
rev="f47a878" }
   ```
   
   We have been following this model in IOx (where we use a different upstream 
datafusion). Specifically, adding these lines:
   
   
https://github.com/influxdata/influxdb_iox/blob/main/datafusion/Cargo.toml#L12-L14
   
   ```toml
   upstream = { git = "https://github.com/apache/arrow-datafusion.git";, 
rev="97b3a4b37f54aaa52f8705db3e57b15ee98c24a7", default-features = false, 
package = "datafusion" }
   datafusion-proto = { git = "https://github.com/apache/arrow-datafusion.git";, 
rev="97b3a4b37f54aaa52f8705db3e57b15ee98c24a7" }
   ```
   
   Is enough to get us all the datafusion crates (like datafusion-core, 
datafusion-expr, etc....)


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