We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8657742 commit 6582f90Copy full SHA for 6582f90
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/rules/RuleExecutor.scala
@@ -229,7 +229,7 @@ abstract class RuleExecutor[TreeType <: TreeNode[_]] extends Logging {
229
tracker.foreach(_.recordRuleInvocation(rule.ruleName, runTime, effective))
230
231
// Run the structural integrity checker against the plan after each rule.
232
- if (!isPlanIntegral(result)) {
+ if (effective && !isPlanIntegral(result)) {
233
val message = s"After applying rule ${rule.ruleName} in batch ${batch.name}, " +
234
"the structural integrity of the plan is broken."
235
throw new TreeNodeException(result, message, null)
0 commit comments