Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cpp/src/gandiva/arrow.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ static inline bool is_decimal_128(DataTypePtr type) {
return false;
}
}

static inline bool IsArrowStringLiteral(arrow::Type::type type) {
return type == arrow::Type::STRING || type == arrow::Type::BINARY;
}

} // namespace gandiva
4 changes: 0 additions & 4 deletions cpp/src/gandiva/like_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ const FunctionNode LikeHolder::TryOptimize(const FunctionNode& node) {
return node;
}

static bool IsArrowStringLiteral(arrow::Type::type type) {
return type == arrow::Type::STRING || type == arrow::Type::BINARY;
}

Status LikeHolder::Make(const FunctionNode& node, std::shared_ptr<LikeHolder>* holder) {
ARROW_RETURN_IF(node.children().size() != 2 && node.children().size() != 3,
Status::Invalid("'like' function requires two or three parameters"));
Expand Down
4 changes: 0 additions & 4 deletions cpp/src/gandiva/replace_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@

namespace gandiva {

static bool IsArrowStringLiteral(arrow::Type::type type) {
return type == arrow::Type::STRING || type == arrow::Type::BINARY;
}

Status ReplaceHolder::Make(const FunctionNode& node,
std::shared_ptr<ReplaceHolder>* holder) {
ARROW_RETURN_IF(node.children().size() != 3,
Expand Down