spark-test commented on code in PR #59216:
URL: https://github.com/apache/spark/pull/59216#discussion_r4599048885


##########
python/pyspark/sql/transpile.py:
##########
@@ -768,49 +1092,38 @@ def _convert_chunk(self, params: List[str], body: 
ast.AST | None) -> Column:
             case ast.BoolOp(op=op, values=values):
                 # Python `and` / `or` short-circuit and return one of the
                 # operands rather than a strict boolean. For the booleans
-                # produced by Compare / UnaryOp(Not) / nested BoolOps this
-                # maps cleanly onto Spark Column `&` / `|`. For
-                # non-boolean operands (including bare parameter names whose
-                # runtime type is unknown) the right semantics would require
-                # Python's truthiness rules (0 / "" / None / [] all
-                # falsy), which we can't faithfully reproduce without the
-                # input column types -- Spark's `&` / `|` would silently
-                # do bitwise instead. Require all operands to be statically
-                # known boolean so the caller falls back to interpreted
-                # Python rather than producing a plan whose results diverge.
-                if not all(_is_definitely_boolean(v) for v in values):
-                    raise UnsupportedOperationException(
-                        "`and` / `or` operand type is not statically known "
-                        "to be boolean; Spark's `&` / `|` are bitwise, not "
-                        "Python truthiness, so the transpiler refuses to "
-                        "lower this and the UDF falls back to interpreted "
-                        "Python"
-                    )
-                # A literal None operand short-circuits differently: Python's
-                # `None and (x > 0)` returns None regardless of x, but Spark's
-                # three-valued `null AND false` is false (and `null OR true` is
-                # true), so the lowered form diverges. `_is_definitely_boolean`
-                # accepts None for `not`/if-test contexts where coalesce 
handles
-                # it; here it must force a fallback instead.
-                if any(isinstance(v, ast.Constant) and v.value is None for v 
in values):
+                # produced by Compare / UnaryOp(Not) / nested BoolOps, this 
maps
+                # cleanly onto `&` / `|`. For non-boolean operands (including
+                # bare parameter names whose runtime type is unknown) the right
+                # semantics would need Python's truthiness rules (0 / "" / 
None /
+                # [] all falsy), which we can't reproduce without the input
+                # column types -- Spark's `&` / `|` require boolean operands.
+                #
+                # Every operand before the last must also never be NULL: 
Spark's
+                # `NULL AND false` is `false` where Python's `None and False` 
is
+                # `None`. The last is returned as it is (`true AND v` is `v`), 
so
+                # it may be NULL; a literal None there has no boolean type.
+                # TODO (SPARK-54783): lower a possibly-NULL earlier operand 
`a` by
+                # folding to `CASE WHEN coalesce(a, false) THEN rest ELSE a 
END`
+                # (`and`) / `... THEN true ELSE rest END` (`or`), which returns
+                # Python's value, instead of falling back.
+                *earlier, last = values
+                if not (
+                    all(_is_never_null_boolean(v) for v in earlier)
+                    and _is_definitely_boolean(last)
+                    and not _is_none_constant(last)
+                ):
                     raise UnsupportedOperationException(
-                        "literal None operand in `and` / `or` cannot be 
lowered: "
-                        "Spark's three-valued logic diverges from Python's "
-                        "short-circuit-return-operand semantics, so the UDF "
-                        "falls back to interpreted Python"
+                        "`and` / `or` operand is not statically known to be a "
+                        "boolean that only the last operand lets be NULL; "

Review Comment:
   **Nit (P3):** This is what users see after 'Unable to transpile UDF' for 
every refused `and` / `or`, now including the possibly-NULL ternary and nested 
operands this change refuses. "lets" has no object, and the clause does not say 
which rule an operand broke: for `(x > 0) and None` it reads as if a NULL last 
operand were fine. Stating the three conditions the gate at lines 1111-1115 
enforces would fix it, for example:
   
   ```suggestion
                           "each `and` / `or` operand must be statically known 
to be a boolean, "
                           "never NULL before the last operand, and the last 
not a literal None; "
   ```
   
   **Verification:**
   - **Inspection:** The refusal reason reported for `(True if x > 0 else None) 
