You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/06/26 15:44:15 UTC

[GitHub] [arrow] nealrichardson commented on pull request #7524: ARROW-8899 [R] Add R metadata like pandas metadata for round-trip fidelity

nealrichardson commented on pull request #7524:
URL: https://github.com/apache/arrow/pull/7524#issuecomment-650249655


   @romainfrancois regarding tests, I think a fixture something like 
   
   ```r
   df <- tibble::tibble(
     a = structure("one", class = "special_string"),
     b = 2,
     c = tibble::tibble(
       c1 = structure("inner", extra_attr = "something"),
       c2 = 4
     )
   )
   ```
   
   could be sufficient. 
   
   ```r
   expect_identical(as.data.frame(Table$create(df)), df)
   expect_identical(as.data.frame(record_batch(df)), df)
   ```
   
   and then also confirm that it's identical round-tripping to Feather and Parquet.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org