Skip to content

How to understand the 'TEMPORARY' keyword in CREATE FUNCTION statement? #3992

Answered by SteveYurongSu
ericpai asked this question in Q&A
Discussion options

You must be logged in to vote

😂 Congratulations, you found a hidden feature (or a bad design) that didn't show up in the user documentation.

At first, I wanted to support user (or session) isolation UDF based on this feature: when a user disconnects or a session breaks down, their UDFs will be deregistered automatically. But in the end, I didn't implement the feature.

And if such one exists, under cluster mode, a node will lose the UDF metadata forever after restarting, but other nodes still have it. Thus the metadata is not consistent.

Your consideration is correct. You can create a PR to remove the TEMPORARY keyword and its logic, thanks!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ericpai
Comment options

ericpai Sep 18, 2021
Collaborator Author

@jixuan1989
Comment options

@ericpai
Comment options

ericpai Sep 21, 2021
Collaborator Author

Answer selected by SteveYurongSu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants