hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shiv...@apache.org
Subject incubator-hawq git commit: HAWQ-1116. Fix hawq pxf manyfilters unittest
Date Wed, 26 Oct 2016 21:53:33 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master c9072d2ad -> 85690dc92


HAWQ-1116. Fix hawq pxf manyfilters unittest


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/85690dc9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/85690dc9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/85690dc9

Branch: refs/heads/master
Commit: 85690dc92c96a0b32c461e2877f6dd043e1b34f3
Parents: c9072d2
Author: Shivram Mani <shivram.mani@gmail.com>
Authored: Wed Oct 26 14:53:25 2016 -0700
Committer: Shivram Mani <shivram.mani@gmail.com>
Committed: Wed Oct 26 14:53:25 2016 -0700

----------------------------------------------------------------------
 .../access/external/test/pxffilters_test.c      | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/85690dc9/src/backend/access/external/test/pxffilters_test.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/test/pxffilters_test.c b/src/backend/access/external/test/pxffilters_test.c
index 235a1d7..e618563 100644
--- a/src/backend/access/external/test/pxffilters_test.c
+++ b/src/backend/access/external/test/pxffilters_test.c
@@ -558,24 +558,6 @@ void test__pxf_serialize_fillter_list__nullFilter(void **state)
 
 }
 
-void test__pxf_serialize_fillter_list__nullFilter(void **state)
-{
-
-	List* expressionItems = NIL;
-
-	ExpressionItem* filterExpressionItem = build_null_expression_item(1, TEXTOID, IS_NULL);
-
-	expressionItems = lappend(expressionItems, filterExpressionItem);
-
-	char* result = pxf_serialize_filter_list(expressionItems);
-	assert_string_equal(result, "a0o8");
-
-	pxf_free_expression_items_list(expressionItems, true);
-	expressionItems = NIL;
-	pfree(result);
-
-}
-
 void
 test__pxf_serialize_filter_list__manyFilters(void **state)
 {
@@ -599,7 +581,7 @@ test__pxf_serialize_filter_list__manyFilters(void **state)
 	expressionItems = lappend(expressionItems, expressionItem7);
 
 	result = pxf_serialize_filter_list(expressionItems);
-	assert_string_equal(result, "a0c25s4d1984o5a1c25s13dGeorge Orwello5a2c25s7dWinstono5a3c25s6dEric-%o7a4c25s25d\"Ugly\"
string with quoteso5a5c25s0do5a4o9");
+	assert_string_equal(result, "a0c25s4d1984o5a1c25s13dGeorge Orwello5a2c25s7dWinstono5a3c25s6dEric-%o7a4c25s25d\"Ugly\"
string with quoteso5a5c25s0do5a6o9");
 	pfree(result);
 
 	int trivialExpressionItems = expressionItems->length;


Mime
View raw message