-
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
support LargeList
in array_prepend
and array_append
#8679
Conversation
/// Downcasts multiple arguments into a single concrete type | ||
/// $ARGS: &[ArrayRef] | ||
/// $ARRAY_TYPE: type to downcast to | ||
/// | ||
/// $returns a Vec<$ARRAY_TYPE> | ||
macro_rules! downcast_vec { | ||
($ARGS:expr, $ARRAY_TYPE:ident) => {{ | ||
$ARGS | ||
.iter() | ||
.map(|e| match e.as_any().downcast_ref::<$ARRAY_TYPE>() { | ||
Some(array) => Ok(array), | ||
_ => internal_err!("failed to downcast"), | ||
}) | ||
}}; | ||
} | ||
|
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.
Unused function
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.
looks good @Weijun-H please add comments to the disabled tests, why exactly it got disabled
5fc1910
to
24a0c11
Compare
add TODO comment for future tests
122d36f
to
2cbb397
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.
Looks good to me -- thank you @Weijun-H
Which issue does this PR close?
Parts #8185
Rationale for this change
What changes are included in this PR?
LargeList
inarray_prepend
andarray_append
ArrayAndElement
Are these changes tested?
Are there any user-facing changes?