Skip to content

Commit

Permalink
Resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
acvictor committed Apr 23, 2024
1 parent e7f5eaf commit cb7c124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velox/core/SimpleFunctionMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,9 @@ class SimpleFunctionMetadata : public ISimpleFunctionMetadata {

builder.returnType(analysis.outputType);
int32_t position = 0;
VELOX_CHECK_GT(ConstantChecker::getSize(), 0);
for (const auto& arg : analysis.argsTypes) {
if (ConstantChecker::getSize() > 0 &&
ConstantChecker::isConstant[position++]) {
if (ConstantChecker::isConstant[position++]) {
builder.constantArgumentType(arg);
} else {
builder.argumentType(arg);
Expand Down

0 comments on commit cb7c124

Please sign in to comment.