HyukjinKwon commented on code in PR #49609:
URL: https://github.com/apache/spark/pull/49609#discussion_r1926265908


##########
sql/api/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -7132,7 +7132,24 @@ object functions {
     Column.fn("variant_get", v, lit(path), lit(targetType))
 
   /**
-   * Extracts a sub-variant from `v` according to `path`, and then cast the 
sub-variant to
+   * Extracts a sub-variant from `v` according to `path` column, and then cast 
the sub-variant to
+   * `targetType`. Returns null if the path does not exist. Throws an 
exception if the cast fails.
+   *
+   * @param v
+   *   a variant column.
+   * @param path
+   *   the column containing the extraction path strings. A valid path string 
should start with `$`
+   *   and is followed by zero or more segments like `[123]`, `.name`, 
`['name']`, or `["name"]`.
+   * @param targetType
+   *   the target data type to cast into, in a DDL-formatted string.
+   * @group variant_funcs
+   * @since 4.1.0

Review Comment:
   let's target 4.0.0



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to