We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a47d52d commit 334df23Copy full SHA for 334df23
1 file changed
src/paimon/core/mergetree/write_buffer.cpp
@@ -53,8 +53,7 @@ Status WriteBuffer::Write(std::unique_ptr<RecordBatch>&& moved_batch) {
53
std::unique_ptr<RecordBatch> batch = std::move(moved_batch);
54
PAIMON_ASSIGN_OR_RAISE_FROM_ARROW(std::shared_ptr<arrow::Array> arrow_array,
55
arrow::ImportArray(batch->GetData(), value_type_));
56
- auto value_struct_array =
57
- arrow::internal::checked_pointer_cast<arrow::StructArray>(arrow_array);
+ auto value_struct_array = std::dynamic_pointer_cast<arrow::StructArray>(arrow_array);
58
if (value_struct_array == nullptr) {
59
return Status::Invalid("invalid RecordBatch: cannot cast to StructArray");
60
}
0 commit comments