Skip to content

Commit 791adbb

Browse files
committed
fix cast
1 parent 9fbe44e commit 791adbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iceberg/parquet/parquet_data_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Result<std::shared_ptr<::arrow::RecordBatch>> ProjectRecordBatch(
274274
auto output_array,
275275
ProjectNestedArray(array, ::arrow::struct_(output_arrow_schema->fields()),
276276
projected_schema, projection.fields, pool));
277-
auto struct_array = internal::checked_pointer_cast<::arrow::StructArray>(output_array);
277+
auto* struct_array = internal::checked_cast<::arrow::StructArray*>(output_array.get());
278278
return ::arrow::RecordBatch::Make(output_arrow_schema, record_batch->num_rows(),
279279
struct_array->fields());
280280
}

0 commit comments

Comments
 (0)