sohailshk opened a new issue, #41087:
URL: https://github.com/apache/beam/issues/41087

   ### What happened?
   
   Several `raise ValueError(...)` calls in `apache_beam.ml` pass a %-format 
string and its arguments as separate exception arguments, so the message is 
never formatted. For example, `ZScore.learn_one` with a two-field row raises
   
   ```
   ValueError: ('ZScore.learn_one expected univariate input, but got %s', 
'Row(x=1, y=2)')
   ```
   
   instead of `ZScore.learn_one expected univariate input, but got Row(x=1, 
y=2)`.
   
   Affected: `ml/anomaly/detectors/zscore.py`, `robust_zscore.py` and `iqr.py` 
(`learn_one` and `score_one`) and `ml/inference/vertex_ai_inference.py` (both 
errors in `_retrieve_endpoint`).
   
   Seen on master (2.79.0.dev).
   
   ### Issue Priority
   
   Priority: 3 (minor)
   
   ### Issue Components
   
   - [X] Component: Python SDK
   


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

Reply via email to