Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-44024

Change to use `map` where `unzip` used to extract a single element

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.5.0
    • 3.5.0
    • SQL
    • None

    Description

      For example:

       

      Seq((1, 11), (2, 22)).unzip._1

       

      should change to 

       

      Seq((1, 11), (2, 22)).map(_._1)

      Attachments

        Activity

          People

            LuciferYang Yang Jie
            LuciferYang Yang Jie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: