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

Change to use `foreach` when `map` produce no result

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      for example 

       

      Seq(1, 2).map(println) -> Seq(1, 2).foreach(println)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: