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

PoissonSampler may output more rows than MaxRows

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment