list_transform applies a lambda to every element of a DuckDB list and returns a transformed list. It is useful when converting tag strings into normalized or enum-valued entries. section 10.1.7
Convert tag names into enum values
UPDATE posts SET tagEnums = list_transform(tagNames, x -> upper(x)::tag) WHERE posttypeid = 1; Each tagNames element is uppercased and cast to the tag enum before the resulting list is stored in tagEnums.
