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

Random Number Generation inconsistent in projections in DataFrame

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0
    • SQL
    • None

    Description

      to reproduce (in python):

      df = sqlContext.range(0, 10).withColumn('uniform', rand(seed=10))
      df.select('uniform', 'uniform' + 1)
      

      You should see that the first column + 1 doesn't equal the second column.

      Attachments

        Activity

          People

            yhuai Yin Huai
            brkyvz Burak Yavuz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: