kszucs edited a comment on pull request #10093:
URL: https://github.com/apache/arrow/pull/10093#issuecomment-822068562


   I reproduced the problem using a simple cast test from null array to a 
dictionary array:
   
   ```cpp
   TEST(Cast, FromNullToDictionary) {
     auto from = std::make_shared<NullArray>(10);
     auto to_type = dictionary(int8(), boolean());
   
     ASSERT_OK_AND_ASSIGN(auto expected, MakeArrayOfNull(to_type, 10));
     CheckCast(from, expected);
   }
   ```
   
   Somewhere `ArrayData::dictionary` gets set to nullptr or not set at all. I 
don't have a solution yet, it's a but hard to debug due to the Datum variant. 
   
   cc @bkietz 


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to