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

Remove Self Type for Dataset

    XMLWordPrintableJSON

Details

    Description

      We are currently using a self type for Dataset. This makes it a bit easier (in Scala land) to deal with covariant parameters and return types.

      The current approach is unfortunately a bit leaky. For example the self-type leaks into SparkSession and things like the Catalog. This is a bit distracting especially when you use these classes in java.

      The proposal is to either remove the self-type and rely on overrides (which have to anyway), or to take another stab at using type members.

      Attachments

        Issue Links

          Activity

            People

              hvanhovell Herman van Hövell
              hvanhovell Herman van Hövell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: