Skip to content

count() retains grouping, but should not #347

@krlmlr

Description

@krlmlr

I believe the implementation of group_vars.tbl_lazy() needs a tweak.

library(tidyverse)
library(dbplyr)
#> 
#> Attaching package: 'dbplyr'
#> The following objects are masked from 'package:dplyr':
#> 
#>     ident, sql

memdb_frame(a = 1:3, b = 1:3) %>%
  count(a, b) %>%
  group_vars()
#> [1] "a"

tibble(a = 1:3, b = 1:3) %>%
  count(a, b) %>%
  group_vars()
#> character(0)

Created on 2019-08-13 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviordplyr verbs 🤖Translation of dplyr verbs to SQL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions