Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/15279#discussion_r100702396
--- Diff: examples/src/main/python/sort.py ---
@@ -23,9 +23,11 @@
if __name__ == "__main__":
- if len(sys.argv) != 2:
- print("Usage: sort <file>", file=sys.stderr)
- exit(-1)
+ """
+ Usage: sort <file>
+ """
+
+ filename = "../resources/people.txt" if len(sys.argv) != 2 else
sys.args[1]
--- End diff --
you probably would have one check `if len(sys.argv) > 1` and then set all
parameter in the if block - we can assume if any parameter is there the user
needs to specify all of it?
---
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]