A) Am I right in thinking that no UDF can turn (1, (2,3,4) )
into (1, 2 ) (1, 3 ) (1, 4 ) because you always get out the same number of tuples as you put in? B) Would FLATTEN ($1) do that - if the (2,3,4) was a bag, and not a tuple? I'm quite confused as to when bags get created and why they don't seem to be top level data structures... Alex