XiDuo You created SPARK-38013: --------------------------------- Summary: Fix AQE can change bhj to smj if the build side is aggregate Key: SPARK-38013 URL: https://issues.apache.org/jira/browse/SPARK-38013 Project: Spark Issue Type: Bug Components: SQL Affects Versions: 3.3.0 Reporter: XiDuo You
The condition of isBroadcastStage is not completed. It does not catch the plan whose build side is Aggregate. {code:java} private def isBroadcastStage(plan: LogicalPlan): Boolean = plan match { case LogicalQueryStage(_, _: BroadcastQueryStageExec) => true case _ => false } {code} We should add the pattern if the BroadcastQueryStageExec is inside Aggregate. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org