Skip to content

Commit

Permalink
fix: using static method getSingletonInstance()
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg committed Jun 1, 2023
1 parent 8666f68 commit b4cd95a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyvelox/conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace py = pybind11;
void addConversionBindings(py::module& m, bool asModuleLocalDefinitions) {
m.def("export_to_arrow", [](VectorPtr& inputVector) {
auto arrowArray = std::make_unique<ArrowArray>();
auto pool_ = PyVeloxContext::getInstance().pool();
auto pool_ = PyVeloxContext::getSingletonInstance().pool();
facebook::velox::exportToArrow(inputVector, *arrowArray, pool_);

auto arrowSchema = std::make_unique<ArrowSchema>();
Expand All @@ -45,7 +45,7 @@ void addConversionBindings(py::module& m, bool asModuleLocalDefinitions) {
inputArrowArray.attr("_export_to_c")(
reinterpret_cast<uintptr_t>(arrowArray.get()),
reinterpret_cast<uintptr_t>(arrowSchema.get()));
auto pool_ = PyVeloxContext::getInstance().pool();
auto pool_ = PyVeloxContext::getSingletonInstance().pool();
return importFromArrowAsOwner(*arrowSchema, *arrowArray, pool_);
});
}
Expand Down
1 change: 0 additions & 1 deletion pyvelox/pyvelox.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <velox/vector/DictionaryVector.h>
#include <velox/vector/FlatVector.h>
#include "folly/json.h"
#include "util.h"

#include "context.h"

Expand Down

0 comments on commit b4cd95a

Please sign in to comment.