From 4ccbb6844767fd2e817b717b7888970305b1c714 Mon Sep 17 00:00:00 2001 From: Ankita Victor Date: Tue, 23 Apr 2024 22:07:14 +0530 Subject: [PATCH] Resolve comment --- velox/core/SimpleFunctionMetadata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/velox/core/SimpleFunctionMetadata.h b/velox/core/SimpleFunctionMetadata.h index 75ed8dcb89ab..1bc4e2dd0a9b 100644 --- a/velox/core/SimpleFunctionMetadata.h +++ b/velox/core/SimpleFunctionMetadata.h @@ -590,8 +590,8 @@ class SimpleFunctionMetadata : public ISimpleFunctionMetadata { builder.returnType(analysis.outputType); int32_t position = 0; - VELOX_CHECK_GT(ConstantChecker::getSize(), 0); for (const auto& arg : analysis.argsTypes) { + VELOX_CHECK_GT(ConstantChecker::getSize(), 0); if (ConstantChecker::isConstant[position++]) { builder.constantArgumentType(arg); } else {