You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2023/11/09 20:07:05 UTC

Re: [I] [R][C++] Undefined behaviour (clang sanitizer) in decompression [arrow]

paleolimbot commented on issue #38479:
URL: https://github.com/apache/arrow/issues/38479#issuecomment-1804583542

   The offending code is basically:
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   
   tbl <- data.frame(
     dbl = c(1:8, NA, 10) + .1,
     lgl = sample(c(TRUE, FALSE, NA), 10, replace = TRUE),
     false = logical(10),
     chr = letters[c(1:5, NA, 7:10)]
   )
   
   tflz4 <- tempfile(fileext = ".csv.lz4")
   write_csv_arrow(tbl, tflz4)
   read_csv_arrow(tflz4)
   #>     dbl   lgl false  chr
   #> 1   1.1  TRUE FALSE    a
   #> 2   2.1 FALSE FALSE    b
   #> 3   3.1 FALSE FALSE    c
   #> 4   4.1  TRUE FALSE    d
   #> 5   5.1  TRUE FALSE    e
   #> 6   6.1 FALSE FALSE <NA>
   #> 7   7.1    NA FALSE    g
   #> 8   8.1 FALSE FALSE    h
   #> 9    NA    NA FALSE    i
   #> 10 10.1 FALSE FALSE    j
   ```
   
   I don't have a sanitizer build set up locally and may need some help!


-- 
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-unsubscribe@arrow.apache.org

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