suhuruli commented on code in PR #60464:
URL: https://github.com/apache/spark/pull/60464#discussion_r4591518799


##########
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:
   Good catch, thanks. I removed the `# SPARK-57965` entry and its comment from 
`known_issues` in `test_error_classes_used_in_source_are_valid` in 
`python/pyspark/errors/tests/test_errors.py`, so the set is now empty and 
written as `set()`. With the exemption gone, the guard walks both 
`UNSUPPORTED_PIPELINES_DATASET_TYPE` raises in `register_output` and checks 
their literal `dataset_type` key against the template, and `python/run-tests 
--testnames pyspark.errors.tests.test_errors` passes. I also confirmed the 
guard does its job now: changing either raise site back to `output_type` makes 
the test fail with the undefined message parameter error for that line, and it 
passed silently before this change because every 
`UNSUPPORTED_PIPELINES_DATASET_TYPE` raise in that file was exempted. The new 
mocked test in `test_spark_connect.py` stays as the behavioral check for the 
raised `PySparkTypeError`.



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