Forum Discussion
smpa01
1 year agoCommunity Champion
RE: udf
Can you please confirm whether udfs are all session scoped and persistent udfs are not possible to create (in lakehouse) as one can in databricks catalog?
smpa01
1 year agoCommunity Champion
What is the practical use case of udf in fabric then?
AndreyBear
8 months agoAdvocate II
Can you clarify your question? I'm suspecting a terminology confusion here.
Fabric UDFs execute their code in a per-session scope, which is a good thing. Having only a single persistant instance of a UDF would be a fun way to leak session states from one call to the other. They are essentially rest-lke. You can make a UDF that acts something onto a backend/callback (aka POST) - e.g. writes data, or triggers a pipeline, etc.