Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-11806 Spark 2.0 deprecations and removals
  3. SPARK-12604

Java count(AprroxDistinct)ByKey methods return Scala Long not Java

    XMLWordPrintableJSON

Details

    Description

      Another minor API problem I noticed while digging around. The following Java API methods return a Long as part of their signature, but it's a scala.Long, not a java.lang.Long:

      • countByKey
      • countApproxDistinctByKey

      Other similar methods correctly return a Java Long, like countByValue, and the whole Java streaming API.

      Of course, changing this is probably the right thing to do, but also is an API change. I think it's worth fixing up

      Attachments

        Issue Links

          Activity

            People

              srowen Sean R. Owen
              srowen Sean R. Owen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: