Github user oliverpierson commented on the pull request:

    https://github.com/apache/spark/pull/11553#issuecomment-193920865
  
    @thunterdb I like your suggestion. However, off the top of my head, I'm not 
sure how to make a parameter default depend on another param.  E.g.
    
    ```
    setDefault(numBuckets, 2)
    setDefault(relativeError -> min(0.1, 1.0 / (10 * $(numBuckets)))
    ```
    would always return 0.05, even if you set `numBuckets` later on.  Perhaps 
lazy evaluation could be used, but that probably entails changing `setDefault` 
to use call-by-name.  Unless somebody knows of a good way of accomplishing 
this, it might be best to just stick with 0.01 for this PR.
      


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