powered by
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)
a vector with unique values for the column of the table
A `DBIConnection` object, as return by `DBI::dbConnect`
a DB table name
a column name for the table passed in param
dbi_connection <- DBI::dbConnect(RSQLite::SQLite(), system.file("extdata","iris.sqlite",package = "parquetize")) get_partitions(dbi_connection, "iris", "Species")
Run the code above in your browser using DataLab