diff options
Diffstat (limited to 'sqlglot/optimizer/normalize.py')
-rw-r--r-- | sqlglot/optimizer/normalize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlglot/optimizer/normalize.py b/sqlglot/optimizer/normalize.py index 6df36af..6bf877b 100644 --- a/sqlglot/optimizer/normalize.py +++ b/sqlglot/optimizer/normalize.py @@ -76,7 +76,7 @@ def normalized(expression: exp.Expression, dnf: bool = False) -> bool: Args: expression: The expression to check if it's normalized. - dnf: Whether or not to check if the expression is in Disjunctive Normal Form (DNF). + dnf: Whether to check if the expression is in Disjunctive Normal Form (DNF). Default: False, i.e. we check if it's in Conjunctive Normal Form (CNF). """ ancestor, root = (exp.And, exp.Or) if dnf else (exp.Or, exp.And) @@ -99,7 +99,7 @@ def normalization_distance(expression: exp.Expression, dnf: bool = False) -> int Args: expression: The expression to compute the normalization distance for. - dnf: Whether or not to check if the expression is in Disjunctive Normal Form (DNF). + dnf: Whether to check if the expression is in Disjunctive Normal Form (DNF). Default: False, i.e. we check if it's in Conjunctive Normal Form (CNF). Returns: |