Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored and aviator-bot committed Dec 24, 2023
1 parent f0ca4f4 commit b62a6df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/spec-result-roundtrip.R
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,17 @@ test_select_with_null <- function(...) {
}

test_select <- function(
# Run time
con,
# Spec time
...,
.add_null = "none",
# Run time
.ctx,
.envir = parent.frame()) {
values <- list2(...)

value_is_formula <- vapply(values, is.call, logical(1L))
value_is_formula <- map_lgl(values, is.call)
names(values)[value_is_formula] <- lapply(values[value_is_formula], "[[", 2L)
values[value_is_formula] <- lapply(
values[value_is_formula],
Expand All @@ -282,7 +285,7 @@ test_select <- function(
)

if (is.null(names(values))) {
sql_values <- lapply(values, as.character)
sql_values <- map(values, as.character)
} else {
sql_values <- names(values)
}
Expand Down

0 comments on commit b62a6df

Please sign in to comment.