Hi all! I'm new to working with databases and I'm trying to figure out how to efficiently replace partial strings with duckdb. When working with normal data tables, I usually use a named vector with str_replace_all(), like this:
When I try this with a duckdb table, I get an error that "argument 'replacement' is missing, with no default", so it's not picking up the names that are supposed to be used to replace the pattern.
What would be the most efficient way to do something like when working with duckdb/databases/SQL? Some of the inputs contain regex and I'm usually matching only to partial strings, so I haven't been able to do a simple join. I'm trying to find an efficient method since I'm working with large datasets. Also if there's any good resources out there for stuff like this, please let me know!