Eric5553 commented on a change in pull request #26977: [SPARK-30326][SQL] Raise
exception if analyzer exceed max iterations
URL: https://github.com/apache/spark/pull/26977#discussion_r376858458
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/rules/RuleExecutor.scala
##########
@@ -155,8 +162,9 @@ abstract class RuleExecutor[TreeType <: TreeNode[_]]
extends Logging {
if (iteration > batch.strategy.maxIterations) {
// Only log if this is a rule that is supposed to run more than once.
if (iteration != 2) {
- val message = s"Max iterations (${iteration - 1}) reached for
batch ${batch.name}"
- if (Utils.isTesting) {
+ val message = s"Max iterations (${iteration - 1}) reached for
batch ${batch.name}, " +
+ s"increasing the value of
'${SQLConf.ANALYZER_MAX_ITERATIONS.key}'."
Review comment:
Opps, sorry.
I updated the logic in cdc48795b8ad39359186830a7cc0c5be3dc169aa. Extend
abstract class `Strategy` to support setting different hint setting key in
Analyzer or Optimizer.
Would you please take time to review? Thanks!
----------------------------------------------------------------
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]