and (x > 0)` and for `(x > 0) and None` is grammatical and states the 
conditions the gate checks.



##########
python/pyspark/sql/tests/test_udf_transpile_unit.py:
##########
@@ -549,39 +550,479 @@ def gte_zero(x):
                     self.assertEqual(row_lte[0], lte_expected)
                     self.assertEqual(row_gte[0], gte_expected)
 
-    def test_udf_transpile_chained_comparison_falls_back(self):
-        # ``a < b < c`` is a chained comparison: Python evaluates it as
-        # ``(a < b) and (b < c)``. The transpiler refuses chained Compare
-        # nodes (``len(ops) != 1``) and must fall back to interpreted Python.
-        import warnings as _warnings
+    def test_udf_transpile_chain_short_circuits(self):
+        # THE test for the chained lowering. Python's chain short-circuits: 
when
+        # ``a < b`` is false, ``b < c`` is never evaluated, so a NULL ``c`` 
cannot
+        # raise. The chain's CASE WHEN only reaches a later link once every 
earlier
+        # one is true, so the fold matches. Nullable *columns* are required: a
+        # literal `None` has no column category, so `1 < 0 < None` just falls 
back.
+        #
+        # Both of `CaseWhen`'s laziness implementations are exercised: 
`doGenCode`
+        # under the default FALLBACK factory mode, and `eval` under NO_CODEGEN.
+        # `spark.sql.codegen.wholeStage=false` is NOT enough for the latter -- 
it
+        # disables whole-stage fusion, but expressions are still compiled 
through
+        # the codegen factory, so `doGenCode` runs either way. Survival 
through the
+        # OPTIMIZER is separate; see 
test_udf_transpile_chain_survives_optimizer.
+        B = BooleanType()
+        chain3 = lambda a, b, c: a < b < c  # noqa: E731
+        chain4 = lambda a, b, c, d: a < b < c < d  # noqa: E731
+        abc, abcd = "a long, b long, c long", "a long, b long, c long, d long"
+        for factory_mode in ("FALLBACK", "NO_CODEGEN"):
+            conf = {"spark.sql.codegen.factoryMode": factory_mode}
+            with self.subTest(factory_mode=factory_mode), self.sql_conf(conf):
+                # An earlier link is false, so the NULL in a later one is never
+                # evaluated -- from the first link, and from an interior one.
+                self.assertEqual(self._vals(chain3, B, abc, [(1, 0, None)]), 
[False])
+                self.assertEqual(self._vals(chain4, B, abcd, [(1, 2, 1, 
None)]), [False])
+                # ... but when every earlier link IS true the last one is 
reached
+                # and its NULL guard fires, exactly as Python raises TypeError.
+                with self.assertRaisesRegex(Exception, "cannot compare NULL"):
+                    self._vals(chain3, B, abc, [(0, 1, None)])
+                with self.assertRaisesRegex(Exception, "cannot compare NULL"):
+                    self._vals(chain4, B, abcd, [(1, 2, 3, None)])
+
+    def test_udf_transpile_chain_survives_optimizer(self):
+        # A chain folds to a sequential CASE WHEN, and so do the `and` / `or` 
of a
+        # body holding a chain or a comparison over a non-basic operand. That 
fold
+        # is atomic to `splitConjunctivePredicates` and 
`BooleanSimplification`;
+        # an `&` / `|` fold lets BooleanSimplification move a later operand's 
NULL
+        # guard ahead of the operands that gate it, or drop one, as it still 
does
+        # for the `and` / `or` bodies that keep `&` / `|` (see the module
+        # docstring). Each body must return Python's answer, or raise like
+        # Python, fully lowered, under generated and interpreted evaluation.
+        abc = "a long, b long, c long"
+        # Common factor: `(p && g) || (q && g) => g && (p || q)` hoists the 
shared
+        # guarded operand to the front, where its NULL raises.
+        factor_chains = lambda a, b, c, d: (a < b < c) or (d < b < c)  # noqa: 
E731
+
+        def factor_and(a, b):
+            return (0 <= a <= 10 and b > 0) or (20 <= a <= 30 and b > 0)
+
+        def factor_nested(a, b, c):
+            return ((b > 0 and a > 0) or (c > 0 and a > 0)) == True  # noqa: 
E712
+
+        # Absorption: `(p && g) || g => g` drops the guard in `p`, returning 
True
+        # where Python raises.
+        absorb_chain = lambda a, b, c: (a < b < c) or (b < c)  # noqa: E731
+        absorb_and = lambda a, b: (0 <= a <= 10 and b > 0) or (b > 0)  # noqa: 
E731
+        # (body, schema, row, Python's answer or None where Python raises 
TypeError)
+        cases = [

Review Comment:
   **Nit (P3):** Every strict `or` this test evaluates in a chain-holding body 
is probed on a row where each earlier operand is false (`factor_chains`, 
`factor_and`, `factor_nested`) or raises (`absorb_chain`, `absorb_and`), so the 
`WHEN o THEN true` branches of the `or` fold never decide a result here; 
`chain_or` runs only under loose, where it folds with `|`. If `_short_circuit` 
emitted `lit(False)` instead of `lit(stop_on)` in those branches, `(0 < a < 10) 
or (b > 0)` would return False for (5, None), where Python returns True without 
evaluating `b > 0`, and the suite would stay green. A strict row like that one, 
under both factory modes, would close the gap and also pin that the later guard 
is not evaluated.
   
   **Verification:**
   - **Regression:** Under strict null strictness and both codegen factory 
modes, an `or` in a chain-holding body whose earlier operand is true returns 
True without evaluating a later operand whose NULL guard would raise, with no 
Python evaluation node.



##########
python/pyspark/sql/transpile.py:
##########
@@ -214,17 +369,22 @@ def _is_definitely_boolean(node: ast.AST) -> bool:
     """Return True when ``node`` is statically guaranteed to produce a Python
     ``bool`` (or ``None``, which round-trips through ``coalesce``).
 
-    Used to gate ``if``/ternary lowering: we only allow the test expression
-    into Catalyst's ``when(coalesce(test, false), ...)`` form when it provably
-    produces a boolean. Everything else (bare Name, arithmetic, function calls,
-    subscript, ...) must force a fallback to interpreted Python instead of
-    silently diverging.
+    Gates ``if``/ternary tests and ``not``, and labels boolean-producing
+    expressions as the "bool" category: we only let the expression into
+    Catalyst's ``when(coalesce(test, false), ...)`` form when it provably
+    produces a boolean. ``and`` / ``or`` need more of every operand before the
+    last -- Spark's ``NULL AND false`` is ``false`` where Python's ``None and
+    False`` is ``None`` -- so those gate on the stricter
+    ``_is_never_null_boolean``. Everything else (bare Name,
+    arithmetic, function calls, subscript, ...) forces a fallback to
+    interpreted Python instead of silently diverging.

Review Comment:
   **Nit (P3):** This paragraph now says the function gates if/ternary tests 
and that everything else "forces a fallback". But `_convert_if_like` sends a 
test that fails this check through `_safe_category` and `_truthiness_col`, so 
`if x:` and `1 if x + 1 else 0` lower natively, which is what the 
`_is_never_null_boolean` docstring this change adds a few lines below says. 
Limiting the fallback to `not` and the last `and` / `or` operand removes the 
contradiction, for example:
   
   ```suggestion
       ``_is_never_null_boolean``. For ``not`` and the last ``and`` / ``or``
       operand, anything else (bare Name, arithmetic, calls, ...) falls back to
       interpreted Python; an if/ternary test takes ``_truthiness_col`` instead.
   ```
   
   **Verification:**
   - **Inspection:** The docstring no longer says a non-boolean if/ternary test 
falls back to interpreted Python and names the truthiness lowering such a test 
takes.



##########
python/pyspark/sql/transpile.py:
##########
@@ -591,6 +830,83 @@ def _lower_value_compare(
         self._null_guard_emitted = True
         return when(null_guard, raise_error(err)).otherwise(op(left_col, 
right_col))
 
+    def _fold_boolean(self, operands: List[Column], is_or: bool, atomic: bool) 
-> Column:
+        """Fold the lowered operands of an ``and`` / ``or``, or the links of a
+        chain (``is_or=False``): the sequential CASE WHEN when ``atomic``,
+        otherwise ``&`` / ``|`` (see the module docstring).
+
+        The CASE WHEN needs every operand before the last non-NULL, which
+        comparison links are only under strict null strictness. Under loose an
+        ordering link is NULL for a NULL operand, and a CASE WHEN would skip it
+        and answer from the later operands, so loose always folds with ``&`` /
+        ``|``: their three-valued logic propagates the NULL, and no ordering
+        ``raise_error`` guard is left for the optimizer to move.
+        """
+        if atomic and self._null_strictness != "loose":

Review Comment:
   **Blocking (P1):** Under `transpileNullStrictness=loose` this returns the 
`&` / `|` fold even for the chains and `and` / `or` of bodies only this change 
lowers. The docstring's reason, that no ordering `raise_error` guard is left to 
move, leaves out two lowerings that still raise there: `len()` of a parameter 
no if/ternary `is not None` narrows, and `%`, which raises DIVIDE_BY_ZERO under 
ANSI for a zero divisor. Three rules act on an `&` / `|` fold without checking 
`throwable`, so, reading the code at this head:
   
   - BooleanSimplification's common-factor elimination reduces `(0 < len(s) < 
10 and x > 0) or (x > 0)` to `x > 0`: for a NULL `s` and `x = 5` the UDF 
returns true, and a filter keeps the row, where Python raises TypeError at 
`len(s)`. `(0 < x % y < 3 and z > 0) or (z > 0)` likewise returns a value for 
`y = 0` where Python raises ZeroDivisionError.
   - Subexpression elimination hoists the twice-read `len(s)` of `s is not None 
