Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 04:53 AM
@udf(returnType=IntegerType())
def udf_function(s):
return your_function(s)
where your_function is the imported function, so you actually create a wrapper.
Also do not forget to register the udf.