aminghadersohi commented on code in PR #45912:
URL: https://github.com/apache/superset/pull/45912#discussion_r4458508618


##########
superset-core/src/superset_core/semantic_layers/testing.py:
##########
@@ -272,6 +290,56 @@ def test_imports_and_static_schema(
         assert completed.returncode == 0, completed.stdout + completed.stderr
 
 
+def _assert_null_placement_witness(
+    query: SemanticQuery, view: SemanticView, expected: pa.Table
+) -> None:
+    """Require NULL values of the first order key where its placement puts 
them.
+
+    The host's default chronological order asks for NULL values last; a
+    provider must honor a placement on any order key, before offset and limit.
+    The page must keep different rows from the ones the opposite placement 
would.
+    """
+    assert query.order, "null_placement fixture requires an order"
+    first: tuple[object, ...] = query.order[0]

Review Comment:
   Verified at f2dba096fa: the required secondary case rejects the 
first-key-only mutant (1 failed, 1 passed) while the original 65-test suite 
accepts it (65 passed, 4 skipped); the reference provider passes all 76 head 
conformance tests.



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