and 0 < len(s) < 10` above the short circuit, so a generated-code projection 
fails with 'cannot call len() on NULL' where Python returns False, and `y != 0 
and 0 < x % y < 3` raises DIVIDE_BY_ZERO for `y = 0` where Python returns False.
   - A file-source scan splits the fold and prunes partitions with a conjunct 
that reads only partition columns, so `(0 < x < 10) and len(p) > 3` raises on a 
NULL partition even when every row there fails the chain.
   
   On the base branch all of these bodies hold a chain and run as interpreted 
Python. Under strict they take the sequential CASE WHEN, which none of these 
rules splits, and that fold returns the same results under loose wherever every 
operand before the last is never NULL (`s is not None`, `y != 0`). Where an 
earlier operand can be NULL, as `x > 0` over a nullable `x` can under loose, 
only falling back keeps Python's answer. The absorption case needs a redundant 
shape and the non-default setting, but wherever it is reached its result is 
silently wrong.
   
   This extends an [existing 
discussion](https://github.com/apache/spark/pull/59216#discussion_r4597548231).
   
   **Recommended change:** Under `transpileNullStrictness=loose`, make 
`_fold_boolean` choose the fold of a chain, and of an `and` / `or` in a body 
that holds a chain or a comparison over a non-basic operand, from what its 
operands can do instead of always taking `&` / `|`. Keep `&` / `|` only when no 
operand that the optimizer or a scan could drop, or evaluate on a row Python 
skips it on, holds a lowering that can raise, namely a `len()` whose argument 
is not proven non-null or a `%`: for an `and` / `or` that is any of its 
operands, since BooleanSimplification's absorption can drop even the first, and 
for a chain any operand that only later links read. Otherwise use the 
sequential CASE WHEN when every operand before the last is never NULL under 
loose (`is` / `is not`, `==` / `!=`, `not`, a boolean literal, an ordering 
comparison over constants, narrowed parameters or `len()` results, or a ternary 
or nested fold built only from these), and otherwise refuse the body so the UDF 
falls b
 ack to interpreted Python. Correct the `_fold_boolean` docstring and the 
module docstring's loose paragraph, and replace the module docstring's example 
of what exposes the open optimizer rules (`a < b and b < c`, which exposes 
neither) with one that does, such as a repeated `len(s)` operand, noting that a 
loose chain supplies such an operand on its own. Add loose-mode cases to the 
UDF transpiler unit tests. Commit bdbb6eb4acb replaced the CASE WHEN with `&` / 
`|` under loose because a NULL ordering link would be skipped, a reason that 
does not apply when every earlier operand is never NULL; 15ddee864b6 (chain 
links) and f9072281319 (`and` / `or` in newly lowered bodies) added the CASE 
WHEN fold this repair keeps under loose, so start from them.
   
   **Why this works:** The CASE WHEN puts each later operand in a branch that 
runs only once the earlier operands have not decided the result. No 
BooleanSimplification pattern matches it, so no rule factors, reorders or 
absorbs its operands; a scan keeps it as one conjunct; and subexpression 
elimination enters it only through its first condition and what all its 
branches share. So a raise-capable operand is neither dropped where Python 
evaluates it nor evaluated where Python skips it. With every earlier operand 
never NULL, no condition is NULL, so the CASE WHEN returns exactly what the 
three-valued `&` / `|` fold returns. Where an earlier operand can be NULL under 
loose, neither fold keeps both the loose NULL answer and Python's evaluation 
order, so the body falls back as it does on the base branch. Folds whose 
checked operands hold no raise-capable lowering keep `&` / `|`, where 
absorbing, reordering, hoisting or pruning with an operand cannot drop or raise 
anything Python would not
 .
   
   **Scope:** Choose the loose-mode fold of chains and of `and` / `or` in newly 
lowered bodies from operand nullability and raise capability, correct the fold 
docstrings, and add loose-mode transpiler tests.
   
   **Compatibility:** Strict-mode lowering, and loose-mode lowering of folds 
with no `len()` or `%` lowering in an `and` / `or` operand or in a chain 
operand that only later links read, stay exactly as at the head commit.
   
   **Risks:** Under loose, bodies whose `and` / `or` holds a `len()` or `%` 
lowering in any operand, or whose chain holds one in an operand that only later 
links read, and that have an operand before the last that can be NULL now fall 
back to interpreted Python, as on the base branch. That includes bodies no rule 
could break, such as `0 < x < len(s)` or `(x < len(s) < 10) and y > 0` over a 
nullable `x`, because the check looks at operands rather than at which rewrite 
applies; an `if x is not None` guard or strict mode lowers them again, and 
reverting the fold choice restores the head behavior. Loose bodies that move 
from `&` / `|` to the CASE WHEN travel through the optimizer as one predicate, 
as strict ones do, so a guard-free conjunct such as `s is not None` is no 
longer pushed below a join on its own. Under loose, an integer `+`, `-` or `*` 
that overflows under ANSI in a position Python skips can still be hoisted, as 
in the `and` spelling, and raise on a row where strict's CASE WH
 EN returns Python's answer; the repair leaves that to the documented overflow 
difference.
   
   **Constraints:** Strict null strictness keeps its sequential CASE WHEN fold, 
NULL guards and plans unchanged. Under loose, folds whose checked operands hold 
no `len()` or `%` lowering keep the `&` / `|` fold and the NULL-propagating 
results the loose-mode tests pin. The fold choice reads the same null 
strictness value the ordering comparison lowering uses, and the never-NULL 
check accepts only operands whose loose lowering cannot be NULL, so no CASE 
WHEN condition is ever NULL. Bodies the base branch already lowers keep their 
`&` / `|` fold under both strictness values. The `and` / `or` operand gate 
keeps its current checks; the loose never-NULL check is a separate test that 
only the fold choice consults.
   
   **Exclusions:**
   - For bodies the base branch already lowers, the `&` / `|` fold keeps its 
BooleanSimplification, subexpression-elimination and partition-pruning 
divergences; making those rules respect `throwable` is a separate optimizer 
change.
   - ANSI overflow in `+`, `-`, `*` and unary minus stays a documented 
difference and is not treated as a raise-capable lowering.
   
   **Success:** Under loose null strictness with generated code, `s is not None 
