[ 
https://issues.apache.org/jira/browse/ARROW-6817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henri Gough closed ARROW-6817.
------------------------------
    Resolution: Invalid

> dynamic_cast fails on Mac C++ 
> ------------------------------
>
>                 Key: ARROW-6817
>                 URL: https://issues.apache.org/jira/browse/ARROW-6817
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 0.15.0
>         Environment: OSX Clang9 Conda pyarrow package 0.15, also tried with 
> 14, 14.1.
>            Reporter: Henri Gough
>            Priority: Minor
>
> this dynamic_cast fails for me on Mac using Clang9. Was originally trying to 
> use TupleFromTable stl function.  Though, I'm not sure how the tests pass. 
> Maybe because they run in Release with NDEBUG
> {code:java}
> using namespace arrow;
> std::shared_ptr<Array> arrptr;        
> {
> auto builder = Int64Builder();            
> auto st = builder.AppendValues(std::vector<std::int64_t>{1, 2, 3, 45});
> auto fst = builder.Finish(&arrptr);        
> }        
> std::cout << std::is_polymorphic<FlatArray>::value << std::endl;
> std::cout << std::is_polymorphic<Int64Array>::value << std::endl;
> std::cout << std::is_base_of<Array, FlatArray>::value << std::endl;
> std::cout << std::is_base_of<FlatArray, Int64Array>::value << std::endl;
> const auto& iarr = static_cast<const Int64Array&>(*arrptr);
> {code}
>    



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to