Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/22249#discussion_r213109101
--- 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 --
When adding the functions into `object functions`, we need to check how
useful they are.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]