You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a PostgreSQL db and I would like to create local DuckDB copy of a subset of the rows on it.
My plan was to
create the datamodel using dm_from_con
filter the rows using dm_filter
copy to local database using copy_dm_to
I currently get this error when attempting to filter:
library(dm)
#> #> Attaching package: 'dm'#> The following object is masked from 'package:stats':#> #> filtercon<-camalienr::ca_connect() # internal pkg - only used here to connect to the dbremote_pg<- dm_from_con(con, schema="data", learn_keys=TRUE)
dm_nrow(remote_pg)
#> chunk detection detectionsummary #> 33781 83777960 9372360 #> image imagemeta job #> 5557936 2890422 124 #> partner plantnetcall plantnetcall_metadata #> 11 159568 157834 #> plantnetrequestparams species species_whitelist #> 2 49479 2419# In the detectionssummary table we have a column named speciesid# integer ID on different species.
dm_filter(.dm=remote_pg,
detectionsummary= (speciesid==1356471))
#> Warning in igraph::graph_from_data_frame(., directed = directed, vertices =#> def$table): In `d' `NA' elements were replaced with string "NA"#> Error in `map()`:#> ℹ In index: 1.#> Caused by error in `igraph::graph_from_data_frame()`:#> ! Some vertex names in edge list are not listed in vertex data frame
We have a PostgreSQL db and I would like to create local DuckDB copy of a subset of the rows on it.
My plan was to
dm_from_con
dm_filter
copy_dm_to
I currently get this error when attempting to filter:
Created on 2024-09-06 with reprex v2.1.1
Session info
I'm a bit confused about the error - why is {iGraph} called here?
The text was updated successfully, but these errors were encountered: