Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6817

dynamic_cast fails on Mac C++

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 0.15.0
    • Fix Version/s: None
    • Component/s: C++
    • Labels:
      None
    • Environment:
      OSX Clang9 Conda pyarrow package 0.15, also tried with 14, 14.1.

      Description

      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

      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);
      

         

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hg-defunct HG (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: