Skip to content

Commit

Permalink
use arrow stl allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
pprudhvi committed Oct 26, 2020
1 parent f136c6d commit 6e1acc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/src/arrow/stl_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace stl {

/// \brief A STL allocator delegating allocations to a Arrow MemoryPool
template <class T>
class allocator {
class allocator : public std::allocator<T> {
public:
using value_type = T;
using pointer = T*;
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/gandiva/gdv_function_stubs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <string>
#include <vector>

#include "arrow/stl_allocator.h"
#include "arrow/util/value_parsing.h"
#include "gandiva/engine.h"
#include "gandiva/exported_funcs.h"
Expand Down Expand Up @@ -94,7 +95,7 @@ bool gdv_fn_in_expr_lookup_utf8(int64_t ptr, const char* data, int data_len,
}
gandiva::InHolder<std::string>* holder =
reinterpret_cast<gandiva::InHolder<std::string>*>(ptr);
return holder->HasValue(std::string(data, data_len));
return holder->HasValue(std::string(data, data_len, ::arrow::stl::allocator<char>()));
}

int32_t gdv_fn_populate_varlen_vector(int64_t context_ptr, int8_t* data_ptr,
Expand Down

0 comments on commit 6e1acc0

Please sign in to comment.