Github user megatron-me-uk commented on the pull request:
https://github.com/apache/spark/pull/6262#issuecomment-117607504
OK so I have implemented an optional argument 'mode' which by default
('permissive') maintains the current behaviour. I have added two other modes:
'strict' - raises an error if it encounters a non-zero returncode
'grep' - raises an error for returncodes that are not 1 or 0
For using grep I would recommend the 'grep' mode as it is probably better
to raise an exception if grep fails for other reasons than not finding any
matches.
I wanted to update the docstring with this information but haven't yet
found an example where optional arguments are documented which I can use as a
style guide.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]