maropu commented on a change in pull request #25434: [SPARK-28716][SQL] Add id 
to Exchange and Subquery's stringArgs method for easier identifying their 
reuses in query plans
URL: https://github.com/apache/spark/pull/25434#discussion_r314149536
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/debug/DebuggingSuite.scala
 ##########
 @@ -62,8 +62,8 @@ class DebuggingSuite extends SparkFunSuite with 
SharedSQLContext {
     }
 
     val output = captured.toString()
-    assert(output.contains(
-      """== BroadcastExchange HashedRelationBroadcastMode(List(input[0, 
bigint, false])) ==
+    assert(output.replaceAll("\\[id=#\\d+\\]", "[id=#x]").contains(
+      """== BroadcastExchange HashedRelationBroadcastMode(List(input[0, 
bigint, false])), [id=#x] ==
 
 Review comment:
   We need to always print this id? only for reuse cases?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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