heronshoes commented on issue #15287:
URL: https://github.com/apache/arrow/issues/15287#issuecomment-1379697006

   @westonpace I think non-key common columns (`description`) will be 
preserved. Arrow's Table allows duplicated column names.
   
   ```ruby
   left  = Arrow::Table.new(id: [1, 2, 3], region_id: [7, 8, 9], description: 
%w[A B C])
   right = Arrow::Table.new(id: [1, 2, 4],                       description: 
%w[D E F])
   
   puts left.join(right, :id, type: :full_outer)   # current implementation (1)
   puts left.join(right, [:id], type: :full_outer) # is same as this (2)
   #=>
            id  region_id       description         id  description
   0         1          7       A                    1  D          
   1         2          8       B                    2  E          
   2         3          9       C               (null)       (null)
   3    (null)     (null)            (null)          4  F
   
   puts left.join(right, :id, type: :full_outer) # this will merge key (3)
   
        id      region_id       description     description
   0     1              7       A               D          
   1     2              8       B               E          
   2     3              9       C                    (null)
   3     4         (null)            (null)     F
   ```
   
   @kou Is above same as your thought?


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