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

use mapPartitionsWIthIndex in Dataframe

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.6.0, 1.6.1, 1.6.2, 1.6.3
    • None
    • SQL
    • Patch

    Description

      As there is no mapPartitionsWithIndex in Dataframe ,if I want to use mapPartitionsWithIndex, I have to use dataframe.rdd.mapPartitionsWithIndex instade. What I want to do is to use mapPartitionsWithIndex directly in Dataframe. So, I want to add mapPartitionsWithIndex in Dataframe, that's all.

      Attachments

        Issue Links

          Activity

            viirya L. C. Hsieh added a comment - - edited

            I don't really see dataframe.rdd.mapPartitionsWithIndex gives any significant advantage over dataframe.mapPartitionsWithIndex, if you just want to do mapPartitionsWithIndex on the underlying rdd.

            viirya L. C. Hsieh added a comment - - edited I don't really see dataframe.rdd.mapPartitionsWithIndex gives any significant advantage over dataframe.mapPartitionsWithIndex , if you just want to do mapPartitionsWithIndex on the underlying rdd.
            gurwls223 Hyukjin Kwon added a comment - - edited

            I think we can just use dataframe.rdd.mapPartitionsWithIndex as is.

            gurwls223 Hyukjin Kwon added a comment - - edited I think we can just use dataframe.rdd.mapPartitionsWithIndex as is.

            People

              Unassigned Unassigned
              ivankings 范晓亮
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: