Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-49184 PySpark Native Plotting
  3. SPARK-49203

Add expression for `java.util.Arrays.binarySearch`

    XMLWordPrintableJSON

Details

    Description

      Add a dedicated expression 

      ArrayBinarySearch(array, value) 

      for binary search, the behavior should be the same as `java.util.Arrays.binarySearch`, so that we can use it to implement histogram plot in the client side (no longer need to depend on mllib's Bucketizer)

       

      This expression is for internal purposes, should not be exposed to end users.

      It assume the array is already sorted.

      if array or value is null, returns null.

       

      Attachments

        Issue Links

          Activity

            People

              panbingkun BingKun Pan
              podongfeng Ruifeng Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: