Thanks, I'll check it out.
On Mon, Aug 28, 2017 at 10:22 PM Praneeth Gayam
wrote:
> You can create a UDF which will invoke your java lib
>
> def calculateExpense: UserDefinedFunction = udf((pexpense: String, cexpense:
> String) => new MyJava().calculateExpense(pexpense.toDouble,
> cexpense.toD
You can create a UDF which will invoke your java lib
def calculateExpense: UserDefinedFunction = udf((pexpense: String,
cexpense: String) => new MyJava().calculateExpense(pexpense.toDouble,
cexpense.toDouble))
On Tue, Aug 29, 2017 at 6:53 AM, purna pradeep
wrote:
> I have data in a DataFram
I have data in a DataFrame with below columns
1)Fileformat is csv
2)All below column datatypes are String
employeeid,pexpense,cexpense
Now I need to create a new DataFrame which has new column called `expense`,
which is calculated based on columns `pexpense`, `cexpense`.
The tricky part is