View source: R/get_partitions.R
get_partitions | R Documentation |
This function allows you to extract unique values from a table's column to use as partitions.
Internally, this function does "SELECT DISTINCT('mycolumn') FROM 'mytable';"
get_partitions(conn, table, column)
conn |
A 'DBIConnection' object, as return by 'DBI::dbConnect' |
table |
a DB table name |
column |
a column name for the table passed in param |
a vector with unique values for the column of the table
dbi_connection <- DBI::dbConnect(RSQLite::SQLite(),
system.file("extdata","iris.sqlite",package = "parquetize"))
get_partitions(dbi_connection, "iris", "Species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.