rethinkdb / rethinkdb/docs

Additional variants of `interleave` `union` optarg

Open
#1,089 1 comment 0 reactions 1 assignee View on GitHub

@chipotle is already working on this.

Since Aug 8, 2016.

api
Dominant language
CSS
Stars
118
Forks
161
PR merge metrics
No merged PRs in 30d

Description

https://github.com/rethinkdb/docs/issues/1021#issue-133851169 didn't mention all possible types for the interleave option.

Apart from true, false and field_name, it can also be:

  • A lambda function which is applied to each element in the input streams. The interleaving is determined by comparison on the value returned by the lambda function.
  • An array of field names
  • An array of lambda functions
  • r.desc(field name) or r.desc(lambda x: ...) or r.desc([field1, field2, ...]) or r.desc([lambda x: ..., lambda x: ..., ...])

For the last one I'm a little bit fuzzy on whether the r.desc must be around the array, or if it can be applied to particular elements inside the array. @nighelles can you clarify please?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.