diff --git a/src/paimon/core/table/table.cpp b/src/paimon/core/table/table.cpp index bba5aa150..241b0e339 100644 --- a/src/paimon/core/table/table.cpp +++ b/src/paimon/core/table/table.cpp @@ -28,6 +28,7 @@ #include #include "arrow/c/bridge.h" +#include "arrow/compute/initialize.h" #include "fmt/format.h" #include "paimon/catalog/catalog.h" #include "paimon/commit_context.h" @@ -1074,6 +1075,7 @@ Result> NewFormatTableRead(const std::shared_ptr
> TableRead::Create(std::unique_ptr ctx) { + PAIMON_RETURN_NOT_OK_FROM_ARROW(arrow::compute::Initialize()); std::shared_ptr context = std::move(ctx); if (context == nullptr) { return Status::Invalid("read context is null pointer");