maropu commented on issue #23731: [SPARK-26572][SQL] fix aggregate codegen 
result evaluation
URL: https://github.com/apache/spark/pull/23731#issuecomment-460194935
 
 
   But, the current fix changes the change behaivour of the other stateful 
exprs? e.g.,
   ```
   scala> val baseTable = Seq((1), (1)).toDF("idx")
   scala> val distinctWithRandId = baseTable.distinct.withColumn("id", 
functions.rand())
   scala> baseTable.join(distinctWithRandId, "idx").show
   // w/ this pr
   +---+-------------------+                                                    
   
   |idx|                 id|
   +---+-------------------+
   |  1|0.09884607470357032|
   |  1|0.09884607470357032|
   +---+-------------------+
   
   // the current master
   scala> baseTable.join(distinctWithRandId, "idx").show
   +---+-------------------+                                                    
   
   |idx|                 id|
   +---+-------------------+
   |  1|0.08661806632196123|
   |  1| 0.0903755555098934|
   +---+-------------------+
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to