No question or bug report here, just a gotcha I thought I'd share.  I
had to whittle a pipeline down to this to realize why it was stalling:

  (end /) ... | take 1 | a: chop 10 | b: fanin | ... / a: | b:

Of course.  Even though there will only ever be one record on its input,
CHOP can't know that until after it writes the output to the alternate.

I was using FANIN rather than FANINANY to control the order of *other*
input streams besides these two.  I see two solutions for the general case:

  * add another TAKE 1 on the primary to sever the stream
  * add COPY on the alternate to buffer the record

In this case, my other inputs will all also have only one record, so I
can just change FANIN to GATHER and don't need to add another stage.

¬R

Reply via email to