Skip to content

Add bind_cols() method pointing to cross_join()? #1791

@MichaelChirico

Description

@MichaelChirico

I just spent quite a while trying to cbind() (bind_cols()) two remote tables I know to have exactly 1 row.

I was trying different things in inner_join() like by = NULL, by = join_by(TRUE), just omitting by=...

Eventually I read ?inner_join carefully enough to see the reference to cross_join() and it clicked.

Still, maybe we can help users gone astray by adding a stub method for bind_cols() that says "this doesn't make sense in SQL world; cross_join() may be what you're after".

The current failure is a bit opaque:

Error in `bind_cols()`:
! `..1` must be a vector, not a <tbl_OurDBIConnection/tbl_oursql/tbl_dbi/tbl_sql/tbl_lazy/tbl> object.

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