Github user davies commented on the pull request:

    https://github.com/apache/spark/pull/6762#issuecomment-119671887
  
    @chenghao-intel Thanks for working on this, it's in good shape, left some 
minor comments.
    
    This is a question about how we define the functions for DataFrame, i'd 
like to have a general one and some convenient ones. For example:
    ```
    // this is the general one, could work well for all the cases
    // repeat(col("name"), lit(123)))
    // repeat(lit("a"), col("number"))
    def repeat(col: Column, times: Column)
    // this is the convenient one
    // repeat("name", 123)
    def repeat(colName: String, times: Int)
    ```
    
    This could be an off-topic question, we could revisit it later, before 1.5 
release.


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