From 0bb5b2e486f46790ba0f743f59b4bbb737fb71e4 Mon Sep 17 00:00:00 2001 From: Pratyush Verma Date: Tue, 27 Jun 2023 13:57:35 +0100 Subject: [PATCH] [native] Fix TestTypeSignature --- .../main/types/tests/TypeSignatureTest.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/presto-native-execution/presto_cpp/main/types/tests/TypeSignatureTest.cpp b/presto-native-execution/presto_cpp/main/types/tests/TypeSignatureTest.cpp index 8aed6ab58c8d9..ca2b64fbd8f83 100644 --- a/presto-native-execution/presto_cpp/main/types/tests/TypeSignatureTest.cpp +++ b/presto-native-execution/presto_cpp/main/types/tests/TypeSignatureTest.cpp @@ -328,12 +328,10 @@ TEST_F(TestTypeSignature, spaces01) { } TEST_F(TestTypeSignature, spaces04) { - assertRowSignatureContainsThrows( + assertRowSignature( "row(interval interval year to month)", rowSignature(namedParameter( - "interval", false, signature("interval year to month"))), - VeloxUserError, - "Specified element is not found : INTERVAL YEAR TO MONTH"); + "interval", false, signature("interval year to month")))); } TEST_F(TestTypeSignature, spaces05) { @@ -353,11 +351,9 @@ TEST_F(TestTypeSignature, spaces06) { } TEST_F(TestTypeSignature, spaces09) { - assertRowSignatureContainsThrows( + assertRowSignature( "row(interval year to month)", - rowSignature(unnamedParameter(signature("interval year to month"))), - VeloxUserError, - "Specified element is not found : INTERVAL YEAR TO MONTH"); + rowSignature(unnamedParameter(signature("interval year to month")))); } TEST_F(TestTypeSignature, spaces10) {