|
29 | 29 | #include <avro/Generic.hh> |
30 | 30 | #include <avro/GenericDatum.hh> |
31 | 31 |
|
32 | | -#include "iceberg/arrow/arrow_error_transform_internal.h" |
33 | 32 | #include "iceberg/arrow/arrow_fs_file_io_internal.h" |
| 33 | +#include "iceberg/arrow/arrow_status_internal.h" |
34 | 34 | #include "iceberg/avro/avro_data_util_internal.h" |
35 | 35 | #include "iceberg/avro/avro_register.h" |
36 | 36 | #include "iceberg/avro/avro_schema_util_internal.h" |
@@ -75,9 +75,9 @@ class AvroWriter::Impl { |
75 | 75 | return {}; |
76 | 76 | } |
77 | 77 |
|
78 | | - Status Write(ArrowArray data) { |
| 78 | + Status Write(ArrowArray* data) { |
79 | 79 | ICEBERG_ARROW_ASSIGN_OR_RETURN(auto result, |
80 | | - ::arrow::ImportArray(&data, &arrow_schema_)); |
| 80 | + ::arrow::ImportArray(data, &arrow_schema_)); |
81 | 81 |
|
82 | 82 | for (int64_t i = 0; i < result->length(); i++) { |
83 | 83 | ICEBERG_RETURN_UNEXPECTED(ExtractDatumFromArray(*result, i, datum_.get())); |
@@ -119,7 +119,7 @@ class AvroWriter::Impl { |
119 | 119 |
|
120 | 120 | AvroWriter::~AvroWriter() = default; |
121 | 121 |
|
122 | | -Status AvroWriter::Write(ArrowArray data) { return impl_->Write(data); } |
| 122 | +Status AvroWriter::Write(ArrowArray* data) { return impl_->Write(data); } |
123 | 123 |
|
124 | 124 | Status AvroWriter::Open(const WriterOptions& options) { |
125 | 125 | impl_ = std::make_unique<Impl>(); |
|
0 commit comments