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

Accept Dataset[_] instead of DataFrame in MLlib APIs

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: ML
    • Labels:
      None
    • Target Version/s:

      Description

      In Spark 2.0, `DataFrame` is an alias of `Dataset[Row]`. MLlib API actually works for other types of `Dataset`, so we should accept `Dataset[_]` instead. It maps to `Dataset<?>` in Java. This is a source compatible change.

        Issue Links

          Activity

          Hide
          apachespark Apache Spark added a comment -

          User 'mengxr' has created a pull request for this issue:
          https://github.com/apache/spark/pull/12274

          Show
          apachespark Apache Spark added a comment - User 'mengxr' has created a pull request for this issue: https://github.com/apache/spark/pull/12274
          Hide
          jlaskowski Jacek Laskowski added a comment -

          What a nice surprise! Just yesterday faced the very exact problem of converting Datasets to DataFrames due to the "incompatibility" and was wondering whether I was doing something wrong myself. Thanks Xiangrui Meng!

          Show
          jlaskowski Jacek Laskowski added a comment - What a nice surprise! Just yesterday faced the very exact problem of converting Datasets to DataFrames due to the "incompatibility" and was wondering whether I was doing something wrong myself. Thanks Xiangrui Meng !
          Hide
          mengxr Xiangrui Meng added a comment -

          Issue resolved by pull request 12274
          https://github.com/apache/spark/pull/12274

          Show
          mengxr Xiangrui Meng added a comment - Issue resolved by pull request 12274 https://github.com/apache/spark/pull/12274

            People

            • Assignee:
              mengxr Xiangrui Meng
              Reporter:
              mengxr Xiangrui Meng
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development