hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iw...@apache.org
Subject [30/30] incubator-hawq git commit: HAWQ-878. Add googletest cases for the ao snappy compression support.
Date Thu, 30 Jun 2016 03:02:05 GMT
HAWQ-878. Add googletest cases for the ao snappy compression support.


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

Branch: refs/heads/master
Commit: 8284370054d0b304481d7270b14b024e18098b52
Parents: f44343a
Author: Paul Guo <paulguo@gmail.com>
Authored: Wed Jun 29 10:38:20 2016 +0800
Committer: ivan <iweng@pivotal.io>
Committed: Thu Jun 30 11:01:05 2016 +0800

----------------------------------------------------------------------
 src/test/feature/ao/TestAoSnappy.cpp            |  126 ++
 .../ao/ans/ao_crtb_with_row_snappy_1048576.ans  |  419 ++++++
 .../ao/ans/ao_crtb_with_row_snappy_2097152.ans  |  464 ++++++
 .../ao/ans/ao_crtb_with_row_snappy_32768.ans    |  329 +++++
 .../ao/ans/ao_crtb_with_row_snappy_65536.ans    |  374 +++++
 .../ao/ans/ao_crtb_with_row_snappy_8192.ans     |  284 ++++
 .../feature/ao/ans/ao_wt_partsnappy1048576.ans  | 1117 +++++++++++++++
 .../feature/ao/ans/ao_wt_partsnappy2097152.ans  | 1177 ++++++++++++++++
 .../feature/ao/ans/ao_wt_partsnappy32768.ans    |  997 +++++++++++++
 .../feature/ao/ans/ao_wt_partsnappy65536.ans    | 1057 ++++++++++++++
 .../feature/ao/ans/ao_wt_partsnappy8192.ans     |  937 +++++++++++++
 .../ao/ans/ao_wt_sub_partsnappy1048576.ans      | 1321 ++++++++++++++++++
 .../ao/ans/ao_wt_sub_partsnappy32768.ans        | 1201 ++++++++++++++++
 .../ao/ans/ao_wt_sub_partsnappy65536.ans        | 1261 +++++++++++++++++
 .../feature/ao/ans/ao_wt_sub_partsnappy8192.ans | 1141 +++++++++++++++
 .../ao/sql/ao_crtb_with_row_snappy_1048576.sql  |  323 +++++
 .../ao/sql/ao_crtb_with_row_snappy_2097152.sql  |  372 +++++
 .../ao/sql/ao_crtb_with_row_snappy_32768.sql    |  219 +++
 .../ao/sql/ao_crtb_with_row_snappy_65536.sql    |  270 ++++
 .../ao/sql/ao_crtb_with_row_snappy_8192.sql     |  168 +++
 .../feature/ao/sql/ao_wt_partsnappy1048576.sql  |  573 ++++++++
 .../feature/ao/sql/ao_wt_partsnappy2097152.sql  |  641 +++++++++
 .../feature/ao/sql/ao_wt_partsnappy32768.sql    |  437 ++++++
 .../feature/ao/sql/ao_wt_partsnappy65536.sql    |  505 +++++++
 .../feature/ao/sql/ao_wt_partsnappy8192.sql     |  369 +++++
 .../ao/sql/ao_wt_sub_partsnappy1048576.sql      |  583 ++++++++
 .../ao/sql/ao_wt_sub_partsnappy32768.sql        |  447 ++++++
 .../ao/sql/ao_wt_sub_partsnappy65536.sql        |  515 +++++++
 .../feature/ao/sql/ao_wt_sub_partsnappy8192.sql |  379 +++++
 src/test/feature/ao/sql/init_file               |    6 +
 30 files changed, 18012 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/82843700/src/test/feature/ao/TestAoSnappy.cpp
----------------------------------------------------------------------
diff --git a/src/test/feature/ao/TestAoSnappy.cpp b/src/test/feature/ao/TestAoSnappy.cpp
new file mode 100755
index 0000000..72044f7
--- /dev/null
+++ b/src/test/feature/ao/TestAoSnappy.cpp
@@ -0,0 +1,126 @@
+#include "gtest/gtest.h"
+
+#include "lib/sql_util.h"
+
+using std::string;
+
+class TestAOSnappy: public ::testing::Test
+{
+	public:
+		const string initFile = "ao/sql/init_file";
+		TestAOSnappy() { }
+		~TestAOSnappy() {}
+};
+
+TEST_F(TestAOSnappy, Create1048576)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_crtb_with_row_snappy_1048576.sql",
+	                 "ao/ans/ao_crtb_with_row_snappy_1048576.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, Create2097152)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_crtb_with_row_snappy_2097152.sql",
+                     "ao/ans/ao_crtb_with_row_snappy_2097152.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, Create32768)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_crtb_with_row_snappy_32768.sql",
+	                 "ao/ans/ao_crtb_with_row_snappy_32768.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, Create65536)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_crtb_with_row_snappy_65536.sql",
+	                 "ao/ans/ao_crtb_with_row_snappy_65536.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, Create8192)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_crtb_with_row_snappy_8192.sql",
+	                 "ao/ans/ao_crtb_with_row_snappy_8192.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, Partition1048576)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_wt_partsnappy1048576.sql",
+	                 "ao/ans/ao_wt_partsnappy1048576.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, Partition2097152)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_wt_partsnappy2097152.sql",
+	                 "ao/ans/ao_wt_partsnappy2097152.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, Partition32768)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_wt_partsnappy32768.sql",
+	                 "ao/ans/ao_wt_partsnappy32768.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, Partition65536)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_wt_partsnappy65536.sql",
+	                 "ao/ans/ao_wt_partsnappy65536.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, Partition8192)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_wt_partsnappy8192.sql",
+	                 "ao/ans/ao_wt_partsnappy8192.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, SubPartition1048576)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_wt_sub_partsnappy1048576.sql",
+	                 "ao/ans/ao_wt_sub_partsnappy1048576.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, SubPartition32768)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_wt_sub_partsnappy32768.sql",
+	                 "ao/ans/ao_wt_sub_partsnappy32768.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, SubPartition65536)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_wt_sub_partsnappy65536.sql",
+	                 "ao/ans/ao_wt_sub_partsnappy65536.ans",
+	                 initFile);
+}
+
+TEST_F(TestAOSnappy, SubPartition8192)
+{
+	hawq::test::SQLUtility util;
+	util.execSQLFile("ao/sql/ao_wt_sub_partsnappy8192.sql",
+	                 "ao/ans/ao_wt_sub_partsnappy8192.ans",
+	                 initFile);
+}
+


Mime
View raw message