Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,6 @@ importFrom(glue,glue_sql)
importFrom(methods,new)
importFrom(methods,setClass)
importFrom(methods,setMethod)
importFrom(purrr,map2_chr)
importFrom(purrr,map_chr)
importFrom(rlang,"%||%")
importFrom(rlang,.data)
importFrom(stats,setNames)
Expand Down
1 change: 0 additions & 1 deletion R/databricks-dbplyr.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#' @importFrom dbplyr translate_sql dbplyr_edition sql_query_save simulate_spark_sql db_collect
#' @importFrom dplyr copy_to
#' @importFrom glue glue_sql
#' @importFrom purrr map_chr map2_chr
#' @name databricks-dbplyr
NULL

Expand Down
2 changes: 1 addition & 1 deletion R/queries.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ db_query_update <- function(
tags = tags
)
# keep non-null values
body$query <- Filter(length, query)
body$query <- purrr::compact(query)
# dynamically generate update mask
body$update_mask <- paste(names(body$query), collapse = ",")

Expand Down
2 changes: 1 addition & 1 deletion R/request-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ db_request <- function(
}

if (!is.null(body)) {
body <- Filter(length, body)
body <- purrr::compact(body)
req <- req |>
httr2::req_body_json(body, ...)
}
Expand Down