Revert "HAWQ-1122. Fix feature test case failures which are introduced by GPORCA upgradation."
This reverts commit d641f364e2197e0101dcc0d19aff455a838984ec. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/fed12f1a Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/fed12f1a Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/fed12f1a Branch: refs/heads/master Commit: fed12f1a57ac64a8c7cab867f31b2930dddc2744 Parents: 31ea7d0 Author: Haisheng Yuan <[email protected]> Authored: Wed Nov 2 17:17:49 2016 +0800 Committer: Wen Lin <[email protected]> Committed: Wed Nov 2 17:42:06 2016 +0800 ---------------------------------------------------------------------- src/test/feature/catalog/test_alter_table.cpp | 2 +- src/test/feature/query/test_insert.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/fed12f1a/src/test/feature/catalog/test_alter_table.cpp ---------------------------------------------------------------------- diff --git a/src/test/feature/catalog/test_alter_table.cpp b/src/test/feature/catalog/test_alter_table.cpp index f50677a..d88cc2a 100644 --- a/src/test/feature/catalog/test_alter_table.cpp +++ b/src/test/feature/catalog/test_alter_table.cpp @@ -67,7 +67,7 @@ TEST_F(TestAlterTable, TestAlterTableAOColumnNOTNULL) { util.execute("alter table altable alter column c set not null"); util.execute("insert into altable(a,b) values(13,'13')", false); - std::string errstr = "WARNING: null value in column \"c\" violates " + std::string errstr = "ERROR: null value in column \"c\" violates " "not-null constraint"; EXPECT_STREQ(errstr.c_str(), util.getPSQL()->getLastResult().substr(0, errstr.size()).c_str()); http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/fed12f1a/src/test/feature/query/test_insert.cpp ---------------------------------------------------------------------- diff --git a/src/test/feature/query/test_insert.cpp b/src/test/feature/query/test_insert.cpp index d6c7c0d..1e05b9c 100644 --- a/src/test/feature/query/test_insert.cpp +++ b/src/test/feature/query/test_insert.cpp @@ -53,7 +53,7 @@ TEST_F(TestQueryInsert, TestInsertWithDefaultNeg) { util.execute("insert into inserttest(col1, col2, col3) " "values(default, default, default)", false); - std::string errstr = "WARNING: null value in column \"col2\" " + std::string errstr = "ERROR: null value in column \"col2\" " "violates not-null constraint"; EXPECT_STREQ(errstr.c_str(), util.getPSQL()->getLastResult().substr(0, errstr.size()).c_str());
