From e955b4be23ce8c6374c790ffb108a041ca7d84ca Mon Sep 17 00:00:00 2001 From: Masha Basmanova Date: Mon, 25 Mar 2024 11:37:53 -0700 Subject: [PATCH] Fix incorrect std::move in ExprCompiler.cpp (#9237) Summary: Pull Request resolved: https://github.com/facebookincubator/velox/pull/9237 {F1473140094} Reviewed By: bikramSingh91 Differential Revision: D55319745 fbshipit-source-id: 86a57c5c566553c4ac7299b971f217072abcb8ac --- velox/expression/ExprCompiler.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/velox/expression/ExprCompiler.cpp b/velox/expression/ExprCompiler.cpp index dfbe08769280..7e8935378ec8 100644 --- a/velox/expression/ExprCompiler.cpp +++ b/velox/expression/ExprCompiler.cpp @@ -404,13 +404,9 @@ ExprPtr compileRewrittenExpression( trackCpuUsage); } } else if (auto call = dynamic_cast(expr.get())) { - if (auto specialForm = getSpecialForm( - config, - call->name(), - resultType, - std::move(compiledInputs), - trackCpuUsage)) { - result = specialForm; + if (auto specialForm = specialFormRegistry().getSpecialForm(call->name())) { + result = specialForm->constructSpecialForm( + resultType, std::move(compiledInputs), trackCpuUsage, config); } else if ( auto func = getVectorFunction( call->name(),