File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4
4
#include " c/rerun.h"
5
5
6
6
#include < arrow/array/array_base.h>
7
+ #include < arrow/array/util.h>
7
8
#include < arrow/buffer.h>
8
9
#include < arrow/c/bridge.h>
9
10
@@ -20,7 +21,9 @@ namespace rerun {
20
21
// which may or may not be another copy (if the collection already owns the data this is just a move).
21
22
auto length = static_cast <int64_t >(times.size ());
22
23
auto buffer = arrow_buffer_from_vector (std::move (times).to_vector ());
23
- array = std::make_shared<arrow::PrimitiveArray>(datatype, length, buffer);
24
+ auto buffers = std::vector<std::shared_ptr<arrow::Buffer>>{nullptr , buffer};
25
+ auto array_data = std::make_shared<arrow::ArrayData>(datatype, length, std::move (buffers));
26
+ array = arrow::MakeArray (array_data);
24
27
}
25
28
26
29
TimeColumn TimeColumn::from_seconds (
You can’t perform that action at this time.
0 commit comments