Skip to content

Commit dd9dace

Browse files
author
wangzhenhua
committed
improve comments
1 parent eee74e7 commit dd9dace

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ object QueryPlan extends PredicateHelper {
443443
}.canonicalized.asInstanceOf[T]
444444
}
445445

446-
/** Normalize and reorder the expressions in the given sequence. */
446+
/**
447+
* Composes the given predicates into a conjunctive predicate, which is normalized and reordered.
448+
* Then returns a new sequence of predicates by splitting the conjunctive predicate.
449+
*/
447450
def normalizePredicates(predicates: Seq[Expression], output: AttributeSeq): Seq[Expression] = {
448451
if (predicates.nonEmpty) {
449452
val normalized = normalizeExprId(predicates.reduce(And), output)

0 commit comments

Comments
 (0)