Github user markhamstra commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14332#discussion_r71993558
  
    --- Diff: 
examples/src/main/scala/org/apache/spark/examples/ml/DataFrameExample.scala ---
    @@ -54,14 +54,13 @@ object DataFrameExample {
           }
         }
     
    -    parser.parse(args, defaultParams).map { params =>
    -      run(params)
    -    }.getOrElse {
    -      sys.exit(1)
    +    parser.parse(args, defaultParams) match {
    +      case Some(params) => run(params)
    +      case _ => sys.exit(1)
         }
    --- End diff --
    
    Oh, and the "less obvious" argument is why my opinion on `fold` with 
`Option` was rejected -- even though it is a perfectly logical and obvious 
thing to do for a functional programmer.


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

Reply via email to