romainfrancois commented on a change in pull request #11751:
URL: https://github.com/apache/arrow/pull/11751#discussion_r761999468



##########
File path: r/R/type.R
##########
@@ -55,6 +59,12 @@ DataType$import_from_c <- ImportType
 INTEGER_TYPES <- as.character(outer(c("uint", "int"), c(8, 16, 32, 64), 
paste0))
 FLOAT_TYPES <- c("float16", "float32", "float64", "halffloat", "float", 
"double")
 
+code_carefully <- function(type, msg) {

Review comment:
       We can revert the last commit if needed, but I believe this is more 
useful, because at least. the user has the rest of the structure of the schema: 
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   #> See arrow_info() for available features
   
   s <- struct(a = list_of(
     struct(b = arrow:::DayTimeInterval__initialize())
   ))
   
   s$code()
   #> struct(a = list_of(struct(b = stop("Unsupported type: 
<day_time_interval>."))))
   ```
   
   <sup>Created on 2021-12-03 by the [reprex 
package](https://reprex.tidyverse.org) (v2.0.1.9000)</sup>




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