and 0 < len(s) < 10` returns False for a NULL `s`, `s is None or 0 < len(s) < 
10` returns True for a NULL `s` in a projection and as a filter, and `y != 0 
and 0 < x % y < 3` returns False for y = 0, each with no Python evaluation 
node. As a filter over a file-source table partitioned by a string column `p`, 
`x == 1 and 0 < len(p) < 10` stays lowered under loose and returns Python's 
answer on a NULL partition whose rows all have `x != 1`, instead of raising 
while partitions are pruned. Under loose, `x < 0 < len(s) <= 5` over a nullable 
`x`, `(0 < len(s) < 10 and x > 0) or (x > 0)` and `(0 < x < 10) and len(p) > 3` 
fall back to interpreted Python and return, or raise, as Python does, so a NULL 
`s` raises TypeError instead of returning true. Under loose, folds whose 
checked operands hold no `len()` or `%` lowering, including every body the 
existing loose-mode test pins, return the same values as before and k
 eep the `&` / `|` fold. Under strict, chains and the `and` / `or` of newly 
lowered bodies lower to the same sequential CASE WHEN as before. The 
`_fold_boolean` docstring, the module docstring's loose paragraph and its 
example of what exposes the open optimizer rules match the code.
   
   **Verification:**
   - **Regression:** Under loose null strictness, with generated and 
interpreted expression evaluation, bodies that read a `len()` of a nullable 
string or a `%` with a zero divisor in a position Python skips (an `and` after 
`s is not None`, an `or` after `s is None`, a `%` chain after `y != 0`) return 
Python's answers on the NULL or zero rows, stay lowered, and do so in a 
projection and as a filter, and as a filter over a file-source table 
partitioned by a string column `p`, `x == 1 and 0 < len(p) < 10` stays lowered 
and returns Python's answer on a NULL partition whose rows all have `x != 1`.
   - **Behavior:** Under loose null strictness, a chain or `and` / `or` that 
holds such a lowering in an `and` / `or` operand or in a chain operand only 
later links read, and that has an operand before the last that can be NULL, 
falls back to interpreted Python and returns, or raises, as Python does, 
including `x < 0 < len(s) <= 5`, the absorption shape `(0 < len(s) < 10 and x > 
0) or (x > 0)`, which raises for a NULL `s` instead of returning true, the 
common-factor shape `(0 < a < 10 and len(s) > 3) or (20 < a < 30 and len(s) > 
3)`, and `(0 < x < 10) and len(p) > 3` as a filter over a table partitioned by 
`p`.
   - **Compatibility:** Under loose null strictness the existing chain, 
negated, if/ternary-test, chain-and, chain-or and compared bodies return the 
same NULL-propagating values as their `&` / `|` spellings, and under strict 
every chain and newly lowered `and` / `or` keeps its CASE WHEN plan, 
short-circuit results and optimizer-shape results.
   - **Inspection:** The `_fold_boolean` and module docstrings state which 
loose bodies take which fold, and the module docstring's example of what 
exposes the open optimizer rules is a shape that does expose them.



##########
python/pyspark/sql/transpile.py:
##########
@@ -768,49 +1092,38 @@ def _convert_chunk(self, params: List[str], body: 
ast.AST | None) -> Column:
             case ast.BoolOp(op=op, values=values):
                 # Python `and` / `or` short-circuit and return one of the
                 # operands rather than a strict boolean. For the booleans
-                # produced by Compare / UnaryOp(Not) / nested BoolOps this
-                # maps cleanly onto Spark Column `&` / `|`. For
-                # non-boolean operands (including bare parameter names whose
-                # runtime type is unknown) the right semantics would require
-                # Python's truthiness rules (0 / "" / None / [] all
-                # falsy), which we can't faithfully reproduce without the
-                # input column types -- Spark's `&` / `|` would silently
-                # do bitwise instead. Require all operands to be statically
-                # known boolean so the caller falls back to interpreted
-                # Python rather than producing a plan whose results diverge.
-                if not all(_is_definitely_boolean(v) for v in values):
-                    raise UnsupportedOperationException(
-                        "`and` / `or` operand type is not statically known "
-                        "to be boolean; Spark's `&` / `|` are bitwise, not "
-                        "Python truthiness, so the transpiler refuses to "
-                        "lower this and the UDF falls back to interpreted "
-                        "Python"
-                    )
-                # A literal None operand short-circuits differently: Python's
-                # `None and (x > 0)` returns None regardless of x, but Spark's
-                # three-valued `null AND false` is false (and `null OR true` is
-                # true), so the lowered form diverges. `_is_definitely_boolean`
-                # accepts None for `not`/if-test contexts where coalesce 
handles
-                # it; here it must force a fallback instead.
-                if any(isinstance(v, ast.Constant) and v.value is None for v 
in values):
+                # produced by Compare / UnaryOp(Not) / nested BoolOps, this 
maps
+                # cleanly onto `&` / `|`. For non-boolean operands (including
+                # bare parameter names whose runtime type is unknown) the right
+                # semantics would need Python's truthiness rules (0 / "" / 
None /
+                # [] all falsy), which we can't reproduce without the input
+                # column types -- Spark's `&` / `|` require boolean operands.
+                #
+                # Every operand before the last must also never be NULL: 
Spark's
+                # `NULL AND false` is `false` where Python's `None and False` 
is
+                # `None`. The last is returned as it is (`true AND v` is `v`), 
so
+                # it may be NULL; a literal None there has no boolean type.
+                # TODO (SPARK-54783): lower a possibly-NULL earlier operand 
`a` by
+                # folding to `CASE WHEN coalesce(a, false) THEN rest ELSE a 
END`
+                # (`and`) / `... THEN true ELSE rest END` (`or`), which returns
+                # Python's value, instead of falling back.
+                *earlier, last = values
+                if not (
+                    all(_is_never_null_boolean(v) for v in earlier)

Review Comment:
   **Nit (P3):** The arms of `_is_never_null_boolean` that accept a boolean 
literal, a `not` and a ternary with never-NULL branches are reached only 
through refusals (`none_and`, `nullable_ternary_and`, 
`nullable_ternary_body_and`, `nullable_nested_and`). Every `and` / `or` the 
tests expect to lower has a comparison, chain or nested `and` / `or` before its 
last operand, and the hypothesis templates use comparisons only. If one of 
those arms returned False, `(not (x > 0)) and (y > 0)` or `((x > 0) if c > 0 
else (y > 0)) and (y < 9)` would fall back to interpreted Python, which the 
base branch did not do, and nothing would fail because the results would still 
match. Lowering-required cases (through `_vals`) with each of the three as an 
earlier operand would pin them.
   
   **Verification:**
   - **Regression:** `and` / `or` bodies whose earlier operand is a `not`, a 
ternary with never-NULL branches, or a boolean literal transpile with no Python 
evaluation node and return Python's answers.



##########
python/pyspark/sql/tests/test_udf_transpile_unit.py:
##########
@@ -549,39 +550,479 @@ def gte_zero(x):
                     self.assertEqual(row_lte[0], lte_expected)
                     self.assertEqual(row_gte[0], gte_expected)
 
-    def test_udf_transpile_chained_comparison_falls_back(self):
-        # ``a < b < c`` is a chained comparison: Python evaluates it as
-        # ``(a < b) and (b < c)``. The transpiler refuses chained Compare
-        # nodes (``len(ops) != 1``) and must fall back to interpreted Python.
-        import warnings as _warnings
+    def test_udf_transpile_chain_short_circuits(self):
+        # THE test for the chained lowering. Python's chain short-circuits: 
when
+        # ``a < b`` is false, ``b < c`` is never evaluated, so a NULL ``c`` 
cannot
+        # raise. The chain's CASE WHEN only reaches a later link once every 
earlier
+        # one is true, so the fold matches. Nullable *columns* are required: a
+        # literal `None` has no column category, so `1 < 0 < None` just falls 
back.
+        #
+        # Both of `CaseWhen`'s laziness implementations are exercised: 
`doGenCode`
+        # under the default FALLBACK factory mode, and `eval` under NO_CODEGEN.
+        # `spark.sql.codegen.wholeStage=false` is NOT enough for the latter -- 
it
+        # disables whole-stage fusion, but expressions are still compiled 
through
+        # the codegen factory, so `doGenCode` runs either way. Survival 
through the
+        # OPTIMIZER is separate; see 
test_udf_transpile_chain_survives_optimizer.
+        B = BooleanType()
+        chain3 = lambda a, b, c: a < b < c  # noqa: E731
+        chain4 = lambda a, b, c, d: a < b < c < d  # noqa: E731
+        abc, abcd = "a long, b long, c long", "a long, b long, c long, d long"
+        for factory_mode in ("FALLBACK", "NO_CODEGEN"):
+            conf = {"spark.sql.codegen.factoryMode": factory_mode}
+            with self.subTest(factory_mode=factory_mode), self.sql_conf(conf):
+                # An earlier link is false, so the NULL in a later one is never
+                # evaluated -- from the first link, and from an interior one.
+                self.assertEqual(self._vals(chain3, B, abc, [(1, 0, None)]), 
[False])
+                self.assertEqual(self._vals(chain4, B, abcd, [(1, 2, 1, 
None)]), [False])
+                # ... but when every earlier link IS true the last one is 
reached
+                # and its NULL guard fires, exactly as Python raises TypeError.
+                with self.assertRaisesRegex(Exception, "cannot compare NULL"):
+                    self._vals(chain3, B, abc, [(0, 1, None)])
+                with self.assertRaisesRegex(Exception, "cannot compare NULL"):
+                    self._vals(chain4, B, abcd, [(1, 2, 3, None)])
+
+    def test_udf_transpile_chain_survives_optimizer(self):
+        # A chain folds to a sequential CASE WHEN, and so do the `and` / `or` 
of a
+        # body holding a chain or a comparison over a non-basic operand. That 
fold
+        # is atomic to `splitConjunctivePredicates` and 
`BooleanSimplification`;
+        # an `&` / `|` fold lets BooleanSimplification move a later operand's 
NULL
+        # guard ahead of the operands that gate it, or drop one, as it still 
does
+        # for the `and` / `or` bodies that keep `&` / `|` (see the module
+        # docstring). Each body must return Python's answer, or raise like
+        # Python, fully lowered, under generated and interpreted evaluation.
+        abc = "a long, b long, c long"
+        # Common factor: `(p && g) || (q && g) => g && (p || q)` hoists the 
shared
+        # guarded operand to the front, where its NULL raises.
+        factor_chains = lambda a, b, c, d: (a < b < c) or (d < b < c)  # noqa: 
E731
+
+        def factor_and(a, b):
+            return (0 <= a <= 10 and b > 0) or (20 <= a <= 30 and b > 0)
+
+        def factor_nested(a, b, c):
+            return ((b > 0 and a > 0) or (c > 0 and a > 0)) == True  # noqa: 
E712
+
+        # Absorption: `(p && g) || g => g` drops the guard in `p`, returning 
True
+        # where Python raises.
+        absorb_chain = lambda a, b, c: (a < b < c) or (b < c)  # noqa: E731
+        absorb_and = lambda a, b: (0 <= a <= 10 and b > 0) or (b > 0)  # noqa: 
E731
+        # (body, schema, row, Python's answer or None where Python raises 
TypeError)
+        cases = [
+            (factor_chains, abc + ", d long", (5, 1, None, 7), False),
+            (factor_and, "a long, b long", (15, None), False),
+            (factor_nested, abc, (None, -1, -1), False),
+            (absorb_chain, abc, (None, 0, 1), None),
+            (absorb_and, "a long, b long", (None, 5), None),
+        ]
+        for factory_mode in ("FALLBACK", "NO_CODEGEN"):
+            conf = {**_TRANSPILE_ON, "spark.sql.codegen.factoryMode": 
factory_mode}
+            for i, (func, schema, row, expected) in enumerate(cases):
+                with self.subTest(factory_mode=factory_mode, case=i), 
self.sql_conf(conf):
+                    df = self.spark.createDataFrame([row], schema)
+                    projected = df.select(self._transpiled_udf(func, 
BooleanType())(*df.columns))
+                    self.assertEqual(0, self._eval_python_count(projected), 
"must stay lowered")
+                    if expected is None:
+                        with self.assertRaisesRegex(Exception, "cannot compare 
NULL"):
+                            projected.collect()
+                    else:
+                        self.assertEqual([expected], [r[0] for r in 
projected.collect()])
 
-        from pyspark.sql.types import StructField, StructType
+        # A chain as a filter over an Aggregate: the group (b=1, c=NULL, sa=6) 
has
+        # `sa < b` false, so Python never touches `b < c`. Since SPARK-60633 
an `&`
+        # fold passes this too; it pins the chain over an aggregate.
+        from pyspark.sql.functions import sum as sum_
+
+        with self.sql_conf(_TRANSPILE_ON):
+            chain_over_agg = lambda sa, b, c: sa < b < c  # noqa: E731
+            udf = self._transpiled_udf(chain_over_agg, BooleanType())
+            agg = (
+                self.spark.createDataFrame([(1, 1, None), (5, 1, None), (2, 2, 
3)], abc)
+                .groupBy("b", "c")
+                .agg(sum_("a").alias("sa"))
+            )
+            filtered = agg.filter(udf("sa", "b", "c"))
+            self.assertEqual([], filtered.select("b", "c").collect())
+            self.assertEqual(0, self._eval_python_count(filtered), "chain must 
stay lowered")
+
+    def test_udf_transpile_and_or_fold_choice(self):
+        # Only a body that holds a chain or a comparison over a non-basic 
operand
+        # takes the CASE WHEN fold for its `and` / `or`; every other body keeps
+        # `&` / `|`, and with it per-conjunct pushdown.
+        import ast as _ast
 
-        def chained(x):
-            return 0 < x < 10
+        from pyspark.sql.transpile import _needs_atomic_boolops
 
-        schema = StructType([StructField("a", LongType(), nullable=False)])
-        with self.sql_conf(
-            {
-                "spark.sql.experimental.optimizer.transpilePyUDFs": True,
-                "spark.sql.ansi.enabled": True,
-            }
+        for src, atomic in [
+            ("a > 0 and c > 0", False),
+            ("(a == 1 or a == 2) and not (c < 0)", False),
+            ("(0 < a < 10) and c > 0", True),
+            ("((a > 0 and c > 0) or c > 1) == True", True),
+            ("(a if c > 0 else 1) == 1 and c > 0", True),
+        ]:
+            with self.subTest(src=src):
+                self.assertEqual(atomic, _needs_atomic_boolops(_ast.parse(src, 
mode="eval")))
+
+        df = self.spark.createDataFrame([(1, 2)], "a long, c long")
+        with self.sql_conf(_TRANSPILE_ON):
+            plain = lambda a, c: a > 0 and c > 0  # noqa: E731
+            chained = lambda a, c: (0 < a < 10) and c > 0  # noqa: E731
+            for func, splittable in [(plain, True), (chained, False)]:
+                udf = self._transpiled_udf(func, BooleanType())
+                plan = self._optimized_plan(df.select(udf("a", "c")))
+                self.assertEqual(splittable, " AND " in plan, plan)
+
+    def test_udf_transpile_boolop_short_circuits(self):
+        # The `and` / `or` counterpart of the chain short-circuit: a NULL 
guard in
+        # the second operand must not fire when the first already decided the
+        # result.
+        def both_positive(a, c):
+            return a > 0 and c > 0
+
+        def either_positive(a, c):
+            return a > 0 or c > 0
+
+        # Under both factory modes, so `And` / `Or`'s `doGenCode` and `eval`
+        # laziness are both covered (see 
test_udf_transpile_chain_short_circuits).
+        B, schema = BooleanType(), "a long, c long"
+        for factory_mode in ("FALLBACK", "NO_CODEGEN"):
+            conf = {"spark.sql.codegen.factoryMode": factory_mode}
+            with self.subTest(factory_mode=factory_mode), self.sql_conf(conf):
+                self.assertEqual(self._vals(both_positive, B, schema, [(-5, 
None)]), [False])
+                self.assertEqual(self._vals(either_positive, B, schema, [(5, 
None)]), [True])
+
+        # The same across a join, with the NULL operand entirely on the right
+        # side: the regression test for SPARK-58627. Before `RaiseError` 
overrode
+        # `Expression.throwable`, `splitConjunctivePredicates` decomposed the
+        # `And` and `PushPredicateThroughJoin` pushed the guard to one side of 
the
+        # join, where it fired on rows Python short-circuits past.
+        # BooleanSimplification and subexpression elimination, listed in the
+        # module docstring, remain open. No AQE and no broadcast, so the
+        # pushed-down guard either exists or does not, rather than racing AQE
+        # eliminating the empty join.
+        deterministic = {
+            **_TRANSPILE_ON,
+            "spark.sql.adaptive.enabled": False,
+            "spark.sql.autoBroadcastJoinThreshold": -1,
+        }
+        with self.sql_conf(deterministic):
+            and_udf = self._transpiled_udf(both_positive, B)
+            left = self.spark.createDataFrame([(1, -5)], "k long, a long")
+            right = self.spark.createDataFrame([(1, None)], "k long, c long")
+            joined = left.join(right, "k")
+            # Results alone do not prove the lowering ran -- interpreted Python
+            # returns the same -- so also assert zero EvalPython nodes.
+            joined_select = joined.select(and_udf("a", "c"))
+            self.assertEqual([False], [r[0] for r in joined_select.collect()])
+            self.assertEqual(0, self._eval_python_count(joined_select), 
"joined select lowered")
+            filtered = joined.filter(and_udf("a", "c"))
+            self.assertEqual([], filtered.select("k").collect())
+            self.assertEqual(0, self._eval_python_count(filtered), "joined 
filter lowered")
+
+    def test_udf_transpile_chain_operator_mix_and_eq_nulls(self):
+        # Mixed operators in one chain, and `x == y == z` over every NULL 
pattern.
+        # Equality never raises in Python (`None == None` is True, `None == 0` 
is
+        # False), so every pattern has a defined answer to match exactly.
+        B = BooleanType()
+        chained_eq = lambda a, b, c: a == b == c  # noqa: E731
+
+        # (a, b, c, expected) -- every NULL pattern plus value cases.
+        eq_cases = [
+            (None, None, None, True),
+            (None, None, 1, False),
+            (None, 1, None, False),
+            (None, 1, 2, False),
+            (1, None, None, False),
+            (1, None, 2, False),
+            (1, 2, None, False),
+            (1, 1, None, False),
+            (1, 1, 1, True),
+            (1, 1, 2, False),
+            (1, 2, 3, False),
+        ]
+        self.assertEqual(
+            self._vals(chained_eq, B, "a long, b long, c long", [c[:3] for c 
in eq_cases]),
+            [c[3] for c in eq_cases],
+            "a == b == c over the NULL patterns",
+        )
+
+        # Operator mixes, on non-NULL rows so the ordering guards stay quiet.
+        lt_eq = lambda a, b, c: a < b == c  # noqa: E731
+        eq_lt = lambda a, b, c: a == b < c  # noqa: E731
+        gt_gte = lambda a, b, c: a > b >= c  # noqa: E731
+        lte_lte = lambda a, b, c: a <= b <= c  # noqa: E731
+        four_ops = lambda a, b, c, d, e: a < b < c < d < e  # noqa: E731
+        for label, func, rows, expected in [
+            ("a < b == c", lt_eq, [(1, 2, 2), (1, 2, 3), (2, 1, 1)], [True, 
False, False]),
+            ("a == b < c", eq_lt, [(1, 1, 2), (1, 1, 0), (1, 2, 3)], [True, 
False, False]),
+            ("a > b >= c", gt_gte, [(3, 2, 2), (3, 2, 5), (1, 2, 2)], [True, 
False, False]),
+            ("a <= b <= c", lte_lte, [(1, 1, 2), (1, 2, 2), (2, 1, 3)], [True, 
True, False]),
+        ]:
+            with self.subTest(func=label):
+                self.assertEqual(
+                    self._vals(func, B, "a long, b long, c long", rows), 
expected, label
+                )
+        self.assertEqual(
+            self._vals(
+                four_ops,
+                B,
+                "a long, b long, c long, d long, e long",
+                [(1, 2, 3, 4, 5), (1, 2, 3, 5, 4)],
+            ),
+            [True, False],
+            "a chain of four operators is well under the cap and must 
transpile",
+        )
+
+    def test_udf_transpile_comparison_fallbacks(self):
+        # Comparison forms the transpiler must REFUSE. Each case asserts both 
that
+        # nothing transpiled and that a query using the UDF still returns 
Python's
+        # answer. The second half matters because an option that survives is
+        # type-checked by CheckAnalysis as a child of TranspiledPythonUDF: a
+        # half-refused form would fail the whole query rather than fall back, 
so
+        # "did not transpile" alone is not enough to prove the fallback works.
+        #
+        # `in` / `not in` are refused wholesale, so those cases all take the 
same
+        # branch; they are kept because the reasons differ. `in` on a str is
+        # substring containment rather than equality, a container of runtime
+        # values would need runtime NULL analysis, and `in` can appear as a 
link
+        # in a chain (`a < b in (1, 2)` is one Compare), which the refusal also
+        # covers. Membership needs its own NULL analysis and is deferred to its
+        # own ticket (SPARK-56925 is the unrelated bare-`if` truthiness work).
+        str_in = lambda x: x in "abc"  # noqa: E731
+        runtime_in = lambda x, y: x in (y, 2)  # noqa: E731
+        chained_in = lambda a, b: a < b in (1, 2)  # noqa: E731
+        # Short-circuits for non-positive inputs.
+        cross_chain = lambda x: 0 < x < "z"  # noqa: E731
+        # Boolean bodies declared LongType return NULL through interpreted 
Python.
+        chain_long_rt = lambda x: 0 < x < 10  # noqa: E731
+        in_long_rt = lambda x: x in (1, 2)  # noqa: E731
+
+        B, L = BooleanType(), LongType()
+        # (func, return type, schema, rows, what interpreted Python produces)
+        cases = [
+            (str_in, B, "a string", [("b",), ("z",)], [True, False]),
+            (runtime_in, B, "a long, b long", [(1, 1), (3, 5)], [True, False]),
+            (chained_in, B, "a long, b long", [(0, 1), (1, 0)], [True, False]),
+            (cross_chain, B, "a long", [(0,)], [False]),
+            (chain_long_rt, L, "a long", [(0,)], [None]),
+            (in_long_rt, L, "a long", [(0,)], [None]),
+        ]
+        with self.sql_conf(_TRANSPILE_ON):
+            for i, (func, return_type, schema, rows, expected) in 
enumerate(cases):
+                with self.subTest(case=i):
+                    pudf, _ = self._fallback_reason(func, return_type)
+                    df = self.spark.createDataFrame(rows, schema)
+                    self.assertEqual(
+                        [r[0] for r in 
df.select(pudf(*df.columns)).collect()], expected
+                    )
+
+    def test_udf_transpile_boolean_body_requires_boolean_return_type(self):
+        # A comparison body is boolean whatever its operands look like, so it 
must
+        # not satisfy a numeric declared return type. `_is_definitely_boolean` 
says
+        # False for a comparison over a ternary / comparison / boolean op (it 
also
+        # demands basic-type operands), and those used to fall through 
`_category`'s
+        # numeric catch-all: `_transpile_from_ast` then accepted `LongType` 
and the
+        # option returned `cast(<boolean> as bigint)` -- 1 or 0 -- where the
+        # interpreted path returns NULL. `_category` now classifies every
+        # `ast.Compare` as "bool" directly.
+        def ternary_compare(c, x, y):
+            return (x if c > 0 else y) == 1
+
+        def eq_true(a, b):
+            return (a < b) == True  # noqa: E712
+
+        def compare_of_compares(a, b, c):
+            return (a < b) <= (b < c)
+
+        cases = [
+            (ternary_compare, "c long, x long, y long", (1, 1, 9)),
+            (eq_true, "a long, b long", (1, 2)),
+            (compare_of_compares, "a long, b long, c long", (1, 2, 3)),
+        ]
+        for func, schema, row in cases:
+            with self.subTest(func=func.__name__), 
self.sql_conf(_TRANSPILE_ON):
+                # Declared LongType it falls back, and the interpreted path
+                # returns NULL for a bool.
+                pudf, _ = self._fallback_reason(func, LongType())
+                df = self.spark.createDataFrame([row], schema)
+                self.assertEqual([None], [r[0] for r in 
df.select(pudf(*df.columns)).collect()])
+                # Declared BooleanType it runs natively and keeps its NULL 
guard.
+                self.assertEqual(self._vals(func, BooleanType(), schema, 
[row]), [func(*row)])
+                with self.assertRaisesRegex(Exception, "cannot compare NULL"):
+                    self._vals(func, BooleanType(), schema, [(None, *row[1:])])
+
+    def test_udf_transpile_lowering_caps(self):
+        # The bounds on comparison lowering: the per-chain operator cap, and 
the
+        # materialized size of everything one application of the UDF builds.
+        import ast as _ast
+
+        from pyspark.sql.transpile import (
+            _MAX_COMPARISON_OPS,
+            _MAX_MATERIALIZED_WEIGHT,
+            CatalystTranspiler,
+            _materialized_weight,
+        )
+
+        weight_msg = f"more than {_MAX_MATERIALIZED_WEIGHT}"
+
+        def weight(src):
+            return _materialized_weight(_ast.parse(src, mode="eval").body)
+
+        def build(src, params="x"):
+            func = self._function_from_source(f"def f({params}):\n    return 
{src}\n")
+            return self._udf_and_warnings(func, BooleanType())
+
+        def chain(n):
+            # n operators over n + 1 operands: x < 0 < 1 < ... < n - 1
+            return " < ".join(["x"] + [str(i) for i in range(n)])
+
+        def right_nested(depth, leaf="(x < 0)", op="<"):
+            # ONE operand of a single comparison per level: 2d + 1 links but 
~2^d
+            # materialized nodes, since a link reads each operand Column twice
+            # (four times for `==`) and the JVM converter does not memoize.
+            src = leaf
+            for _ in range(depth):
+                src = f"{leaf} {op} ({src})"
+            return src
+
+        def chain_nested(depth):
+            src = "(x < 0)"
+            for _ in range(depth):
+                src = f"((x < 0) < {src} < (x < 0))"
+            return src
+
+        lowers = [
+            chain(_MAX_COMPARISON_OPS),
+            right_nested(2),
+            chain_nested(2),
+            # One level over a ternary.
+            "(x < 0) < ((x < 1) if x > 0 else (x < 2))",
+            # `is None` reads only its subject, so an identity nest stays 
linear.
+            "(" * 20 + "x < 0" + ") is None" * 20,
+        ]
+        # The nest routed through a ternary: its Column is read as often as any
+        # other operand, in each of its three positions.
+        ternary_nests = []
+        for shape in (
+            "(x < 0) {op} (True if ({inner}) else False)",
+            "(x < 0) {op} (({inner}) if x > 0 else (x < 0))",
+            "(x < 0) {op} ((x < 0) if x > 0 else ({inner}))",
         ):
-            with _warnings.catch_warnings(record=True) as caught:
-                _warnings.simplefilter("always")
-                pudf = UserDefinedFunction(chained, BooleanType())
-            self.assertEqual([], pudf.transpiled, "chained comparison must NOT 
transpile")
-            fallback = [
-                w
-                for w in caught
-                if "Unable to transpile" in str(w.message) or "Errors 
encountered" in str(w.message)
-            ]
-            self.assertTrue(fallback, "expected a fallback warning")
-            for value, expected in [(5, True), (0, False), (10, False), (-3, 
False)]:
-                with self.subTest(value=value):
-                    df = self.spark.createDataFrame([Row(a=value)], 
schema=schema)
-                    [row] = df.select(pudf("a")).collect()
-                    self.assertEqual(row[0], expected)
+            for op in ("<", "=="):
+                src = "(x < 0)"
+                for _ in range(20):
+                    src = shape.format(op=op, inner=src)
+                ternary_nests.append(src)
+        # Modulo reads its divisor five times and `len` its argument twice.
+        modulo = "x"
+        for _ in range(10):
+            modulo = f"x % ({modulo})"
+        too_heavy = [
+            right_nested(20),
+            right_nested(20, "(x == 1)", "=="),
+            chain_nested(10),
+            *ternary_nests,
+            f"({modulo}) > 0",
+        ]
+        with self.sql_conf(_TRANSPILE_ON):
+            for src in lowers:
+                with self.subTest(src=src[:40]):
+                    u, reasons = build(src)
+                    self.assertTrue(u.transpiled, reasons)
+            u, reasons = build(chain(_MAX_COMPARISON_OPS + 1))
+            self.assertEqual([], u.transpiled)
+            self.assertIn("operators", reasons)
+            for src in too_heavy:
+                with self.subTest(src=src[:40]):
+                    u, reasons = build(src)
+                    self.assertEqual([], u.transpiled)
+                    self.assertIn(weight_msg, reasons)
+
+            # A NaN-guarded `==` reads each operand four times and `len` its
+            # argument twice. Each body has annotated parameters, so one 
option:
+            # charged a read less it would weigh under the bound and lower.
+            nan_nest = "x == z"
+            for _ in range(7):
+                nan_nest = f"(x if ({nan_nest}) else y) == z"
+            len_nest = f"len('a' if ({right_nested(9)}) else 'b') > 0"
+            for src, params in [
+                (nan_nest, "x: float, y: float, z: float"),

Review Comment:
   **Nit (P3):** `_OPERAND_READS` charges `!=` four reads (transpile.py:240), 
because `_lower_eq` emits the same reads for `!=` as for `==`, but this case 
and the bound's other tests use only `==`. By the PR's own 
`_materialized_weight`, the same seven-level nest written with `!=` over these 
float parameters weighs 502,444, and 3,834 if the `ast.NotEq` entry is dropped 
or charged the default two reads. That is under the bound with one option, so 
the nest would lower and expand as about 4^d on every application of the UDF, 
outside `_transpile_func`'s fallback, with every test still passing. Running 
this nest for both `==` and `!=` would pin the charge.
   
   **Verification:**
   - **Regression:** A seven-level NaN-guarded `!=` nest over float parameters 
is refused with the materialized-weight message, as the `==` nest is.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to