public class StrToArrayDouble extends Object implements org.apache.spark.sql.api.java.UDF1<String,Double[]>
Take as input a STRING and return a Scala WrappedArray<Double> object
The input String should be in the following format: [1.0, 2.0, 5, 6.0]
The result of the above input String should be:
WrappedArray(1.0, 2.0, 5, 6.0) of type Double
Example in a query Statement:
SELECT your_registered_function_name('[1, 2, 3, 4.0]')
| Constructor and Description |
|---|
StrToArrayDouble() |
Copyright © 2023. All rights reserved.