wangyum opened a new pull request, #37048:
URL: https://github.com/apache/spark/pull/37048

   ### What changes were proposed in this pull request?
   
   This PR adds a config to limit CartesianProductExec's partition number.
   The default value is: `Int.MaxValue`.The recommended value is: `1200000`.
   
   ### Why are the changes needed?
   
   A large number of partitions can cause driver instability, especially for 
Spark Hive thriftserver. It affects other users. A common case is that the join 
condition is incorrectly, such as:
   ```sql
   SELECT * FROM t1 JOIN t2 ON t1.id = t1.id;
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Unit test.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to