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

implement array_sample #4239

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Conversation

valkrypton
Copy link
Contributor

implement array_sample under #4153

Copy link
Member

@wowinter13 wowinter13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my perspective everything is fine
Tests are also covering empty arrays

@wowinter13 wowinter13 requested a review from a team September 9, 2024 19:29
/// # Ok(())
/// # }
/// ```
fn array_sample<Arr: ArrayOrNullableArray + SingleValue>(array:Arr,n:Integer)->Arr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test for a array_sample(NULL, 1) to check what happens on the NULL input in this function? Thanks in advance!

Copy link
Contributor

@guissalustiano guissalustiano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@weiznich weiznich added this pull request to the merge queue Sep 10, 2024
Merged via the queue into diesel-rs:master with commit 1b728d2 Sep 10, 2024
48 checks passed
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.

4 participants