Luka Zdravic created SPARK-59326:
------------------------------------

             Summary: Add missing ASOF JOIN match-condition type unit tests
                 Key: SPARK-59326
                 URL: https://issues.apache.org/jira/browse/SPARK-59326
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 5.0.0
            Reporter: Luka Zdravic


AsOfJoinMatchConditionTypesSuite unit-tests the MatchConditionTypes 
operand-type predicates used by ASOF JOIN analysis, but omits the 
non-orderable-type and struct field-type-mismatch cases. Those scenarios are 
currently only exercised end-to-end (golden join-asof-errors.sql) or not at 
all, with no direct unit assertion on the predicate.

Add:
   - MAP operands are invalid (not orderable);
   - ARRAY operands whose element type is non-orderable are invalid;
   - STRUCT operands with a non-orderable field are invalid;
   - positional STRUCT operands with the same field count but an incompatible 
field-type pair are rejected (currently only field-count mismatch is covered).

Test-only; no production code changes. Complements the functional coverage in 
AsOfJoinSQLSuite.

Umbrella: SPARK-59298



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to