paleolimbot commented on code in PR #41823:
URL: https://github.com/apache/arrow/pull/41823#discussion_r1666871220
##########
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:
Apologies, I was remembering a conversation from a while back discussion if
the casting behaviour for extension types should have some options attached and
forgot that this works 😬
--
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]