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

PoissonSampler may output more rows than MaxRows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.3, 3.1.2, 3.2.1, 3.3.0
    • 3.3.0, 3.2.2
    • SQL

    Description

      scala> val df = spark.range(0, 1000)
      df: org.apache.spark.sql.Dataset[Long] = [id: bigint]
      
      scala> df.count
      res0: Long = 1000
      
      scala> df.sample(true, 0.999999, 10).count
      res1: Long = 1004
       

      Attachments

        Activity

          People

            podongfeng Ruifeng Zheng
            podongfeng Ruifeng Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: