| 1577 | using TypedPandasWriter<NPY_DATETIME>::TypedPandasWriter; |
| 1578 | |
| 1579 | Status CopyInto(std::shared_ptr<ChunkedArray> data, int64_t rel_placement) override { |
| 1580 | int64_t* out_values = this->GetBlockColumnStart(rel_placement); |
| 1581 | const auto& type = checked_cast<const DateType&>(*data->type()); |
| 1582 | switch (type.unit()) { |
| 1583 | case DateUnit::DAY: |
| 1584 | ConvertDatesShift<int32_t, 1LL>(*data, out_values); |
| 1585 | break; |
| 1586 | case DateUnit::MILLI: |
| 1587 | ConvertDatesShift<int64_t, 86400000LL>(*data, out_values); |
| 1588 | break; |
| 1589 | } |
| 1590 | return Status::OK(); |
| 1591 | } |
| 1592 | |
| 1593 | protected: |
| 1594 | Status Allocate() override { |
nothing calls this directly
no test coverage detected