Evangelos Karatzas
09/25/2025, 8:30 AMJim Downie
09/25/2025, 8:35 AMch_a = channel.of(
["a", 1],
["a", 2],
["b", 3])
ch_b = channel.of(["a", 4])
ch_a.join(ch_b, by: 0).view() { it -> "join: " + it }
> join: [a, 1, 4]
ch_a.combine(ch_b, by: 0).view() { it -> "combine: " + it }
> combine: [a, 1, 4]
> combine: [a, 2, 4]Jim Downie
09/25/2025, 8:36 AMremainder feature is very niceArthur
09/25/2025, 8:58 AMjoin doesn't have to be silent fail. I think failOnDuplicate is your friend in those situations. So it does sort of depend on what your intention is with the join/combine operation which one you pick, although in many common cases they produce the same result when using the by argument of combineEvangelos Karatzas
09/25/2025, 9:01 AMAlexander Nater
09/25/2025, 9:13 AMjoin for 1-to-1 joining. I almost always use it with failOnDuplicate:true and failOnMismatch:true.
combine for 1-to-many or many-to-1 merging.Alexander Nater
09/25/2025, 9:14 AMjoin with remainder:true for handling optional outputs.Jim Downie
09/25/2025, 9:17 AMjoin(by: 0, type: "left")
join(by: 0, type: "inner", failOnMismatch: true)
etc...Simon Pearce
09/25/2025, 9:18 AMBen Sherman
09/25/2025, 3:00 PMjoin for all of your joining needs
at present, using combine with the by option gives you a proper SQL join