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

More list functions #1543

Merged
merged 1 commit into from
May 17, 2023
Merged

More list functions #1543

merged 1 commit into from
May 17, 2023

Conversation

gaurav8297
Copy link
Collaborator

@gaurav8297 gaurav8297 commented May 15, 2023

  1. list_reverse_sort(list):
    Sorts the elements of the list in reverse order.

  2. list_distinct(list):
    Removes all duplicates and NULLs from a list. Does
    not preserve the original order.

  3. list_unique(list):
    Counts the unique elements of a list.

  4. list_any_value(list):
    Returns the first non-null value in the list.

@gaurav8297 gaurav8297 marked this pull request as ready for review May 15, 2023 21:24
src/function/vector_list_operation.cpp Outdated Show resolved Hide resolved
src/function/vector_list_operation.cpp Outdated Show resolved Hide resolved
src/function/vector_list_operation.cpp Outdated Show resolved Hide resolved
src/function/vector_list_operation.cpp Show resolved Hide resolved
test/test_files/tinysnb/function/list.test Show resolved Hide resolved
test/test_files/tinysnb/function/list.test Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Patch coverage: 94.27% and project coverage change: +0.02 🎉

Comparison is base (4f75391) 91.95% compared to head (ce7ed2e) 91.98%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1543      +/-   ##
==========================================
+ Coverage   91.95%   91.98%   +0.02%     
==========================================
  Files         689      696       +7     
  Lines       24672    24843     +171     
==========================================
+ Hits        22688    22852     +164     
- Misses       1984     1991       +7     
Impacted Files Coverage Δ
src/include/function/list/vector_list_operations.h 97.36% <ø> (ø)
src/function/vector_list_operation.cpp 91.43% <92.93%> (+1.11%) ⬆️
...unction/list/operations/base_list_sort_operation.h 94.87% <94.87%> (ø)
src/function/built_in_vector_operations.cpp 96.11% <100.00%> (+0.09%) ⬆️
...unction/list/operations/list_any_value_operation.h 100.00% <100.00%> (ø)
...function/list/operations/list_distinct_operation.h 100.00% <100.00%> (ø)
...tion/list/operations/list_reverse_sort_operation.h 100.00% <100.00%> (ø)
...ude/function/list/operations/list_sort_operation.h 100.00% <100.00%> (+4.65%) ⬆️
...e/function/list/operations/list_unique_operation.h 100.00% <100.00%> (ø)

... and 31 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gaurav8297 gaurav8297 force-pushed the list_functions branch 6 times, most recently from dc50d93 to b4397a4 Compare May 16, 2023 01:01
@gaurav8297 gaurav8297 force-pushed the list_functions branch 4 times, most recently from 6fe09bc to b265d8f Compare May 16, 2023 21:42
src/function/vector_list_operation.cpp Outdated Show resolved Hide resolved
1. list_reverse_sort(list)
Sorts the elements of the list in reverse order.

2. list_distinct(list)
Removes all duplicates and NULLs from a list.
Does not preserve the original order.

3. list_unique(list)
Counts the unique elements of a list.

4. list_any_value(list)
Returns the first non-null value in the list.
@gaurav8297 gaurav8297 merged commit ddb93fc into kuzudb:master May 17, 2023
7 checks passed
@gaurav8297 gaurav8297 deleted the list_functions branch May 17, 2023 00:05
@andyfengHKU andyfengHKU mentioned this pull request May 29, 2023
14 tasks
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

Successfully merging this pull request may close these issues.

None yet

2 participants