Skip to content

rows_patch.tbl_lazy fails when patching more than one column #1443

Closed

Description

@gorcha

The tbl_lazy version of rows_patch() throws an error if more than one column is to be updated.
There's a simple bug in the code that builds the coalesce calls, PR is incoming!

library(dplyr)
library(dbplyr)

rows_patch(
  memdb_frame(x = 1:3, y = c(11, 12, NA), z = c(31, NA, 33)),
  memdb_frame(x = 2:3, y = 22:23, z = 42:43),
  by = "x",
  unmatched = "ignore",
  in_place = FALSE
)
#> Error in `sym()`:
#> ! Can't convert a character vector to a symbol.

Created on 2024-01-31 with reprex v2.1.0

Activity

  1. added a commit that references this issue on Jan 31, 2024
    8bb8f1c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions