Skip to content

Commit

Permalink
R-side iteration [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Oct 2, 2024
1 parent fef0695 commit 6666d58
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions apis/r/R/SOMADataFrame.R
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,18 @@ SOMADataFrame <- R6::R6Class(
)
}

# * drop_cols: attr_name
# * add_attrs: attr_name -> Arrow type string for the index
# type, e.g. 'c' for int8
# * add_enmrs: attr_name -> pair of:
# o Arrow type string the value type, e.g. "f" or "U"
# o bool ordered

drop_cols_for_clib <- drop_cols
add_cols_index_types_for_clib <- list()
add_cols_value_types_for_clib <- list()
add_cols_ordered_for_clib <- list()

# Add columns
for (add_col in add_cols) {
spdl::debug("[SOMADataFrame update]: adding column '{}'", add_col)
Expand All @@ -321,8 +333,8 @@ SOMADataFrame <- R6::R6Class(

if (inherits(col_type, "DictionaryType")) {
spdl::debug(
"[SOMADataFrame update]: adding column '{}' as an enumerated type",
add_col
"[SOMADataFrame update]: adding enum column '{}' index type '{}' value type '{}' ordered {}",
add_col, col_type$index_type$name, col_type$value_type$name, col_type$ordered
)
se <- tiledb::tiledb_array_schema_evolution_add_enumeration(
object = se,
Expand Down

0 comments on commit 6666d58

Please sign in to comment.