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

Random Number Generation inconsistent in projections in DataFrame

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: SQL
    • Labels:
      None
    • Target Version/s:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: