Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3222

Need a zip function to combine coordinated lists

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • Functions - Drill
    • None

    Description

      It is often very useful to be able to turn a pair (or more) of lists into a single list of pairs. Thus zip([a,b], [1,2]) => [[a,1], [b,2]].

      The handling of short lists, more than two lists and so on is TBD, but the base function is an important one.

      One use case is in time series where storing times as one list and values as another is very handy but processing these results would be much better done by using flatten(zip(times, values)).

      Attachments

        Activity

          People

            Unassigned Unassigned
            tdunning Ted Dunning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: