flux icon indicating copy to clipboard operation
flux copied to clipboard

Add predicate to join function

Open pauldix opened this issue 7 years ago • 0 comments

Currently, join works on equality for the given columns. Users should be able to specify an arbitrary predicate to join on rather than columns. The columns and predicate arguments are mutually exclusive. It would look something like this:

join(
  tables: {foo:foo, bar:bar},
  predicate: (t) => t.foo.col1 > t.bar.col2,
  fn: (t) => {"foo.value": t.foo._value, "bar.value": t.bar._value}
)

pauldix avatar Jun 15 '18 11:06 pauldix