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


##########
python/pyspark/pipelines/spark_connect_graph_element_registry.py:
##########
@@ -79,7 +79,7 @@ def register_output(self, output: Output) -> None:
             else:
                 raise PySparkTypeError(
                     errorClass="UNSUPPORTED_PIPELINES_DATASET_TYPE",
-                    messageParameters={"output_type": type(output).__name__},
+                    messageParameters={"dataset_type": type(output).__name__},

Review Comment:
   **Nit (P3):** This rename fixes SPARK-57965, but 
`python/pyspark/errors/tests/test_errors.py` still has the `# SPARK-57965` 
entry in the `known_issues` set of 
`test_error_classes_used_in_source_are_valid`, under a comment that says to 
remove an entry once its linked issue is fixed. The guard skips every 
`UNSUPPORTED_PIPELINES_DATASET_TYPE` call in this file before checking its 
keys, so it does not check the two raises fixed here, or any raise of this 
condition added to this file later. The `# SPARK-57965` tag also keeps 
presenting the issue as open. That test is the only static check of literal 
`messageParameters` keys against their template, and unlike the new 
`SparkConnectGraphElementRegistryTests`, it runs without the Spark Connect 
dependencies.
   
   Could you delete the entry in this PR? Both raises now pass `dataset_type`, 
the template's only placeholder, so the guard should still pass without it.
   
   **Verification:**
   - **Regression:** Show that the static error-condition guard now checks both 
`UNSUPPORTED_PIPELINES_DATASET_TYPE` raise sites in the Spark Connect graph 
element registry and passes with their `dataset_type` key over the whole 
non-test PySpark source tree, and that a key changed back to `output_type` at 
either site makes it fail with the undefined message parameter error. The check 
must run without the Spark Connect test dependencies.
   - **Inspection:** Confirm that `known_issues` in the guard no longer has an 
entry or comment for SPARK-57965 and is written as `set()`, not `{}`, which 
would make it an empty dict.



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