| 578 | |
| 579 | template <typename InType, typename OutType> |
| 580 | inline void ConvertIntegerWithNulls(const PandasOptions& options, |
| 581 | const ChunkedArray& data, OutType* out_values) { |
| 582 | for (int c = 0; c < data.num_chunks(); c++) { |
| 583 | const auto& arr = *data.chunk(c); |
| 584 | const InType* in_values = GetPrimitiveValues<InType>(arr); |
| 585 | // Upcast to double, set NaN as appropriate |
| 586 | |
| 587 | for (int i = 0; i < arr.length(); ++i) { |
| 588 | *out_values++ = |
| 589 | arr.IsNull(i) ? static_cast<OutType>(NAN) : static_cast<OutType>(in_values[i]); |
| 590 | } |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | template <typename T> |
| 595 | inline void ConvertIntegerNoNullsSameType(const PandasOptions& options, |
nothing calls this directly
no test coverage detected