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?
v-prasare
1 year agoCommunity Support
Hi smpa01,
We are here to check whether solution provided answers your question. If you still have any additional questions please do let us know
Thanks,
Prashanth Are
MS Fabric community support
- smpa011 year agoCommunity Champion
What is the practical use case of udf in fabric then?
- AndreyBear8 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.