davidhewitt opened a new issue, #6400:
URL: https://github.com/apache/arrow-rs/issues/6400

   **Describe the bug**
   
   Using `downcast_primitive_array` and `downcast_dictionary_array` require 
`arrow_schema` to be in scope of the expanded code.
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   1. use `arrow::downcast_primitive_array` without `arrow_schema` included as 
a direct dependency
   2. failure to compile due to expanded code using paths from `arrow_schema`
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   Compile should succeed.
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->
   
   A workaround is to manually insert something which roughly matches 
`arrow_schema` into the namespace, e.g.
   
   ```rust
       use datafusion::arrow::datatypes as arrow_schema;  // using datafusion 
facade
       downcast_primitive_array!( ... ); // ^ will now use the above-defined 
arrow_schema
   ```


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

Reply via email to