raviston commented on PR #60372:
URL: https://github.com/apache/spark/pull/60372#issuecomment-6824695073

   LGTM, thanks. I traced each new case through `predict_batch_udf` and checked 
that each one reaches the `raise` it targets. With that `raise` disabled in 
`pyspark/ml/functions.py`, the matching test fails:
   
   | Case | `raise` it reaches |
   | --- | --- |
   | single scalar column, `[[2]]` | `Invalid input_tensor_shape for scalar 
column.` |
   | single tensor column, `[[2]]` | length check after the reshape in 
`_validate_and_transform_single_input` |
   | two tensor columns, `[[4]]` | `input_tensor_shapes must match columns` |
   | two tensor columns, `[[2], [3]]` | length check in 
`_validate_and_transform_multiple_inputs` |
   | two tensor columns, one-input model | `Multiple input columns found, ...` 
in the tensor branch |
   
   `pyspark.ml.tests.test_functions` passes locally (15 tests).
   
   Two small things in the description:
   - The path is `python/pyspark/ml/tests/test_functions.py`, not 
`pyspark/python/ml/tests/test_functions.py`.
   - The JIRA component is `Tests`, so the title tag would be `[TESTS]` rather 
than `[TEST]`.
   


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