Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does DuckDB support "Create or Replace Function" kind UDF? #1374

Closed
alitrack opened this issue Feb 8, 2021 · 5 comments
Closed

Does DuckDB support "Create or Replace Function" kind UDF? #1374

alitrack opened this issue Feb 8, 2021 · 5 comments

Comments

@alitrack
Copy link
Contributor

alitrack commented Feb 8, 2021

thanks.

@hannes
Copy link
Member

hannes commented Feb 8, 2021

We do support Macro-style functions, see #1129. Does this address your use case?

@hannes hannes closed this as completed Apr 30, 2022
@jdf-id-au
Copy link

I wonder whether @alitrack meant support for the syntax CREATE OR REPLACE MACRO macro_name ..., which would match what's avaliable for VIEW. I think it'd be nicer than DROP followed by CREATE.

@seajhawk
Copy link

@jdf-id-au - What timing! I was just looking for exactly what you described.

Since it appears that it doesn't exist, I'll go ahead and use the DROP ... CREATE syntax, but I wouldn't want to use that on a database with multiple apps talking to it for fear of hitting a race condition.

@Mytherin
Copy link
Collaborator

CREATE OR REPLACE is just syntactic sugar for DROP and CREATE happening in the same transaction. Transaction isolation (as part of ACID) should prevent any race conditions as long as it is happening in the same transaction.

@seajhawk
Copy link

That makes sense. Thanks!

hawkfish added a commit to hawkfish/duckdb that referenced this issue Feb 17, 2024
Add implementations for narrow DECIMAL ordering arguments.
Mytherin added a commit that referenced this issue Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants