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

    https://github.com/apache/spark/pull/22249#discussion_r213110408
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
    @@ -2459,6 +2459,26 @@ object functions {
         StringTrimLeft(e.expr, Literal(trimString))
       }
     
    +  /**
    +    * Extracts a part from a URL.
    +    *
    +    * @group string_funcs
    +    * @since 2.4.0
    +    */
    +  def parse_url(url: Column, partToExtract: String): Column = withExpr {
    --- End diff --
    
    This PR is created after this StackOverflow question: 
https://stackoverflow.com/questions/52041342/how-to-parse-url-in-spark-sqlscala/52043771
    
    I'm not sure how often it is used, however most of functions are available 
in functions object to make Scala and SQL interfaces similar. If you think it's 
useless - please let me know, I'll just close this PR


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to