Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group_by multiple arguments #21

Open
karlmoller opened this issue Oct 10, 2016 · 1 comment · May be fixed by #22
Open

group_by multiple arguments #21

karlmoller opened this issue Oct 10, 2016 · 1 comment · May be fixed by #22

Comments

@karlmoller
Copy link

karlmoller commented Oct 10, 2016

The following works if df is a local (copied using collect(df)) dataframe:

df %>%
    group_by(colA, colB) %>%
    summarise(
        count = n()
    )

And returns totals for (colA, colB) pairs as expected.

When df is not local I get the following:

Database: Vertica ODBC Connection
-----+DSN: VerticaDSN
-----+Host: xxx
-----+DB Version: 08.00.0000
-----+ODBC Version: 03.80
Error in cat("Groups: ", commas(op_grps(x$ops)), "\n", sep = "") :
could not find function "commas"

Grouping by a single column works fine. Is this a vertica.dplyr bug or a limitation of Vertica?

shabbybanks added a commit to shabbybanks/vertica.dplyr that referenced this issue Apr 7, 2017
This should resolve vertica#21
@shabbybanks shabbybanks linked a pull request Apr 7, 2017 that will close this issue
@shabbybanks
Copy link

The error seems to be a missing commas function in the print function for this object. Adding the version from dplyr should resolve the error. Note also you have not ungrouped the query, which would have also, in this case, concealed the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants