Skip to content

Commit

Permalink
[oap-native-sql] fix duplicated projector name (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo authored Aug 3, 2020
1 parent 8af2317 commit eead62a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ class TypedActionCodeGenImpl {
RETURN_NOT_OK(MakeCodeGenRegister(func_node, &node_tmp));
signature_ss << std::hex << std::hash<std::string>{}(node_tmp->GetFingerprint());
auto name = "projection_" + signature_ss.str();
for (auto index : input_index_list_) {
name += "_" + std::to_string(index);
}
auto res_field = arrow::field(name, func_node->return_type());
named_projector_ = gandiva::TreeExprBuilder::MakeExpression(func_node, res_field);
#ifdef DEBUG
Expand Down

0 comments on commit eead62a

Please sign in to comment.