@@ -51,69 +51,69 @@ class ColumnarRowRef : public InternalRow {
5151 }
5252
5353 int32_t GetFieldCount () const override {
54- return static_cast <int32_t >(ctx_->array_ptrs .size ());
54+ return static_cast <int32_t >(ctx_->array_vec .size ());
5555 }
5656
5757 bool IsNullAt (int32_t pos) const override {
58- return ctx_->array_ptrs [pos]->IsNull (row_id_);
58+ return ctx_->array_vec [pos]->IsNull (row_id_);
5959 }
6060
6161 bool GetBoolean (int32_t pos) const override {
62- return ColumnarUtils::GetGenericValue<arrow::BooleanType, bool >(ctx_->array_ptrs [pos],
62+ return ColumnarUtils::GetGenericValue<arrow::BooleanType, bool >(ctx_->array_vec [pos]. get () ,
6363 row_id_);
6464 }
6565
6666 char GetByte (int32_t pos) const override {
67- return ColumnarUtils::GetGenericValue<arrow::Int8Type, char >(ctx_->array_ptrs [pos],
67+ return ColumnarUtils::GetGenericValue<arrow::Int8Type, char >(ctx_->array_vec [pos]. get () ,
6868 row_id_);
6969 }
7070
7171 int16_t GetShort (int32_t pos) const override {
72- return ColumnarUtils::GetGenericValue<arrow::Int16Type, int16_t >(ctx_->array_ptrs [pos],
72+ return ColumnarUtils::GetGenericValue<arrow::Int16Type, int16_t >(ctx_->array_vec [pos]. get () ,
7373 row_id_);
7474 }
7575
7676 int32_t GetInt (int32_t pos) const override {
77- return ColumnarUtils::GetGenericValue<arrow::Int32Type, int32_t >(ctx_->array_ptrs [pos],
77+ return ColumnarUtils::GetGenericValue<arrow::Int32Type, int32_t >(ctx_->array_vec [pos]. get () ,
7878 row_id_);
7979 }
8080
8181 int32_t GetDate (int32_t pos) const override {
82- return ColumnarUtils::GetGenericValue<arrow::Date32Type, int32_t >(ctx_-> array_ptrs [pos],
83- row_id_);
82+ return ColumnarUtils::GetGenericValue<arrow::Date32Type, int32_t >(
83+ ctx_-> array_vec [pos]. get (), row_id_);
8484 }
8585
8686 int64_t GetLong (int32_t pos) const override {
87- return ColumnarUtils::GetGenericValue<arrow::Int64Type, int64_t >(ctx_->array_ptrs [pos],
87+ return ColumnarUtils::GetGenericValue<arrow::Int64Type, int64_t >(ctx_->array_vec [pos]. get () ,
8888 row_id_);
8989 }
9090
9191 float GetFloat (int32_t pos) const override {
92- return ColumnarUtils::GetGenericValue<arrow::FloatType, float >(ctx_->array_ptrs [pos],
92+ return ColumnarUtils::GetGenericValue<arrow::FloatType, float >(ctx_->array_vec [pos]. get () ,
9393 row_id_);
9494 }
9595
9696 double GetDouble (int32_t pos) const override {
97- return ColumnarUtils::GetGenericValue<arrow::DoubleType, double >(ctx_->array_ptrs [pos],
97+ return ColumnarUtils::GetGenericValue<arrow::DoubleType, double >(ctx_->array_vec [pos]. get () ,
9898 row_id_);
9999 }
100100
101101 BinaryString GetString (int32_t pos) const override {
102- auto bytes = ColumnarUtils::GetBytes<arrow::StringType>(ctx_->array_ptrs [pos], row_id_,
102+ auto bytes = ColumnarUtils::GetBytes<arrow::StringType>(ctx_->array_vec [pos]. get () , row_id_,
103103 ctx_->pool .get ());
104104 return BinaryString::FromBytes (bytes);
105105 }
106106
107107 std::string_view GetStringView (int32_t pos) const override {
108- return ColumnarUtils::GetView (ctx_->array_ptrs [pos], row_id_);
108+ return ColumnarUtils::GetView (ctx_->array_vec [pos]. get () , row_id_);
109109 }
110110
111111 Decimal GetDecimal (int32_t pos, int32_t precision, int32_t scale) const override ;
112112
113113 Timestamp GetTimestamp (int32_t pos, int32_t precision) const override ;
114114
115115 std::shared_ptr<Bytes> GetBinary (int32_t pos) const override {
116- return ColumnarUtils::GetBytes<arrow::BinaryType>(ctx_->array_ptrs [pos], row_id_,
116+ return ColumnarUtils::GetBytes<arrow::BinaryType>(ctx_->array_vec [pos]. get () , row_id_,
117117 ctx_->pool .get ());
118118 }
119119
0 commit comments