stephenashton-dhsc commented on PR #49937:
URL: https://github.com/apache/arrow/pull/49937#issuecomment-4648263003

   > library(arrow)
   > library(dplyr)
   > 
   > starwars |> mutate(sex = factor(sex, ordered = TRUE)) |> 
write_parquet(sink = tempfile())
   
   Yep - still getting the same issue:
   ```
   > pak::pkg_install("apache/arrow/r#49937")
   
   ! Using bundled GitHub PAT. Please add your own PAT using 
`gitcreds::gitcreds_set()`.
   
    Found  1  deps for  0/1  pkgs [⠋] Resolving apache/arrow/r#49937
   
   ℹ Loading metadata database                                      
   
   ✔ Loading metadata database ... done
   
    Found  36  deps for  1/1  pkgs [⠧] Resolving standard (CRAN/BioC) packages  
                                                                      
    
   → Package library at 'C:\Users\SAshton\AppData\Local\R\Win-library\4.4'.
   → Will update 1 package.
   → The package (0 B) is cached.
   + arrow 24.0.0.9000 → 24.0.0.9000 [bld][cmp] (GitHub: 29dfbc7)
   ? Do you want to continue (Y/n) y
   ℹ No downloads are needed, 1 pkg is cached
   ✔ Got arrow 24.0.0.9000 (source) (21.46 MB)
   ℹ Packaging arrow 24.0.0.9000               
   ✔ Installed arrow 24.0.0.9000 (github::apache/arrow@29dfbc7) (407ms)         
                                                        
   ✔ 1 pkg + 14 deps: kept 14, upd 1, dld 1 (NA B) [5m 5.3s]
   > library(arrow)
   
   Attaching package: ‘arrow’
   
   The following object is masked from ‘package:utils’:
   
       timestamp
   
   > library(dplyr)
   
   Attaching package: ‘dplyr’
   
   The following objects are masked from ‘package:stats’:
   
       filter, lag
   
   The following objects are masked from ‘package:base’:
   
       intersect, setdiff, setequal, union
   
   Warning message:
   package ‘dplyr’ was built under R version 4.4.3 
   > starwars |> mutate(sex = factor(sex, ordered = TRUE)) |> 
write_parquet(sink = tempfile())
   Error: Invalid: Column data for field 7 with type dictionary<values=string, 
indices=int8, ordered=0> is inconsistent with schema dictionary<values=string, 
indices=int8, ordered=1>
   ```
   
   This is the current session info:
   ```
   > sessionInfo()
   R version 4.4.1 (2024-06-14 ucrt)
   Platform: x86_64-w64-mingw32/x64
   Running under: Windows 11 x64 (build 26200)
   
   Matrix products: default
   
   
   locale:
   [1] LC_COLLATE=English_United Kingdom.utf8  LC_CTYPE=English_United 
Kingdom.utf8    LC_MONETARY=English_United Kingdom.utf8 LC_NUMERIC=C            
                LC_TIME=English_United Kingdom.utf8    
   
   time zone: Europe/London
   tzcode source: internal
   
   attached base packages:
   [1] stats     graphics  grDevices utils     datasets  methods   base     
   
   other attached packages:
   [1] dplyr_1.2.1       arrow_24.0.0.9000
   
   loaded via a namespace (and not attached):
    [1] assertthat_0.2.1 R6_2.6.1         bit_4.6.0        tidyselect_1.2.1 
tzdb_0.5.0       magrittr_2.0.5   glue_1.8.1       tibble_3.3.1     
pkgconfig_2.0.3  bit64_4.8.2      generics_0.1.4   lifecycle_1.0.5  cli_3.6.6   
     pak_0.10.0       vctrs_0.7.3      compiler_4.4.1   purrr_1.2.2      
pillar_1.11.1    rlang_1.2.0     
   ```


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