Skip to content

Commit 6582f90

Browse files
committed
Fix
1 parent 8657742 commit 6582f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/rules/RuleExecutor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ abstract class RuleExecutor[TreeType <: TreeNode[_]] extends Logging {
229229
tracker.foreach(_.recordRuleInvocation(rule.ruleName, runTime, effective))
230230

231231
// Run the structural integrity checker against the plan after each rule.
232-
if (!isPlanIntegral(result)) {
232+
if (effective && !isPlanIntegral(result)) {
233233
val message = s"After applying rule ${rule.ruleName} in batch ${batch.name}, " +
234234
"the structural integrity of the plan is broken."
235235
throw new TreeNodeException(result, message, null)

0 commit comments

Comments
 (0)