paleolimbot commented on PR #34508:
URL: https://github.com/apache/arrow/pull/34508#issuecomment-1463801170

   Just a note that I tested this PR against the original issue from the 
substrait package and it solves things from our end! Thank you!
   
   <details>
   
   ``` r
   # remotes::install_github("voltrondata/substrait-r")
   library(substrait, warn.conflicts = FALSE)
   library(dplyr, warn.conflicts = FALSE)
   
   cities <- tibble::tibble(
     city = c("Halifax", "Lancaster", "Chicago"),
     country = c("Canada", "United Kingdom", "United States")
   )
   
   countries <- tibble::tibble(
     country = c("United States", "Canada", "United Kingdom", "Morroco"),
     continent = c("North America", "North America", "Europe", "Africa")
   )
   
   compiler <- cities |> 
     arrow_substrait_compiler() |> 
     substrait_join(countries)
   
   # Bam!
   compiler |> collect()
   #> # A tibble: 3 × 4
   #>   city      country.x      country.y      continent    
   #>   <chr>     <chr>          <chr>          <chr>        
   #> 1 Halifax   Canada         Canada         North America
   #> 2 Lancaster United Kingdom United Kingdom Europe       
   #> 3 Chicago   United States  United States  North America
   ```
   
   <sup>Created on 2023-03-10 with [reprex 
v2.0.2](https://reprex.tidyverse.org)</sup>
   
   </details>


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