Skip to content

eqJoin that behave like outerJoin #1152

Closed

Description

@neumino

eqJoin now behaves like innerJoin, that is to say it drops document that don't get a match in the second stream. It would be nice to be able to keep them.

People can use concatMap, but they may look for a sugar syntax and not find it -- which is irritating.

Activity

  1. coffeemug commented on Jul 10, 2013

    @coffeemug
    Contributor

    We should definitely allow eqJoin to work with outerJoin semantics (or the other way around). Moving to optional until we can get a full proposal going.

  2. neumino commented on Jul 12, 2013

    @neumino
    MemberAuthor

    One more thing that would be really nice if we update eqJoin would be to enforce that we find just one match on the right sequence (hasOne relation).

    If I do an eqJoin on the primary id, then that's cool, but if I use a secondary index, I somehow have no guarantee that I'll just get one document back.

    I think I talk at some point with @jdoliner and he told me that it would be hard to enforce unique values in the secondary index, so if we can have a flag in eqJoin to throw in case more than one match is found, it would be really nice.

    Now I have to use an inner query and a r.branch (two if I want an outerJoin behavior), which is not really pretty.

  3. coffeemug commented on Jul 13, 2013

    @coffeemug
    Contributor

    I think in principle, enforcement of this has nothing to do with eqJoin. It's basically about introducing a unique secondary index option (which may or may not be feasible in a distributed system environment).

  4. srh commented on Mar 5, 2014

    @srh
    Contributor

    @wojons requested this feature in IRC today.

  5. wojons commented on Mar 5, 2014

    @wojons
    Contributor

    Would be nice to have all the types of joins available since you never know which one your going to need.

  6. coffeemug commented on Jul 18, 2014

    @coffeemug
    Contributor

    Bump, lots of people are running into this.

  7. mlucy commented on Jul 18, 2014

    @mlucy
    Member

    @coffeemug -- should we move this to a different milestone?

  8. coffeemug commented on Jul 18, 2014

    @coffeemug
    Contributor

    Closing in favor of #2720.

  9. modified the milestones: outdated, , moved on Jul 18, 2014
  10. 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