alamb commented on issue #7200:
URL: 
https://github.com/apache/arrow-datafusion/issues/7200#issuecomment-1671354875

   I was thinking about how to do this -- one thought I had was to "rewrite" 
any existing `Rows`  using a RowConverter / convert_rows 
https://docs.rs/arrow-row/45.0.0/arrow_row/struct.RowConverter.html#method.convert_rows
   
   Something like 
   
   ```rust
   let old_converter: RowConverter = ...
   let old_rows: Rows = old_converter.convert_columns(input);
   ....
   // now we need to rewrite to use `new_converter`:
   let new_converter: RowConverter = ...
   let new_rows: Rows = new_converter.convert_columns(
     // convert old Rows back to Arrays
     &old_converter.convert_rows(old_rows)?
   )?;
   ```
   
   So in that way you don't need to keep around the original input columns
   
   You have probably already thought of this, but I figured I would write it 
down
   
   
   
   


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