-
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
Implement func array_pop_front
#8142
Conversation
18b5e32
to
9e1f5e2
Compare
@alamb @jayzhan211 hi! this PR is ready for review now! : ) |
@Veeupup Would you like to try rewriting array_pop_front / back with MutableArrayData? I think it will be much easier to understand than the current slice! and list_slice! macros. |
yeah, agree with you.. to understand what slice! macro does cost me some time.. but this macro has been used for some other functions and for now implementation with |
If you also spend much time on slice!, it is a good reason for us to improve on this. |
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 @Veeupup
Please more tests with nulls and empty arrays, please try to think up any possible case to prevent bug to flow in.
And since new built in function gets introduced we need to get this documented in scalar_functions.md
and expressions.md
8b4a968
to
cb41e92
Compare
very thanks for your advice! docs have been added! and the test for empty and NULL has been already added, and you can check empty array test and NULL value test. |
Signed-off-by: veeupup <code@tanweime.com>
Signed-off-by: veeupup <code@tanweime.com>
d44ea98
to
ffc5af8
Compare
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 @Veeupup
Which issue does this PR close?
Closes #6996 .
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?