paleolimbot opened a new pull request, #210:
URL: https://github.com/apache/sedona-db/pull/210

   Implements the (Geo)Parquet writer in the R bindings:
   
   ``` r
   library(sedonadb)
   
   nc <- sf::read_sf(system.file("shape/nc.shp", package = "sf"))
   
   tmp_parquet <- tempfile(fileext = ".parquet")
   nc |> 
     as_sedonadb_dataframe() |> 
     sd_write_parquet(tmp_parquet)
   
   sd_read_parquet(tmp_parquet)
   #> 
┌─────────┬───┬─────────┬──────────────────────────────────────────────────────┐
   #> │   AREA  ┆ … ┆ NWBIR79 ┆                       geometry                  
     │
   #> │ float64 ┆   ┆ float64 ┆                       geometry                  
     │
   #> 
╞═════════╪═══╪═════════╪══════════════════════════════════════════════════════╡
   #> │   0.114 ┆ … ┆    19.0 ┆ MULTIPOLYGON(((-81.4727554321289 
36.23435592651367,… │
   #> 
├╌╌╌╌╌╌╌╌╌┼╌╌╌┼╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
   #> │   0.061 ┆ … ┆    12.0 ┆ MULTIPOLYGON(((-81.2398910522461 
36.36536407470703,… │
   #> 
├╌╌╌╌╌╌╌╌╌┼╌╌╌┼╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
   #> │   0.143 ┆ … ┆   260.0 ┆ MULTIPOLYGON(((-80.45634460449219 
36.24255752563476… │
   #> 
├╌╌╌╌╌╌╌╌╌┼╌╌╌┼╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
   #> │    0.07 ┆ … ┆   145.0 ┆ MULTIPOLYGON(((-76.00897216796875 
36.31959533691406… │
   #> 
├╌╌╌╌╌╌╌╌╌┼╌╌╌┼╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
   #> │   0.153 ┆ … ┆  1197.0 ┆ MULTIPOLYGON(((-77.21766662597656 
36.24098205566406… │
   #> 
├╌╌╌╌╌╌╌╌╌┼╌╌╌┼╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
   #> │   0.097 ┆ … ┆  1237.0 ┆ MULTIPOLYGON(((-76.74506378173828 
36.23391723632812… │
   #> 
└─────────┴───┴─────────┴──────────────────────────────────────────────────────┘
   #> Preview of up to 6 row(s)
   ```
   
   <sup>Created on 2025-10-10 with [reprex 
v2.1.1](https://reprex.tidyverse.org)</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