-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Minor: remove duplicated array_replace
tests
#8066
Conversation
select array_replace(make_array([1, 2, 3], [4, 5, 6], [5, 5, 5], [4, 5, 6], [7, 8, 9]), [4, 5, 6], [1, 1, 1]), array_replace(make_array([1, 3, 2], [2, 3, 4], [2, 3, 4], [5, 3, 1], [1, 3, 2]), [2, 3, 4], [3, 1, 4]); | ||
select | ||
array_replace( | ||
make_array([1, 2, 3], [4, 5, 6], [5, 5, 5], [4, 5, 6], [7, 8, 9]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by rewriting with some whitespace, I think it is much easier now to see what this test is covering
I wonder what you think of this @jayzhan211 ? If you agree that this is an improvement, I can do the same for the other tests in |
Nice improvement. We should move test to slt file if possible! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alamb @jayzhan211
Which issue does this PR close?
Part of #7988
Rationale for this change
As pointed out by @jayzhan211 in #8054 (comment), sqllogictests tests are easier to maintain and also cover the logic end to end.
I was going to port the rest of the tests for
array_replace
toarray.slt
and when I went to do so I found out they were already there.What changes are included in this PR?
array_expressions.rs
array.slt
to make it clearer what is tested (and in particular all the cases are already covered)Are these changes tested?
Yes, by existing tests
Are there any user-facing changes?
No