Skip to content

Commit

Permalink
7.0.0: Regression on random function (apache#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer authored Mar 10, 2022
1 parent 4724371 commit fe20302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/gandiva/projector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ Status Projector::Make(SchemaPtr schema, const ExpressionVector& exprs,
output_fields.push_back(expr->result());
}

// For statful projection, we should not cache it.
if (cache_key.ToString().find(" rand(") == std::string::npos) {
// Instantiate the projector with the completely built llvm generator
*projector = std::shared_ptr<Projector>(
new Projector(std::move(llvm_gen), schema, output_fields, configuration));
// For statful projection, we should not cache it.
if (cache_key.ToString().find(" rand(") == std::string::npos) {
projector->get()->SetBuiltFromCache(llvm_flag);
}

Expand Down

0 comments on commit fe20302

Please sign in to comment.