galachad commented on issue #44524:
URL: https://github.com/apache/arrow/issues/44524#issuecomment-2445111575

   I'm just pointing that if arrow default type is `tibble` then we should 
remove class attribute only when object is `tibble`.
   
   As I mention before, when we save `data.frame` into parquet, then 
`read_parquet` returns `tibble`.
   
   It could be changed to tibble - remove the class attribute when the object 
is just tibble.
   ```
    # remove the class if it's just tibble
    if (identical(x$attributes$class, c("tbl_df", "tbl", "data.frame"))) { 
      x$attributes <- x$attributes[names(x$attributes) != "class"] 
      if (is_empty(x$attributes)) { 
        x <- x[names(x) != "attributes"] 
      } 
    } 
   ```
   
   You can always convert `tibble` to `data.frame`, but I'm just pointing that 
current behavior is not consistence.
   
   Anyway, if you are not agreed that removing class information from not 
default type object is a bug, then we should close the issue.
   


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