paleolimbot commented on code in PR #41823:
URL: https://github.com/apache/arrow/pull/41823#discussion_r1665267794
##########
cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc:
##########
@@ -875,6 +895,10 @@ std::vector<std::shared_ptr<CastFunction>>
GetNumericCasts() {
auto cast_null = std::make_shared<CastFunction>("cast_null", Type::NA);
DCHECK_OK(cast_null->AddKernel(Type::DICTIONARY,
{InputType(Type::DICTIONARY)}, null(),
OutputAllNull));
+ // Explicitly allow casting extension type with null backing array to null
Review Comment:
It might be nice to extend this comment with why this has to happen (since
in general Arrow C++ won't cast extension types to their storage, even
explicitly)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]