Skip to content

Full (outer) join #1223

Closed
Closed

Description

@neumino

We can't do the equivalent of a SQL FULL JOIN in ReQL now -- or I couldn't figure out how to do it (without having to store everything in memory).

I tend to believe that it's not really important but well, some people may need it.
The common use case (I think) is to find orphaned data which can be done with two outer_join.

Tagging as backlog for now.

Activity

  1. jdoliner commented on Aug 2, 2013

    @jdoliner
    Contributor

    This is pretty easy to do in ReQL but if the use case is finding orphaned data you should probably just do it explicitly like so:

    tbl1.filter(lambda x: tbl2.filter({"val" : x["val"]}.count() == 0) +
    tbl2.filter(lambda x: tbl1.filter({"val" : x["val"]}.count() == 0)
    
  2. srh commented on Aug 2, 2013

    @srh
    Contributor

    Does the query tbl1.filter(lambda x: tbl2.filter({"val" : x["val"]}.count() == 0) restream data from tbl2 over and over again?

  3. jdoliner commented on Aug 2, 2013

    @jdoliner
    Contributor

    Hmm, I'm not quite sure I understand the question @srh. No actual data will be streamed from tbl2 because we're just doing a count so all that will be returned from tbl2 shards is a number.

  4. srh commented on Aug 2, 2013

    @srh
    Contributor

    I withdraw my question.

  5. modified the milestones: , backlog on Mar 27, 2014
  6. coffeemug commented on Jul 18, 2014

    @coffeemug
    Contributor

    Closing in favor of #2720.

  7. modified the milestones: duplicate, , outdated, moved on Jul 18, 2014
  8. modified the milestones: duplicate, moved on Jul 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions