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

    https://github.com/apache/spark/pull/7709#discussion_r35987129
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
    @@ -1718,6 +1718,18 @@ object functions {
       def ascii(e: Column): Column = Ascii(e.expr)
     
       /**
    +   * Translate any character in the srcString by a character in 
replaceString.
    +   * The characters in replaceString is corresponding to the characters in 
matchingString.
    +   * The translate will happen when any character in the string matching 
with the character
    +   * in the matchingString.
    +   *
    +   * @group string_funcs
    +   * @since 1.5.0
    +   */
    +  def translate(srcString: Column, matchingString: Column, replaceString: 
Column): Column =
    --- End diff --
    
    Should we use String for matching and replace, instead of Column?


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