bkietz commented on a change in pull request #10557: URL: https://github.com/apache/arrow/pull/10557#discussion_r670730425
########## File path: cpp/src/arrow/compute/kernel_test.cc ########## @@ -468,15 +468,28 @@ TEST(KernelSignature, MatchesInputs) { } TEST(KernelSignature, VarArgsMatchesInputs) { - KernelSignature sig({int8()}, utf8(), /*is_varargs=*/true); - - std::vector<ValueDescr> args = {int8()}; - ASSERT_TRUE(sig.MatchesInputs(args)); - args.push_back(ValueDescr::Scalar(int8())); - args.push_back(ValueDescr::Array(int8())); - ASSERT_TRUE(sig.MatchesInputs(args)); - args.push_back(int32()); - ASSERT_FALSE(sig.MatchesInputs(args)); + { + KernelSignature sig({int8()}, utf8(), /*is_varargs=*/true); + + std::vector<ValueDescr> args = {int8()}; + ASSERT_TRUE(sig.MatchesInputs(args)); + args.push_back(ValueDescr::Scalar(int8())); + args.push_back(ValueDescr::Array(int8())); + ASSERT_TRUE(sig.MatchesInputs(args)); + args.push_back(int32()); + ASSERT_FALSE(sig.MatchesInputs(args)); + } + { + KernelSignature sig({int8(), utf8()}, utf8(), /*is_varargs=*/true); Review comment: Thanks for working this out -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org