You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/02/04 01:52:19 UTC

[GitHub] maropu commented on issue #23731: [SPARK-26572][SQL] fix aggregate codegen result evaluation

maropu commented on issue #23731: [SPARK-26572][SQL] fix aggregate codegen result evaluation
URL: https://github.com/apache/spark/pull/23731#issuecomment-460110603
 
 
   I think we should handle this case in a planner?
   For example, if we turn off broadcast join, the behaviour changes;
   ```
   scala> val baseTable = Seq((1), (1)).toDF("idx")
   scala> val distinctWithId = baseTable.distinct.withColumn("id", functions.monotonically_increasing_id())
   scala> baseTable.join(distinctWithId, "idx").show
   +---+------------+
   |idx|          id|
   +---+------------+
   |  1|369367187456|
   |  1|369367187457|
   +---+------------+
   
   sql("SET spark.sql.autoBroadcastJoinThreshold=-1")
   scala> baseTable.join(distinctWithId, "idx").show
   +---+------------+
   |idx|          id|
   +---+------------+
   |  1|369367187456|
   |  1|369367187456|
   +---+------------+
   ```
   Could you check again?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org