Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
11
Task/Collections/DuckDB/collections.duckdb
Normal file
11
Task/Collections/DuckDB/collections.duckdb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
create or replace function toset(l) as
|
||||
array_sort(list_distinct(l));
|
||||
|
||||
create or replace function array_intersection(a,b) as
|
||||
array_filter(a, x -> array_contains(b, x));
|
||||
|
||||
create or replace function set_union(a,b) as
|
||||
toset(toset(a) || toset(b)));
|
||||
|
||||
create or replace function set_intersection(a,b) as
|
||||
array_intersection(toset(a),toset(b));
|
||||
Loading…
Add table
Add a link
Reference in a new issue