Sparkcontext on udf

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Sparkcontext on udf

sk skk
I have registered a udf with sqlcontext , I am trying to read another parquet using sqlcontext under same udf it’s throwing null pointer exception .

Any help how to access sqlcontext inside a udf ?

Regards,
Sk