incubator-hawq git commit: HAWQ-873. improve checking time for .travis.yml

2016-06-28 Thread rlei
Repository: incubator-hawq
Updated Branches:
  refs/heads/master e16895825 -> 41c81abb7


HAWQ-873. improve checking time for .travis.yml


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

Branch: refs/heads/master
Commit: 41c81abb71f2c10af26f6122be8b8110db90559d
Parents: e168958
Author: xunzhang 
Authored: Tue Jun 28 13:53:04 2016 +0800
Committer: xunzhang 
Committed: Wed Jun 29 10:53:32 2016 +0800

--
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/41c81abb/.travis.yml
--
diff --git a/.travis.yml b/.travis.yml
index c948c86..da49f5a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -43,7 +43,7 @@ before_script:
   - ./configure
 
 script:
-  - make -j2
+  - make -j$(sysctl -n hw.ncpu)
   - make feature-test
   - make feature-test-clean
 



incubator-hawq git commit: HAWQ-871. HAWQ CHECK looking for wrong YARN HA parameters

2016-06-28 Thread rlei
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 01a44739b -> e16895825


HAWQ-871. HAWQ CHECK looking for wrong YARN HA parameters


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

Branch: refs/heads/master
Commit: e1689582529220ed8236a164edc3ac5a237eed8f
Parents: 01a4473
Author: rlei 
Authored: Tue Jun 28 11:14:28 2016 +0800
Committer: rlei 
Committed: Wed Jun 29 10:28:17 2016 +0800

--
 tools/bin/gpcheck | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/e1689582/tools/bin/gpcheck
--
diff --git a/tools/bin/gpcheck b/tools/bin/gpcheck
index 1aefeb4..9b7be6a 100755
--- a/tools/bin/gpcheck
+++ b/tools/bin/gpcheck
@@ -965,8 +965,7 @@ def testHDFSConfig(host):
 yarn_property_exist_list = ['yarn.resourcemanager.address', 
'yarn.resourcemanager.scheduler.address']
 
 if options.yarn_ha:
-yarn_property_exist_list = ['yarn.resourcemanager.address.rm1', 
'yarn.resourcemanager.address.rm2', 
'yarn.resourcemanager.scheduler.address.rm1', \
-
'yarn.resourcemanager.scheduler.address.rm2']
+yarn_property_exist_list = ['yarn.resourcemanager.hostname.rm1', 
'yarn.resourcemanager.hostname.rm2']
 
 if yarn_enabled:
 for item in yarn_property_exist_list:



incubator-hawq git commit: HAWQ-869. Add regression test for less tuple is inserted issue in prepared statement

2016-06-28 Thread huor
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 706882c20 -> 01a44739b


HAWQ-869. Add regression test for less tuple is inserted issue in prepared 
statement


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

Branch: refs/heads/master
Commit: 01a44739b0a701fc8b81ed91fdda52e618ef6b37
Parents: 706882c
Author: Ruilong Huo 
Authored: Mon Jun 27 16:04:46 2016 +0800
Committer: Ruilong Huo 
Committed: Wed Jun 29 10:28:13 2016 +0800

--
 .../PreparedStatement/TestPreparedStatement.cpp |  38 +++
 .../feature/PreparedStatement/ans/insert.ans| 266 +++
 .../feature/PreparedStatement/ans/proba.ans | 230 
 .../PreparedStatement/ans/proba_execute.ans | 228 
 .../feature/PreparedStatement/sql/insert.sql| 130 +
 .../feature/PreparedStatement/sql/proba.sql | 147 ++
 .../PreparedStatement/sql/proba_execute.sql | 145 ++
 7 files changed, 1184 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/01a44739/src/test/feature/PreparedStatement/TestPreparedStatement.cpp
--
diff --git a/src/test/feature/PreparedStatement/TestPreparedStatement.cpp 
b/src/test/feature/PreparedStatement/TestPreparedStatement.cpp
new file mode 100755
index 000..a8684ca
--- /dev/null
+++ b/src/test/feature/PreparedStatement/TestPreparedStatement.cpp
@@ -0,0 +1,38 @@
+#include "gtest/gtest.h"
+
+#include "lib/sql_util.h"
+
+
+class TestPreparedStatement: public ::testing::Test
+{
+   public:
+   TestPreparedStatement() {}
+   ~TestPreparedStatement() {}
+};
+
+// HAWQ-800: https://issues.apache.org/jira/browse/HAWQ-800
+// HAWQ-835: https://issues.apache.org/jira/browse/HAWQ-835
+TEST_F(TestPreparedStatement, TestPreparedStatementPrepare)
+{
+   hawq::test::SQLUtility util;
+   util.execSQLFile("PreparedStatement/sql/proba.sql",
+"PreparedStatement/ans/proba.ans");
+}
+
+// HAWQ-800: https://issues.apache.org/jira/browse/HAWQ-800
+// HAWQ-835: https://issues.apache.org/jira/browse/HAWQ-835
+TEST_F(TestPreparedStatement, TestPreparedStatementExecute)
+{
+   hawq::test::SQLUtility util;
+   util.execSQLFile("PreparedStatement/sql/proba_execute.sql",
+"PreparedStatement/ans/proba_execute.ans");
+}
+
+// HAWQ-800: https://issues.apache.org/jira/browse/HAWQ-800
+// HAWQ-835: https://issues.apache.org/jira/browse/HAWQ-835
+TEST_F(TestPreparedStatement, TestPreparedStatementInsert)
+{
+   hawq::test::SQLUtility util;
+   util.execSQLFile("PreparedStatement/sql/insert.sql",
+"PreparedStatement/ans/insert.ans");
+}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/01a44739/src/test/feature/PreparedStatement/ans/insert.ans
--
diff --git a/src/test/feature/PreparedStatement/ans/insert.ans 
b/src/test/feature/PreparedStatement/ans/insert.ans
new file mode 100644
index 000..32b2f4f
--- /dev/null
+++ b/src/test/feature/PreparedStatement/ans/insert.ans
@@ -0,0 +1,266 @@
+-- start_ignore
+SET SEARCH_PATH=TestPreparedStatement_TestPreparedStatementInsert;
+SET
+-- end_ignore
+-- start_ignore
+drop function if exists f1();
+psql:/tmp/TestPreparedStatement_TestPreparedStatementInsert.sql:5: NOTICE:  
function f1() does not exist, skipping
+DROP FUNCTION
+drop function if exists f2();
+psql:/tmp/TestPreparedStatement_TestPreparedStatementInsert.sql:6: NOTICE:  
function f2() does not exist, skipping
+DROP FUNCTION
+drop table if exists t1;
+psql:/tmp/TestPreparedStatement_TestPreparedStatementInsert.sql:7: NOTICE:  
table "t1" does not exist, skipping
+DROP TABLE
+drop table if exists t2;
+psql:/tmp/TestPreparedStatement_TestPreparedStatementInsert.sql:8: NOTICE:  
table "t2" does not exist, skipping
+DROP TABLE
+-- end_ignore
+create table t1 (id int);
+CREATE TABLE
+insert into t1 values (1);
+INSERT 0 1
+create table t2 (id int);
+CREATE TABLE
+CREATE OR REPLACE FUNCTION f1()
+  RETURNS text
+  LANGUAGE plpgsql
+AS
+$body$
+DECLARE
+l_rec record;
+l_item record;
+   l_count integer;
+BEGIN
+
+   RAISE NOTICE '--- Initial content of t1: begin ---';
+   SELECT count(*) INTO l_count FROM t1;
+   RAISE NOTICE '--- # tuple: %', l_count;
+RAISE NOTICE 'id';
+FOR l_item IN SELECT * FROM t1 LOOP
+RAISE NOTICE '%', quote_ident(l_item.id);
+END LOOP;
+   RAISE NOTICE '--- Initial content of t1: end ---';
+
+FOR 

incubator-hawq git commit: HAWQ-877. Need to stop building when building error occurs in gpfdist directory

2016-06-28 Thread mli
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 323fb6fd6 -> 706882c20


HAWQ-877. Need to stop building when building error occurs in gpfdist directory


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

Branch: refs/heads/master
Commit: 706882c2060763f4af6ec5632e3588971ef24ee0
Parents: 323fb6f
Author: Ming LI 
Authored: Tue Jun 28 17:25:49 2016 +0800
Committer: Ming LI 
Committed: Wed Jun 29 10:23:22 2016 +0800

--
 src/bin/gpfdist/Makefile | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/706882c2/src/bin/gpfdist/Makefile
--
diff --git a/src/bin/gpfdist/Makefile b/src/bin/gpfdist/Makefile
index 13d06dc..4c1d436 100644
--- a/src/bin/gpfdist/Makefile
+++ b/src/bin/gpfdist/Makefile
@@ -60,6 +60,7 @@ mkgpfdist: mkdir
 
for file in $(GPFDISTFILES); do \
( $(CC) $(INCLUDES) $(CFLAGS) $(LIBS) -c $(code_dir)$${file}); \
+   if [[ $$? -ne 0 ]]; then exit 1; fi \
done
# link
$(CC) $(CFLAGS) -o $(code_dir)gpfdist $(OBJS)  $(LIBS)



incubator-hawq git commit: HAWQ-876. Add the support for initFile option (used by gpdiff.pl finally) in hawq googletest framework.

2016-06-28 Thread iweng
Repository: incubator-hawq
Updated Branches:
  refs/heads/master adf82292c -> 323fb6fd6


HAWQ-876. Add the support for initFile option (used by gpdiff.pl finally) in 
hawq googletest framework.

This patch also removes several annoying warnings.


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

Branch: refs/heads/master
Commit: 323fb6fd6aca838c821eb7280940526d7a8bdd4e
Parents: adf8229
Author: Paul Guo 
Authored: Tue Jun 28 18:09:23 2016 +0800
Committer: ivan 
Committed: Wed Jun 29 10:13:26 2016 +0800

--
 src/test/feature/lib/hawq_config.cpp |  2 +-
 src/test/feature/lib/psql.cpp| 13 +
 src/test/feature/lib/psql.h  |  3 ++-
 src/test/feature/lib/sql_util.cpp| 27 +++
 src/test/feature/lib/sql_util.h  |  3 ++-
 5 files changed, 37 insertions(+), 11 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/323fb6fd/src/test/feature/lib/hawq_config.cpp
--
diff --git a/src/test/feature/lib/hawq_config.cpp 
b/src/test/feature/lib/hawq_config.cpp
index 287ca1b..94182f3 100644
--- a/src/test/feature/lib/hawq_config.cpp
+++ b/src/test/feature/lib/hawq_config.cpp
@@ -151,7 +151,7 @@ bool HawqConfig::isMultinodeMode() {
   psql.getQueryResult("select hostname from gp_segment_configuration");
   std::vector table = result.getRows();
   std::unordered_set hostnameMap;
-  for (int i = 0; i < table.size(); i++) {
+  for (unsigned int i = 0; i < table.size(); i++) {
 string hostname2 = table[i][0];
 if (hostname2 == "localhost") {
   char hostnamestr[256];

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/323fb6fd/src/test/feature/lib/psql.cpp
--
diff --git a/src/test/feature/lib/psql.cpp b/src/test/feature/lib/psql.cpp
index ecdd925..88531da 100644
--- a/src/test/feature/lib/psql.cpp
+++ b/src/test/feature/lib/psql.cpp
@@ -40,7 +40,7 @@ const string& PSQLQueryResult::getData(int ri, int ci) const {
 }
 
 string PSQLQueryResult::getData(int ri, const string& ck) const {
-  for (int ci = 0; ci < this->_fields.size(); ci++) {
+  for (unsigned int ci = 0; ci < this->_fields.size(); ci++) {
 if (ck == this->_fields[ci]) {
   return this->getData(ri, ci);
 }
@@ -199,12 +199,17 @@ const string PSQL::_getPSQLFileCommand(const string& 
file) const {
 
 bool PSQL::checkDiff(const string& expect_file,
  const string& result_file,
- bool save_diff) {
+ bool save_diff,
+ const string& init_file) {
   string diff_file = result_file + ".diff";
   string command;
   command.append("gpdiff.pl ")
-  .append(PSQL_BASIC_DIFF_OPTS)
-  .append(" ")
+  .append(PSQL_BASIC_DIFF_OPTS);
+  if (!init_file.empty()) {
+  command.append(" -gpd_init ")
+  .append(init_file);
+  }
+  command.append(" ")
   .append(expect_file)
   .append(" ")
   .append(result_file)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/323fb6fd/src/test/feature/lib/psql.h
--
diff --git a/src/test/feature/lib/psql.h b/src/test/feature/lib/psql.h
index 573b1a9..6363592 100644
--- a/src/test/feature/lib/psql.h
+++ b/src/test/feature/lib/psql.h
@@ -66,7 +66,8 @@ class PSQL {
 
   static bool checkDiff(const std::string& expect_file,
 const std::string& result_file,
-bool save_diff = true);
+bool save_diff = true,
+const std::string& init_file = "");
 
   void resetOutput();
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/323fb6fd/src/test/feature/lib/sql_util.cpp
--
diff --git a/src/test/feature/lib/sql_util.cpp 
b/src/test/feature/lib/sql_util.cpp
index 9537f0c..ea0c805 100644
--- a/src/test/feature/lib/sql_util.cpp
+++ b/src/test/feature/lib/sql_util.cpp
@@ -86,7 +86,10 @@ void SQLUtility::query(const string , const string 
) {
 }
 
 void SQLUtility::execSQLFile(const string ,
- const string ) {
+ const string ,
+ const string ) {
+  FilePath fp;
+
   // do precheck for sqlFile & ansFile
   if (hawq::test::startsWith(sqlFile, "/") ||
   hawq::test::startsWith(ansFile, "/"))
@@ -95,7 +98,7 @@ void SQLUtility::execSQLFile(const string ,
   string 

[incubator-hawq] Git Push Summary

2016-06-28 Thread cjcjameson
Repository: incubator-hawq
Updated Branches:
  refs/heads/HAWQ-543 [deleted] adf82292c


incubator-hawq git commit: HAWQ-543. Remove references to bootstrap_tokens.h

2016-06-28 Thread cjcjameson
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 09dba2e17 -> adf82292c


HAWQ-543. Remove references to bootstrap_tokens.h

Isn't a file that exists anymore; was causing `make distprep` to fail


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

Branch: refs/heads/master
Commit: adf82292c413c37542c8a0338a2d81ad326d2d9c
Parents: 09dba2e
Author: C.J. Jameson and Devadass Santhosh Sampath 
Authored: Tue Mar 22 17:04:05 2016 -0700
Committer: C.J. Jameson 
Committed: Tue Jun 28 18:23:58 2016 -0700

--
 src/backend/Makefile | 3 +--
 src/backend/bootstrap/.gitignore | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/adf82292/src/backend/Makefile
--
diff --git a/src/backend/Makefile b/src/backend/Makefile
index a90443a..b331d15 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -256,7 +256,7 @@ utils/probes.o: utils/probes.d $(SUBDIROBJS)
 
 distprep:
$(MAKE) -C parser   gram.c gram.h scan.c
-   $(MAKE) -C bootstrapbootparse.c bootstrap_tokens.h bootscanner.c
+   $(MAKE) -C bootstrapbootparse.c bootscanner.c
$(MAKE) -C utils/misc   guc-file.c
 
 
@@ -376,7 +376,6 @@ distclean: clean
 maintainer-clean: distclean
rm -f $(srcdir)/bootstrap/bootparse.c \
  $(srcdir)/bootstrap/bootscanner.c \
- $(srcdir)/bootstrap/bootstrap_tokens.h \
  $(srcdir)/parser/gram.c \
  $(srcdir)/parser/scan.c \
  $(srcdir)/parser/gram.h \

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/adf82292/src/backend/bootstrap/.gitignore
--
diff --git a/src/backend/bootstrap/.gitignore b/src/backend/bootstrap/.gitignore
index 7d51845..5201be9 100644
--- a/src/backend/bootstrap/.gitignore
+++ b/src/backend/bootstrap/.gitignore
@@ -1,3 +1,2 @@
 bootparse.c
 bootscanner.c
-bootstrap_tokens.h



[54/80] [abbrv] incubator-hawq git commit: HAWQ-764. Remove CTranslatorPlStmtToDXL Deadcode [#119102697]

2016-06-28 Thread cjcjameson
HAWQ-764. Remove CTranslatorPlStmtToDXL Deadcode [#119102697]


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

Branch: refs/heads/HAWQ-543
Commit: 752a98cdab62d40d46c66b0cb1abe1dcfb7860d7
Parents: 817249a
Author: Venkatesh (Venky) Raghavan 
Authored: Wed Jun 22 10:56:49 2016 -0700
Committer: Venkatesh (Venky) Raghavan 
Committed: Wed Jun 22 10:56:49 2016 -0700

--
 .../gpopt/translate/CTranslatorPlStmtToDXL.cpp  | 2541 --
 .../gpopt/translate/CTranslatorQueryToDXL.cpp   |1 -
 .../gpopt/translate/CTranslatorScalarToDXL.cpp  |  178 --
 src/backend/gpopt/translate/Makefile|3 +-
 src/backend/gpopt/utils/COptTasks.cpp   |   87 -
 src/backend/gpopt/utils/funcs.cpp   |   66 -
 src/backend/gpopt/utils/load.sql|6 -
 .../gpopt/translate/CTranslatorPlStmtToDXL.h|  270 --
 src/include/gpopt/utils/COptTasks.h |8 -
 9 files changed, 1 insertion(+), 3159 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/752a98cd/src/backend/gpopt/translate/CTranslatorPlStmtToDXL.cpp
--
diff --git a/src/backend/gpopt/translate/CTranslatorPlStmtToDXL.cpp 
b/src/backend/gpopt/translate/CTranslatorPlStmtToDXL.cpp
deleted file mode 100644
index 7657d4d..000
--- a/src/backend/gpopt/translate/CTranslatorPlStmtToDXL.cpp
+++ /dev/null
@@ -1,2541 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-//---
-// @filename:
-// CTranslatorPlStmtToDXL.cpp
-//
-// @doc:
-// Implementation of the methods for translating GPDB's 
PlannedStmt into DXL Tree.
-// All translator methods allocate memory in the provided memory 
pool, and
-// the caller is responsible for freeing it
-//
-// @test:
-//
-//
-//---
-
-#include "postgres.h"
-
-#include "nodes/plannodes.h"
-#include "nodes/parsenodes.h"
-#include "access/sysattr.h"
-#include "optimizer/walkers.h"
-
-#include "gpos/base.h"
-#include "gpos/string/CWStringDynamic.h"
-
-#include "gpopt/mdcache/CMDAccessor.h"
-#include "gpopt/translate/CTranslatorPlStmtToDXL.h"
-#include "gpopt/translate/CTranslatorUtils.h"
-#include "gpopt/translate/CMappingVarColId.h"
-
-#include "naucrates/dxl/CDXLUtils.h"
-#include "naucrates/dxl/xml/dxltokens.h"
-#include "naucrates/dxl/operators/CDXLNode.h"
-#include "naucrates/dxl/gpdb_types.h"
-
-#include "naucrates/md/IMDScalarOp.h"
-#include "naucrates/md/IMDRelation.h"
-#include "naucrates/md/IMDIndex.h"
-
-#include "gpopt/gpdbwrappers.h"
-
-using namespace gpdxl;
-using namespace gpos;
-using namespace gpopt;
-
-#define DEFAULT_QUERY_LEVEL 0
-
-//---
-// @function:
-// CTranslatorPlStmtToDXL::CTranslatorPlStmtToDXL
-//
-// @doc:
-// Constructor
-//
-//---
-CTranslatorPlStmtToDXL::CTranslatorPlStmtToDXL
-   (
-   IMemoryPool *pmp,
-   CMDAccessor *pmda,
-   CIdGenerator *pulIdGenerator,
-   PlannedStmt *pplstmt,
-   CMappingParamIdScalarId *pmapps
-   )
-   :
-   m_pmp(pmp),
-   m_pmda(pmda),
-   m_pidgtor(pulIdGenerator),
-   m_pplstmt(pplstmt),
-   m_pparammapping(pmapps)
-{
-   GPOS_ASSERT(NULL != m_pplstmt);
-   m_psctranslator = GPOS_NEW(m_pmp)
-   CTranslatorScalarToDXL
-   (
-   m_pmp,
-

[48/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/include/CMakeLists.txt
--
diff --git a/depends/thirdparty/orc/c++/include/CMakeLists.txt 
b/depends/thirdparty/orc/c++/include/CMakeLists.txt
deleted file mode 100644
index 3891e71..000
--- a/depends/thirdparty/orc/c++/include/CMakeLists.txt
+++ /dev/null
@@ -1,83 +0,0 @@
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX11_FLAGS} ${WARN_FLAGS}")
-
-INCLUDE(CheckCXXSourceCompiles)
-
-CHECK_CXX_SOURCE_COMPILES("
-#include 
-struct A {
-  A(std::initializer_list list);
-};
-int main(int,char*[]){
-}"
-  ORC_CXX_HAS_INITIALIZER_LIST
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-int main(int,char*[]) noexcept {
-  return 0;
-}"
-  ORC_CXX_HAS_NOEXCEPT
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-int main(int,char* argv[]){
-  return argv[0] != nullptr;
-}"
-  ORC_CXX_HAS_NULLPTR
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-struct A {
-  virtual ~A();
-  virtual void foo();
-};
-struct B: public A {
-  virtual void foo() override;
-};
-int main(int,char*[]){
-}"
-  ORC_CXX_HAS_OVERRIDE
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-#include
-int main(int,char* []){
-  std::unique_ptr ptr(new int);
-}"
-  ORC_CXX_HAS_UNIQUE_PTR
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-#include 
-int main(int, char*[]) { }"
-  ORC_CXX_HAS_CSTDINT
-)
-
-configure_file (
-  "orc/orc-config.hh.in"
-  "${CMAKE_CURRENT_BINARY_DIR}/orc/orc-config.hh"
-  )
-
-install(FILES
-  "${CMAKE_CURRENT_BINARY_DIR}/orc/orc-config.hh"
-  "orc/ColumnPrinter.hh"
-  "orc/Int128.hh"
-  "orc/MemoryPool.hh"
-  "orc/OrcFile.hh"
-  "orc/Reader.hh"
-  "orc/Type.hh"
-  "orc/Vector.hh"
-  DESTINATION "include/orc"
-  )

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/include/orc/ColumnPrinter.hh
--
diff --git a/depends/thirdparty/orc/c++/include/orc/ColumnPrinter.hh 
b/depends/thirdparty/orc/c++/include/orc/ColumnPrinter.hh
deleted file mode 100644
index aa19214..000
--- a/depends/thirdparty/orc/c++/include/orc/ColumnPrinter.hh
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef ORC_COLUMN_PRINTER_HH
-#define ORC_COLUMN_PRINTER_HH
-
-#include "orc/orc-config.hh"
-#include "orc/OrcFile.hh"
-#include "orc/Vector.hh"
-
-#include 
-#include 
-#include 
-#include 
-#include 
-
-namespace orc {
-
-  class ColumnPrinter {
-  protected:
-std::string 
-bool hasNulls ;
-const char* notNull;
-
-  public:
-ColumnPrinter(std::string&);
-virtual ~ColumnPrinter();
-virtual void printRow(uint64_t rowId) = 0;
-// should be called once at the start of each batch of rows
-virtual void reset(const ColumnVectorBatch& batch);
-  };
-
-  ORC_UNIQUE_PTR createColumnPrinter(std::string&,
-const Type* type);
-}
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/include/orc/Int128.hh
--
diff --git a/depends/thirdparty/orc/c++/include/orc/Int128.hh 
b/depends/thirdparty/orc/c++/include/orc/Int128.hh
deleted file mode 100644
index 70793dc..000
--- a/depends/thirdparty/orc/c++/include/orc/Int128.hh
+++ /dev/null
@@ -1,336 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for 

[43/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/ltmain.sh
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/ltmain.sh 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/ltmain.sh
deleted file mode 100644
index c2852d8..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/ltmain.sh
+++ /dev/null
@@ -1,9661 +0,0 @@
-
-# libtool (GNU libtool) 2.4.2
-# Written by Gordon Matzigkeit , 1996
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
-# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
-# This is free software; see the source for copying conditions.  There is NO
-# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-# GNU Libtool is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Libtool; see the file COPYING.  If not, a copy
-# can be downloaded from http://www.gnu.org/licenses/gpl.html,
-# or obtained by writing to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-# Usage: $progname [OPTION]... [MODE-ARG]...
-#
-# Provide generalized library-building support services.
-#
-#   --config show all configuration variables
-#   --debug  enable verbose shell tracing
-#   -n, --dry-rundisplay commands without modifying any files
-#   --features   display basic configuration information and exit
-#   --mode=MODE  use operation mode MODE
-#   --preserve-dup-deps  don't remove duplicate dependency libraries
-#   --quiet, --silentdon't print informational messages
-#   --no-quiet, --no-silent
-#print informational messages (default)
-#   --no-warndon't display warning messages
-#   --tag=TAGuse configuration variables from tag TAG
-#   -v, --verboseprint more informational messages than default
-#   --no-verbose don't print the extra informational messages
-#   --versionprint version information
-#   -h, --help, --help-all   print short, long, or detailed help message
-#
-# MODE must be one of the following:
-#
-# clean  remove files from the build directory
-# compilecompile a source file into a libtool object
-# executeautomatically set library path, then run a program
-# finish complete the installation of libtool libraries
-# installinstall libraries or executables
-# link   create a library or an executable
-# uninstall  remove libraries from an installed directory
-#
-# MODE-ARGS vary depending on the MODE.  When passed as first option,
-# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
-# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
-#
-# When reporting a bug, please describe a test case to reproduce it and
-# include the following information:
-#
-# host-triplet:$host
-# shell:   $SHELL
-# compiler:$LTCC
-# compiler flags:  $LTCFLAGS
-# linker:  $LD (gnu? $with_gnu_ld)
-# $progname:   (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
-# automake:$automake_version
-# autoconf:$autoconf_version
-#
-# Report bugs to .
-# GNU libtool home page: .
-# General help using GNU software: .
-
-PROGRAM=libtool
-PACKAGE=libtool
-VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
-TIMESTAMP=""
-package_revision=1.3337
-
-# Be Bourne compatible
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in *posix*) set -o 

[38/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock/gmock.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock/gmock.h 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock/gmock.h
deleted file mode 100644
index e8dd7fc..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock/gmock.h
+++ /dev/null
@@ -1,14198 +0,0 @@
-// Copyright 2007, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-
-// Google Mock - a framework for writing C++ mock classes.
-//
-// This is the main header file a user should include.
-
-#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_H_
-#define GMOCK_INCLUDE_GMOCK_GMOCK_H_
-
-// This file implements the following syntax:
-//
-//   ON_CALL(mock_object.Method(...))
-// .With(...) ?
-// .WillByDefault(...);
-//
-// where With() is optional and WillByDefault() must appear exactly
-// once.
-//
-//   EXPECT_CALL(mock_object.Method(...))
-// .With(...) ?
-// .Times(...) ?
-// .InSequence(...) *
-// .WillOnce(...) *
-// .WillRepeatedly(...) ?
-// .RetiresOnSaturation() ? ;
-//
-// where all clauses are optional and WillOnce() can be repeated.
-
-// Copyright 2007, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-
-// Google Mock - a framework for writing C++ mock classes.
-//
-// This file implements some commonly used actions.
-
-#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_ACTIONS_H_
-#define GMOCK_INCLUDE_GMOCK_GMOCK_ACTIONS_H_
-
-#ifndef _WIN32_WCE
-# include 
-#endif
-
-#include 
-#include 
-
-// Copyright 2007, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * 

[37/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock_main.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock_main.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock_main.cc
deleted file mode 100644
index bd5be03..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock_main.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2008, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-
-#include 
-#include "gmock/gmock.h"
-#include "gtest/gtest.h"
-
-// MS C++ compiler/linker has a bug on Windows (not on Windows CE), which
-// causes a link error when _tmain is defined in a static library and UNICODE
-// is enabled. For this reason instead of _tmain, main function is used on
-// Windows. See the following link to track the current status of this bug:
-// 
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=394464
  // NOLINT
-#if GTEST_OS_WINDOWS_MOBILE
-# include   // NOLINT
-
-GTEST_API_ int _tmain(int argc, TCHAR** argv) {
-#else
-GTEST_API_ int main(int argc, char** argv) {
-#endif  // GTEST_OS_WINDOWS_MOBILE
-  std::cout << "Running main() from gmock_main.cc\n";
-  // Since Google Mock depends on Google Test, InitGoogleMock() is
-  // also responsible for initializing Google Test.  Therefore there's
-  // no need for calling testing::InitGoogleTest() separately.
-  testing::InitGoogleMock(, argv);
-  return RUN_ALL_TESTS();
-}



[35/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/CHANGES
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/CHANGES 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/CHANGES
deleted file mode 100644
index 0552132..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/CHANGES
+++ /dev/null
@@ -1,157 +0,0 @@
-Changes for 1.7.0:
-
-* New feature: death tests are supported on OpenBSD and in iOS
-  simulator now.
-* New feature: Google Test now implements a protocol to allow
-  a test runner to detect that a test program has exited
-  prematurely and report it as a failure (before it would be
-  falsely reported as a success if the exit code is 0).
-* New feature: Test::RecordProperty() can now be used outside of the
-  lifespan of a test method, in which case it will be attributed to
-  the current test case or the test program in the XML report.
-* New feature (potentially breaking): --gtest_list_tests now prints
-  the type parameters and value parameters for each test.
-* Improvement: char pointers and char arrays are now escaped properly
-  in failure messages.
-* Improvement: failure summary in XML reports now includes file and
-  line information.
-* Improvement: the  XML element now has a timestamp attribute.
-* Improvement: When --gtest_filter is specified, XML report now doesn't
-  contain information about tests that are filtered out.
-* Fixed the bug where long --gtest_filter flag values are truncated in
-  death tests.
-* Potentially breaking change: RUN_ALL_TESTS() is now implemented as a
-  function instead of a macro in order to work better with Clang.
-* Compatibility fixes with C++ 11 and various platforms.
-* Bug/warning fixes.
-
-Changes for 1.6.0:
-
-* New feature: ADD_FAILURE_AT() for reporting a test failure at the
-  given source location -- useful for writing testing utilities.
-* New feature: the universal value printer is moved from Google Mock
-  to Google Test.
-* New feature: type parameters and value parameters are reported in
-  the XML report now.
-* A gtest_disable_pthreads CMake option.
-* Colored output works in GNU Screen sessions now.
-* Parameters of value-parameterized tests are now printed in the
-  textual output.
-* Failures from ad hoc test assertions run before RUN_ALL_TESTS() are
-  now correctly reported.
-* Arguments of ASSERT_XY and EXPECT_XY no longer need to support << to
-  ostream.
-* More complete handling of exceptions.
-* GTEST_ASSERT_XY can be used instead of ASSERT_XY in case the latter
-  name is already used by another library.
-* --gtest_catch_exceptions is now true by default, allowing a test
-  program to continue after an exception is thrown.
-* Value-parameterized test fixtures can now derive from Test and
-  WithParamInterface separately, easing conversion of legacy tests.
-* Death test messages are clearly marked to make them more
-  distinguishable from other messages.
-* Compatibility fixes for Android, Google Native Client, MinGW, HP UX,
-  PowerPC, Lucid autotools, libCStd, Sun C++, Borland C++ Builder (Code Gear),
-  IBM XL C++ (Visual Age C++), and C++0x.
-* Bug fixes and implementation clean-ups.
-* Potentially incompatible changes: disables the harmful 'make install'
-  command in autotools.
-
-Changes for 1.5.0:
-
- * New feature: assertions can be safely called in multiple threads
-   where the pthreads library is available.
- * New feature: predicates used inside EXPECT_TRUE() and friends
-   can now generate custom failure messages.
- * New feature: Google Test can now be compiled as a DLL.
- * New feature: fused source files are included.
- * New feature: prints help when encountering unrecognized Google Test flags.
- * Experimental feature: CMake build script (requires CMake 2.6.4+).
- * Experimental feature: the Pump script for meta programming.
- * double values streamed to an assertion are printed with enough precision
-   to differentiate any two different values.
- * Google Test now works on Solaris and AIX.
- * Build and test script improvements.
- * Bug fixes and implementation clean-ups.
-
- Potentially breaking changes:
-
- * Stopped supporting VC++ 7.1 with exceptions disabled.
- * Dropped support for 'make install'.
-
-Changes for 1.4.0:
-
- * New feature: the event listener API
- * New feature: test shuffling
- * New feature: the XML report format is closer to junitreport and can
-   be parsed by Hudson now.
- * New feature: when a test runs under Visual Studio, its failures are
-   integrated in the IDE.
- * New feature: /MD(d) versions of VC++ projects.
- * New feature: elapsed time for the tests is printed by default.
- * New feature: comes with a TR1 tuple implementation such that Boost
-   is no longer needed for Combine().
- * New feature: EXPECT_DEATH_IF_SUPPORTED macro and friends.
- * New feature: the Xcode project can now produce static gtest
-   

[12/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/m4/libtool.m4
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/m4/libtool.m4 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/m4/libtool.m4
deleted file mode 100644
index 828104c..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/m4/libtool.m4
+++ /dev/null
@@ -1,8001 +0,0 @@
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
-#
-#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-#   Written by Gordon Matzigkeit, 1996
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-m4_define([_LT_COPYING], [dnl
-#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-#   Written by Gordon Matzigkeit, 1996
-#
-#   This file is part of GNU Libtool.
-#
-# GNU Libtool is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of
-# the License, or (at your option) any later version.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Libtool; see the file COPYING.  If not, a copy
-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
-# obtained by writing to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-])
-
-# serial 57 LT_INIT
-
-
-# LT_PREREQ(VERSION)
-# --
-# Complain and exit if this libtool version is less that VERSION.
-m4_defun([LT_PREREQ],
-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
-   [m4_default([$3],
-  [m4_fatal([Libtool version $1 or higher is required],
-63)])],
-   [$2])])
-
-
-# _LT_CHECK_BUILDDIR
-# --
-# Complain if the absolute build directory name contains unusual characters
-m4_defun([_LT_CHECK_BUILDDIR],
-[case `pwd` in
-  *\ * | *\*)
-AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
-esac
-])
-
-
-# LT_INIT([OPTIONS])
-# --
-AC_DEFUN([LT_INIT],
-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
-AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
-AC_BEFORE([$0], [LT_LANG])dnl
-AC_BEFORE([$0], [LT_OUTPUT])dnl
-AC_BEFORE([$0], [LTDL_INIT])dnl
-m4_require([_LT_CHECK_BUILDDIR])dnl
-
-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
-dnl unless we require an AC_DEFUNed macro:
-AC_REQUIRE([LTOPTIONS_VERSION])dnl
-AC_REQUIRE([LTSUGAR_VERSION])dnl
-AC_REQUIRE([LTVERSION_VERSION])dnl
-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
-m4_require([_LT_PROG_LTMAIN])dnl
-
-_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
-
-dnl Parse OPTIONS
-_LT_SET_OPTIONS([$0], [$1])
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ltmain"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-AC_SUBST(LIBTOOL)dnl
-
-_LT_SETUP
-
-# Only expand once:
-m4_define([LT_INIT])
-])# LT_INIT
-
-# Old names:
-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
-
-
-# _LT_CC_BASENAME(CC)
-# ---
-# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
-m4_defun([_LT_CC_BASENAME],
-[for cc_temp in $1""; do
-  case $cc_temp in
-compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
-distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
-\-*) ;;
-*) break;;
-  esac
-done
-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
-])
-
-
-# _LT_FILEUTILS_DEFAULTS
-# --
-# It is okay to use these file commands and assume they have been set
-# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.

[34/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/Makefile.in
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/Makefile.in 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/Makefile.in
deleted file mode 100644
index 874de74..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/Makefile.in
+++ /dev/null
@@ -1,1360 +0,0 @@
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Automake file
-
-
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-TESTS = samples/sample1_unittest$(EXEEXT) \
-   samples/sample10_unittest$(EXEEXT) \
-   test/gtest_all_test$(EXEEXT) $(am__EXEEXT_1)
-check_PROGRAMS = samples/sample1_unittest$(EXEEXT) \
-   samples/sample10_unittest$(EXEEXT) \
-   test/gtest_all_test$(EXEEXT) $(am__EXEEXT_1)
-@HAVE_PYTHON_TRUE@am__append_1 = test/fused_gtest_test
-@HAVE_PYTHON_TRUE@am__append_2 = test/fused_gtest_test
-subdir = .
-DIST_COMMON = README $(am__configure_deps) $(pkginclude_HEADERS) \
-   $(pkginclude_internal_HEADERS) $(srcdir)/Makefile.am \
-   $(srcdir)/Makefile.in $(top_srcdir)/build-aux/config.h.in \
-   $(top_srcdir)/configure $(top_srcdir)/scripts/gtest-config.in \
-   build-aux/config.guess build-aux/config.sub build-aux/depcomp \
-   build-aux/install-sh build-aux/ltmain.sh build-aux/missing
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
-   $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
-   $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
-   $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-   $(ACLOCAL_M4)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno config.status.lineno
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/build-aux/config.h
-CONFIG_CLEAN_FILES = scripts/gtest-config
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
-$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
-*) f=$$p;; \
-  esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
-  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/&/g'`
-am__nobase_strip = \
-  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
-  for p in $$list; do echo "$$p $$p"; done | \
-  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
-  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
-if (++n[$$2] == $(am__install_max)) \
-  { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
-END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
-  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
-  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
-  test -z "$$files" \
-|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
-|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
-  }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(m4datadir)" \
-   "$(DESTDIR)$(pkgincludedir)" \
-   "$(DESTDIR)$(pkginclude_internaldir)"
-LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
-lib_libgtest_la_LIBADD =
-am__dirstamp = $(am__leading_dot)dirstamp
-am_lib_libgtest_la_OBJECTS = src/gtest-all.lo
-lib_libgtest_la_OBJECTS = $(am_lib_libgtest_la_OBJECTS)
-lib_libgtest_main_la_DEPENDENCIES = lib/libgtest.la
-am_lib_libgtest_main_la_OBJECTS = src/gtest_main.lo

[44/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/depcomp
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/depcomp 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/depcomp
deleted file mode 100644
index bd0ac08..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/depcomp
+++ /dev/null
@@ -1,688 +0,0 @@
-#! /bin/sh
-# depcomp - compile a program generating dependencies as side-effects
-
-scriptversion=2011-12-04.11; # UTC
-
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
-# 2011 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see .
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Originally written by Alexandre Oliva .
-
-case $1 in
-  '')
- echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
- exit 1;
- ;;
-  -h | --h*)
-cat <<\EOF
-Usage: depcomp [--help] [--version] PROGRAM [ARGS]
-
-Run PROGRAMS ARGS to compile a file, generating dependencies
-as side-effects.
-
-Environment variables:
-  depmode Dependency tracking mode.
-  source  Source file read by `PROGRAMS ARGS'.
-  object  Object file output by `PROGRAMS ARGS'.
-  DEPDIR  directory where to store dependencies.
-  depfile Dependency file to output.
-  tmpdepfile  Temporary file to use when outputting dependencies.
-  libtool Whether libtool is used (yes/no).
-
-Report bugs to .
-EOF
-exit $?
-;;
-  -v | --v*)
-echo "depcomp $scriptversion"
-exit $?
-;;
-esac
-
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
-  echo "depcomp: Variables source, object and depmode must be set" 1>&2
-  exit 1
-fi
-
-# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
-depfile=${depfile-`echo "$object" |
-  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
-tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
-
-rm -f "$tmpdepfile"
-
-# Some modes work just like other modes, but use different flags.  We
-# parameterize here, but still list the modes in the big case below,
-# to make depend.m4 easier to write.  Note that we *cannot* use a case
-# here, because this file can only contain one case statement.
-if test "$depmode" = hp; then
-  # HP compiler uses -M and no extra arg.
-  gccflag=-M
-  depmode=gcc
-fi
-
-if test "$depmode" = dashXmstdout; then
-   # This is just like dashmstdout with a different argument.
-   dashmflag=-xM
-   depmode=dashmstdout
-fi
-
-cygpath_u="cygpath -u -f -"
-if test "$depmode" = msvcmsys; then
-   # This is just like msvisualcpp but w/o cygpath translation.
-   # Just convert the backslash-escaped backslashes to single forward
-   # slashes to satisfy depend.m4
-   cygpath_u='sed s,,/,g'
-   depmode=msvisualcpp
-fi
-
-if test "$depmode" = msvc7msys; then
-   # This is just like msvc7 but w/o cygpath translation.
-   # Just convert the backslash-escaped backslashes to single forward
-   # slashes to satisfy depend.m4
-   cygpath_u='sed s,,/,g'
-   depmode=msvc7
-fi
-
-case "$depmode" in
-gcc3)
-## gcc 3 implements dependency tracking that does exactly what
-## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
-## it if -MD -MP comes after the -MF stuff.  Hmm.
-## Unfortunately, FreeBSD c89 acceptance of flags depends upon
-## the command line argument order; so add the flags where they
-## appear in depend2.am.  Note that the slowdown incurred here
-## affects only configure: in makefiles, %FASTDEP% shortcuts this.
-  for arg
-  do
-case $arg in
--c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
-*)  set fnord "$@" "$arg" ;;
-esac
-shift # fnord
-shift # $arg
-  done
-  "$@"
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-rm -f "$tmpdepfile"
-exit $stat
-  fi
-  mv "$tmpdepfile" "$depfile"
-  ;;
-
-gcc)
-## There are various ways to get dependency output from gcc.  Here's
-## why we pick this rather obscure method:
-## - Don't want to 

[45/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/config.guess
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/config.guess 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/config.guess
deleted file mode 100644
index d622a44..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/config.guess
+++ /dev/null
@@ -1,1530 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-#   2011, 2012 Free Software Foundation, Inc.
-
-timestamp='2012-02-10'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see .
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner.  Please send patches (context
-# diff format) to  and include a ChangeLog
-# entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub.  If it succeeds, it prints the system name on stdout, and
-# exits with 0.  Otherwise, it exits with 1.
-#
-# You can get the latest version of this script from:
-# 
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
-  -h, --help print this help, then exit
-  -t, --time-stamp   print date of last modification, then exit
-  -v, --version  print version number, then exit
-
-Report bugs and patches to ."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case $1 in
---time-stamp | --time* | -t )
-   echo "$timestamp" ; exit ;;
---version | -v )
-   echo "$version" ; exit ;;
---help | --h* | -h )
-   echo "$usage"; exit ;;
--- ) # Stop option processing
-   shift; break ;;
-- )# Use stdin as input.
-   break ;;
--* )
-   echo "$me: invalid option $1$help" >&2
-   exit 1 ;;
-* )
-   break ;;
-  esac
-done
-
-if test $# != 0; then
-  echo "$me: too many arguments$help" >&2
-  exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && 
exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 
;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXX") 2>/dev/null` && test -n 
"$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) 
; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating 
insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } 
;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,)echo "int x;" > $dummy.c ;
-   for c in cc gcc c89 c99 ; do
- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
-CC_FOR_BUILD="$c"; break ;
- fi ;
-   

[68/80] [abbrv] incubator-hawq git commit: HAWQ-865. Rebase upstream pgcrypto to a newer commit which includes a critical DES crypt() bug fix

2016-06-28 Thread cjcjameson
HAWQ-865. Rebase upstream pgcrypto to a newer commit which includes a critical 
DES crypt() bug fix


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

Branch: refs/heads/HAWQ-543
Commit: 36b2a0f6453c37b74cf2f676ab29a350e681526a
Parents: 87b5d8f
Author: Paul Guo 
Authored: Fri Jun 24 10:16:05 2016 +0800
Committer: Paul Guo 
Committed: Fri Jun 24 10:17:31 2016 +0800

--
 depends/thirdparty/postgres | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/36b2a0f6/depends/thirdparty/postgres
--
diff --git a/depends/thirdparty/postgres b/depends/thirdparty/postgres
index ca59dfa..932ded2 16
--- a/depends/thirdparty/postgres
+++ b/depends/thirdparty/postgres
@@ -1 +1 @@
-Subproject commit ca59dfa6f727fe3bf3a01904ec30e87f7fa5a67e
+Subproject commit 932ded2ed51e8333852e370c7a6dad75d9f236f9



[79/80] [abbrv] incubator-hawq git commit: HAWQ-835. Fix snapshot during transaction processing for cannot retrieve tuple from temp table created in function

2016-06-28 Thread cjcjameson
HAWQ-835. Fix snapshot during transaction processing for cannot retrieve tuple 
from temp table created in function


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

Branch: refs/heads/HAWQ-543
Commit: 09dba2e178070bf82f0e90cc1d57e0af5dfffcb4
Parents: 5d4c8d0
Author: Ruilong Huo 
Authored: Tue Jun 28 10:53:35 2016 +0800
Committer: Ruilong Huo 
Committed: Tue Jun 28 15:11:33 2016 +0800

--
 src/backend/cdb/cdbdatalocality.c | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/09dba2e1/src/backend/cdb/cdbdatalocality.c
--
diff --git a/src/backend/cdb/cdbdatalocality.c 
b/src/backend/cdb/cdbdatalocality.c
index adcc3b8..c56232c 100644
--- a/src/backend/cdb/cdbdatalocality.c
+++ b/src/backend/cdb/cdbdatalocality.c
@@ -854,7 +854,10 @@ int64 
get_block_locations_and_claculte_table_size(split_to_segment_mapping_conte
 
MemoryContextSwitchTo(context->datalocality_memorycontext);
 
-   ActiveSnapshot = GetTransactionSnapshot();
+   if (ActiveSnapshot == NULL)
+   {
+   ActiveSnapshot = GetTransactionSnapshot();
+   }
ActiveSnapshot = CopySnapshot(ActiveSnapshot);
ActiveSnapshot->curcid = GetCurrentCommandId();
 



[32/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/config.guess
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/config.guess 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/config.guess
deleted file mode 100644
index d622a44..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/config.guess
+++ /dev/null
@@ -1,1530 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-#   2011, 2012 Free Software Foundation, Inc.
-
-timestamp='2012-02-10'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see .
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner.  Please send patches (context
-# diff format) to  and include a ChangeLog
-# entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub.  If it succeeds, it prints the system name on stdout, and
-# exits with 0.  Otherwise, it exits with 1.
-#
-# You can get the latest version of this script from:
-# 
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
-  -h, --help print this help, then exit
-  -t, --time-stamp   print date of last modification, then exit
-  -v, --version  print version number, then exit
-
-Report bugs and patches to ."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case $1 in
---time-stamp | --time* | -t )
-   echo "$timestamp" ; exit ;;
---version | -v )
-   echo "$version" ; exit ;;
---help | --h* | -h )
-   echo "$usage"; exit ;;
--- ) # Stop option processing
-   shift; break ;;
-- )# Use stdin as input.
-   break ;;
--* )
-   echo "$me: invalid option $1$help" >&2
-   exit 1 ;;
-* )
-   break ;;
-  esac
-done
-
-if test $# != 0; then
-  echo "$me: too many arguments$help" >&2
-  exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && 
exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 
;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXX") 2>/dev/null` && test -n 
"$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) 
; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating 
insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } 
;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,)echo "int x;" > $dummy.c ;
-   for c in cc gcc c89 c99 ; do
- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
-CC_FOR_BUILD="$c"; break ;
- 

[07/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-internal-inl.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-internal-inl.h 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-internal-inl.h
deleted file mode 100644
index 35df303..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-internal-inl.h
+++ /dev/null
@@ -1,1218 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-// Utility functions and classes used by the Google C++ testing framework.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// This file contains purely Google Test's internal implementation.  Please
-// DO NOT #INCLUDE IT IN A USER PROGRAM.
-
-#ifndef GTEST_SRC_GTEST_INTERNAL_INL_H_
-#define GTEST_SRC_GTEST_INTERNAL_INL_H_
-
-// GTEST_IMPLEMENTATION_ is defined to 1 iff the current translation unit is
-// part of Google Test's implementation; otherwise it's undefined.
-#if !GTEST_IMPLEMENTATION_
-// A user is trying to include this from his code - just say no.
-# error "gtest-internal-inl.h is part of Google Test's internal 
implementation."
-# error "It must not be included except by Google Test itself."
-#endif  // GTEST_IMPLEMENTATION_
-
-#ifndef _WIN32_WCE
-# include 
-#endif  // !_WIN32_WCE
-#include 
-#include   // For strtoll/_strtoul64/malloc/free.
-#include   // For memmove.
-
-#include 
-#include 
-#include 
-
-#include "gtest/internal/gtest-port.h"
-
-#if GTEST_CAN_STREAM_RESULTS_
-# include   // NOLINT
-# include   // NOLINT
-#endif
-
-#if GTEST_OS_WINDOWS
-# include   // NOLINT
-#endif  // GTEST_OS_WINDOWS
-
-#include "gtest/gtest.h"  // NOLINT
-#include "gtest/gtest-spi.h"
-
-namespace testing {
-
-// Declares the flags.
-//
-// We don't want the users to modify this flag in the code, but want
-// Google Test's own unit tests to be able to access it. Therefore we
-// declare it here as opposed to in gtest.h.
-GTEST_DECLARE_bool_(death_test_use_fork);
-
-namespace internal {
-
-// The value of GetTestTypeId() as seen from within the Google Test
-// library.  This is solely for testing GetTestTypeId().
-GTEST_API_ extern const TypeId kTestTypeIdInGoogleTest;
-
-// Names of the flags (needed for parsing Google Test flags).
-const char kAlsoRunDisabledTestsFlag[] = "also_run_disabled_tests";
-const char kBreakOnFailureFlag[] = "break_on_failure";
-const char kCatchExceptionsFlag[] = "catch_exceptions";
-const char kColorFlag[] = "color";
-const char kFilterFlag[] = "filter";
-const char kListTestsFlag[] = "list_tests";
-const char kOutputFlag[] = "output";
-const char kPrintTimeFlag[] = "print_time";
-const char kRandomSeedFlag[] = "random_seed";
-const char kRepeatFlag[] = "repeat";
-const char kShuffleFlag[] = "shuffle";
-const char kStackTraceDepthFlag[] = "stack_trace_depth";
-const char kStreamResultToFlag[] = "stream_result_to";
-const char kThrowOnFailureFlag[] = "throw_on_failure";
-
-// A valid random seed must be in [1, kMaxRandomSeed].
-const int kMaxRandomSeed = 9;
-
-// g_help_flag is true iff the --help flag or an equivalent form is
-// specified on the command line.
-GTEST_API_ extern bool g_help_flag;
-
-// Returns the current time in milliseconds.
-GTEST_API_ TimeInMillis GetTimeInMillis();
-
-// Returns true iff Google Test should use colors in the output.
-GTEST_API_ bool 

[46/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/aclocal.m4
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/aclocal.m4 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/aclocal.m4
deleted file mode 100644
index 567ee74..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/aclocal.m4
+++ /dev/null
@@ -1,9799 +0,0 @@
-# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
-# Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-m4_ifndef([AC_AUTOCONF_VERSION],
-  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
-[m4_warning([this file was generated for autoconf 2.68.
-You have another version of autoconf.  It may work, but is not guaranteed to.
-If you have problems, you may need to regenerate the build system entirely.
-To do so, use the procedure documented by the package, typically 
`autoreconf'.])])
-
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
-#
-#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-#   Written by Gordon Matzigkeit, 1996
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-m4_define([_LT_COPYING], [dnl
-#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-#   Written by Gordon Matzigkeit, 1996
-#
-#   This file is part of GNU Libtool.
-#
-# GNU Libtool is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of
-# the License, or (at your option) any later version.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Libtool; see the file COPYING.  If not, a copy
-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
-# obtained by writing to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-])
-
-# serial 57 LT_INIT
-
-
-# LT_PREREQ(VERSION)
-# --
-# Complain and exit if this libtool version is less that VERSION.
-m4_defun([LT_PREREQ],
-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
-   [m4_default([$3],
-  [m4_fatal([Libtool version $1 or higher is required],
-63)])],
-   [$2])])
-
-
-# _LT_CHECK_BUILDDIR
-# --
-# Complain if the absolute build directory name contains unusual characters
-m4_defun([_LT_CHECK_BUILDDIR],
-[case `pwd` in
-  *\ * | *\*)
-AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
-esac
-])
-
-
-# LT_INIT([OPTIONS])
-# --
-AC_DEFUN([LT_INIT],
-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
-AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
-AC_BEFORE([$0], [LT_LANG])dnl
-AC_BEFORE([$0], [LT_OUTPUT])dnl
-AC_BEFORE([$0], [LTDL_INIT])dnl
-m4_require([_LT_CHECK_BUILDDIR])dnl
-
-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
-dnl unless we require an AC_DEFUNed macro:
-AC_REQUIRE([LTOPTIONS_VERSION])dnl
-AC_REQUIRE([LTSUGAR_VERSION])dnl
-AC_REQUIRE([LTVERSION_VERSION])dnl
-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
-m4_require([_LT_PROG_LTMAIN])dnl
-
-_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
-
-dnl Parse OPTIONS
-_LT_SET_OPTIONS([$0], [$1])
-
-# This can be used to rebuild libtool when 

[62/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/Util/number.py
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/Util/number.py 
b/tools/bin/pythonSrc/pycrypto-2.0.1/Util/number.py
new file mode 100644
index 000..9d50563
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/Util/number.py
@@ -0,0 +1,201 @@
+#
+#   number.py : Number-theoretic functions
+#
+#  Part of the Python Cryptography Toolkit
+#
+# Distribute and use freely; there are no restrictions on further
+# dissemination and usage except those imposed by the laws of your
+# country of residence.  This software is provided "as is" without
+# warranty of fitness for use or suitability for any purpose, express
+# or implied. Use at your own risk or not at all.
+#
+
+__revision__ = "$Id: number.py,v 1.13 2003/04/04 18:21:07 akuchling Exp $"
+
+bignum = long
+try:
+from Crypto.PublicKey import _fastmath
+except ImportError:
+_fastmath = None
+
+# Commented out and replaced with faster versions below
+## def long2str(n):
+## s=''
+## while n>0:
+## s=chr(n & 255)+s
+## n=n>>8
+## return s
+
+## import types
+## def str2long(s):
+## if type(s)!=types.StringType: return s   # Integers will be left alone
+## return reduce(lambda x,y : x*256+ord(y), s, 0L)
+
+def size (N):
+"""size(N:long) : int
+Returns the size of the number N in bits.
+"""
+bits, power = 0,1L
+while N >= power:
+bits += 1
+power = power << 1
+return bits
+
+def getRandomNumber(N, randfunc):
+"""getRandomNumber(N:int, randfunc:callable):long
+Return an N-bit random number."""
+
+S = randfunc(N/8)
+odd_bits = N % 8
+if odd_bits != 0:
+char = ord(randfunc(1)) >> (8-odd_bits)
+S = chr(char) + S
+value = bytes_to_long(S)
+value |= 2L ** (N-1)# Ensure high bit is set
+assert size(value) >= N
+return value
+
+def GCD(x,y):
+"""GCD(x:long, y:long): long
+Return the GCD of x and y.
+"""
+x = abs(x) ; y = abs(y)
+while x > 0:
+x, y = y % x, x
+return y
+
+def inverse(u, v):
+"""inverse(u:long, u:long):long
+Return the inverse of u mod v.
+"""
+u3, v3 = long(u), long(v)
+u1, v1 = 1L, 0L
+while v3 > 0:
+q=u3 / v3
+u1, v1 = v1, u1 - v1*q
+u3, v3 = v3, u3 - v3*q
+while u1<0:
+u1 = u1 + v
+return u1
+
+# Given a number of bits to generate and a random generation function,
+# find a prime number of the appropriate size.
+
+def getPrime(N, randfunc):
+"""getPrime(N:int, randfunc:callable):long
+Return a random N-bit prime number.
+"""
+
+number=getRandomNumber(N, randfunc) | 1
+while (not isPrime(number)):
+number=number+2
+return number
+
+def isPrime(N):
+"""isPrime(N:long):bool
+Return true if N is prime.
+"""
+if N == 1:
+return 0
+if N in sieve:
+return 1
+for i in sieve:
+if (N % i)==0:
+return 0
+
+# Use the accelerator if available
+if _fastmath is not None:
+return _fastmath.isPrime(N)
+
+# Compute the highest bit that's set in N
+N1 = N - 1L
+n = 1L
+while (n> 1L
+
+# Rabin-Miller test
+for c in sieve[:7]:
+a=long(c) ; d=1L ; t=n
+while (t):  # Iterate over the bits in N1
+x=(d*d) % N
+if x==1L and d!=1L and d!=N1:
+return 0  # Square root of 1 found
+if N1 & t:
+d=(x*a) % N
+else:
+d=x
+t = t >> 1L
+if d!=1L:
+return 0
+return 1
+
+# Small primes used for checking primality; these are all the primes
+# less than 256.  This should be enough to eliminate most of the odd
+# numbers before needing to do a Rabin-Miller test at all.
+
+sieve=[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59,
+   61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127,
+   131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193,
+   197, 199, 211, 223, 227, 229, 233, 239, 241, 251]
+
+# Improved conversion functions contributed by Barry Warsaw, after
+# careful benchmarking
+
+import struct
+
+def long_to_bytes(n, blocksize=0):
+"""long_to_bytes(n:long, blocksize:int) : string
+Convert a long integer to a byte string.
+
+If optional blocksize is given and greater than zero, pad the front of the
+byte string with binary zeros so that the length is a multiple of
+blocksize.
+"""
+# after much testing, this algorithm was deemed to be the fastest
+s = ''
+n = long(n)
+pack = struct.pack
+while n > 0:
+s = pack('>I', n & 0xL) + s
+n = n >> 32
+# strip off leading zeros
+for i in range(len(s)):
+if s[i] != '\000':
+ 

[58/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/src/block_template.c
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/src/block_template.c 
b/tools/bin/pythonSrc/pycrypto-2.0.1/src/block_template.c
new file mode 100644
index 000..5a922ca
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/src/block_template.c
@@ -0,0 +1,753 @@
+
+/* -*- C -*- */
+/*
+ *  block_template.c : Generic framework for block encryption algorithms
+ *
+ * Distribute and use freely; there are no restrictions on further 
+ * dissemination and usage except those imposed by the laws of your 
+ * country of residence.  This software is provided "as is" without
+ * warranty of fitness for use or suitability for any purpose, express
+ * or implied. Use at your own risk or not at all. 
+ *
+ */
+
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef _HAVE_STDC_HEADERS
+#include 
+#endif
+
+#include "Python.h"
+#include "modsupport.h" 
+
+/* Cipher operation modes */
+
+#define MODE_ECB 1
+#define MODE_CBC 2
+#define MODE_CFB 3
+#define MODE_PGP 4
+#define MODE_OFB 5
+#define MODE_CTR 6
+
+#define _STR(x) #x
+#define _XSTR(x) _STR(x)
+#define _PASTE(x,y) x##y
+#define _PASTE2(x,y) _PASTE(x,y)
+#define _MODULE_NAME _PASTE2(init,MODULE_NAME)
+#define _MODULE_STRING _XSTR(MODULE_NAME)
+
+typedef struct 
+{
+   PyObject_HEAD 
+   int mode, count, segment_size;
+   unsigned char IV[BLOCK_SIZE], oldCipher[BLOCK_SIZE];
+   PyObject *counter;
+   block_state st;
+} ALGobject;
+
+staticforward PyTypeObject ALGtype;
+
+#define is_ALGobject(v)((v)->ob_type == )
+
+static ALGobject *
+newALGobject(void)
+{
+   ALGobject * new;
+   new = PyObject_New(ALGobject, );
+   new->mode = MODE_ECB;
+   new->counter = NULL;
+   return new;
+}
+
+static void
+ALGdealloc(PyObject *ptr)
+{  
+   ALGobject *self = (ALGobject *)ptr;
+
+   /* Overwrite the contents of the object */
+   Py_XDECREF(self->counter);
+   self->counter = NULL;
+   memset(self->IV, 0, BLOCK_SIZE);
+   memset(self->oldCipher, 0, BLOCK_SIZE);
+   memset((char*)&(self->st), 0, sizeof(block_state));
+   self->mode = self->count = self->segment_size = 0;
+   PyObject_Del(ptr);
+}
+
+
+static char ALGnew__doc__[] = 
+"new(key, [mode], [IV]): Return a new " _MODULE_STRING " encryption object.";
+
+static char *kwlist[] = {"key", "mode", "IV", "counter", "segment_size",
+#ifdef PCT_RC5_MODULE
+"version", "word_size", "rounds",
+#endif
+NULL};
+
+static ALGobject *
+ALGnew(PyObject *self, PyObject *args, PyObject *kwdict)
+{
+   unsigned char *key, *IV;
+   ALGobject * new=NULL;
+   int keylen, IVlen=0, mode=MODE_ECB, segment_size=0;
+   PyObject *counter = NULL;
+#ifdef PCT_RC5_MODULE
+   int version = 0x10, word_size = 32, rounds = 16; /*XXX default rounds? 
*/
+#endif 
+   /* Set default values */
+   if (!PyArg_ParseTupleAndKeywords(args, kwdict, "s#|is#Oi"
+#ifdef PCT_RC5_MODULE
+"iii"
+#endif 
+, kwlist,
+, , , , ,
+, _size
+#ifdef PCT_RC5_MODULE
+, , _size, 
+#endif
+   )) 
+   {
+   return NULL;
+   }
+
+   if (KEY_SIZE!=0 && keylen!=KEY_SIZE)
+   {
+   PyErr_Format(PyExc_ValueError, 
+"Key must be %i bytes long, not %i",
+KEY_SIZE, keylen);
+   return NULL;
+   }
+   if (KEY_SIZE==0 && keylen==0)
+   {
+   PyErr_SetString(PyExc_ValueError, 
+   "Key cannot be the null string");
+   return NULL;
+   }
+   if (IVlen != BLOCK_SIZE && IVlen != 0)
+   {
+   PyErr_Format(PyExc_ValueError, 
+"IV must be %i bytes long", BLOCK_SIZE);
+   return NULL;
+   }
+   if (modeMODE_CTR) 
+   {
+   PyErr_Format(PyExc_ValueError, 
+"Unknown cipher feedback mode %i",
+mode);
+   return NULL;
+   }
+
+   /* Mode-specific checks */
+   if (mode == MODE_CFB) {
+   if (segment_size == 0) segment_size = 8;
+   if (segment_size < 1 || segment_size > BLOCK_SIZE*8) {
+   PyErr_Format(PyExc_ValueError, 
+"segment_size must be multiple of 8 "
+"between 1 and %i", BLOCK_SIZE);
+   }
+   }
+
+   if (mode == MODE_CTR) {
+   if (!PyCallable_Check(counter)) {
+   PyErr_SetString(PyExc_ValueError, 
+

[63/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/Protocol/AllOrNothing.py
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/Protocol/AllOrNothing.py 
b/tools/bin/pythonSrc/pycrypto-2.0.1/Protocol/AllOrNothing.py
new file mode 100644
index 000..6f3505d
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/Protocol/AllOrNothing.py
@@ -0,0 +1,295 @@
+"""This file implements all-or-nothing package transformations.
+
+An all-or-nothing package transformation is one in which some text is
+transformed into message blocks, such that all blocks must be obtained before
+the reverse transformation can be applied.  Thus, if any blocks are corrupted
+or lost, the original message cannot be reproduced.
+
+An all-or-nothing package transformation is not encryption, although a block
+cipher algorithm is used.  The encryption key is randomly generated and is
+extractable from the message blocks.
+
+This class implements the All-Or-Nothing package transformation algorithm
+described in:
+
+Ronald L. Rivest.  "All-Or-Nothing Encryption and The Package Transform"
+http://theory.lcs.mit.edu/~rivest/fusion.pdf
+
+"""
+
+__revision__ = "$Id: AllOrNothing.py,v 1.8 2003/02/28 15:23:20 akuchling Exp $"
+
+import operator
+import string
+from Crypto.Util.number import bytes_to_long, long_to_bytes
+
+
+
+class AllOrNothing:
+"""Class implementing the All-or-Nothing package transform.
+
+Methods for subclassing:
+
+_inventkey(key_size):
+Returns a randomly generated key.  Subclasses can use this to
+implement better random key generating algorithms.  The default
+algorithm is probably not very cryptographically secure.
+
+"""
+
+def __init__(self, ciphermodule, mode=None, IV=None):
+"""AllOrNothing(ciphermodule, mode=None, IV=None)
+
+ciphermodule is a module implementing the cipher algorithm to
+use.  It must provide the PEP272 interface.
+
+Note that the encryption key is randomly generated
+automatically when needed.  Optional arguments mode and IV are
+passed directly through to the ciphermodule.new() method; they
+are the feedback mode and initialization vector to use.  All
+three arguments must be the same for the object used to create
+the digest, and to undigest'ify the message blocks.
+"""
+
+self.__ciphermodule = ciphermodule
+self.__mode = mode
+self.__IV = IV
+self.__key_size = ciphermodule.key_size
+if self.__key_size == 0:
+self.__key_size = 16
+
+__K0digit = chr(0x69)
+
+def digest(self, text):
+"""digest(text:string) : [string]
+
+Perform the All-or-Nothing package transform on the given
+string.  Output is a list of message blocks describing the
+transformed text, where each block is a string of bit length equal
+to the ciphermodule's block_size.
+"""
+
+# generate a random session key and K0, the key used to encrypt the
+# hash blocks.  Rivest calls this a fixed, publically-known encryption
+# key, but says nothing about the security implications of this key or
+# how to choose it.
+key = self._inventkey(self.__key_size)
+K0 = self.__K0digit * self.__key_size
+
+# we need two cipher objects here, one that is used to encrypt the
+# message blocks and one that is used to encrypt the hashes.  The
+# former uses the randomly generated key, while the latter uses the
+# well-known key.
+mcipher = self.__newcipher(key)
+hcipher = self.__newcipher(K0)
+
+# Pad the text so that its length is a multiple of the cipher's
+# block_size.  Pad with trailing spaces, which will be eliminated in
+# the undigest() step.
+block_size = self.__ciphermodule.block_size
+padbytes = block_size - (len(text) % block_size)
+text = text + ' ' * padbytes
+
+# Run through the algorithm:
+# s: number of message blocks (size of text / block_size)
+# input sequence: m1, m2, ... ms
+# random key K' (`key' in the code)
+# Compute output sequence: m'1, m'2, ... m's' for s' = s + 1
+# Let m'i = mi ^ E(K', i) for i = 1, 2, 3, ..., s
+# Let m's' = K' ^ h1 ^ h2 ^ ... hs
+# where hi = E(K0, m'i ^ i) for i = 1, 2, ... s
+#
+# The one complication I add is that the last message block is hard
+# coded to the number of padbytes added, so that these can be stripped
+# during the undigest() step
+s = len(text) / block_size
+blocks = []
+hashes = []
+for i in range(1, s+1):
+start = (i-1) * block_size
+end = start + block_size
+mi = text[start:end]
+assert len(mi) == block_size
+

[14/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-type-util.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-type-util.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-type-util.h
deleted file mode 100644
index e46f7cf..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-type-util.h
+++ /dev/null
@@ -1,3331 +0,0 @@
-// This file was GENERATED by command:
-// pump.py gtest-type-util.h.pump
-// DO NOT EDIT BY HAND!!!
-
-// Copyright 2008 Google Inc.
-// All Rights Reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-
-// Type utilities needed for implementing typed and type-parameterized
-// tests.  This file is generated by a SCRIPT.  DO NOT EDIT BY HAND!
-//
-// Currently we support at most 50 types in a list, and at most 50
-// type-parameterized tests in one type-parameterized test case.
-// Please contact googletestframew...@googlegroups.com if you need
-// more.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
-#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
-
-#include "gtest/internal/gtest-port.h"
-
-// #ifdef __GNUC__ is too general here.  It is possible to use gcc without 
using
-// libstdc++ (which is where cxxabi.h comes from).
-# if GTEST_HAS_CXXABI_H_
-#  include 
-# elif defined(__HP_aCC)
-#  include 
-# endif  // GTEST_HASH_CXXABI_H_
-
-namespace testing {
-namespace internal {
-
-// GetTypeName() returns a human-readable name of type T.
-// NB: This function is also used in Google Mock, so don't move it inside of
-// the typed-test-only section below.
-template 
-std::string GetTypeName() {
-# if GTEST_HAS_RTTI
-
-  const char* const name = typeid(T).name();
-#  if GTEST_HAS_CXXABI_H_ || defined(__HP_aCC)
-  int status = 0;
-  // gcc's implementation of typeid(T).name() mangles the type name,
-  // so we have to demangle it.
-#   if GTEST_HAS_CXXABI_H_
-  using abi::__cxa_demangle;
-#   endif  // GTEST_HAS_CXXABI_H_
-  char* const readable_name = __cxa_demangle(name, 0, 0, );
-  const std::string name_str(status == 0 ? readable_name : name);
-  free(readable_name);
-  return name_str;
-#  else
-  return name;
-#  endif  // GTEST_HAS_CXXABI_H_ || __HP_aCC
-
-# else
-
-  return "";
-
-# endif  // GTEST_HAS_RTTI
-}
-
-#if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P
-
-// AssertyTypeEq::type is defined iff T1 and T2 are the same
-// type.  This can be used as a compile-time assertion to ensure that
-// two types are equal.
-
-template 
-struct AssertTypeEq;
-
-template 
-struct AssertTypeEq {
-  typedef bool type;
-};
-
-// A unique type used as the default value for the arguments of class
-// template Types.  This allows us to simulate variadic templates
-// (e.g. Types, Type, and etc), which C++ doesn't
-// support directly.
-struct None {};
-
-// The following family of struct and struct templates are used to
-// represent type lists.  In particular, TypesN
-// represents a type list with N types (T1, T2, ..., and TN) in it.
-// Except for Types0, every struct in the family has two member types:
-// Head for the first type in the list, and Tail for the rest of the
-// list.
-
-// The empty type list.
-struct Types0 {};
-
-// Type lists 

[08/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-death-test.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-death-test.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-death-test.cc
deleted file mode 100644
index a6023fc..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-death-test.cc
+++ /dev/null
@@ -1,1344 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan), vl...@google.com (Vlad Losev)
-//
-// This file implements death tests.
-
-#include "gtest/gtest-death-test.h"
-#include "gtest/internal/gtest-port.h"
-
-#if GTEST_HAS_DEATH_TEST
-
-# if GTEST_OS_MAC
-#  include 
-# endif  // GTEST_OS_MAC
-
-# include 
-# include 
-# include 
-
-# if GTEST_OS_LINUX
-#  include 
-# endif  // GTEST_OS_LINUX
-
-# include 
-
-# if GTEST_OS_WINDOWS
-#  include 
-# else
-#  include 
-#  include 
-# endif  // GTEST_OS_WINDOWS
-
-# if GTEST_OS_QNX
-#  include 
-# endif  // GTEST_OS_QNX
-
-#endif  // GTEST_HAS_DEATH_TEST
-
-#include "gtest/gtest-message.h"
-#include "gtest/internal/gtest-string.h"
-
-// Indicates that this translation unit is part of Google Test's
-// implementation.  It must come before gtest-internal-inl.h is
-// included, or there will be a compiler error.  This trick is to
-// prevent a user from accidentally including gtest-internal-inl.h in
-// his code.
-#define GTEST_IMPLEMENTATION_ 1
-#include "src/gtest-internal-inl.h"
-#undef GTEST_IMPLEMENTATION_
-
-namespace testing {
-
-// Constants.
-
-// The default death test style.
-static const char kDefaultDeathTestStyle[] = "fast";
-
-GTEST_DEFINE_string_(
-death_test_style,
-internal::StringFromGTestEnv("death_test_style", kDefaultDeathTestStyle),
-"Indicates how to run a death test in a forked child process: "
-"\"threadsafe\" (child process re-executes the test binary "
-"from the beginning, running only the specific death test) or "
-"\"fast\" (child process runs the death test immediately "
-"after forking).");
-
-GTEST_DEFINE_bool_(
-death_test_use_fork,
-internal::BoolFromGTestEnv("death_test_use_fork", false),
-"Instructs to use fork()/_exit() instead of clone() in death tests. "
-"Ignored and always uses fork() on POSIX systems where clone() is not "
-"implemented. Useful when running under valgrind or similar tools if "
-"those do not support clone(). Valgrind 3.3.1 will just fail if "
-"it sees an unsupported combination of clone() flags. "
-"It is not recommended to use this flag w/o valgrind though it will "
-"work in 99% of the cases. Once valgrind is fixed, this flag will "
-"most likely be removed.");
-
-namespace internal {
-GTEST_DEFINE_string_(
-internal_run_death_test, "",
-"Indicates the file, line number, temporal index of "
-"the single death test to run, and a file descriptor to "
-"which a success code may be sent, all separated by "
-"the '|' characters.  This flag is specified if and only if the current "
-"process is a sub-process launched for running a thread-safe "
-"death test.  FOR INTERNAL USE ONLY.");
-}  // namespace internal
-
-#if GTEST_HAS_DEATH_TEST
-
-namespace internal {
-
-// Valid only for fast death tests. Indicates the code is running in the

[04/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest_main.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest_main.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest_main.cc
deleted file mode 100644
index f302822..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest_main.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2006, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-#include 
-
-#include "gtest/gtest.h"
-
-GTEST_API_ int main(int argc, char **argv) {
-  printf("Running main() from gtest_main.cc\n");
-  testing::InitGoogleTest(, argv);
-  return RUN_ALL_TESTS();
-}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-death-test_ex_test.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-death-test_ex_test.cc
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-death-test_ex_test.cc
deleted file mode 100644
index b50a13d..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-death-test_ex_test.cc
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright 2010, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: vl...@google.com (Vlad Losev)
-//
-// Tests that verify interaction of exceptions and death tests.
-
-#include "gtest/gtest-death-test.h"
-#include "gtest/gtest.h"
-
-#if GTEST_HAS_DEATH_TEST
-
-# if GTEST_HAS_SEH
-#  include   // For RaiseException().
-# endif
-
-# include "gtest/gtest-spi.h"
-
-# if GTEST_HAS_EXCEPTIONS
-
-#  include   // For std::exception.
-
-// Tests that death tests report thrown exceptions as failures and that the
-// exceptions do not escape death test macros.

[31/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/depcomp
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/depcomp 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/depcomp
deleted file mode 100644
index bd0ac08..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/depcomp
+++ /dev/null
@@ -1,688 +0,0 @@
-#! /bin/sh
-# depcomp - compile a program generating dependencies as side-effects
-
-scriptversion=2011-12-04.11; # UTC
-
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
-# 2011 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see .
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Originally written by Alexandre Oliva .
-
-case $1 in
-  '')
- echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
- exit 1;
- ;;
-  -h | --h*)
-cat <<\EOF
-Usage: depcomp [--help] [--version] PROGRAM [ARGS]
-
-Run PROGRAMS ARGS to compile a file, generating dependencies
-as side-effects.
-
-Environment variables:
-  depmode Dependency tracking mode.
-  source  Source file read by `PROGRAMS ARGS'.
-  object  Object file output by `PROGRAMS ARGS'.
-  DEPDIR  directory where to store dependencies.
-  depfile Dependency file to output.
-  tmpdepfile  Temporary file to use when outputting dependencies.
-  libtool Whether libtool is used (yes/no).
-
-Report bugs to .
-EOF
-exit $?
-;;
-  -v | --v*)
-echo "depcomp $scriptversion"
-exit $?
-;;
-esac
-
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
-  echo "depcomp: Variables source, object and depmode must be set" 1>&2
-  exit 1
-fi
-
-# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
-depfile=${depfile-`echo "$object" |
-  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
-tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
-
-rm -f "$tmpdepfile"
-
-# Some modes work just like other modes, but use different flags.  We
-# parameterize here, but still list the modes in the big case below,
-# to make depend.m4 easier to write.  Note that we *cannot* use a case
-# here, because this file can only contain one case statement.
-if test "$depmode" = hp; then
-  # HP compiler uses -M and no extra arg.
-  gccflag=-M
-  depmode=gcc
-fi
-
-if test "$depmode" = dashXmstdout; then
-   # This is just like dashmstdout with a different argument.
-   dashmflag=-xM
-   depmode=dashmstdout
-fi
-
-cygpath_u="cygpath -u -f -"
-if test "$depmode" = msvcmsys; then
-   # This is just like msvisualcpp but w/o cygpath translation.
-   # Just convert the backslash-escaped backslashes to single forward
-   # slashes to satisfy depend.m4
-   cygpath_u='sed s,,/,g'
-   depmode=msvisualcpp
-fi
-
-if test "$depmode" = msvc7msys; then
-   # This is just like msvc7 but w/o cygpath translation.
-   # Just convert the backslash-escaped backslashes to single forward
-   # slashes to satisfy depend.m4
-   cygpath_u='sed s,,/,g'
-   depmode=msvc7
-fi
-
-case "$depmode" in
-gcc3)
-## gcc 3 implements dependency tracking that does exactly what
-## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
-## it if -MD -MP comes after the -MF stuff.  Hmm.
-## Unfortunately, FreeBSD c89 acceptance of flags depends upon
-## the command line argument order; so add the flags where they
-## appear in depend2.am.  Note that the slowdown incurred here
-## affects only configure: in makefiles, %FASTDEP% shortcuts this.
-  for arg
-  do
-case $arg in
--c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
-*)  set fnord "$@" "$arg" ;;
-esac
-shift # fnord
-shift # $arg
-  done
-  "$@"
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-rm -f "$tmpdepfile"
-exit $stat
-  fi
-  mv "$tmpdepfile" "$depfile"
-  ;;
-
-gcc)
-## There are various ways to get dependency output from gcc.  Here's
-## why we pick this rather obscure 

[03/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-listener_test.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-listener_test.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-listener_test.cc
deleted file mode 100644
index 99662cf..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-listener_test.cc
+++ /dev/null
@@ -1,310 +0,0 @@
-// Copyright 2009 Google Inc. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: vl...@google.com (Vlad Losev)
-//
-// The Google C++ Testing Framework (Google Test)
-//
-// This file verifies Google Test event listeners receive events at the
-// right times.
-
-#include "gtest/gtest.h"
-#include 
-
-using ::testing::AddGlobalTestEnvironment;
-using ::testing::Environment;
-using ::testing::InitGoogleTest;
-using ::testing::Test;
-using ::testing::TestCase;
-using ::testing::TestEventListener;
-using ::testing::TestInfo;
-using ::testing::TestPartResult;
-using ::testing::UnitTest;
-
-// Used by tests to register their events.
-std::vector* g_events = NULL;
-
-namespace testing {
-namespace internal {
-
-class EventRecordingListener : public TestEventListener {
- public:
-  explicit EventRecordingListener(const char* name) : name_(name) {}
-
- protected:
-  virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {
-g_events->push_back(GetFullMethodName("OnTestProgramStart"));
-  }
-
-  virtual void OnTestIterationStart(const UnitTest& /*unit_test*/,
-int iteration) {
-Message message;
-message << GetFullMethodName("OnTestIterationStart")
-<< "(" << iteration << ")";
-g_events->push_back(message.GetString());
-  }
-
-  virtual void OnEnvironmentsSetUpStart(const UnitTest& /*unit_test*/) {
-g_events->push_back(GetFullMethodName("OnEnvironmentsSetUpStart"));
-  }
-
-  virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {
-g_events->push_back(GetFullMethodName("OnEnvironmentsSetUpEnd"));
-  }
-
-  virtual void OnTestCaseStart(const TestCase& /*test_case*/) {
-g_events->push_back(GetFullMethodName("OnTestCaseStart"));
-  }
-
-  virtual void OnTestStart(const TestInfo& /*test_info*/) {
-g_events->push_back(GetFullMethodName("OnTestStart"));
-  }
-
-  virtual void OnTestPartResult(const TestPartResult& /*test_part_result*/) {
-g_events->push_back(GetFullMethodName("OnTestPartResult"));
-  }
-
-  virtual void OnTestEnd(const TestInfo& /*test_info*/) {
-g_events->push_back(GetFullMethodName("OnTestEnd"));
-  }
-
-  virtual void OnTestCaseEnd(const TestCase& /*test_case*/) {
-g_events->push_back(GetFullMethodName("OnTestCaseEnd"));
-  }
-
-  virtual void OnEnvironmentsTearDownStart(const UnitTest& /*unit_test*/) {
-g_events->push_back(GetFullMethodName("OnEnvironmentsTearDownStart"));
-  }
-
-  virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/) {
-g_events->push_back(GetFullMethodName("OnEnvironmentsTearDownEnd"));
-  }
-
-  virtual void OnTestIterationEnd(const UnitTest& /*unit_test*/,
-  int iteration) {
-Message message;
-message << GetFullMethodName("OnTestIterationEnd")
-<< "("  << iteration << ")";
-g_events->push_back(message.GetString());
-  }
-
-  virtual void OnTestProgramEnd(const 

[26/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest-all.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest-all.cc
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest-all.cc
deleted file mode 100644
index a9a03b2..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest-all.cc
+++ /dev/null
@@ -1,9592 +0,0 @@
-// Copyright 2008, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: mhe...@google.com (Markus Heule)
-//
-// Google C++ Testing Framework (Google Test)
-//
-// Sometimes it's desirable to build Google Test by compiling a single file.
-// This file serves this purpose.
-
-// This line ensures that gtest.h can be compiled on its own, even
-// when it's fused.
-#include "gtest/gtest.h"
-
-// The following lines pull in the real gtest *.cc files.
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// The Google C++ Testing Framework (Google Test)
-
-// Copyright 2007, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written 

[49/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/Doxyfile
--
diff --git a/depends/thirdparty/orc/c++/Doxyfile 
b/depends/thirdparty/orc/c++/Doxyfile
deleted file mode 100644
index 39fc4f7..000
--- a/depends/thirdparty/orc/c++/Doxyfile
+++ /dev/null
@@ -1,2246 +0,0 @@
-# Doxyfile 1.8.7
-
-# This file describes the settings to be used by the documentation system
-# doxygen (www.doxygen.org) for a project.
-#
-# All text after a double hash (##) is considered a comment and is placed in
-# front of the TAG it is preceding.
-#
-# All text after a single hash (#) is considered a comment and will be ignored.
-# The format is:
-# TAG = value [value, ...]
-# For lists, items can also be appended using:
-# TAG += value [value, ...]
-# Values that contain spaces should be placed between quotes (\" \").
-
-#---
-# Project related configuration options
-#---
-
-DOXYFILE_ENCODING  = UTF-8
-
-PROJECT_NAME   = "ORC File"
-
-PROJECT_NUMBER = 1.0.0
-
-PROJECT_BRIEF  = Native ORC File Reader/Writer
-
-PROJECT_LOGO   =
-
-OUTPUT_DIRECTORY   = build/doxygen
-
-# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member
-# descriptions after the members that are listed in the file and class
-# documentation (similar to Javadoc). Set to NO to disable this.
-# The default value is: YES.
-
-BRIEF_MEMBER_DESC  = YES
-
-# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief
-# description of a member or function before the detailed description
-#
-# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
-# brief descriptions will be completely suppressed.
-# The default value is: YES.
-
-REPEAT_BRIEF   = YES
-
-# This tag implements a quasi-intelligent brief description abbreviator that is
-# used to form the text in various listings. Each string in this list, if found
-# as the leading text of the brief description, will be stripped from the text
-# and the result, after processing the whole list, is used as the annotated
-# text. Otherwise, the brief description is used as-is. If left blank, the
-# following values are used ($name is automatically replaced with the name of
-# the entity):The $name class, The $name widget, The $name file, is, provides,
-# specifies, contains, represents, a, an and the.
-
-ABBREVIATE_BRIEF   =
-
-# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
-# doxygen will generate a detailed section even if there is only a brief
-# description.
-# The default value is: NO.
-
-ALWAYS_DETAILED_SEC= NO
-
-# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
-# inherited members of a class in the documentation of that class as if those
-# members were ordinary class members. Constructors, destructors and assignment
-# operators of the base classes will not be shown.
-# The default value is: NO.
-
-INLINE_INHERITED_MEMB  = NO
-
-# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path
-# before files name in the file list and in the header files. If set to NO the
-# shortest path that makes the file name unique will be used
-# The default value is: YES.
-
-FULL_PATH_NAMES= YES
-
-# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
-# Stripping is only done if one of the specified strings matches the left-hand
-# part of the path. The tag can be used to show relative paths in the file 
list.
-# If left blank the directory from which doxygen is run is used as the path to
-# strip.
-#
-# Note that you can specify absolute paths here, but also relative paths, which
-# will be relative from the directory where doxygen is started.
-# This tag requires that the tag FULL_PATH_NAMES is set to YES.
-
-STRIP_FROM_PATH=
-
-# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
-# path mentioned in the documentation of a class, which tells the reader which
-# header file to include in order to use a class. If left blank only the name 
of
-# the header file containing the class definition is used. Otherwise one should
-# specify the list of include paths that are normally passed to the compiler
-# using the -I flag.
-
-STRIP_FROM_INC_PATH=
-
-# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
-# less readable) file names. This can be useful is your file systems doesn't
-# support long names like on DOS, Mac, or CD-ROM.
-# The default value is: NO.
-
-SHORT_NAMES= NO
-
-# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
-# first line (until the first dot) of a Javadoc-style comment as the brief
-# description. If set to NO, the Javadoc-style will behave just 

[36/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gtest/gtest.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gtest/gtest.h 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gtest/gtest.h
deleted file mode 100644
index 4f3804f..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gtest/gtest.h
+++ /dev/null
@@ -1,20061 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// The Google C++ Testing Framework (Google Test)
-//
-// This header file defines the public API for Google Test.  It should be
-// included by any test program that uses Google Test.
-//
-// IMPORTANT NOTE: Due to limitation of the C++ language, we have to
-// leave some internal implementation details in this header file.
-// They are clearly marked by comments like this:
-//
-//   // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-//
-// Such code is NOT meant to be used by a user directly, and is subject
-// to CHANGE WITHOUT NOTICE.  Therefore DO NOT DEPEND ON IT in a user
-// program!
-//
-// Acknowledgment: Google Test borrowed the idea of automatic test
-// registration from Barthelemy Dagenais' (barthel...@prologique.com)
-// easyUnit framework.
-
-#ifndef GTEST_INCLUDE_GTEST_GTEST_H_
-#define GTEST_INCLUDE_GTEST_GTEST_H_
-
-#include 
-#include 
-#include 
-
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: w...@google.com (Zhanyong Wan), eef...@gmail.com (Sean Mcafee)
-//
-// The Google C++ Testing Framework (Google Test)
-//
-// This header file declares functions and macros used internally by
-// Google Test.  They are subject to change without notice.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
-#define 

[25/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest.h 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest.h
deleted file mode 100644
index 4f3804f..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest.h
+++ /dev/null
@@ -1,20061 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// The Google C++ Testing Framework (Google Test)
-//
-// This header file defines the public API for Google Test.  It should be
-// included by any test program that uses Google Test.
-//
-// IMPORTANT NOTE: Due to limitation of the C++ language, we have to
-// leave some internal implementation details in this header file.
-// They are clearly marked by comments like this:
-//
-//   // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-//
-// Such code is NOT meant to be used by a user directly, and is subject
-// to CHANGE WITHOUT NOTICE.  Therefore DO NOT DEPEND ON IT in a user
-// program!
-//
-// Acknowledgment: Google Test borrowed the idea of automatic test
-// registration from Barthelemy Dagenais' (barthel...@prologique.com)
-// easyUnit framework.
-
-#ifndef GTEST_INCLUDE_GTEST_GTEST_H_
-#define GTEST_INCLUDE_GTEST_GTEST_H_
-
-#include 
-#include 
-#include 
-
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: w...@google.com (Zhanyong Wan), eef...@gmail.com (Sean Mcafee)
-//
-// The Google C++ Testing Framework (Google Test)
-//
-// This header file declares functions and macros used internally by
-// Google Test.  They are subject to change without notice.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
-#define 

[30/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/ltmain.sh
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/ltmain.sh 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/ltmain.sh
deleted file mode 100644
index c2852d8..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/ltmain.sh
+++ /dev/null
@@ -1,9661 +0,0 @@
-
-# libtool (GNU libtool) 2.4.2
-# Written by Gordon Matzigkeit , 1996
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
-# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
-# This is free software; see the source for copying conditions.  There is NO
-# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-# GNU Libtool is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Libtool; see the file COPYING.  If not, a copy
-# can be downloaded from http://www.gnu.org/licenses/gpl.html,
-# or obtained by writing to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-# Usage: $progname [OPTION]... [MODE-ARG]...
-#
-# Provide generalized library-building support services.
-#
-#   --config show all configuration variables
-#   --debug  enable verbose shell tracing
-#   -n, --dry-rundisplay commands without modifying any files
-#   --features   display basic configuration information and exit
-#   --mode=MODE  use operation mode MODE
-#   --preserve-dup-deps  don't remove duplicate dependency libraries
-#   --quiet, --silentdon't print informational messages
-#   --no-quiet, --no-silent
-#print informational messages (default)
-#   --no-warndon't display warning messages
-#   --tag=TAGuse configuration variables from tag TAG
-#   -v, --verboseprint more informational messages than default
-#   --no-verbose don't print the extra informational messages
-#   --versionprint version information
-#   -h, --help, --help-all   print short, long, or detailed help message
-#
-# MODE must be one of the following:
-#
-# clean  remove files from the build directory
-# compilecompile a source file into a libtool object
-# executeautomatically set library path, then run a program
-# finish complete the installation of libtool libraries
-# installinstall libraries or executables
-# link   create a library or an executable
-# uninstall  remove libraries from an installed directory
-#
-# MODE-ARGS vary depending on the MODE.  When passed as first option,
-# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
-# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
-#
-# When reporting a bug, please describe a test case to reproduce it and
-# include the following information:
-#
-# host-triplet:$host
-# shell:   $SHELL
-# compiler:$LTCC
-# compiler flags:  $LTCFLAGS
-# linker:  $LD (gnu? $with_gnu_ld)
-# $progname:   (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
-# automake:$automake_version
-# autoconf:$autoconf_version
-#
-# Report bugs to .
-# GNU libtool home page: .
-# General help using GNU software: .
-
-PROGRAM=libtool
-PACKAGE=libtool
-VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
-TIMESTAMP=""
-package_revision=1.3337
-
-# Be Bourne compatible
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 

[66/80] [abbrv] incubator-hawq git commit: HAWQ-850. Planner supports refineCachedPlan interface.

2016-06-28 Thread cjcjameson
HAWQ-850. Planner supports refineCachedPlan interface.


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

Branch: refs/heads/HAWQ-543
Commit: c31209db7add5fdc252ba4a205eaee6699536e24
Parents: 48a79cc
Author: hzhang2 
Authored: Fri Jun 24 09:21:18 2016 +0800
Committer: hzhang2 
Committed: Fri Jun 24 09:21:18 2016 +0800

--
 src/backend/optimizer/plan/planner.c | 133 ++
 src/include/optimizer/planner.h  |   5 ++
 2 files changed, 138 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/c31209db/src/backend/optimizer/plan/planner.c
--
diff --git a/src/backend/optimizer/plan/planner.c 
b/src/backend/optimizer/plan/planner.c
index ecc4ce6..3006d33 100644
--- a/src/backend/optimizer/plan/planner.c
+++ b/src/backend/optimizer/plan/planner.c
@@ -292,6 +292,139 @@ optimize_query(Query *parse, ParamListInfo boundParams)
 }
 #endif
 
+/**
+ * in PBE, plan will be cached, but splitAllocResult and resource maybe dynamic
+ * we need to refine cached plan, with new splitAllocResult and resource
+ * also note that plan need to be regenerated when resource number changed.
+ */
+PlannedStmt *refineCachedPlan(PlannedStmt * plannedstmt,
+  Query *parse,
+  int cursorOptions,
+  ParamListInfo boundParams)
+{
+  PlannedStmt *result = plannedstmt;
+  ResourceNegotiatorResult *ppResult = (ResourceNegotiatorResult *) 
palloc(sizeof(ResourceNegotiatorResult));
+  SplitAllocResult initResult = {NULL, NULL, NIL, 0, NIL, NULL};
+  ppResult->saResult = initResult;
+  ppResult->stmt = plannedstmt;
+  instr_time  starttime, endtime;
+
+  SplitAllocResult *allocResult = NULL;
+  Query *my_parse = copyObject(parse);
+
+  /* If this is a parallel plan. request resource and allocate split again*/
+  if (plannedstmt->planTree->dispatch == DISPATCH_PARALLEL)
+  {
+/*
+ * Now, we want to allocate resource.
+ */
+allocResult = calculate_planner_segment_num(my_parse, 
plannedstmt->resource->life,
+plannedstmt->rtable, 
plannedstmt->intoPolicy,
+plannedstmt->nMotionNodes + 
plannedstmt->nInitPlans + 1,
+-1);
+
+Assert(allocResult);
+
+ppResult->saResult = *allocResult;
+pfree(allocResult);
+  } else {
+if ((ppResult != NULL))
+{
+  pfree(ppResult);
+  ppResult = NULL;
+}
+return plannedstmt;
+  }
+
+  /* if vseg number changed, we need to regenerate plan. */
+  if(plannedstmt->planner_segments != ppResult->saResult.planner_segments) {
+gp_segments_for_planner = ppResult->saResult.planner_segments;
+int optimizer_segments_saved_value = optimizer_segments;
+
+#ifdef USE_ORCA
+/**
+* If the new optimizer is enabled, try that first. If it does not return a 
plan,
+* then fall back to the planner.
+* TODO: caragg 11/08/2013: Enable ORCA when running in utility mode 
(MPP-21841)
+*/
+if (optimizer && AmIMaster() && (GP_ROLE_UTILITY != Gp_role) && 
plannedstmt->planTree->dispatch == DISPATCH_PARALLEL)
+{
+  if (gp_log_optimization_time)
+  {
+INSTR_TIME_SET_CURRENT(starttime);
+  }
+  START_MEMORY_ACCOUNT(MemoryAccounting_CreateAccount(0, 
MEMORY_OWNER_TYPE_Optimizer));
+  {
+if (optimizer_segments == 0) // value not set by user
+{
+  optimizer_segments = gp_segments_for_planner;
+}
+
+result = optimize_query(parse, boundParams);
+if (ppResult->stmt && ppResult->stmt->intoPolicy
+&& result && result->intoPolicy)
+{
+  result->intoPolicy->bucketnum =
+  ppResult->stmt->intoPolicy->bucketnum;
+}
+optimizer_segments = optimizer_segments_saved_value;
+  }
+  END_MEMORY_ACCOUNT();
+
+  if (gp_log_optimization_time)
+  {
+INSTR_TIME_SET_CURRENT(endtime);
+INSTR_TIME_SUBTRACT(endtime, starttime);
+elog(LOG, "Optimizer Time: %.3f ms", INSTR_TIME_GET_MILLISEC(endtime));
+  }
+}
+#endif
+
+if (!result)
+{
+  if (gp_log_optimization_time)
+  {
+INSTR_TIME_SET_CURRENT(starttime);
+  }
+  START_MEMORY_ACCOUNT(MemoryAccounting_CreateAccount(0, 
MEMORY_OWNER_TYPE_Planner));
+  {
+if (NULL != planner_hook)
+{
+  result = (*planner_hook) (parse, cursorOptions, boundParams, 
plannedstmt->resource->life);
+}
+else
+{
+  

[23/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h
deleted file mode 100644
index d6702c8..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h
+++ /dev/null
@@ -1,1421 +0,0 @@
-// This file was GENERATED by command:
-// pump.py gtest-param-test.h.pump
-// DO NOT EDIT BY HAND!!!
-
-// Copyright 2008, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: vl...@google.com (Vlad Losev)
-//
-// Macros and functions for implementing parameterized tests
-// in Google C++ Testing Framework (Google Test)
-//
-// This file is generated by a SCRIPT.  DO NOT EDIT BY HAND!
-//
-#ifndef GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
-#define GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
-
-
-// Value-parameterized tests allow you to test your code with different
-// parameters without writing multiple copies of the same test.
-//
-// Here is how you use value-parameterized tests:
-
-#if 0
-
-// To write value-parameterized tests, first you should define a fixture
-// class. It is usually derived from testing::TestWithParam (see below for
-// another inheritance scheme that's sometimes useful in more complicated
-// class hierarchies), where the type of your parameter values.
-// TestWithParam is itself derived from testing::Test. T can be any
-// copyable type. If it's a raw pointer, you are responsible for managing the
-// lifespan of the pointed values.
-
-class FooTest : public ::testing::TestWithParam {
-  // You can implement all the usual class fixture members here.
-};
-
-// Then, use the TEST_P macro to define as many parameterized tests
-// for this fixture as you want. The _P suffix is for "parameterized"
-// or "pattern", whichever you prefer to think.
-
-TEST_P(FooTest, DoesBlah) {
-  // Inside a test, access the test parameter with the GetParam() method
-  // of the TestWithParam class:
-  EXPECT_TRUE(foo.Blah(GetParam()));
-  ...
-}
-
-TEST_P(FooTest, HasBlahBlah) {
-  ...
-}
-
-// Finally, you can use INSTANTIATE_TEST_CASE_P to instantiate the test
-// case with any set of parameters you want. Google Test defines a number
-// of functions for generating test parameters. They return what we call
-// (surprise!) parameter generators. Here is a  summary of them, which
-// are all in the testing namespace:
-//
-//
-//  Range(begin, end [, step]) - Yields values {begin, begin+step,
-//   begin+step+step, ...}. The values do not
-//   include end. step defaults to 1.
-//  Values(v1, v2, ..., vN)- Yields values {v1, v2, ..., vN}.
-//  ValuesIn(container)- Yields values from a C-style array, an STL
-//  ValuesIn(begin,end)  container, or an iterator range [begin, end).
-//  Bool() - Yields sequence {false, true}.
-//  Combine(g1, g2, ..., gN)   - Yields all combinations (the Cartesian product
-//   for the math savvy) of the values generated
-//   by the N generators.
-//
-// For more details, see comments at the definitions of these functions below
-// in this file.
-//
-// The 

[06/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-printers.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-printers.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-printers.cc
deleted file mode 100644
index 75fa408..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-printers.cc
+++ /dev/null
@@ -1,363 +0,0 @@
-// Copyright 2007, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-
-// Google Test - The Google C++ Testing Framework
-//
-// This file implements a universal value printer that can print a
-// value of any type T:
-//
-//   void ::testing::internal::UniversalPrinter::Print(value, ostream_ptr);
-//
-// It uses the << operator when possible, and prints the bytes in the
-// object otherwise.  A user can override its behavior for a class
-// type Foo by defining either operator<<(::std::ostream&, const Foo&)
-// or void PrintTo(const Foo&, ::std::ostream*) in the namespace that
-// defines Foo.
-
-#include "gtest/gtest-printers.h"
-#include 
-#include 
-#include   // NOLINT
-#include 
-#include "gtest/internal/gtest-port.h"
-
-namespace testing {
-
-namespace {
-
-using ::std::ostream;
-
-// Prints a segment of bytes in the given object.
-void PrintByteSegmentInObjectTo(const unsigned char* obj_bytes, size_t start,
-size_t count, ostream* os) {
-  char text[5] = "";
-  for (size_t i = 0; i != count; i++) {
-const size_t j = start + i;
-if (i != 0) {
-  // Organizes the bytes into groups of 2 for easy parsing by
-  // human.
-  if ((j % 2) == 0)
-*os << ' ';
-  else
-*os << '-';
-}
-GTEST_SNPRINTF_(text, sizeof(text), "%02X", obj_bytes[j]);
-*os << text;
-  }
-}
-
-// Prints the bytes in the given value to the given ostream.
-void PrintBytesInObjectToImpl(const unsigned char* obj_bytes, size_t count,
-  ostream* os) {
-  // Tells the user how big the object is.
-  *os << count << "-byte object <";
-
-  const size_t kThreshold = 132;
-  const size_t kChunkSize = 64;
-  // If the object size is bigger than kThreshold, we'll have to omit
-  // some details by printing only the first and the last kChunkSize
-  // bytes.
-  // TODO(wan): let the user control the threshold using a flag.
-  if (count < kThreshold) {
-PrintByteSegmentInObjectTo(obj_bytes, 0, count, os);
-  } else {
-PrintByteSegmentInObjectTo(obj_bytes, 0, kChunkSize, os);
-*os << " ... ";
-// Rounds up to 2-byte boundary.
-const size_t resume_pos = (count - kChunkSize + 1)/2*2;
-PrintByteSegmentInObjectTo(obj_bytes, resume_pos, count - resume_pos, os);
-  }
-  *os << ">";
-}
-
-}  // namespace
-
-namespace internal2 {
-
-// Delegates to PrintBytesInObjectToImpl() to print the bytes in the
-// given object.  The delegation simplifies the implementation, which
-// uses the << operator and thus is easier done outside of the
-// ::testing::internal namespace, which contains a << operator that
-// sometimes conflicts with the one in STL.
-void PrintBytesInObjectTo(const unsigned char* obj_bytes, size_t count,
-  ostream* os) {
-  PrintBytesInObjectToImpl(obj_bytes, count, os);
-}
-
-}  // namespace internal2
-
-namespace internal {
-
-// 

[40/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure.ac
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure.ac 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure.ac
deleted file mode 100644
index d268d5d..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure.ac
+++ /dev/null
@@ -1,146 +0,0 @@
-m4_include(gtest/m4/acx_pthread.m4)
-
-AC_INIT([Google C++ Mocking Framework],
-[1.7.0],
-[googlem...@googlegroups.com],
-[gmock])
-
-# Provide various options to initialize the Autoconf and configure processes.
-AC_PREREQ([2.59])
-AC_CONFIG_SRCDIR([./LICENSE])
-AC_CONFIG_AUX_DIR([build-aux])
-AC_CONFIG_HEADERS([build-aux/config.h])
-AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([scripts/gmock-config], [chmod +x scripts/gmock-config])
-
-# Initialize Automake with various options. We require at least v1.9, prevent
-# pedantic complaints about package files, and enable various distribution
-# targets.
-AM_INIT_AUTOMAKE([1.9 dist-bzip2 dist-zip foreign subdir-objects])
-
-# Check for programs used in building Google Test.
-AC_PROG_CC
-AC_PROG_CXX
-AC_LANG([C++])
-AC_PROG_LIBTOOL
-
-# TODO(chandl...@google.com): Currently we aren't running the Python tests
-# against the interpreter detected by AM_PATH_PYTHON, and so we condition
-# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
-# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
-# hashbang.
-PYTHON=  # We *do not* allow the user to specify a python interpreter
-AC_PATH_PROG([PYTHON],[python],[:])
-AS_IF([test "$PYTHON" != ":"],
-  [AM_PYTHON_CHECK_VERSION([$PYTHON],[2.3],[:],[PYTHON=":"])])
-AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != ":"])
-
-# TODO(chandl...@google.com) Check for the necessary system headers.
-
-# Configure pthreads.
-AC_ARG_WITH([pthreads],
-[AS_HELP_STRING([--with-pthreads],
-   [use pthreads (default is yes)])],
-[with_pthreads=$withval],
-[with_pthreads=check])
-
-have_pthreads=no
-AS_IF([test "x$with_pthreads" != "xno"],
-  [ACX_PTHREAD(
-[],
-[AS_IF([test "x$with_pthreads" != "xcheck"],
-   [AC_MSG_FAILURE(
- [--with-pthreads was specified, but unable to be used])])])
-   have_pthreads="$acx_pthread_ok"])
-AM_CONDITIONAL([HAVE_PTHREADS],[test "x$have_pthreads" == "xyes"])
-AC_SUBST(PTHREAD_CFLAGS)
-AC_SUBST(PTHREAD_LIBS)
-
-# GoogleMock currently has hard dependencies upon GoogleTest above and beyond
-# running its own test suite, so we both provide our own version in
-# a subdirectory and provide some logic to use a custom version or a system
-# installed version.
-AC_ARG_WITH([gtest],
-[AS_HELP_STRING([--with-gtest],
-[Specifies how to find the gtest package. If no
-arguments are given, the default behavior, a
-system installed gtest will be used if present,
-and an internal version built otherwise. If a
-path is provided, the gtest built or installed at
-that prefix will be used.])],
-[],
-[with_gtest=yes])
-AC_ARG_ENABLE([external-gtest],
-  [AS_HELP_STRING([--disable-external-gtest],
-  [Disables any detection or use of a system
-  installed or user provided gtest. Any option to
-  '--with-gtest' is ignored. (Default is 
enabled.)])
-  ], [], [enable_external_gtest=yes])
-AS_IF([test "x$with_gtest" == "xno"],
-  [AC_MSG_ERROR([dnl
-Support for GoogleTest was explicitly disabled. Currently GoogleMock has a hard
-dependency upon GoogleTest to build, please provide a version, or allow
-GoogleMock to use any installed version and fall back upon its internal
-version.])])
-
-# Setup various GTEST variables. TODO(chandl...@google.com): When these are
-# used below, they should be used such that any pre-existing values always
-# trump values we set them to, so that they can be used to selectively override
-# details of the detection process.
-AC_ARG_VAR([GTEST_CONFIG],
-   [The exact path of Google Test's 'gtest-config' script.])
-AC_ARG_VAR([GTEST_CPPFLAGS],
-   [C-like preprocessor flags for Google Test.])
-AC_ARG_VAR([GTEST_CXXFLAGS],
-   [C++ compile flags for Google Test.])
-AC_ARG_VAR([GTEST_LDFLAGS],
-   [Linker path and option flags for Google Test.])
-AC_ARG_VAR([GTEST_LIBS],
-   [Library linking flags for Google Test.])
-AC_ARG_VAR([GTEST_VERSION],
-   [The version of Google Test available.])
-HAVE_BUILT_GTEST="no"
-
-GTEST_MIN_VERSION="1.7.0"
-
-AS_IF([test "x${enable_external_gtest}" = "xyes"],
-  [# Begin filling in 

[24/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest_main.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest_main.cc
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest_main.cc
deleted file mode 100644
index f302822..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest_main.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2006, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-#include 
-
-#include "gtest/gtest.h"
-
-GTEST_API_ int main(int argc, char **argv) {
-  printf("Running main() from gtest_main.cc\n");
-  testing::InitGoogleTest(, argv);
-  return RUN_ALL_TESTS();
-}

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-death-test.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-death-test.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-death-test.h
deleted file mode 100644
index 957a69c..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-death-test.h
+++ /dev/null
@@ -1,294 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// The Google C++ Testing Framework (Google Test)
-//
-// This header file defines the public API for death tests.  It is
-// #included by gtest.h so a user doesn't need to include this
-// directly.
-
-#ifndef GTEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_
-#define GTEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_
-
-#include "gtest/internal/gtest-death-test-internal.h"
-
-namespace testing {
-
-// This flag controls the style of death tests.  

[51/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
HAWQ-849. Remove apache orc codebase from hawq


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

Branch: refs/heads/HAWQ-543
Commit: 64dce1a8a8b55fdd2f7d61c68524ea6ef08def88
Parents: 595b5b2
Author: xunzhang 
Authored: Tue Jun 21 22:57:15 2016 +0800
Committer: Ruilong Huo 
Committed: Wed Jun 22 18:13:41 2016 +0800

--
 depends/thirdparty/orc/.gitignore   | 6 -
 depends/thirdparty/orc/CMakeLists.txt   |   137 -
 depends/thirdparty/orc/LICENSE  |   234 -
 depends/thirdparty/orc/NOTICE   | 9 -
 depends/thirdparty/orc/README.md|64 -
 depends/thirdparty/orc/c++/CMakeLists.txt   |21 -
 depends/thirdparty/orc/c++/Doxyfile |  2246 --
 .../thirdparty/orc/c++/include/CMakeLists.txt   |83 -
 .../orc/c++/include/orc/ColumnPrinter.hh|51 -
 .../thirdparty/orc/c++/include/orc/Int128.hh|   336 -
 .../orc/c++/include/orc/MemoryPool.hh   |82 -
 .../thirdparty/orc/c++/include/orc/OrcFile.hh   |95 -
 .../thirdparty/orc/c++/include/orc/Reader.hh|   867 -
 depends/thirdparty/orc/c++/include/orc/Type.hh  |   105 -
 .../thirdparty/orc/c++/include/orc/Vector.hh|   266 -
 .../orc/c++/include/orc/orc-config.hh.in|78 -
 depends/thirdparty/orc/c++/libs/CMakeLists.txt  |16 -
 .../thirdparty/orc/c++/libs/gmock-1.7.0/CHANGES |   126 -
 .../orc/c++/libs/gmock-1.7.0/CMakeLists.txt |   165 -
 .../orc/c++/libs/gmock-1.7.0/CONTRIBUTORS   |40 -
 .../thirdparty/orc/c++/libs/gmock-1.7.0/LICENSE |28 -
 .../orc/c++/libs/gmock-1.7.0/Makefile.am|   216 -
 .../orc/c++/libs/gmock-1.7.0/Makefile.in|  1357 --
 .../thirdparty/orc/c++/libs/gmock-1.7.0/README  |   369 -
 .../orc/c++/libs/gmock-1.7.0/aclocal.m4 |  9799 
 .../c++/libs/gmock-1.7.0/build-aux/config.guess |  1530 --
 .../c++/libs/gmock-1.7.0/build-aux/config.h.in  |69 -
 .../c++/libs/gmock-1.7.0/build-aux/config.sub   |  1773 --
 .../orc/c++/libs/gmock-1.7.0/build-aux/depcomp  |   688 -
 .../c++/libs/gmock-1.7.0/build-aux/install-sh   |   527 -
 .../c++/libs/gmock-1.7.0/build-aux/ltmain.sh|  9661 
 .../orc/c++/libs/gmock-1.7.0/build-aux/missing  |   331 -
 .../orc/c++/libs/gmock-1.7.0/configure  | 18535 ---
 .../orc/c++/libs/gmock-1.7.0/configure.ac   |   146 -
 .../gmock-1.7.0/fused-src/gmock-gtest-all.cc| 11443 --
 .../libs/gmock-1.7.0/fused-src/gmock/gmock.h| 14198 
 .../libs/gmock-1.7.0/fused-src/gmock_main.cc|54 -
 .../libs/gmock-1.7.0/fused-src/gtest/gtest.h| 20061 -
 .../orc/c++/libs/gmock-1.7.0/gtest/CHANGES  |   157 -
 .../c++/libs/gmock-1.7.0/gtest/CMakeLists.txt   |   252 -
 .../orc/c++/libs/gmock-1.7.0/gtest/CONTRIBUTORS |37 -
 .../orc/c++/libs/gmock-1.7.0/gtest/LICENSE  |28 -
 .../orc/c++/libs/gmock-1.7.0/gtest/Makefile.am  |   306 -
 .../orc/c++/libs/gmock-1.7.0/gtest/Makefile.in  |  1360 --
 .../orc/c++/libs/gmock-1.7.0/gtest/README   |   435 -
 .../orc/c++/libs/gmock-1.7.0/gtest/aclocal.m4   |  1198 -
 .../gmock-1.7.0/gtest/build-aux/config.guess|  1530 --
 .../gmock-1.7.0/gtest/build-aux/config.h.in |69 -
 .../libs/gmock-1.7.0/gtest/build-aux/config.sub |  1773 --
 .../libs/gmock-1.7.0/gtest/build-aux/depcomp|   688 -
 .../libs/gmock-1.7.0/gtest/build-aux/install-sh |   527 -
 .../libs/gmock-1.7.0/gtest/build-aux/ltmain.sh  |  9661 
 .../libs/gmock-1.7.0/gtest/build-aux/missing|   331 -
 .../gtest/cmake/internal_utils.cmake|   227 -
 .../gmock-1.7.0/gtest/codegear/gtest.cbproj |   138 -
 .../gmock-1.7.0/gtest/codegear/gtest.groupproj  |54 -
 .../gmock-1.7.0/gtest/codegear/gtest_all.cc |38 -
 .../gmock-1.7.0/gtest/codegear/gtest_link.cc|40 -
 .../gtest/codegear/gtest_main.cbproj|82 -
 .../gtest/codegear/gtest_unittest.cbproj|88 -
 .../orc/c++/libs/gmock-1.7.0/gtest/configure| 18222 ---
 .../orc/c++/libs/gmock-1.7.0/gtest/configure.ac |68 -
 .../gtest/fused-src/gtest/gtest-all.cc  |  9592 
 .../gmock-1.7.0/gtest/fused-src/gtest/gtest.h   | 20061 -
 .../gtest/fused-src/gtest/gtest_main.cc |38 -
 .../gtest/include/gtest/gtest-death-test.h  |   294 -
 .../gtest/include/gtest/gtest-message.h |   250 -
 .../gtest/include/gtest/gtest-param-test.h  |  1421 --
 .../gtest/include/gtest/gtest-param-test.h.pump |   487 -
 .../gtest/include/gtest/gtest-printers.h|   855 -
 .../gmock-1.7.0/gtest/include/gtest/gtest-spi.h |   232 -
 

[67/80] [abbrv] incubator-hawq git commit: HAWQ-862. Make user defined function get_ao_distribution work.

2016-06-28 Thread cjcjameson
HAWQ-862. Make user defined function get_ao_distribution work.


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

Branch: refs/heads/HAWQ-543
Commit: 87b5d8f9b2bfca2e865fa3004d8c5cf6a73a2e4a
Parents: c31209d
Author: hzhang2 
Authored: Fri Jun 24 09:10:33 2016 +0800
Committer: hzhang2 
Committed: Fri Jun 24 09:26:17 2016 +0800

--
 src/backend/access/appendonly/aosegfiles.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/87b5d8f9/src/backend/access/appendonly/aosegfiles.c
--
diff --git a/src/backend/access/appendonly/aosegfiles.c 
b/src/backend/access/appendonly/aosegfiles.c
index 6da6a21..993e489 100644
--- a/src/backend/access/appendonly/aosegfiles.c
+++ b/src/backend/access/appendonly/aosegfiles.c
@@ -1425,9 +1425,9 @@ get_ao_distribution_name(PG_FUNCTION_ARGS)
 * assemble our query string
 */
initStringInfo();
-   appendStringInfo(, "select gp_segment_id,sum(tupcount) "
-   "from 
gp_dist_random('pg_aoseg.%s') "
-   "group by (gp_segment_id)", 
aoseg_relname);
+   appendStringInfo(, "select segno,sum(tupcount) "
+   "from pg_aoseg.%s "
+   "group by (segno)", 
aoseg_relname);
 
PG_TRY();
{



[59/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c 
b/tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c
new file mode 100644
index 000..aa53c59
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c
@@ -0,0 +1,118 @@
+
+/*
+ *  md2.c : MD2 hash algorithm.
+ *
+ * Part of the Python Cryptography Toolkit
+ *
+ * Distribute and use freely; there are no restrictions on further 
+ * dissemination and usage except those imposed by the laws of your 
+ * country of residence.
+ *
+ */
+  
+
+#include 
+#include "Python.h"
+
+#define MODULE_NAME MD2
+#define DIGEST_SIZE 16
+
+typedef unsigned char U8;
+typedef unsigned int U32;
+
+typedef struct {
+   U8 C[16], X[48];
+   int count;
+   U8 buf[16];
+} hash_state;
+
+static void hash_init (hash_state *ptr)
+{
+   memset(ptr->X, 0, 48);
+   memset(ptr->C, 0, 16);
+   ptr->count=0;
+}
+
+static U8 S[256] = {
+   41, 46, 67, 201, 162, 216, 124, 1, 61, 54, 84, 161, 236, 240, 6,
+   19, 98, 167, 5, 243, 192, 199, 115, 140, 152, 147, 43, 217, 188,
+   76, 130, 202, 30, 155, 87, 60, 253, 212, 224, 22, 103, 66, 111, 24,
+   138, 23, 229, 18, 190, 78, 196, 214, 218, 158, 222, 73, 160, 251,
+   245, 142, 187, 47, 238, 122, 169, 104, 121, 145, 21, 178, 7, 63,
+   148, 194, 16, 137, 11, 34, 95, 33, 128, 127, 93, 154, 90, 144, 50,
+   39, 53, 62, 204, 231, 191, 247, 151, 3, 255, 25, 48, 179, 72, 165,
+   181, 209, 215, 94, 146, 42, 172, 86, 170, 198, 79, 184, 56, 210,
+   150, 164, 125, 182, 118, 252, 107, 226, 156, 116, 4, 241, 69, 157,
+   112, 89, 100, 113, 135, 32, 134, 91, 207, 101, 230, 45, 168, 2, 27,
+   96, 37, 173, 174, 176, 185, 246, 28, 70, 97, 105, 52, 64, 126, 15,
+   85, 71, 163, 35, 221, 81, 175, 58, 195, 92, 249, 206, 186, 197,
+   234, 38, 44, 83, 13, 110, 133, 40, 132, 9, 211, 223, 205, 244, 65,
+   129, 77, 82, 106, 220, 55, 200, 108, 193, 171, 250, 36, 225, 123,
+   8, 12, 189, 177, 74, 120, 136, 149, 139, 227, 99, 232, 109, 233,
+   203, 213, 254, 59, 0, 29, 57, 242, 239, 183, 14, 102, 88, 208, 228,
+   166, 119, 114, 248, 235, 117, 75, 10, 49, 68, 80, 180, 143, 237,
+   31, 26, 219, 153, 141, 51, 159, 17, 131, 20
+};
+
+static void
+hash_copy(hash_state *src, hash_state *dest)
+{
+   dest->count=src->count;  
+   memcpy(dest->buf, src->buf, dest->count);
+   memcpy(dest->X, src->X, 48);
+   memcpy(dest->C, src->C, 16);
+}
+
+
+static void hash_update (hash_state *self, const U8 *buf, U32 len)
+{
+   U32 L;
+   while (len) 
+   {
+   L=(16-self->count) < len ? (16-self->count) : len;
+   memcpy(self->buf+self->count, buf, L);
+   self->count+=L;
+   buf+=L;
+   len-=L;
+   if (self->count==16) 
+   {
+   U8 t;
+   int i,j;
+ 
+   self->count=0;
+   memcpy(self->X+16, self->buf, 16);
+   t=self->C[15];
+   for(i=0; i<16; i++)
+   {
+   self->X[32+i]=self->X[16+i]^self->X[i];
+   t=self->C[i]^=S[self->buf[i]^t];
+   }
+ 
+   t=0;
+   for(i=0; i<18; i++)
+   {
+   for(j=0; j<48; j++)
+   t=self->X[j]^=S[t];
+   t=(t+i) & 0xFF;
+   }
+   }
+   }
+}
+
+static PyObject *
+hash_digest (const hash_state *self)
+{
+   U8 padding[16];
+   U32 padlen;
+   hash_state temp;
+   int i;
+  
+   memcpy(, self, sizeof(hash_state));
+   padlen= 16-self->count;
+   for(i=0; i

[57/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/test/testdata.py
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/test/testdata.py 
b/tools/bin/pythonSrc/pycrypto-2.0.1/test/testdata.py
new file mode 100644
index 000..7b9fb64
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/test/testdata.py
@@ -0,0 +1,681 @@
+#
+#  testdata.py : Test data for the various algorithms
+#
+# Part of the Python Cryptography Toolkit
+#
+# Distribute and use freely; there are no restrictions on further
+# dissemination and usage except those imposed by the laws of your
+# country of residence.  This software is provided "as is" without
+# warranty of fitness for use or suitability for any purpose, express
+# or implied. Use at your own risk or not at all.
+#
+
+#  Data for encryption algorithms is saved as (key, plaintext,
+# ciphertext) tuples.  Hashing algorithm test data is simply
+# (text, hashvalue) pairs.
+
+# MD2 validation data
+
+md2= [
+ ("", "8350e5a3e24c153df2275c9f80692773"),
+ ("a", "32ec01ec4a6dac72c0ab96fb34c0b5d1"),
+ ("abc", "da853b0d3f88d99b30283a69e6ded6bb"),
+ ("message digest", "ab4f496bfb2a530b219ff33031fe06b0"),
+ ("abcdefghijklmnopqrstuvwxyz", "4e8ddff3650292ab5a4108c3aa47940b"),
+ ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
+  "da33def2a42df13975352846c30338cd"),
+ 
("12345678901234567890123456789012345678901234567890123456789012345678901234567890",
+  "d5976f79d83d3a0dc9806c3c66f3efd8")
+ ]
+
+# MD4 validation data
+
+md4= [
+  ('', "31d6cfe0d16ae931b73c59d7e0c089c0"),
+  ("a",   "bde52cb31de33e46245e05fbdbd6fb24"),
+  ("abc",   "a448017aaf21d8525fc10ae87aa6729d"),
+  ("message digest",   "d9130a8164549fe818874806e1c7014b"),
+  ("abcdefghijklmnopqrstuvwxyz",   "d79e1c308aa5bbcdeea8ed63df412da9"),
+  ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
+   "043f8582f241db351ce627e153e7f0e4"),
+  
("12345678901234567890123456789012345678901234567890123456789012345678901234567890",
+  "e33b4ddc9c38f2199c3e7b164fcc0536"),
+ ]
+
+# MD5 validation data
+
+md5= [
+('',  "d41d8cd98f00b204e9800998ecf8427e"),
+('a', "0cc175b9c0f1b6a831c399e269772661"),
+('abc', "900150983cd24fb0d6963f7d28e17f72"),
+('message digest', "f96b697d7cb7938d525a2f31aaf161d0"),
+('abcdefghijklmnopqrstuvwxyz', "c3fcd3d76192e4007dfb496cca67e13b"),
+('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
+   "d174ab98d277d9f5a5611c2c9f419d9f"),
+('12345678901234567890123456789012345678901234567890123456789'
+ '012345678901234567890', "57edf4a22be3c955ac49da2e2107b67a")
+ ]
+
+# Test data for SHA, the Secure Hash Algorithm.
+
+sha = [
+   ('abc', "a9993e364706816aba3e25717850c26c9cd0d89d"),
+   ('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq',
+"84983e441c3bd26ebaae4aa1f95129e5e54670f1"),
+   (100 * 'a', '34aa973cd4c4daa4f61eeb2bdbad27316534016f'),
+  ]
+
+sha256 = [
+   ('abc', 
"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"),
+   ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
+"248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"),
+   
("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
 
+"cf5b16a778af8380036ce59e7b0492370b249b11e8f07a51afac45037afee9d1"),
+   ("Four score and seven years ago our fathers brought forth on this 
continent, a new nation, conceived in Liberty, and dedicated to the proposition 
that all men are created equal.  Now we are engaged in a great civil war, 
testing whether that nation, or any nation so conceived and so dedicated, can 
long endure. We are met on a great battlefield of that war.  We have come to 
dedicate a portion of that field, as a final resting place for those who here 
gave their lives that that nation might live.  It is altogether fitting and 
proper that we should do this.  But, in a larger sense, we can not dedicate--we 
can not consecrate--we can not hallow--this ground.  The brave men, living and 
dead, who struggled here, have consecrated it, far above our poor power to add 
or detract.  The world will little note, nor long remember what we say here, 
but it can never forget what they did here.  It is for us the living, rather, 
to be dedicated here to the unfinished work which they who fought h
 ere have thus far so nobly advanced.  It is rather for us to be here dedicated 
to the great task remaining before us--that from these honored dead we take 
increased devotion to that cause for which they gave the last full measure of 
devotion--that we here highly resolve that these dead shall not have died in 
vain--that this nation, under God, shall have a new birth of freedom--and that 
government of the 

[61/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c 
b/tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c
new file mode 100644
index 000..cf9bba9
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c
@@ -0,0 +1,1459 @@
+/**
+ * rijndael-alg-fst.c
+ *
+ * @version 3.0 (December 2000)
+ *
+ * Optimised ANSI C code for the Rijndael cipher (now AES)
+ *
+ * @author Vincent Rijmen 
+ * @author Antoon Bosselaers 
+ * @author Paulo Barreto 
+ *
+ * This code is hereby placed in the public domain.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include 
+#include 
+#include "Python.h"
+
+#define MODULE_NAME AES
+#define BLOCK_SIZE 16
+#define KEY_SIZE 0
+
+#define MAXKC  (256/32)
+#define MAXKB  (256/8)
+#define MAXNR  14
+
+typedef unsigned char  u8; 
+typedef unsigned short u16;
+typedef unsigned int   u32;
+
+typedef struct {
+   u32 ek[ 4*(MAXNR+1) ]; 
+   u32 dk[ 4*(MAXNR+1) ];
+   int rounds;
+} block_state;
+
+void rijndaelEncrypt(u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 pt[16], u8 
ct[16]);
+void rijndaelDecrypt(u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 ct[16], u8 
pt[16]);
+
+#ifdef INTERMEDIATE_VALUE_KAT
+void rijndaelEncryptRound(const u32 rk[/*4*(Nr + 1)*/], int Nr, u8 block[16], 
int rounds);
+void rijndaelDecryptRound(const u32 rk[/*4*(Nr + 1)*/], int Nr, u8 block[16], 
int rounds);
+#endif /* INTERMEDIATE_VALUE_KAT */
+
+/*
+Te0[x] = S [x].[02, 01, 01, 03];
+Te1[x] = S [x].[03, 02, 01, 01];
+Te2[x] = S [x].[01, 03, 02, 01];
+Te3[x] = S [x].[01, 01, 03, 02];
+Te4[x] = S [x].[01, 01, 01, 01];
+
+Td0[x] = Si[x].[0e, 09, 0d, 0b];
+Td1[x] = Si[x].[0b, 0e, 09, 0d];
+Td2[x] = Si[x].[0d, 0b, 0e, 09];
+Td3[x] = Si[x].[09, 0d, 0b, 0e];
+Td4[x] = Si[x].[01, 01, 01, 01];
+*/
+
+static const u32 Te0[256] = {
+   0xc66363a5U, 0xf87c7c84U, 0xee99U, 0xf67b7b8dU,
+   0xfff2f20dU, 0xd66b6bbdU, 0xde6f6fb1U, 0x91c5c554U,
+   0x60303050U, 0x02010103U, 0xce6767a9U, 0x562b2b7dU,
+   0xe7fefe19U, 0xb5d7d762U, 0x4dababe6U, 0xec76769aU,
+   0x8fcaca45U, 0x1f82829dU, 0x89c9c940U, 0xfa7d7d87U,
+   0xeffafa15U, 0xb25959ebU, 0x8e4747c9U, 0xfbf0f00bU,
+   0x41adadecU, 0xb3d4d467U, 0x5fa2a2fdU, 0x45afafeaU,
+   0x239c9cbfU, 0x53a4a4f7U, 0xe4727296U, 0x9bc0c05bU,
+   0x75b7b7c2U, 0xe1fdfd1cU, 0x3d9393aeU, 0x4c26266aU,
+   0x6c36365aU, 0x7e3f3f41U, 0xf5f7f702U, 0x834fU,
+   0x6834345cU, 0x51a5a5f4U, 0xd1e5e534U, 0xf9f1f108U,
+   0xe2717193U, 0xabd8d873U, 0x62313153U, 0x2a15153fU,
+   0x0804040cU, 0x95c7c752U, 0x46232365U, 0x9dc3c35eU,
+   0x30181828U, 0x379696a1U, 0x0a05050fU, 0x2f9a9ab5U,
+   0x0e070709U, 0x24121236U, 0x1b80809bU, 0xdfe2e23dU,
+   0xcdebeb26U, 0x4e272769U, 0x7fb2b2cdU, 0xea75759fU,
+   0x1209091bU, 0x1d83839eU, 0x582c2c74U, 0x341a1a2eU,
+   0x361b1b2dU, 0xdc6e6eb2U, 0xb45a5aeeU, 0x5ba0a0fbU,
+   0xa45252f6U, 0x763b3b4dU, 0xb7d6d661U, 0x7db3b3ceU,
+   0x5229297bU, 0xdde3e33eU, 0x5e2f2f71U, 0x13848497U,
+   0xa65353f5U, 0xb9d1d168U, 0xU, 0xc1eded2cU,
+   0x40202060U, 0xe3fcfc1fU, 0x79b1b1c8U, 0xb65b5bedU,
+   0xd46a6abeU, 0x8dcbcb46U, 0x67bebed9U, 0x7239394bU,
+   0x944a4adeU, 0x984c4cd4U, 0xb05858e8U, 0x85cfcf4aU,
+   0xbbd0d06bU, 0xc5efef2aU, 0x4fe5U, 0xedfbfb16U,
+   0x864343c5U, 0x9a4d4dd7U, 0x6655U, 0x11858594U,
+   0x8a4545cfU, 0xe9f9f910U, 0x04020206U, 0xfe7f7f81U,
+   0xa05050f0U, 0x783c3c44U, 0x259f9fbaU, 0x4ba8a8e3U,
+   0xa25151f3U, 0x5da3a3feU, 0x804040c0U, 0x058f8f8aU,
+   0x3f9292adU, 0x219d9dbcU, 0x70383848U, 0xf1f5f504U,
+   0x63bcbcdfU, 0x77b6b6c1U, 0xafdada75U, 0x42212163U,
+   0x20101030U, 0xe51aU, 0xfdf3f30eU, 0xbfd2d26dU,
+   0x81cdcd4cU, 0x180c0c14U, 0x26131335U, 0xc3ecec2fU,
+   0xbe5f5fe1U, 0x359797a2U, 0x88ccU, 0x2e171739U,
+   0x93c4c457U, 0x55a7a7f2U, 0xfc7e7e82U, 0x7a3d3d47U,
+   0xc86464acU, 0xba5d5de7U, 0x3219192bU, 0xe6737395U,
+   0xc06060a0U, 0x19818198U, 0x9e4f4fd1U, 

[05/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest.cc
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest.cc
deleted file mode 100644
index 6de53dd..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest.cc
+++ /dev/null
@@ -1,5015 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// The Google C++ Testing Framework (Google Test)
-
-#include "gtest/gtest.h"
-#include "gtest/gtest-spi.h"
-
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-
-#include 
-#include 
-#include 
-#include   // NOLINT
-#include 
-#include 
-
-#if GTEST_OS_LINUX
-
-// TODO(ken...@google.com): Use autoconf to detect availability of
-// gettimeofday().
-# define GTEST_HAS_GETTIMEOFDAY_ 1
-
-# include   // NOLINT
-# include   // NOLINT
-# include   // NOLINT
-// Declares vsnprintf().  This header is not available on Windows.
-# include   // NOLINT
-# include   // NOLINT
-# include   // NOLINT
-# include   // NOLINT
-# include 
-
-#elif GTEST_OS_SYMBIAN
-# define GTEST_HAS_GETTIMEOFDAY_ 1
-# include   // NOLINT
-
-#elif GTEST_OS_ZOS
-# define GTEST_HAS_GETTIMEOFDAY_ 1
-# include   // NOLINT
-
-// On z/OS we additionally need strings.h for strcasecmp.
-# include   // NOLINT
-
-#elif GTEST_OS_WINDOWS_MOBILE  // We are on Windows CE.
-
-# include   // NOLINT
-
-#elif GTEST_OS_WINDOWS  // We are on Windows proper.
-
-# include   // NOLINT
-# include   // NOLINT
-# include   // NOLINT
-# include   // NOLINT
-
-# if GTEST_OS_WINDOWS_MINGW
-// MinGW has gettimeofday() but not _ftime64().
-// TODO(ken...@google.com): Use autoconf to detect availability of
-//   gettimeofday().
-// TODO(ken...@google.com): There are other ways to get the time on
-//   Windows, like GetTickCount() or GetSystemTimeAsFileTime().  MinGW
-//   supports these.  consider using them instead.
-#  define GTEST_HAS_GETTIMEOFDAY_ 1
-#  include   // NOLINT
-# endif  // GTEST_OS_WINDOWS_MINGW
-
-// cpplint thinks that the header is already included, so we want to
-// silence it.
-# include   // NOLINT
-
-#else
-
-// Assume other platforms have gettimeofday().
-// TODO(ken...@google.com): Use autoconf to detect availability of
-//   gettimeofday().
-# define GTEST_HAS_GETTIMEOFDAY_ 1
-
-// cpplint thinks that the header is already included, so we want to
-// silence it.
-# include   // NOLINT
-# include   // NOLINT
-
-#endif  // GTEST_OS_LINUX
-
-#if GTEST_HAS_EXCEPTIONS
-# include 
-#endif
-
-#if GTEST_CAN_STREAM_RESULTS_
-# include   // NOLINT
-# include   // NOLINT
-#endif
-
-// Indicates that this translation unit is part of Google Test's
-// implementation.  It must come before gtest-internal-inl.h is
-// included, or there will be a compiler error.  This trick is to
-// prevent a user from accidentally including gtest-internal-inl.h in
-// his code.
-#define GTEST_IMPLEMENTATION_ 1
-#include "src/gtest-internal-inl.h"
-#undef GTEST_IMPLEMENTATION_
-
-#if GTEST_OS_WINDOWS
-# define vsnprintf _vsnprintf
-#endif  // GTEST_OS_WINDOWS
-
-namespace testing {
-
-using internal::CountIf;
-using internal::ForEach;
-using internal::GetElementOr;
-using internal::Shuffle;
-
-// Constants.
-
-// A test whose test case name or test 

[55/80] [abbrv] incubator-hawq git commit: HAWQ-856 Explicitly initialize GPOPT and its dependencies.

2016-06-28 Thread cjcjameson
HAWQ-856 Explicitly initialize GPOPT and its dependencies.


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

Branch: refs/heads/HAWQ-543
Commit: 0f6ac20a9c687c70cac136f55e44022f8476792f
Parents: 752a98c
Author: Venkatesh (Venky) Raghavan 
Authored: Wed Jun 22 15:14:38 2016 -0700
Committer: Venkatesh (Venky) Raghavan 
Committed: Wed Jun 22 15:14:38 2016 -0700

--
 depends/thirdparty/gporca  |  2 +-
 depends/thirdparty/gpos|  2 +-
 src/backend/gpopt/CGPOptimizer.cpp | 67 -
 src/backend/gpopt/ivy.xml  |  4 +-
 src/backend/utils/init/postinit.c  | 14 +++
 src/include/gpopt/CGPOptimizer.h   |  7 
 6 files changed, 91 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0f6ac20a/depends/thirdparty/gporca
--
diff --git a/depends/thirdparty/gporca b/depends/thirdparty/gporca
index f0532b1..0d83756 16
--- a/depends/thirdparty/gporca
+++ b/depends/thirdparty/gporca
@@ -1 +1 @@
-Subproject commit f0532b19c22c86e6959ae35fb9568096b7d666f9
+Subproject commit 0d837569e61182f68bf1b92038c6616401790a16

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0f6ac20a/depends/thirdparty/gpos
--
diff --git a/depends/thirdparty/gpos b/depends/thirdparty/gpos
index 91fa636..6af760f 16
--- a/depends/thirdparty/gpos
+++ b/depends/thirdparty/gpos
@@ -1 +1 @@
-Subproject commit 91fa636d53ad71d56a4beae55e3ed1fb6d6f8f92
+Subproject commit 6af760fb96f5bd48783e8644e7d63c39132b8c08

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0f6ac20a/src/backend/gpopt/CGPOptimizer.cpp
--
diff --git a/src/backend/gpopt/CGPOptimizer.cpp 
b/src/backend/gpopt/CGPOptimizer.cpp
index c0eaa3e..db3cab8 100644
--- a/src/backend/gpopt/CGPOptimizer.cpp
+++ b/src/backend/gpopt/CGPOptimizer.cpp
@@ -48,7 +48,7 @@
 void
 CGPOptimizer::TouchLibraryInitializers()
 {
-   void (*gpos)() = gpos_init;
+   void (*gpos)(gpos_init_params*) = gpos_init;
void (*dxl)() = gpdxl_init;
void (*opt)() = gpopt_init;
 }
@@ -90,6 +90,39 @@ CGPOptimizer::SzDXLPlan
return COptTasks::SzOptimize(pquery);
 }
 
+//---
+// @function:
+// InitGPOPT()
+//
+// @doc:
+// Initialize GPTOPT and dependent libraries
+//
+//---
+void
+CGPOptimizer::InitGPOPT ()
+{
+  // Use GPORCA's default allocators
+  struct gpos_init_params params = { NULL, NULL };
+  gpos_init();
+  gpdxl_init();
+  gpopt_init();
+}
+
+//---
+// @function:
+// TerminateGPOPT()
+//
+// @doc:
+// Terminate GPOPT and dependent libraries
+//
+//---
+void
+CGPOptimizer::TerminateGPOPT ()
+{
+  gpopt_terminate();
+  gpdxl_terminate();
+  gpos_terminate();
+}
 
 //---
 // @function:
@@ -130,4 +163,36 @@ char *SzDXLPlan
 }
 }
 
+//---
+// @function:
+// InitGPOPT()
+//
+// @doc:
+// Initialize GPTOPT and dependent libraries
+//
+//---
+extern "C"
+{
+void InitGPOPT ()
+{
+   return CGPOptimizer::InitGPOPT();
+}
+}
+
+//---
+// @function:
+// TerminateGPOPT()
+//
+// @doc:
+// Terminate GPOPT and dependent libraries
+//
+//---
+extern "C"
+{
+void TerminateGPOPT ()
+{
+   return CGPOptimizer::TerminateGPOPT();
+}
+}
+
 // EOF

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0f6ac20a/src/backend/gpopt/ivy.xml
--
diff --git a/src/backend/gpopt/ivy.xml b/src/backend/gpopt/ivy.xml
index a9d08aa..43423eb 100644
--- a/src/backend/gpopt/ivy.xml
+++ b/src/backend/gpopt/ivy.xml
@@ -38,8 +38,8 @@ under the License.
 
 
 
-  
-  
+  
+  
   
 
 


[64/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
HAWQ-863. Add python module pycrypto


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

Branch: refs/heads/HAWQ-543
Commit: 2c87cdcbdde5cf349083e3254a65b6c619388491
Parents: 74401eb
Author: rlei 
Authored: Thu Jun 23 10:06:34 2016 +0800
Committer: rlei 
Committed: Thu Jun 23 10:12:59 2016 +0800

--
 tools/bin/Makefile  |2 +-
 tools/bin/pythonSrc/pycrypto-2.0.1/ACKS |   34 +
 tools/bin/pythonSrc/pycrypto-2.0.1/ChangeLog|  316 
 .../pythonSrc/pycrypto-2.0.1/Cipher/__init__.py |   33 +
 .../pythonSrc/pycrypto-2.0.1/Doc/pycrypt.tex| 1188 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/Hash/HMAC.py |  108 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/Hash/MD5.py  |   13 +
 tools/bin/pythonSrc/pycrypto-2.0.1/Hash/SHA.py  |   11 +
 .../pythonSrc/pycrypto-2.0.1/Hash/__init__.py   |   24 +
 tools/bin/pythonSrc/pycrypto-2.0.1/LICENSE  |   15 +
 tools/bin/pythonSrc/pycrypto-2.0.1/MANIFEST |   63 +
 tools/bin/pythonSrc/pycrypto-2.0.1/PKG-INFO |   18 +
 .../pycrypto-2.0.1/Protocol/AllOrNothing.py |  295 
 .../pycrypto-2.0.1/Protocol/Chaffing.py |  229 +++
 .../pycrypto-2.0.1/Protocol/__init__.py |   17 +
 .../pythonSrc/pycrypto-2.0.1/PublicKey/DSA.py   |  238 +++
 .../pycrypto-2.0.1/PublicKey/ElGamal.py |  132 ++
 .../pythonSrc/pycrypto-2.0.1/PublicKey/RSA.py   |  256 +++
 .../pycrypto-2.0.1/PublicKey/__init__.py|   17 +
 .../pycrypto-2.0.1/PublicKey/pubkey.py  |  172 +++
 .../pythonSrc/pycrypto-2.0.1/PublicKey/qNEW.py  |  170 ++
 .../pycrypto-2.0.1/PublicKey/test/rsa_speed.py  |   48 +
 tools/bin/pythonSrc/pycrypto-2.0.1/README   |   76 +
 tools/bin/pythonSrc/pycrypto-2.0.1/TODO |   31 +
 .../pythonSrc/pycrypto-2.0.1/Util/RFC1751.py|  342 
 .../pythonSrc/pycrypto-2.0.1/Util/__init__.py   |   16 +
 .../bin/pythonSrc/pycrypto-2.0.1/Util/number.py |  201 +++
 .../pythonSrc/pycrypto-2.0.1/Util/randpool.py   |  421 +
 tools/bin/pythonSrc/pycrypto-2.0.1/Util/test.py |  453 ++
 .../pycrypto-2.0.1/Util/test/prime_speed.py |   24 +
 tools/bin/pythonSrc/pycrypto-2.0.1/__init__.py  |   25 +
 tools/bin/pythonSrc/pycrypto-2.0.1/setup.py |  168 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c| 1459 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/ARC2.c   |  185 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/ARC4.c   |   72 +
 .../bin/pythonSrc/pycrypto-2.0.1/src/Blowfish.c |  499 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/CAST.c   |  436 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/DES.c|  665 
 tools/bin/pythonSrc/pycrypto-2.0.1/src/DES3.c   |  688 +
 tools/bin/pythonSrc/pycrypto-2.0.1/src/IDEA.c   |  196 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c|  118 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/MD4.c|  203 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/RC5.c|  212 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/RIPEMD.c |  507 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/SHA256.c |  200 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/XOR.c|   52 +
 tools/bin/pythonSrc/pycrypto-2.0.1/src/_dsa.c   |  331 
 .../pythonSrc/pycrypto-2.0.1/src/_fastmath.c|  804 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/_rsa.c   |  346 +
 .../pycrypto-2.0.1/src/block_template.c |  753 +
 tools/bin/pythonSrc/pycrypto-2.0.1/src/cast5.c  |  437 ++
 .../pycrypto-2.0.1/src/hash_template.c  |  248 +++
 .../pycrypto-2.0.1/src/stream_template.c|  248 +++
 .../bin/pythonSrc/pycrypto-2.0.1/src/winrand.c  |  366 +
 tools/bin/pythonSrc/pycrypto-2.0.1/test.py  |   38 +
 .../bin/pythonSrc/pycrypto-2.0.1/test/template  |   26 +
 .../pycrypto-2.0.1/test/test_chaffing.py|   58 +
 .../pycrypto-2.0.1/test/test_hashes.py  |   94 ++
 .../pycrypto-2.0.1/test/test_number.py  |   85 +
 .../pycrypto-2.0.1/test/test_publickey.py   |  122 ++
 .../pycrypto-2.0.1/test/test_randpool.py|   48 +
 .../pycrypto-2.0.1/test/test_rfc1751.py |   45 +
 .../pythonSrc/pycrypto-2.0.1/test/testdata.py   |  681 
 63 files changed, 15377 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/Makefile
--
diff --git a/tools/bin/Makefile b/tools/bin/Makefile
index 46a2df6..3102537 100644
--- a/tools/bin/Makefile
+++ b/tools/bin/Makefile
@@ -36,7 +36,7 @@ PYLIB_SRC=$(SRC)/pythonSrc
 LIB_DIR=$(SRC)/lib
 PYLIB_DIR=$(SRC)/ext
 
-all: lockfile pygresql stream 

[13/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-type-util.h.pump
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-type-util.h.pump
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-type-util.h.pump
deleted file mode 100644
index 251fdf0..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-type-util.h.pump
+++ /dev/null
@@ -1,297 +0,0 @@
-$$ -*- mode: c++; -*-
-$var n = 50  $$ Maximum length of type lists we want to support.
-// Copyright 2008 Google Inc.
-// All Rights Reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-
-// Type utilities needed for implementing typed and type-parameterized
-// tests.  This file is generated by a SCRIPT.  DO NOT EDIT BY HAND!
-//
-// Currently we support at most $n types in a list, and at most $n
-// type-parameterized tests in one type-parameterized test case.
-// Please contact googletestframew...@googlegroups.com if you need
-// more.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
-#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
-
-#include "gtest/internal/gtest-port.h"
-
-// #ifdef __GNUC__ is too general here.  It is possible to use gcc without 
using
-// libstdc++ (which is where cxxabi.h comes from).
-# if GTEST_HAS_CXXABI_H_
-#  include 
-# elif defined(__HP_aCC)
-#  include 
-# endif  // GTEST_HASH_CXXABI_H_
-
-namespace testing {
-namespace internal {
-
-// GetTypeName() returns a human-readable name of type T.
-// NB: This function is also used in Google Mock, so don't move it inside of
-// the typed-test-only section below.
-template 
-std::string GetTypeName() {
-# if GTEST_HAS_RTTI
-
-  const char* const name = typeid(T).name();
-#  if GTEST_HAS_CXXABI_H_ || defined(__HP_aCC)
-  int status = 0;
-  // gcc's implementation of typeid(T).name() mangles the type name,
-  // so we have to demangle it.
-#   if GTEST_HAS_CXXABI_H_
-  using abi::__cxa_demangle;
-#   endif  // GTEST_HAS_CXXABI_H_
-  char* const readable_name = __cxa_demangle(name, 0, 0, );
-  const std::string name_str(status == 0 ? readable_name : name);
-  free(readable_name);
-  return name_str;
-#  else
-  return name;
-#  endif  // GTEST_HAS_CXXABI_H_ || __HP_aCC
-
-# else
-
-  return "";
-
-# endif  // GTEST_HAS_RTTI
-}
-
-#if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P
-
-// AssertyTypeEq::type is defined iff T1 and T2 are the same
-// type.  This can be used as a compile-time assertion to ensure that
-// two types are equal.
-
-template 
-struct AssertTypeEq;
-
-template 
-struct AssertTypeEq {
-  typedef bool type;
-};
-
-// A unique type used as the default value for the arguments of class
-// template Types.  This allows us to simulate variadic templates
-// (e.g. Types, Type, and etc), which C++ doesn't
-// support directly.
-struct None {};
-
-// The following family of struct and struct templates are used to
-// represent type lists.  In particular, TypesN
-// represents a type list with N types (T1, T2, ..., and TN) in it.
-// Except for Types0, every struct in the family has two member types:
-// Head for the first type in the list, and Tail for the rest of the
-// list.
-
-// The empty type list.
-struct Types0 {};
-
-// Type lists 

[18/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-param-util-generated.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-param-util-generated.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-param-util-generated.h
deleted file mode 100644
index e805485..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-param-util-generated.h
+++ /dev/null
@@ -1,5143 +0,0 @@
-// This file was GENERATED by command:
-// pump.py gtest-param-util-generated.h.pump
-// DO NOT EDIT BY HAND!!!
-
-// Copyright 2008 Google Inc.
-// All Rights Reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: vl...@google.com (Vlad Losev)
-
-// Type and function utilities for implementing parameterized tests.
-// This file is generated by a SCRIPT.  DO NOT EDIT BY HAND!
-//
-// Currently Google Test supports at most 50 arguments in Values,
-// and at most 10 arguments in Combine. Please contact
-// googletestframew...@googlegroups.com if you need more.
-// Please note that the number of arguments to Combine is limited
-// by the maximum arity of the implementation of tr1::tuple which is
-// currently set at 10.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_
-#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_
-
-// scripts/fuse_gtest.py depends on gtest's own header being #included
-// *unconditionally*.  Therefore these #includes cannot be moved
-// inside #if GTEST_HAS_PARAM_TEST.
-#include "gtest/internal/gtest-param-util.h"
-#include "gtest/internal/gtest-port.h"
-
-#if GTEST_HAS_PARAM_TEST
-
-namespace testing {
-
-// Forward declarations of ValuesIn(), which is implemented in
-// include/gtest/gtest-param-test.h.
-template 
-internal::ParamGenerator<
-  typename ::testing::internal::IteratorTraits::value_type>
-ValuesIn(ForwardIterator begin, ForwardIterator end);
-
-template 
-internal::ParamGenerator ValuesIn(const T ()[N]);
-
-template 
-internal::ParamGenerator ValuesIn(
-const Container& container);
-
-namespace internal {
-
-// Used in the Values() function to provide polymorphic capabilities.
-template 
-class ValueArray1 {
- public:
-  explicit ValueArray1(T1 v1) : v1_(v1) {}
-
-  template 
-  operator ParamGenerator() const { return ValuesIn(_, _ + 1); }
-
- private:
-  // No implementation - assignment is unsupported.
-  void operator=(const ValueArray1& other);
-
-  const T1 v1_;
-};
-
-template 
-class ValueArray2 {
- public:
-  ValueArray2(T1 v1, T2 v2) : v1_(v1), v2_(v2) {}
-
-  template 
-  operator ParamGenerator() const {
-const T array[] = {static_cast(v1_), static_cast(v2_)};
-return ValuesIn(array);
-  }
-
- private:
-  // No implementation - assignment is unsupported.
-  void operator=(const ValueArray2& other);
-
-  const T1 v1_;
-  const T2 v2_;
-};
-
-template 
-class ValueArray3 {
- public:
-  ValueArray3(T1 v1, T2 v2, T3 v3) : v1_(v1), v2_(v2), v3_(v3) {}
-
-  template 
-  operator ParamGenerator() const {
-const T array[] = {static_cast(v1_), static_cast(v2_),
-static_cast(v3_)};
-return ValuesIn(array);
-  }
-
- private:
-  // No implementation - assignment is unsupported.
-  void operator=(const ValueArray3& other);
-
-  const T1 v1_;
-  const T2 v2_;
-  const T3 v3_;
-};
-
-template 

[42/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/missing
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/missing 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/missing
deleted file mode 100644
index 86a8fc3..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/missing
+++ /dev/null
@@ -1,331 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2012-01-06.13; # UTC
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
-# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard , 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see .
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
-  echo 1>&2 "Try \`$0 --help' for more information"
-  exit 1
-fi
-
-run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
-  configure_ac=configure.ac
-else
-  configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case $1 in
---run)
-  # Try to run requested program, and just exit if it succeeds.
-  run=
-  shift
-  "$@" && exit 0
-  # Exit code 63 means version mismatch.  This often happens
-  # when the user try to use an ancient version of a tool on
-  # a file that requires a minimum version.  In this case we
-  # we should proceed has if the program had been absent, or
-  # if --run hadn't been passed.
-  if test $? = 63; then
-run=:
-msg="probably too old"
-  fi
-  ;;
-
-  -h|--h|--he|--hel|--help)
-echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
-  -h, --help  display this help and exit
-  -v, --version   output version information and exit
-  --run   try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
-  aclocal  touch file \`aclocal.m4'
-  autoconf touch file \`configure'
-  autoheader   touch file \`config.h.in'
-  autom4te touch the output file, or create a stub one
-  automake touch all \`Makefile.in' files
-  bisoncreate \`y.tab.[ch]', if possible, from existing .[ch]
-  flex create \`lex.yy.c', if possible, from existing .c
-  help2man touch the output file
-  lex  create \`lex.yy.c', if possible, from existing .c
-  makeinfo touch the output file
-  yacc create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
-\`g' are ignored when checking the name.
-
-Send bug reports to ."
-exit $?
-;;
-
-  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
-echo "missing $scriptversion (GNU Automake)"
-exit $?
-;;
-
-  -*)
-echo 1>&2 "$0: Unknown \`$1' option"
-echo 1>&2 "Try \`$0 --help' for more information"
-exit 1
-;;
-
-esac
-
-# normalize program name to check for.
-program=`echo "$1" | sed '
-  s/^gnu-//; t
-  s/^gnu//; t
-  s/^g//; t'`
-
-# Now exit if we have it, but it failed.  Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program).  This is about non-GNU programs, so use $1 not
-# $program.
-case $1 in
-  lex*|yacc*)
-# Not GNU programs, they don't have --version.
-;;
-
-  *)
-if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
-   # We have it, but it failed.
-   exit 1
-elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
-   # Could not run --version or --help.  This is probably someone
-   # running `$TOOL --version' or `$TOOL --help' to check whether
-   # $TOOL exists and not knowing $TOOL uses missing.
-   exit 1
-fi
-;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate 

[19/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-linked_ptr.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-linked_ptr.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-linked_ptr.h
deleted file mode 100644
index b1362cd..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-linked_ptr.h
+++ /dev/null
@@ -1,233 +0,0 @@
-// Copyright 2003 Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: Dan Egnor (eg...@google.com)
-//
-// A "smart" pointer type with reference tracking.  Every pointer to a
-// particular object is kept on a circular linked list.  When the last pointer
-// to an object is destroyed or reassigned, the object is deleted.
-//
-// Used properly, this deletes the object when the last reference goes away.
-// There are several caveats:
-// - Like all reference counting schemes, cycles lead to leaks.
-// - Each smart pointer is actually two pointers (8 bytes instead of 4).
-// - Every time a pointer is assigned, the entire list of pointers to that
-//   object is traversed.  This class is therefore NOT SUITABLE when there
-//   will often be more than two or three pointers to a particular object.
-// - References are only tracked as long as linked_ptr<> objects are copied.
-//   If a linked_ptr<> is converted to a raw pointer and back, BAD THINGS
-//   will happen (double deletion).
-//
-// A good use of this class is storing object references in STL containers.
-// You can safely put linked_ptr<> in a vector<>.
-// Other uses may not be as good.
-//
-// Note: If you use an incomplete type with linked_ptr<>, the class
-// *containing* linked_ptr<> must have a constructor and destructor (even
-// if they do nothing!).
-//
-// Bill Gibbons suggested we use something like this.
-//
-// Thread Safety:
-//   Unlike other linked_ptr implementations, in this implementation
-//   a linked_ptr object is thread-safe in the sense that:
-// - it's safe to copy linked_ptr objects concurrently,
-// - it's safe to copy *from* a linked_ptr and read its underlying
-//   raw pointer (e.g. via get()) concurrently, and
-// - it's safe to write to two linked_ptrs that point to the same
-//   shared object concurrently.
-// TODO(w...@google.com): rename this to safe_linked_ptr to avoid
-// confusion with normal linked_ptr.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_
-#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_
-
-#include 
-#include 
-
-#include "gtest/internal/gtest-port.h"
-
-namespace testing {
-namespace internal {
-
-// Protects copying of all linked_ptr objects.
-GTEST_API_ GTEST_DECLARE_STATIC_MUTEX_(g_linked_ptr_mutex);
-
-// This is used internally by all instances of linked_ptr<>.  It needs to be
-// a non-template class because different types of linked_ptr<> can refer to
-// the same object (linked_ptr(obj) vs linked_ptr(obj)).
-// So, it needs to be possible for different types of linked_ptr to participate
-// in the same circular linked list, so we need a single class type here.
-//
-// DO NOT USE THIS CLASS DIRECTLY YOURSELF.  Use linked_ptr.
-class linked_ptr_internal {
- public:
-  // Create a new circle that includes only this instance.
-  void join_new() {
-

[74/80] [abbrv] incubator-hawq git commit: HAWQ-857. Remove dead code in the Algebrizer

2016-06-28 Thread cjcjameson
HAWQ-857. Remove dead code in the Algebrizer


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

Branch: refs/heads/HAWQ-543
Commit: 4ecad4fe971de43fa9868b80d2da9e666fd246a6
Parents: 56fa206
Author: Venkatesh (Venky) Raghavan 
Authored: Wed Jun 22 15:41:30 2016 -0700
Committer: Venkatesh (Venky) Raghavan 
Committed: Mon Jun 27 15:13:06 2016 -0700

--
 src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp | 9 -
 1 file changed, 9 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/4ecad4fe/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
--
diff --git a/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp 
b/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
index ed23282..e03a542 100644
--- a/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
+++ b/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
@@ -433,15 +433,6 @@ CTranslatorQueryToDXL::CheckSupportedCmdType
return;
}
 
-   if (CMD_INSERT == pquery->commandType || CMD_DELETE == 
pquery->commandType || CMD_UPDATE == pquery->commandType)
-   {
-   if (NULL != pquery->resultRelations)
-   {
-   GPOS_RAISE(gpdxl::ExmaDXL, 
gpdxl::ExmiQuery2DXLUnsupportedFeature, GPOS_WSZ_LIT("DML on partitioned 
tables"));
-   }
-   return;
-   }
-
SCmdNameElem rgStrMap[] =
{
{CMD_UTILITY, GPOS_WSZ_LIT("UTILITY command")}



[56/80] [abbrv] incubator-hawq git commit: HAWQ-853. Master standby should avoid incomplete split operation

2016-06-28 Thread cjcjameson
HAWQ-853. Master standby should avoid incomplete split operation

Master standby performs replay of xlog records within a range of
checkpoints similar to crash recovery. During this is it may replay
incomplete multi-step operation at the end of the range. This generates
xlog. But Master standby should not generate xlog as it does not have
WAL subsystem active.

This fix avoids completing such operation e.g. Btree split if the
system is in standby mode.


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

Branch: refs/heads/HAWQ-543
Commit: 74401eb070979692771b882ea51ed7e05af29c5f
Parents: 0f6ac20
Author: Wen Lin 
Authored: Thu Jun 23 09:38:24 2016 +0800
Committer: Wen Lin 
Committed: Thu Jun 23 09:38:24 2016 +0800

--
 src/backend/access/nbtree/nbtxlog.c | 10 ++
 src/backend/access/transam/xlog.c   |  6 ++
 2 files changed, 16 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/74401eb0/src/backend/access/nbtree/nbtxlog.c
--
diff --git a/src/backend/access/nbtree/nbtxlog.c 
b/src/backend/access/nbtree/nbtxlog.c
index f0b6507..98dd5ec 100644
--- a/src/backend/access/nbtree/nbtxlog.c
+++ b/src/backend/access/nbtree/nbtxlog.c
@@ -52,6 +52,11 @@ static void
 log_incomplete_split(RelFileNode node, BlockNumber leftblk,
 BlockNumber rightblk, bool is_root)
 {
+   if (! CanEmitXLogRecords)   /*  only log incomplete split if could 
emit xlog */
+   {
+   return;
+   }
+
bt_incomplete_action *action = palloc(sizeof(bt_incomplete_action));
 
action->node = node;
@@ -88,6 +93,11 @@ forget_matching_split(RelFileNode node, BlockNumber 
downlink, bool is_root)
 static void
 log_incomplete_deletion(RelFileNode node, BlockNumber delblk)
 {
+   if (! CanEmitXLogRecords)   /*  only log incomplete deletion if 
could emit xlog */
+   {
+   return;
+   }
+
bt_incomplete_action *action = palloc(sizeof(bt_incomplete_action));
 
action->node = node;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/74401eb0/src/backend/access/transam/xlog.c
--
diff --git a/src/backend/access/transam/xlog.c 
b/src/backend/access/transam/xlog.c
index 7a50c17..a0b3c82 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -7404,6 +7404,12 @@ XLogStandbyRecoverRange(XLogRecPtr *redoCheckpointLoc, 
CheckPoint *redoCheckPoin
ShmemVariableCache->oidCount = 0;
MultiXactSetNextMXact(redoCheckPoint->nextMulti, 
redoCheckPoint->nextMultiOffset);
 
+   /*
+* Should not emit XLog during standby redo. This method is called only
+* by standby walredo process.
+*/
+   CanEmitXLogRecords = false;
+
/* Start up the recovery environment */
XLogInitRelationCache();
 



[39/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock-gtest-all.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock-gtest-all.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock-gtest-all.cc
deleted file mode 100644
index 1a63a8c..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock-gtest-all.cc
+++ /dev/null
@@ -1,11443 +0,0 @@
-// Copyright 2008, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: mhe...@google.com (Markus Heule)
-//
-// Google C++ Testing Framework (Google Test)
-//
-// Sometimes it's desirable to build Google Test by compiling a single file.
-// This file serves this purpose.
-
-// This line ensures that gtest.h can be compiled on its own, even
-// when it's fused.
-#include "gtest/gtest.h"
-
-// The following lines pull in the real gtest *.cc files.
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// The Google C++ Testing Framework (Google Test)
-
-// Copyright 2007, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS 

[27/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/configure.ac
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/configure.ac 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/configure.ac
deleted file mode 100644
index cc592e1..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/configure.ac
+++ /dev/null
@@ -1,68 +0,0 @@
-m4_include(m4/acx_pthread.m4)
-
-# At this point, the Xcode project assumes the version string will be three
-# integers separated by periods and surrounded by square brackets (e.g.
-# "[1.0.1]"). It also asumes that there won't be any closing parenthesis
-# between "AC_INIT(" and the closing ")" including comments and strings.
-AC_INIT([Google C++ Testing Framework],
-[1.7.0],
-[googletestframew...@googlegroups.com],
-[gtest])
-
-# Provide various options to initialize the Autoconf and configure processes.
-AC_PREREQ([2.59])
-AC_CONFIG_SRCDIR([./LICENSE])
-AC_CONFIG_MACRO_DIR([m4])
-AC_CONFIG_AUX_DIR([build-aux])
-AC_CONFIG_HEADERS([build-aux/config.h])
-AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([scripts/gtest-config], [chmod +x scripts/gtest-config])
-
-# Initialize Automake with various options. We require at least v1.9, prevent
-# pedantic complaints about package files, and enable various distribution
-# targets.
-AM_INIT_AUTOMAKE([1.9 dist-bzip2 dist-zip foreign subdir-objects])
-
-# Check for programs used in building Google Test.
-AC_PROG_CC
-AC_PROG_CXX
-AC_LANG([C++])
-AC_PROG_LIBTOOL
-
-# TODO(chandl...@google.com): Currently we aren't running the Python tests
-# against the interpreter detected by AM_PATH_PYTHON, and so we condition
-# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
-# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
-# hashbang.
-PYTHON=  # We *do not* allow the user to specify a python interpreter
-AC_PATH_PROG([PYTHON],[python],[:])
-AS_IF([test "$PYTHON" != ":"],
-  [AM_PYTHON_CHECK_VERSION([$PYTHON],[2.3],[:],[PYTHON=":"])])
-AM_CONDITIONAL([HAVE_PYTHON],[test "$PYTHON" != ":"])
-
-# Configure pthreads.
-AC_ARG_WITH([pthreads],
-[AS_HELP_STRING([--with-pthreads],
-   [use pthreads (default is yes)])],
-[with_pthreads=$withval],
-[with_pthreads=check])
-
-have_pthreads=no
-AS_IF([test "x$with_pthreads" != "xno"],
-  [ACX_PTHREAD(
-[],
-[AS_IF([test "x$with_pthreads" != "xcheck"],
-   [AC_MSG_FAILURE(
- [--with-pthreads was specified, but unable to be used])])])
-   have_pthreads="$acx_pthread_ok"])
-AM_CONDITIONAL([HAVE_PTHREADS],[test "x$have_pthreads" = "xyes"])
-AC_SUBST(PTHREAD_CFLAGS)
-AC_SUBST(PTHREAD_LIBS)
-
-# TODO(chandl...@google.com) Check for the necessary system headers.
-
-# TODO(chandl...@google.com) Check the types, structures, and other compiler
-# and architecture characteristics.
-
-# Output the generated files. No further autoconf macros may be used.
-AC_OUTPUT



[52/80] [abbrv] incubator-hawq git commit: Merge branch 'traceflag'

2016-06-28 Thread cjcjameson
Merge branch 'traceflag'


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

Branch: refs/heads/HAWQ-543
Commit: 817249a4605abd4415fc0de8e6a545bf88d2aa2e
Parents: 64dce1a 43efc87
Author: Venkatesh (Venky) Raghavan 
Authored: Wed Jun 22 10:26:52 2016 -0700
Committer: Venkatesh (Venky) Raghavan 
Committed: Wed Jun 22 10:26:52 2016 -0700

--
 .../gpopt/config/CConfigParamMapping.cpp|  7 --
 src/backend/gpopt/utils/COptTasks.cpp   | 25 ++--
 src/backend/utils/misc/guc.c| 10 
 src/include/utils/guc.h |  1 -
 4 files changed, 2 insertions(+), 41 deletions(-)
--




[16/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-port.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-port.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-port.h
deleted file mode 100644
index dc4fe0c..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-port.h
+++ /dev/null
@@ -1,1947 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: w...@google.com (Zhanyong Wan)
-//
-// Low-level types and utilities for porting Google Test to various
-// platforms.  They are subject to change without notice.  DO NOT USE
-// THEM IN USER CODE.
-//
-// This file is fundamental to Google Test.  All other Google Test source
-// files are expected to #include this.  Therefore, it cannot #include
-// any other Google Test header.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
-#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
-
-// The user can define the following macros in the build script to
-// control Google Test's behavior.  If the user doesn't define a macro
-// in this list, Google Test will define it.
-//
-//   GTEST_HAS_CLONE  - Define it to 1/0 to indicate that clone(2)
-//  is/isn't available.
-//   GTEST_HAS_EXCEPTIONS - Define it to 1/0 to indicate that exceptions
-//  are enabled.
-//   GTEST_HAS_GLOBAL_STRING  - Define it to 1/0 to indicate that ::string
-//  is/isn't available (some systems define
-//  ::string, which is different to std::string).
-//   GTEST_HAS_GLOBAL_WSTRING - Define it to 1/0 to indicate that ::string
-//  is/isn't available (some systems define
-//  ::wstring, which is different to std::wstring).
-//   GTEST_HAS_POSIX_RE   - Define it to 1/0 to indicate that POSIX regular
-//  expressions are/aren't available.
-//   GTEST_HAS_PTHREAD- Define it to 1/0 to indicate that 
-//  is/isn't available.
-//   GTEST_HAS_RTTI   - Define it to 1/0 to indicate that RTTI is/isn't
-//  enabled.
-//   GTEST_HAS_STD_WSTRING- Define it to 1/0 to indicate that
-//  std::wstring does/doesn't work (Google Test can
-//  be used where std::wstring is unavailable).
-//   GTEST_HAS_TR1_TUPLE  - Define it to 1/0 to indicate tr1::tuple
-//  is/isn't available.
-//   GTEST_HAS_SEH- Define it to 1/0 to indicate whether the
-//  compiler supports Microsoft's "Structured
-//  Exception Handling".
-//   GTEST_HAS_STREAM_REDIRECTION
-//- Define it to 1/0 to indicate whether the
-//  platform supports I/O stream redirection using
-//  dup() and dup2().
-//   GTEST_USE_OWN_TR1_TUPLE  - Define it to 1/0 to indicate whether Google
-//  Test's own tr1 tuple implementation should be
-//  used.  Unused when the user sets
-//  

[50/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/.gitignore
--
diff --git a/depends/thirdparty/orc/.gitignore 
b/depends/thirdparty/orc/.gitignore
deleted file mode 100644
index 167ac88..000
--- a/depends/thirdparty/orc/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-build
-target
-*~
-*.iml
-.idea
-.DS_Store

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/CMakeLists.txt
--
diff --git a/depends/thirdparty/orc/CMakeLists.txt 
b/depends/thirdparty/orc/CMakeLists.txt
deleted file mode 100644
index 42aa75f..000
--- a/depends/thirdparty/orc/CMakeLists.txt
+++ /dev/null
@@ -1,137 +0,0 @@
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-cmake_minimum_required (VERSION 2.6)
-
-project(ORC)
-
-# Version number of package
-SET(CPACK_PACKAGE_VERSION_MAJOR "1")
-SET(CPACK_PACKAGE_VERSION_MINOR "1")
-SET(CPACK_PACKAGE_VERSION_PATCH "0")
-SET(ORC_VERSION 
"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
-
-# Make sure that a build type is selected
-if (NOT CMAKE_BUILD_TYPE)
-  message(STATUS "No build type selected, default to ReleaseWithDebugInfo")
-  set (CMAKE_BUILD_TYPE "RELWITHDEBINFO")
-else ()
-  message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
-endif ()
-
-# Set the package format
-SET(CPACK_GENERATOR "TGZ")
-
-INCLUDE(CPack)
-
-set (GMOCK_VERSION "1.7.0")
-set (GMOCK_INCLUDE_DIRS
- "${CMAKE_SOURCE_DIR}/c++/libs/gmock-${GMOCK_VERSION}/include"
- "${CMAKE_SOURCE_DIR}/c++/libs/gmock-${GMOCK_VERSION}/gtest/include"
-)
-set (GMOCK_LIBRARIES gmock)
-if(NOT APPLE AND NOT MSVC)
-  list (APPEND GMOCK_LIBRARIES pthread)
-endif(NOT APPLE AND NOT MSVC)
-
-set (PROTOBUF_VERSION "2.6.0")
-set (PROTOBUF_INCLUDE_DIRS
- "${CMAKE_SOURCE_DIR}/c++/libs/protobuf-${PROTOBUF_VERSION}/src")
-set (PROTOBUF_LIBRARIES protobuf)
-set (PROTOBUF_EXECUTABLE 
"${CMAKE_BINARY_DIR}/c++/libs/protobuf-${PROTOBUF_VERSION}/protoc")
-
-set (SNAPPY_VERSION "1.1.2")
-set (SNAPPY_INCLUDE_DIRS
- "${CMAKE_SOURCE_DIR}/c++/libs/snappy-${SNAPPY_VERSION}")
-set (SNAPPY_LIBRARIES snappy)
-
-set (ZLIB_VERSION "1.2.8")
-set (ZLIB_INCLUDE_DIRS
- "${CMAKE_SOURCE_DIR}/c++/libs/zlib-${ZLIB_VERSION}"
- "${CMAKE_BINARY_DIR}/c++/libs/zlib-${ZLIB_VERSION}"
-)
-set (ZLIB_LIBRARIES zlib)
-
-#
-# Compiler specific flags
-#
-set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
-set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")
-set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
-if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
-  set (CXX11_FLAGS "-std=c++11")
-  set (WARN_FLAGS "-Weverything -Wno-c++98-compat -Wno-missing-prototypes")
-  set (WARN_FLAGS "${WARN_FLAGS} -Wno-c++98-compat-pedantic -Wno-padded")
-  set (WARN_FLAGS "${WARN_FLAGS} -Wno-covered-switch-default")
-  set (WARN_FLAGS "${WARN_FLAGS} -Wno-missing-noreturn -Wno-unknown-pragmas")
-  set (WARN_FLAGS "${WARN_FLAGS} -Wconversion -Werror")
-elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
-  set (WARN_FLAGS "-Wall -Wno-unknown-pragmas -Wconversion -Werror")
-  if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.3")
-set (CXX11_FLAGS "")
-set (WARN_FLAGS "-Wformat -Werror")
-  elseif (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7")
-set (CXX11_FLAGS "-std=c++0x")
-  else ()
-set (CXX11_FLAGS "-std=c++11")
-  endif ()
-elseif (MSVC)
-  add_definitions (-D_SCL_SECURE_NO_WARNINGS)
-  add_definitions (-D_CRT_SECURE_NO_WARNINGS)
-  # TODO: We assume MSVC debug mode. In the future, set these flags
-  # appropriately for all build mode.
-  set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
-  set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
-  set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} 
/NODEFAULTLIB:libc.lib")
-  set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} 
/NODEFAULTLIB:libcmt.lib")
-  set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} 
/NODEFAULTLIB:msvcrt.lib")
-  set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} 
/NODEFAULTLIB:libcd.lib")
-
-  set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} 
/NODEFAULTLIB:msvcrtd.lib")
-endif ()
-
-enable_testing()
-
-set (EXAMPLE_DIRECTORY ${CMAKE_SOURCE_DIR}/examples)
-
-# switch for libhdfs3
-option(ENABLE_libhdfs3 "Enable HDFS support using libhdfs3 library" OFF)
-if (ENABLE_libhdfs3)
- 

[72/80] [abbrv] incubator-hawq git commit: HAWQ-800. Fix less tuple is inserted due to data locality information is not refreshed and dispatched in prepared statement

2016-06-28 Thread cjcjameson
HAWQ-800. Fix less tuple is inserted due to data locality information is not 
refreshed and dispatched in prepared statement


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

Branch: refs/heads/HAWQ-543
Commit: b74baf5cb1294f5b8ce411ab43f04afb3b9faac4
Parents: a6622b8
Author: Ruilong Huo 
Authored: Mon Jun 27 10:48:28 2016 +0800
Committer: Ruilong Huo 
Committed: Mon Jun 27 11:01:47 2016 +0800

--
 src/backend/executor/spi.c | 42 ++---
 1 file changed, 10 insertions(+), 32 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b74baf5c/src/backend/executor/spi.c
--
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c
index d0029fc..c7b7f92 100644
--- a/src/backend/executor/spi.c
+++ b/src/backend/executor/spi.c
@@ -47,6 +47,7 @@
 #include "executor/nodeFunctionscan.h"
 #include "nodes/stack.h"
 #include "cdb/cdbdatalocality.h"
+#include "optimizer/planner.h"
 
 extern char *savedSeqServerHost;
 extern int savedSeqServerPort;
@@ -1146,19 +1147,11 @@ SPI_cursor_open(const char *name, SPIPlanPtr plan,
qtlist = copyObject(qtlist);
ptlist = copyObject(ptlist);
 
-   PlannedStmt* stmt = (PlannedStmt*)linitial(ptlist);
+   Query *queryTree = (Query *) linitial(qtlist);
+   queryTree = copyObject(queryTree);
 
-   if ( (Gp_role == GP_ROLE_DISPATCH) &&
-(stmt->resource_parameters != NULL) )
-   {
-   /*
-* Now, we want to allocate resource.
-*/
-   stmt->resource = 
AllocateResource(stmt->resource_parameters->life, 
stmt->resource_parameters->slice_size,
-   stmt->resource_parameters->iobytes, 
stmt->resource_parameters->max_target_segment_num,
-   
stmt->resource_parameters->min_target_segment_num, 
stmt->resource_parameters->vol_info,
-   stmt->resource_parameters->vol_info_size);
-   }
+   PlannedStmt* stmt = (PlannedStmt*)linitial(ptlist);
+   stmt = refineCachedPlan(stmt, queryTree, 0 ,NULL);
 
/* If the plan has parameters, set them up */
if (spiplan->nargs > 0)
@@ -1854,30 +1847,15 @@ _SPI_execute_plan(_SPI_plan * plan, Datum *Values, 
const char *Nulls,
 * Get copy of the queryTree and the plan since 
this may be modified further down.
 */
queryTree = copyObject(queryTree);
-   PlannedStmt *stmt = copyObject(originalStmt);
 
-   /*
-* We only allocate resource for multiple 
executions of queries, NOT for utility commands.
-* SELECT/INSERT are supported at present.
-*/
-   if((queryTree->commandType == CMD_SELECT) ||
-   (queryTree->commandType == 
CMD_INSERT))
+   if ((queryTree->commandType == CMD_SELECT) ||
+   (queryTree->commandType == CMD_INSERT))
{
-   if ((Gp_role == GP_ROLE_DISPATCH) &&
-   (stmt->resource == 
NULL) &&
-   
(stmt->resource_parameters != NULL))
-   {
-   stmt->resource = 
AllocateResource(stmt->resource_parameters->life,
-   
stmt->resource_parameters->slice_size,
-   
stmt->resource_parameters->iobytes,
-   
stmt->resource_parameters->max_target_segment_num,
-   
stmt->resource_parameters->min_target_segment_num,
-   
stmt->resource_parameters->vol_info,
-   
stmt->resource_parameters->vol_info_size);
-   }
-   originalStmt->resource = NULL;
+   originalStmt = 
refineCachedPlan(originalStmt, queryTree, 0 ,NULL);

[28/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/configure
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/configure 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/configure
deleted file mode 100644
index 582a9a0..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/configure
+++ /dev/null
@@ -1,18222 +0,0 @@
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for Google C++ Testing Framework 1.7.0.
-#
-# Report bugs to .
-#
-#
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
-# Foundation, Inc.
-#
-#
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-##  ##
-## M4sh Initialization. ##
-##  ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in #(
-  *posix*) :
-set -o posix ;; #(
-  *) :
- ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
-&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='print -r --'
-  as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='printf %s\n'
-  as_echo_n='printf %s'
-else
-  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; 
then
-as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
-as_echo_n='/usr/ucb/echo -n'
-  else
-as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
-as_echo_n_body='eval
-  arg=$1;
-  case $arg in #(
-  *"$as_nl"*)
-   expr "X$arg" : "X\\(.*\\)$as_nl";
-   arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
-  esac;
-  expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
-'
-export as_echo_n_body
-as_echo_n='sh -c $as_echo_n_body as_echo'
-  fi
-  export as_echo_body
-  as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
-  PATH_SEPARATOR=:
-  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
-(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
-  PATH_SEPARATOR=';'
-  }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.  Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" ""   $as_nl"
-
-# Find who we are.  Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
-  *[\\/]* ) as_myself=$0 ;;
-  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-  done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
-  as_myself=$0
-fi
-if test ! -f "$as_myself"; then
-  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file 
name" >&2
-  exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there.  '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
-  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test "x$CONFIG_SHELL" = x; then
-  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) 
>/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g 

[41/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure
deleted file mode 100644
index d29b296..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure
+++ /dev/null
@@ -1,18535 +0,0 @@
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for Google C++ Mocking Framework 1.7.0.
-#
-# Report bugs to .
-#
-#
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
-# Foundation, Inc.
-#
-#
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-##  ##
-## M4sh Initialization. ##
-##  ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in #(
-  *posix*) :
-set -o posix ;; #(
-  *) :
- ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
-&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='print -r --'
-  as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='printf %s\n'
-  as_echo_n='printf %s'
-else
-  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; 
then
-as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
-as_echo_n='/usr/ucb/echo -n'
-  else
-as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
-as_echo_n_body='eval
-  arg=$1;
-  case $arg in #(
-  *"$as_nl"*)
-   expr "X$arg" : "X\\(.*\\)$as_nl";
-   arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
-  esac;
-  expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
-'
-export as_echo_n_body
-as_echo_n='sh -c $as_echo_n_body as_echo'
-  fi
-  export as_echo_body
-  as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
-  PATH_SEPARATOR=:
-  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
-(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
-  PATH_SEPARATOR=';'
-  }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.  Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" ""   $as_nl"
-
-# Find who we are.  Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
-  *[\\/]* ) as_myself=$0 ;;
-  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-  done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
-  as_myself=$0
-fi
-if test ! -f "$as_myself"; then
-  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file 
name" >&2
-  exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there.  '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
-  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test "x$CONFIG_SHELL" = x; then
-  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) 
>/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '\${1+\"\$@\"}'='\"\$@\"'
-  

[80/80] [abbrv] incubator-hawq git commit: HAWQ-543. Remove references to bootstrap_tokens.h

2016-06-28 Thread cjcjameson
HAWQ-543. Remove references to bootstrap_tokens.h

Isn't a file that exists anymore; was causing `make distprep` to fail


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

Branch: refs/heads/HAWQ-543
Commit: adf82292c413c37542c8a0338a2d81ad326d2d9c
Parents: 09dba2e
Author: C.J. Jameson and Devadass Santhosh Sampath 
Authored: Tue Mar 22 17:04:05 2016 -0700
Committer: C.J. Jameson 
Committed: Tue Jun 28 18:23:58 2016 -0700

--
 src/backend/Makefile | 3 +--
 src/backend/bootstrap/.gitignore | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/adf82292/src/backend/Makefile
--
diff --git a/src/backend/Makefile b/src/backend/Makefile
index a90443a..b331d15 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -256,7 +256,7 @@ utils/probes.o: utils/probes.d $(SUBDIROBJS)
 
 distprep:
$(MAKE) -C parser   gram.c gram.h scan.c
-   $(MAKE) -C bootstrapbootparse.c bootstrap_tokens.h bootscanner.c
+   $(MAKE) -C bootstrapbootparse.c bootscanner.c
$(MAKE) -C utils/misc   guc-file.c
 
 
@@ -376,7 +376,6 @@ distclean: clean
 maintainer-clean: distclean
rm -f $(srcdir)/bootstrap/bootparse.c \
  $(srcdir)/bootstrap/bootscanner.c \
- $(srcdir)/bootstrap/bootstrap_tokens.h \
  $(srcdir)/parser/gram.c \
  $(srcdir)/parser/scan.c \
  $(srcdir)/parser/gram.h \

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/adf82292/src/backend/bootstrap/.gitignore
--
diff --git a/src/backend/bootstrap/.gitignore b/src/backend/bootstrap/.gitignore
index 7d51845..5201be9 100644
--- a/src/backend/bootstrap/.gitignore
+++ b/src/backend/bootstrap/.gitignore
@@ -1,3 +1,2 @@
 bootparse.c
 bootscanner.c
-bootstrap_tokens.h



[69/80] [abbrv] incubator-hawq git commit: HAWQ-743. Update gradle version and fixed permission handling in PXF tomcat dir

2016-06-28 Thread cjcjameson
HAWQ-743. Update gradle version and fixed permission handling in PXF tomcat dir


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

Branch: refs/heads/HAWQ-543
Commit: 8086a2470d89913ff7146d3bce515d78a3c89767
Parents: 752a98c
Author: Shivram Mani 
Authored: Fri Jun 24 15:14:54 2016 -0700
Committer: Shivram Mani 
Committed: Fri Jun 24 15:14:54 2016 -0700

--
 pxf/build.gradle |  8 
 pxf/gradle/wrapper/gradle-wrapper.properties |  2 +-
 pxf/tomcat/src/scripts/post-install.sh   | 21 -
 pxf/tomcat/src/scripts/pre-install.sh|  3 +++
 4 files changed, 8 insertions(+), 26 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8086a247/pxf/build.gradle
--
diff --git a/pxf/build.gradle b/pxf/build.gradle
index 00278aa..23d688f 100644
--- a/pxf/build.gradle
+++ b/pxf/build.gradle
@@ -474,14 +474,14 @@ task tomcatRpm(type: Rpm) {
 permissionGroup = 'root'
 
 preInstall file('tomcat/src/scripts/pre-install.sh')
-postInstall file('tomcat/src/scripts/post-install.sh')
 
 from("${tomcatTargetDir}/${tomcatName}") {
-user 'root'
-permissionGroup 'root'
+user 'tomcat'
+permissionGroup 'tomcat'
+addParentDirs false
 into "/opt/pivotal/${tomcatName}"
 }
-
+
 link("/opt/pivotal/${packageName}", "${tomcatName}")
 }
 }

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8086a247/pxf/gradle/wrapper/gradle-wrapper.properties
--
diff --git a/pxf/gradle/wrapper/gradle-wrapper.properties 
b/pxf/gradle/wrapper/gradle-wrapper.properties
index 9e56abb..ef410fd 100644
--- a/pxf/gradle/wrapper/gradle-wrapper.properties
+++ b/pxf/gradle/wrapper/gradle-wrapper.properties
@@ -20,4 +20,4 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=http\://services.gradle.org/distributions/gradle-2.11-all.zip
+distributionUrl=http\://services.gradle.org/distributions/gradle-2.13-all.zip

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8086a247/pxf/tomcat/src/scripts/post-install.sh
--
diff --git a/pxf/tomcat/src/scripts/post-install.sh 
b/pxf/tomcat/src/scripts/post-install.sh
deleted file mode 100644
index 11783ec..000
--- a/pxf/tomcat/src/scripts/post-install.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Post installation script
-
-chown -R tomcat:tomcat /opt/pivotal/apache-tomcat*

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8086a247/pxf/tomcat/src/scripts/pre-install.sh
--
diff --git a/pxf/tomcat/src/scripts/pre-install.sh 
b/pxf/tomcat/src/scripts/pre-install.sh
index a500f1f..0385c85 100644
--- a/pxf/tomcat/src/scripts/pre-install.sh
+++ b/pxf/tomcat/src/scripts/pre-install.sh
@@ -30,3 +30,6 @@ getent group $group > /dev/null || $groupadd -r $group
 
 # Create system user tomcat if doens't exist
 getent passwd $user > /dev/null || $useradd --comment "tomcat server user" -M 
-r -g $group $user
+
+# Create base directory
+mkdir -p /opt/pivotal
\ No newline at end of file



[75/80] [abbrv] incubator-hawq git commit: HAWQ-859. Fix the naming of output columns of append node [#122086135]

2016-06-28 Thread cjcjameson
HAWQ-859. Fix the naming of output columns of append node [#122086135]


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

Branch: refs/heads/HAWQ-543
Commit: 86c07d2a4608a291f4f17bc9902e412e630eca0f
Parents: 4ecad4f
Author: Venkatesh (Venky) Raghavan 
Authored: Thu Jun 23 11:07:38 2016 -0700
Committer: Venkatesh (Venky) Raghavan 
Committed: Mon Jun 27 15:17:28 2016 -0700

--
 src/backend/gpopt/translate/CTranslatorDXLToPlStmt.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/86c07d2a/src/backend/gpopt/translate/CTranslatorDXLToPlStmt.cpp
--
diff --git a/src/backend/gpopt/translate/CTranslatorDXLToPlStmt.cpp 
b/src/backend/gpopt/translate/CTranslatorDXLToPlStmt.cpp
index 21da4fd..fe68cbd 100644
--- a/src/backend/gpopt/translate/CTranslatorDXLToPlStmt.cpp
+++ b/src/backend/gpopt/translate/CTranslatorDXLToPlStmt.cpp
@@ -3622,7 +3622,7 @@ CTranslatorDXLToPlStmt::PappendFromDXLAppend
 
TargetEntry *pte = MakeNode(TargetEntry);
pte->expr = (Expr *) pvar;
-   pte->resname = 
CTranslatorUtils::SzFromWsz(pdxlopScIdent->Pdxlcr()->Pmdname()->Pstr()->Wsz());
+   pte->resname = 
CTranslatorUtils::SzFromWsz(pdxlopPrel->PmdnameAlias()->Pstr()->Wsz());
pte->resno = attno;
 
// add column mapping to output translation context



[70/80] [abbrv] incubator-hawq git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-hawq

2016-06-28 Thread cjcjameson
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-hawq


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

Branch: refs/heads/HAWQ-543
Commit: ce3f7c6b5c0315b97298d651f5d5f7383000491a
Parents: 8086a24 36b2a0f
Author: Shivram Mani 
Authored: Fri Jun 24 15:15:25 2016 -0700
Committer: Shivram Mani 
Committed: Fri Jun 24 15:15:25 2016 -0700

--
 depends/thirdparty/gporca   |2 +-
 depends/thirdparty/gpos |2 +-
 depends/thirdparty/postgres |2 +-
 src/backend/access/appendonly/aosegfiles.c  |6 +-
 src/backend/access/nbtree/nbtxlog.c |   10 +
 src/backend/access/transam/xlog.c   |6 +
 src/backend/gpopt/CGPOptimizer.cpp  |   67 +-
 src/backend/gpopt/ivy.xml   |4 +-
 src/backend/optimizer/plan/planner.c|  133 ++
 .../resourcemanager/include/resourcepool.h  |2 +-
 src/backend/resourcemanager/resourcemanager.c   |2 +-
 src/backend/resourcemanager/resourcepool.c  |6 +-
 src/backend/utils/init/postinit.c   |   14 +
 src/include/gpopt/CGPOptimizer.h|7 +
 src/include/optimizer/planner.h |5 +
 tools/bin/Makefile  |2 +-
 tools/bin/pythonSrc/pycrypto-2.0.1/ACKS |   34 +
 tools/bin/pythonSrc/pycrypto-2.0.1/ChangeLog|  316 
 .../pythonSrc/pycrypto-2.0.1/Cipher/__init__.py |   33 +
 .../pythonSrc/pycrypto-2.0.1/Doc/pycrypt.tex| 1188 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/Hash/HMAC.py |  108 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/Hash/MD5.py  |   13 +
 tools/bin/pythonSrc/pycrypto-2.0.1/Hash/SHA.py  |   11 +
 .../pythonSrc/pycrypto-2.0.1/Hash/__init__.py   |   24 +
 tools/bin/pythonSrc/pycrypto-2.0.1/LICENSE  |   15 +
 tools/bin/pythonSrc/pycrypto-2.0.1/MANIFEST |   63 +
 tools/bin/pythonSrc/pycrypto-2.0.1/PKG-INFO |   18 +
 .../pycrypto-2.0.1/Protocol/AllOrNothing.py |  295 
 .../pycrypto-2.0.1/Protocol/Chaffing.py |  229 +++
 .../pycrypto-2.0.1/Protocol/__init__.py |   17 +
 .../pythonSrc/pycrypto-2.0.1/PublicKey/DSA.py   |  238 +++
 .../pycrypto-2.0.1/PublicKey/ElGamal.py |  132 ++
 .../pythonSrc/pycrypto-2.0.1/PublicKey/RSA.py   |  256 +++
 .../pycrypto-2.0.1/PublicKey/__init__.py|   17 +
 .../pycrypto-2.0.1/PublicKey/pubkey.py  |  172 +++
 .../pythonSrc/pycrypto-2.0.1/PublicKey/qNEW.py  |  170 ++
 .../pycrypto-2.0.1/PublicKey/test/rsa_speed.py  |   48 +
 tools/bin/pythonSrc/pycrypto-2.0.1/README   |   76 +
 tools/bin/pythonSrc/pycrypto-2.0.1/TODO |   31 +
 .../pythonSrc/pycrypto-2.0.1/Util/RFC1751.py|  342 
 .../pythonSrc/pycrypto-2.0.1/Util/__init__.py   |   16 +
 .../bin/pythonSrc/pycrypto-2.0.1/Util/number.py |  201 +++
 .../pythonSrc/pycrypto-2.0.1/Util/randpool.py   |  421 +
 tools/bin/pythonSrc/pycrypto-2.0.1/Util/test.py |  453 ++
 .../pycrypto-2.0.1/Util/test/prime_speed.py |   24 +
 tools/bin/pythonSrc/pycrypto-2.0.1/__init__.py  |   25 +
 tools/bin/pythonSrc/pycrypto-2.0.1/setup.py |  168 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c| 1459 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/ARC2.c   |  185 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/ARC4.c   |   72 +
 .../bin/pythonSrc/pycrypto-2.0.1/src/Blowfish.c |  499 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/CAST.c   |  436 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/DES.c|  665 
 tools/bin/pythonSrc/pycrypto-2.0.1/src/DES3.c   |  688 +
 tools/bin/pythonSrc/pycrypto-2.0.1/src/IDEA.c   |  196 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c|  118 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/MD4.c|  203 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/RC5.c|  212 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/RIPEMD.c |  507 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/SHA256.c |  200 +++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/XOR.c|   52 +
 tools/bin/pythonSrc/pycrypto-2.0.1/src/_dsa.c   |  331 
 .../pythonSrc/pycrypto-2.0.1/src/_fastmath.c|  804 ++
 tools/bin/pythonSrc/pycrypto-2.0.1/src/_rsa.c   |  346 +
 .../pycrypto-2.0.1/src/block_template.c |  753 +
 tools/bin/pythonSrc/pycrypto-2.0.1/src/cast5.c  |  437 ++
 .../pycrypto-2.0.1/src/hash_template.c  |  248 +++
 .../pycrypto-2.0.1/src/stream_template.c|  248 +++
 .../bin/pythonSrc/pycrypto-2.0.1/src/winrand.c  |  366 +
 tools/bin/pythonSrc/pycrypto-2.0.1/test.py  |   38 +
 .../bin/pythonSrc/pycrypto-2.0.1/test/template  |   26 +
 

[65/80] [abbrv] incubator-hawq git commit: HAWQ-855. Make resource manager ask for cluster report quickly when YARN is detected down

2016-06-28 Thread cjcjameson
HAWQ-855. Make resource manager ask for cluster report quickly when YARN is 
detected down


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

Branch: refs/heads/HAWQ-543
Commit: 48a79cc270bb8817d9f58b64fd5abb61f8ef0643
Parents: 2c87cdc
Author: YI JIN 
Authored: Thu Jun 23 13:31:32 2016 +1000
Committer: YI JIN 
Committed: Thu Jun 23 13:31:32 2016 +1000

--
 src/backend/resourcemanager/include/resourcepool.h | 2 +-
 src/backend/resourcemanager/resourcemanager.c  | 2 +-
 src/backend/resourcemanager/resourcepool.c | 6 +-
 3 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/48a79cc2/src/backend/resourcemanager/include/resourcepool.h
--
diff --git a/src/backend/resourcemanager/include/resourcepool.h 
b/src/backend/resourcemanager/include/resourcepool.h
index 4caf139..f23e77b 100644
--- a/src/backend/resourcemanager/include/resourcepool.h
+++ b/src/backend/resourcemanager/include/resourcepool.h
@@ -617,7 +617,7 @@ void timeoutIdleGRMResourceToRB(void);
 void forceReturnGRMResourceToRB(void);
 
 /* Check if some hosts are not updated from GRM cluster report. */
-bool hasSegmentGRMCapacityNotUpdated(void);
+bool requireInstantClusterReport(void);
 bool allSegmentHasNoGRMContainersAllocated(void);
 
 int addOrderedResourceAllocTreeIndexByRatio(uint32_t ratio, BBST *tree);

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/48a79cc2/src/backend/resourcemanager/resourcemanager.c
--
diff --git a/src/backend/resourcemanager/resourcemanager.c 
b/src/backend/resourcemanager/resourcemanager.c
index 6e9e365..e511b97 100644
--- a/src/backend/resourcemanager/resourcemanager.c
+++ b/src/backend/resourcemanager/resourcemanager.c
@@ -2882,7 +2882,7 @@ void processResourceBrokerTasks(void)
if ( (PRESPOOL->Segments.NodeCount > 0 ) &&
 (curtime - PRESPOOL->LastUpdateTime  >
  rm_cluster_report_period * 100LL ||
- hasSegmentGRMCapacityNotUpdated() ) &&
+ requireInstantClusterReport() ) &&
 (curtime - PRESPOOL->LastRequestTime > 5LL * 
100LL) )
{
double  maxcap  = 0.0;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/48a79cc2/src/backend/resourcemanager/resourcepool.c
--
diff --git a/src/backend/resourcemanager/resourcepool.c 
b/src/backend/resourcemanager/resourcepool.c
index dc48e70..567b295 100644
--- a/src/backend/resourcemanager/resourcepool.c
+++ b/src/backend/resourcemanager/resourcepool.c
@@ -3711,7 +3711,7 @@ void timeoutIdleGRMResourceToRBByRatio(int
 ratioindex,
validateResourcePoolStatus(false);
 }
 
-bool hasSegmentGRMCapacityNotUpdated(void)
+bool requireInstantClusterReport(void)
 {
if (DRMGlobalInstance->ImpType == NONE_HAWQ2)
{
@@ -3741,6 +3741,10 @@ bool hasSegmentGRMCapacityNotUpdated(void)
res = true;
break;
}
+   else if ( segresource->Stat->StatusDesc & 
SEG_STATUS_NO_GRM_NODE_REPORT ) {
+   res = true;
+   break;
+   }
}
freePAIRRefList(&(PRESPOOL->Segments), );
return res;



[15/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-tuple.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-tuple.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-tuple.h
deleted file mode 100644
index 7b3dfc3..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-tuple.h
+++ /dev/null
@@ -1,1012 +0,0 @@
-// This file was GENERATED by command:
-// pump.py gtest-tuple.h.pump
-// DO NOT EDIT BY HAND!!!
-
-// Copyright 2009 Google Inc.
-// All Rights Reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-
-// Implements a subset of TR1 tuple needed by Google Test and Google Mock.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TUPLE_H_
-#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TUPLE_H_
-
-#include   // For ::std::pair.
-
-// The compiler used in Symbian has a bug that prevents us from declaring the
-// tuple template as a friend (it complains that tuple is redefined).  This
-// hack bypasses the bug by declaring the members that should otherwise be
-// private as public.
-// Sun Studio versions < 12 also have the above bug.
-#if defined(__SYMBIAN32__) || (defined(__SUNPRO_CC) && __SUNPRO_CC < 0x590)
-# define GTEST_DECLARE_TUPLE_AS_FRIEND_ public:
-#else
-# define GTEST_DECLARE_TUPLE_AS_FRIEND_ \
-template  friend class tuple; \
-   private:
-#endif
-
-// GTEST_n_TUPLE_(T) is the type of an n-tuple.
-#define GTEST_0_TUPLE_(T) tuple<>
-#define GTEST_1_TUPLE_(T) tuple
-#define GTEST_2_TUPLE_(T) tuple
-#define GTEST_3_TUPLE_(T) tuple
-#define GTEST_4_TUPLE_(T) tuple
-#define GTEST_5_TUPLE_(T) tuple
-#define GTEST_6_TUPLE_(T) tuple
-#define GTEST_7_TUPLE_(T) tuple
-#define GTEST_8_TUPLE_(T) tuple
-#define GTEST_9_TUPLE_(T) tuple
-#define GTEST_10_TUPLE_(T) tuple
-
-// GTEST_n_TYPENAMES_(T) declares a list of n typenames.
-#define GTEST_0_TYPENAMES_(T)
-#define GTEST_1_TYPENAMES_(T) typename T##0
-#define GTEST_2_TYPENAMES_(T) typename T##0, typename T##1
-#define GTEST_3_TYPENAMES_(T) typename T##0, typename T##1, typename T##2
-#define GTEST_4_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \
-typename T##3
-#define GTEST_5_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \
-typename T##3, typename T##4
-#define GTEST_6_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \
-typename T##3, typename T##4, typename T##5
-#define GTEST_7_TYPENAMES_(T) typename T##0, typename T##1, typename T##2, \
-typename T##3, typename T##4, typename T##5, typename T##6
-#define GTEST_8_TYPENAMES_(T) typename T##0, 

[26/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest-all.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest-all.cc
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest-all.cc
deleted file mode 100644
index a9a03b2..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest-all.cc
+++ /dev/null
@@ -1,9592 +0,0 @@
-// Copyright 2008, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: mhe...@google.com (Markus Heule)
-//
-// Google C++ Testing Framework (Google Test)
-//
-// Sometimes it's desirable to build Google Test by compiling a single file.
-// This file serves this purpose.
-
-// This line ensures that gtest.h can be compiled on its own, even
-// when it's fused.
-#include "gtest/gtest.h"
-
-// The following lines pull in the real gtest *.cc files.
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// The Google C++ Testing Framework (Google Test)
-
-// Copyright 2007, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written 

[48/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/include/CMakeLists.txt
--
diff --git a/depends/thirdparty/orc/c++/include/CMakeLists.txt 
b/depends/thirdparty/orc/c++/include/CMakeLists.txt
deleted file mode 100644
index 3891e71..000
--- a/depends/thirdparty/orc/c++/include/CMakeLists.txt
+++ /dev/null
@@ -1,83 +0,0 @@
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX11_FLAGS} ${WARN_FLAGS}")
-
-INCLUDE(CheckCXXSourceCompiles)
-
-CHECK_CXX_SOURCE_COMPILES("
-#include 
-struct A {
-  A(std::initializer_list list);
-};
-int main(int,char*[]){
-}"
-  ORC_CXX_HAS_INITIALIZER_LIST
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-int main(int,char*[]) noexcept {
-  return 0;
-}"
-  ORC_CXX_HAS_NOEXCEPT
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-int main(int,char* argv[]){
-  return argv[0] != nullptr;
-}"
-  ORC_CXX_HAS_NULLPTR
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-struct A {
-  virtual ~A();
-  virtual void foo();
-};
-struct B: public A {
-  virtual void foo() override;
-};
-int main(int,char*[]){
-}"
-  ORC_CXX_HAS_OVERRIDE
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-#include
-int main(int,char* []){
-  std::unique_ptr ptr(new int);
-}"
-  ORC_CXX_HAS_UNIQUE_PTR
-)
-
-CHECK_CXX_SOURCE_COMPILES("
-#include 
-int main(int, char*[]) { }"
-  ORC_CXX_HAS_CSTDINT
-)
-
-configure_file (
-  "orc/orc-config.hh.in"
-  "${CMAKE_CURRENT_BINARY_DIR}/orc/orc-config.hh"
-  )
-
-install(FILES
-  "${CMAKE_CURRENT_BINARY_DIR}/orc/orc-config.hh"
-  "orc/ColumnPrinter.hh"
-  "orc/Int128.hh"
-  "orc/MemoryPool.hh"
-  "orc/OrcFile.hh"
-  "orc/Reader.hh"
-  "orc/Type.hh"
-  "orc/Vector.hh"
-  DESTINATION "include/orc"
-  )

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/include/orc/ColumnPrinter.hh
--
diff --git a/depends/thirdparty/orc/c++/include/orc/ColumnPrinter.hh 
b/depends/thirdparty/orc/c++/include/orc/ColumnPrinter.hh
deleted file mode 100644
index aa19214..000
--- a/depends/thirdparty/orc/c++/include/orc/ColumnPrinter.hh
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef ORC_COLUMN_PRINTER_HH
-#define ORC_COLUMN_PRINTER_HH
-
-#include "orc/orc-config.hh"
-#include "orc/OrcFile.hh"
-#include "orc/Vector.hh"
-
-#include 
-#include 
-#include 
-#include 
-#include 
-
-namespace orc {
-
-  class ColumnPrinter {
-  protected:
-std::string 
-bool hasNulls ;
-const char* notNull;
-
-  public:
-ColumnPrinter(std::string&);
-virtual ~ColumnPrinter();
-virtual void printRow(uint64_t rowId) = 0;
-// should be called once at the start of each batch of rows
-virtual void reset(const ColumnVectorBatch& batch);
-  };
-
-  ORC_UNIQUE_PTR createColumnPrinter(std::string&,
-const Type* type);
-}
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/include/orc/Int128.hh
--
diff --git a/depends/thirdparty/orc/c++/include/orc/Int128.hh 
b/depends/thirdparty/orc/c++/include/orc/Int128.hh
deleted file mode 100644
index 70793dc..000
--- a/depends/thirdparty/orc/c++/include/orc/Int128.hh
+++ /dev/null
@@ -1,336 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for 

[32/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/config.guess
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/config.guess 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/config.guess
deleted file mode 100644
index d622a44..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/config.guess
+++ /dev/null
@@ -1,1530 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-#   2011, 2012 Free Software Foundation, Inc.
-
-timestamp='2012-02-10'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see .
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner.  Please send patches (context
-# diff format) to  and include a ChangeLog
-# entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub.  If it succeeds, it prints the system name on stdout, and
-# exits with 0.  Otherwise, it exits with 1.
-#
-# You can get the latest version of this script from:
-# 
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
-  -h, --help print this help, then exit
-  -t, --time-stamp   print date of last modification, then exit
-  -v, --version  print version number, then exit
-
-Report bugs and patches to ."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case $1 in
---time-stamp | --time* | -t )
-   echo "$timestamp" ; exit ;;
---version | -v )
-   echo "$version" ; exit ;;
---help | --h* | -h )
-   echo "$usage"; exit ;;
--- ) # Stop option processing
-   shift; break ;;
-- )# Use stdin as input.
-   break ;;
--* )
-   echo "$me: invalid option $1$help" >&2
-   exit 1 ;;
-* )
-   break ;;
-  esac
-done
-
-if test $# != 0; then
-  echo "$me: too many arguments$help" >&2
-  exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && 
exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 
;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXX") 2>/dev/null` && test -n 
"$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) 
; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating 
insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } 
;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,)echo "int x;" > $dummy.c ;
-   for c in cc gcc c89 c99 ; do
- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
-CC_FOR_BUILD="$c"; break ;
- 

[12/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/m4/libtool.m4
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/m4/libtool.m4 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/m4/libtool.m4
deleted file mode 100644
index 828104c..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/m4/libtool.m4
+++ /dev/null
@@ -1,8001 +0,0 @@
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
-#
-#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-#   Written by Gordon Matzigkeit, 1996
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-m4_define([_LT_COPYING], [dnl
-#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
-#   Written by Gordon Matzigkeit, 1996
-#
-#   This file is part of GNU Libtool.
-#
-# GNU Libtool is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of
-# the License, or (at your option) any later version.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Libtool; see the file COPYING.  If not, a copy
-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
-# obtained by writing to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-])
-
-# serial 57 LT_INIT
-
-
-# LT_PREREQ(VERSION)
-# --
-# Complain and exit if this libtool version is less that VERSION.
-m4_defun([LT_PREREQ],
-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
-   [m4_default([$3],
-  [m4_fatal([Libtool version $1 or higher is required],
-63)])],
-   [$2])])
-
-
-# _LT_CHECK_BUILDDIR
-# --
-# Complain if the absolute build directory name contains unusual characters
-m4_defun([_LT_CHECK_BUILDDIR],
-[case `pwd` in
-  *\ * | *\*)
-AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
-esac
-])
-
-
-# LT_INIT([OPTIONS])
-# --
-AC_DEFUN([LT_INIT],
-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
-AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
-AC_BEFORE([$0], [LT_LANG])dnl
-AC_BEFORE([$0], [LT_OUTPUT])dnl
-AC_BEFORE([$0], [LTDL_INIT])dnl
-m4_require([_LT_CHECK_BUILDDIR])dnl
-
-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
-dnl unless we require an AC_DEFUNed macro:
-AC_REQUIRE([LTOPTIONS_VERSION])dnl
-AC_REQUIRE([LTSUGAR_VERSION])dnl
-AC_REQUIRE([LTVERSION_VERSION])dnl
-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
-m4_require([_LT_PROG_LTMAIN])dnl
-
-_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
-
-dnl Parse OPTIONS
-_LT_SET_OPTIONS([$0], [$1])
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ltmain"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-AC_SUBST(LIBTOOL)dnl
-
-_LT_SETUP
-
-# Only expand once:
-m4_define([LT_INIT])
-])# LT_INIT
-
-# Old names:
-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
-dnl aclocal-1.4 backwards compatibility:
-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
-
-
-# _LT_CC_BASENAME(CC)
-# ---
-# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
-m4_defun([_LT_CC_BASENAME],
-[for cc_temp in $1""; do
-  case $cc_temp in
-compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
-distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
-\-*) ;;
-*) break;;
-  esac
-done
-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
-])
-
-
-# _LT_FILEUTILS_DEFAULTS
-# --
-# It is okay to use these file commands and assume they have been set
-# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.

[23/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h
deleted file mode 100644
index d6702c8..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h
+++ /dev/null
@@ -1,1421 +0,0 @@
-// This file was GENERATED by command:
-// pump.py gtest-param-test.h.pump
-// DO NOT EDIT BY HAND!!!
-
-// Copyright 2008, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: vl...@google.com (Vlad Losev)
-//
-// Macros and functions for implementing parameterized tests
-// in Google C++ Testing Framework (Google Test)
-//
-// This file is generated by a SCRIPT.  DO NOT EDIT BY HAND!
-//
-#ifndef GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
-#define GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
-
-
-// Value-parameterized tests allow you to test your code with different
-// parameters without writing multiple copies of the same test.
-//
-// Here is how you use value-parameterized tests:
-
-#if 0
-
-// To write value-parameterized tests, first you should define a fixture
-// class. It is usually derived from testing::TestWithParam (see below for
-// another inheritance scheme that's sometimes useful in more complicated
-// class hierarchies), where the type of your parameter values.
-// TestWithParam is itself derived from testing::Test. T can be any
-// copyable type. If it's a raw pointer, you are responsible for managing the
-// lifespan of the pointed values.
-
-class FooTest : public ::testing::TestWithParam {
-  // You can implement all the usual class fixture members here.
-};
-
-// Then, use the TEST_P macro to define as many parameterized tests
-// for this fixture as you want. The _P suffix is for "parameterized"
-// or "pattern", whichever you prefer to think.
-
-TEST_P(FooTest, DoesBlah) {
-  // Inside a test, access the test parameter with the GetParam() method
-  // of the TestWithParam class:
-  EXPECT_TRUE(foo.Blah(GetParam()));
-  ...
-}
-
-TEST_P(FooTest, HasBlahBlah) {
-  ...
-}
-
-// Finally, you can use INSTANTIATE_TEST_CASE_P to instantiate the test
-// case with any set of parameters you want. Google Test defines a number
-// of functions for generating test parameters. They return what we call
-// (surprise!) parameter generators. Here is a  summary of them, which
-// are all in the testing namespace:
-//
-//
-//  Range(begin, end [, step]) - Yields values {begin, begin+step,
-//   begin+step+step, ...}. The values do not
-//   include end. step defaults to 1.
-//  Values(v1, v2, ..., vN)- Yields values {v1, v2, ..., vN}.
-//  ValuesIn(container)- Yields values from a C-style array, an STL
-//  ValuesIn(begin,end)  container, or an iterator range [begin, end).
-//  Bool() - Yields sequence {false, true}.
-//  Combine(g1, g2, ..., gN)   - Yields all combinations (the Cartesian product
-//   for the math savvy) of the values generated
-//   by the N generators.
-//
-// For more details, see comments at the definitions of these functions below
-// in this file.
-//
-// The 

[67/80] [abbrv] incubator-hawq git commit: HAWQ-862. Make user defined function get_ao_distribution work.

2016-06-28 Thread cjcjameson
HAWQ-862. Make user defined function get_ao_distribution work.


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

Branch: refs/heads/HAWQ-537
Commit: 87b5d8f9b2bfca2e865fa3004d8c5cf6a73a2e4a
Parents: c31209d
Author: hzhang2 
Authored: Fri Jun 24 09:10:33 2016 +0800
Committer: hzhang2 
Committed: Fri Jun 24 09:26:17 2016 +0800

--
 src/backend/access/appendonly/aosegfiles.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/87b5d8f9/src/backend/access/appendonly/aosegfiles.c
--
diff --git a/src/backend/access/appendonly/aosegfiles.c 
b/src/backend/access/appendonly/aosegfiles.c
index 6da6a21..993e489 100644
--- a/src/backend/access/appendonly/aosegfiles.c
+++ b/src/backend/access/appendonly/aosegfiles.c
@@ -1425,9 +1425,9 @@ get_ao_distribution_name(PG_FUNCTION_ARGS)
 * assemble our query string
 */
initStringInfo();
-   appendStringInfo(, "select gp_segment_id,sum(tupcount) "
-   "from 
gp_dist_random('pg_aoseg.%s') "
-   "group by (gp_segment_id)", 
aoseg_relname);
+   appendStringInfo(, "select segno,sum(tupcount) "
+   "from pg_aoseg.%s "
+   "group by (segno)", 
aoseg_relname);
 
PG_TRY();
{



[61/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c 
b/tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c
new file mode 100644
index 000..cf9bba9
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/src/AES.c
@@ -0,0 +1,1459 @@
+/**
+ * rijndael-alg-fst.c
+ *
+ * @version 3.0 (December 2000)
+ *
+ * Optimised ANSI C code for the Rijndael cipher (now AES)
+ *
+ * @author Vincent Rijmen 
+ * @author Antoon Bosselaers 
+ * @author Paulo Barreto 
+ *
+ * This code is hereby placed in the public domain.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include 
+#include 
+#include "Python.h"
+
+#define MODULE_NAME AES
+#define BLOCK_SIZE 16
+#define KEY_SIZE 0
+
+#define MAXKC  (256/32)
+#define MAXKB  (256/8)
+#define MAXNR  14
+
+typedef unsigned char  u8; 
+typedef unsigned short u16;
+typedef unsigned int   u32;
+
+typedef struct {
+   u32 ek[ 4*(MAXNR+1) ]; 
+   u32 dk[ 4*(MAXNR+1) ];
+   int rounds;
+} block_state;
+
+void rijndaelEncrypt(u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 pt[16], u8 
ct[16]);
+void rijndaelDecrypt(u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 ct[16], u8 
pt[16]);
+
+#ifdef INTERMEDIATE_VALUE_KAT
+void rijndaelEncryptRound(const u32 rk[/*4*(Nr + 1)*/], int Nr, u8 block[16], 
int rounds);
+void rijndaelDecryptRound(const u32 rk[/*4*(Nr + 1)*/], int Nr, u8 block[16], 
int rounds);
+#endif /* INTERMEDIATE_VALUE_KAT */
+
+/*
+Te0[x] = S [x].[02, 01, 01, 03];
+Te1[x] = S [x].[03, 02, 01, 01];
+Te2[x] = S [x].[01, 03, 02, 01];
+Te3[x] = S [x].[01, 01, 03, 02];
+Te4[x] = S [x].[01, 01, 01, 01];
+
+Td0[x] = Si[x].[0e, 09, 0d, 0b];
+Td1[x] = Si[x].[0b, 0e, 09, 0d];
+Td2[x] = Si[x].[0d, 0b, 0e, 09];
+Td3[x] = Si[x].[09, 0d, 0b, 0e];
+Td4[x] = Si[x].[01, 01, 01, 01];
+*/
+
+static const u32 Te0[256] = {
+   0xc66363a5U, 0xf87c7c84U, 0xee99U, 0xf67b7b8dU,
+   0xfff2f20dU, 0xd66b6bbdU, 0xde6f6fb1U, 0x91c5c554U,
+   0x60303050U, 0x02010103U, 0xce6767a9U, 0x562b2b7dU,
+   0xe7fefe19U, 0xb5d7d762U, 0x4dababe6U, 0xec76769aU,
+   0x8fcaca45U, 0x1f82829dU, 0x89c9c940U, 0xfa7d7d87U,
+   0xeffafa15U, 0xb25959ebU, 0x8e4747c9U, 0xfbf0f00bU,
+   0x41adadecU, 0xb3d4d467U, 0x5fa2a2fdU, 0x45afafeaU,
+   0x239c9cbfU, 0x53a4a4f7U, 0xe4727296U, 0x9bc0c05bU,
+   0x75b7b7c2U, 0xe1fdfd1cU, 0x3d9393aeU, 0x4c26266aU,
+   0x6c36365aU, 0x7e3f3f41U, 0xf5f7f702U, 0x834fU,
+   0x6834345cU, 0x51a5a5f4U, 0xd1e5e534U, 0xf9f1f108U,
+   0xe2717193U, 0xabd8d873U, 0x62313153U, 0x2a15153fU,
+   0x0804040cU, 0x95c7c752U, 0x46232365U, 0x9dc3c35eU,
+   0x30181828U, 0x379696a1U, 0x0a05050fU, 0x2f9a9ab5U,
+   0x0e070709U, 0x24121236U, 0x1b80809bU, 0xdfe2e23dU,
+   0xcdebeb26U, 0x4e272769U, 0x7fb2b2cdU, 0xea75759fU,
+   0x1209091bU, 0x1d83839eU, 0x582c2c74U, 0x341a1a2eU,
+   0x361b1b2dU, 0xdc6e6eb2U, 0xb45a5aeeU, 0x5ba0a0fbU,
+   0xa45252f6U, 0x763b3b4dU, 0xb7d6d661U, 0x7db3b3ceU,
+   0x5229297bU, 0xdde3e33eU, 0x5e2f2f71U, 0x13848497U,
+   0xa65353f5U, 0xb9d1d168U, 0xU, 0xc1eded2cU,
+   0x40202060U, 0xe3fcfc1fU, 0x79b1b1c8U, 0xb65b5bedU,
+   0xd46a6abeU, 0x8dcbcb46U, 0x67bebed9U, 0x7239394bU,
+   0x944a4adeU, 0x984c4cd4U, 0xb05858e8U, 0x85cfcf4aU,
+   0xbbd0d06bU, 0xc5efef2aU, 0x4fe5U, 0xedfbfb16U,
+   0x864343c5U, 0x9a4d4dd7U, 0x6655U, 0x11858594U,
+   0x8a4545cfU, 0xe9f9f910U, 0x04020206U, 0xfe7f7f81U,
+   0xa05050f0U, 0x783c3c44U, 0x259f9fbaU, 0x4ba8a8e3U,
+   0xa25151f3U, 0x5da3a3feU, 0x804040c0U, 0x058f8f8aU,
+   0x3f9292adU, 0x219d9dbcU, 0x70383848U, 0xf1f5f504U,
+   0x63bcbcdfU, 0x77b6b6c1U, 0xafdada75U, 0x42212163U,
+   0x20101030U, 0xe51aU, 0xfdf3f30eU, 0xbfd2d26dU,
+   0x81cdcd4cU, 0x180c0c14U, 0x26131335U, 0xc3ecec2fU,
+   0xbe5f5fe1U, 0x359797a2U, 0x88ccU, 0x2e171739U,
+   0x93c4c457U, 0x55a7a7f2U, 0xfc7e7e82U, 0x7a3d3d47U,
+   0xc86464acU, 0xba5d5de7U, 0x3219192bU, 0xe6737395U,
+   0xc06060a0U, 0x19818198U, 0x9e4f4fd1U, 

[71/80] [abbrv] incubator-hawq git commit: HAWQ-765. Delete Deadcode: CTranslatorDXLToQuery [#122087307]

2016-06-28 Thread cjcjameson
HAWQ-765. Delete Deadcode: CTranslatorDXLToQuery [#122087307]


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

Branch: refs/heads/HAWQ-537
Commit: a6622b81b5a138e4a524baf82dca270def5ad961
Parents: ce3f7c6
Author: Venkatesh (Venky) Raghavan 
Authored: Fri Jun 24 15:52:18 2016 -0700
Committer: Venkatesh (Venky) Raghavan 
Committed: Fri Jun 24 15:52:18 2016 -0700

--
 .../gpopt/translate/CTranslatorDXLToQuery.cpp   | 1478 --
 .../gpopt/translate/CTranslatorDXLToScalar.cpp  |  213 ---
 src/backend/gpopt/translate/Makefile|1 -
 src/backend/gpopt/utils/COptTasks.cpp   |   87 --
 src/backend/gpopt/utils/funcs.cpp   |  113 --
 .../gpopt/translate/CTranslatorDXLToQuery.h |  317 
 .../gpopt/translate/CTranslatorDXLToScalar.h|   25 -
 src/include/gpopt/utils/COptTasks.h |8 -
 8 files changed, 2242 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a6622b81/src/backend/gpopt/translate/CTranslatorDXLToQuery.cpp
--
diff --git a/src/backend/gpopt/translate/CTranslatorDXLToQuery.cpp 
b/src/backend/gpopt/translate/CTranslatorDXLToQuery.cpp
deleted file mode 100644
index 260fe63..000
--- a/src/backend/gpopt/translate/CTranslatorDXLToQuery.cpp
+++ /dev/null
@@ -1,1478 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-//---
-// @filename:
-// CTranslatorDXLToQuery.cpp
-//
-// @doc:
-// Implementation of the methods used to translate a DXL tree into 
query.
-// All translator methods allocate memory in the provided memory 
pool, and
-// the caller is responsible for freeing it.
-//
-//
-// @test:
-//
-//
-//---
-
-#define ALLOW_DatumGetPointer
-#define ALLOW_ntohl
-#define ALLOW_memset
-#define ALLOW_printf
-
-#include "postgres.h"
-#include "gpopt/translate/CMappingColIdVarQuery.h"
-#include "gpopt/translate/CMappingElementColIdTE.h"
-#include "gpopt/translate/CTranslatorDXLToQuery.h"
-#include "gpopt/translate/CTranslatorDXLToPlStmt.h"
-#include "gpopt/translate/CTranslatorUtils.h"
-
-#include "gpos/base.h"
-#include "gpos/common/CBitSet.h"
-
-#include "naucrates/dxl/CDXLUtils.h"
-#include "naucrates/md/IMDColumn.h"
-#include "naucrates/md/IMDRelation.h"
-
-#include "gpopt/mdcache/CMDAccessor.h"
-
-#include "gpopt/gpdbwrappers.h"
-
-using namespace gpmd;
-using namespace gpdxl;
-using namespace gpos;
-
-//---
-// @function:
-// CTranslatorDXLToQuery::CTranslatorDXLToQuery
-//
-// @doc:
-// Constructor
-//
-//---
-CTranslatorDXLToQuery::CTranslatorDXLToQuery
-   (
-   IMemoryPool *pmp,
-   CMDAccessor *pmda,
-   ULONG ulSegments
-   )
-   :
-   m_pmp(pmp),
-   m_pmda(pmda),
-   m_ulSortgrouprefCounter(0),
-   m_ulSegments(ulSegments)
-{
-   m_pdxlsctranslator = GPOS_NEW(m_pmp) CTranslatorDXLToScalar(m_pmp, 
m_pmda, m_ulSegments);
-}
-
-//---
-// @function:
-// CTranslatorDXLToQuery::~CTranslatorDXLToQuery
-//
-// @doc:
-// Destructor
-//
-//---
-CTranslatorDXLToQuery::~CTranslatorDXLToQuery()
-{
-   GPOS_DELETE(m_pdxlsctranslator);
-}
-
-//---
-// @function:
-// 

[41/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure
deleted file mode 100644
index d29b296..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/configure
+++ /dev/null
@@ -1,18535 +0,0 @@
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for Google C++ Mocking Framework 1.7.0.
-#
-# Report bugs to .
-#
-#
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
-# Foundation, Inc.
-#
-#
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-##  ##
-## M4sh Initialization. ##
-##  ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in #(
-  *posix*) :
-set -o posix ;; #(
-  *) :
- ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
-&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='print -r --'
-  as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
-  as_echo='printf %s\n'
-  as_echo_n='printf %s'
-else
-  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; 
then
-as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
-as_echo_n='/usr/ucb/echo -n'
-  else
-as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
-as_echo_n_body='eval
-  arg=$1;
-  case $arg in #(
-  *"$as_nl"*)
-   expr "X$arg" : "X\\(.*\\)$as_nl";
-   arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
-  esac;
-  expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
-'
-export as_echo_n_body
-as_echo_n='sh -c $as_echo_n_body as_echo'
-  fi
-  export as_echo_body
-  as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
-  PATH_SEPARATOR=:
-  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
-(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
-  PATH_SEPARATOR=';'
-  }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.  Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" ""   $as_nl"
-
-# Find who we are.  Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
-  *[\\/]* ) as_myself=$0 ;;
-  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-  done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
-  as_myself=$0
-fi
-if test ! -f "$as_myself"; then
-  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file 
name" >&2
-  exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there.  '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
-  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test "x$CONFIG_SHELL" = x; then
-  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) 
>/dev/null 2>&1; then :
-  emulate sh
-  NULLCMD=:
-  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '\${1+\"\$@\"}'='\"\$@\"'
-  

[20/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest_pred_impl.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest_pred_impl.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest_pred_impl.h
deleted file mode 100644
index 30ae712..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest_pred_impl.h
+++ /dev/null
@@ -1,358 +0,0 @@
-// Copyright 2006, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-// This file is AUTOMATICALLY GENERATED on 10/31/2011 by command
-// 'gen_gtest_pred_impl.py 5'.  DO NOT EDIT BY HAND!
-//
-// Implements a family of generic predicate assertion macros.
-
-#ifndef GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
-#define GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
-
-// Makes sure this header is not included before gtest.h.
-#ifndef GTEST_INCLUDE_GTEST_GTEST_H_
-# error Do not include gtest_pred_impl.h directly.  Include gtest.h instead.
-#endif  // GTEST_INCLUDE_GTEST_GTEST_H_
-
-// This header implements a family of generic predicate assertion
-// macros:
-//
-//   ASSERT_PRED_FORMAT1(pred_format, v1)
-//   ASSERT_PRED_FORMAT2(pred_format, v1, v2)
-//   ...
-//
-// where pred_format is a function or functor that takes n (in the
-// case of ASSERT_PRED_FORMATn) values and their source expression
-// text, and returns a testing::AssertionResult.  See the definition
-// of ASSERT_EQ in gtest.h for an example.
-//
-// If you don't care about formatting, you can use the more
-// restrictive version:
-//
-//   ASSERT_PRED1(pred, v1)
-//   ASSERT_PRED2(pred, v1, v2)
-//   ...
-//
-// where pred is an n-ary function or functor that returns bool,
-// and the values v1, v2, ..., must support the << operator for
-// streaming to std::ostream.
-//
-// We also define the EXPECT_* variations.
-//
-// For now we only support predicates whose arity is at most 5.
-// Please email googletestframew...@googlegroups.com if you need
-// support for higher arities.
-
-// GTEST_ASSERT_ is the basic statement to which all of the assertions
-// in this file reduce.  Don't use this in your code.
-
-#define GTEST_ASSERT_(expression, on_failure) \
-  GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
-  if (const ::testing::AssertionResult gtest_ar = (expression)) \
-; \
-  else \
-on_failure(gtest_ar.failure_message())
-
-
-// Helper function for implementing {EXPECT|ASSERT}_PRED1.  Don't use
-// this in your code.
-template 
-AssertionResult AssertPred1Helper(const char* pred_text,
-  const char* e1,
-  Pred pred,
-  const T1& v1) {
-  if (pred(v1)) return AssertionSuccess();
-
-  return AssertionFailure() << pred_text << "("
-<< e1 << ") evaluates to false, where"
-<< "\n" << e1 << " evaluates to " << v1;
-}
-
-// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT1.
-// Don't use this in your code.
-#define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)\
-  GTEST_ASSERT_(pred_format(#v1, v1), \
-on_failure)
-
-// Internal macro for implementing {EXPECT|ASSERT}_PRED1.  Don't use
-// this in your code.
-#define GTEST_PRED1_(pred, v1, on_failure)\
-  GTEST_ASSERT_(::testing::AssertPred1Helper(#pred, \
-  

[39/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock-gtest-all.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock-gtest-all.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock-gtest-all.cc
deleted file mode 100644
index 1a63a8c..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/fused-src/gmock-gtest-all.cc
+++ /dev/null
@@ -1,11443 +0,0 @@
-// Copyright 2008, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: mhe...@google.com (Markus Heule)
-//
-// Google C++ Testing Framework (Google Test)
-//
-// Sometimes it's desirable to build Google Test by compiling a single file.
-// This file serves this purpose.
-
-// This line ensures that gtest.h can be compiled on its own, even
-// when it's fused.
-#include "gtest/gtest.h"
-
-// The following lines pull in the real gtest *.cc files.
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// The Google C++ Testing Framework (Google Test)
-
-// Copyright 2007, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS 

[62/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/Util/number.py
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/Util/number.py 
b/tools/bin/pythonSrc/pycrypto-2.0.1/Util/number.py
new file mode 100644
index 000..9d50563
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/Util/number.py
@@ -0,0 +1,201 @@
+#
+#   number.py : Number-theoretic functions
+#
+#  Part of the Python Cryptography Toolkit
+#
+# Distribute and use freely; there are no restrictions on further
+# dissemination and usage except those imposed by the laws of your
+# country of residence.  This software is provided "as is" without
+# warranty of fitness for use or suitability for any purpose, express
+# or implied. Use at your own risk or not at all.
+#
+
+__revision__ = "$Id: number.py,v 1.13 2003/04/04 18:21:07 akuchling Exp $"
+
+bignum = long
+try:
+from Crypto.PublicKey import _fastmath
+except ImportError:
+_fastmath = None
+
+# Commented out and replaced with faster versions below
+## def long2str(n):
+## s=''
+## while n>0:
+## s=chr(n & 255)+s
+## n=n>>8
+## return s
+
+## import types
+## def str2long(s):
+## if type(s)!=types.StringType: return s   # Integers will be left alone
+## return reduce(lambda x,y : x*256+ord(y), s, 0L)
+
+def size (N):
+"""size(N:long) : int
+Returns the size of the number N in bits.
+"""
+bits, power = 0,1L
+while N >= power:
+bits += 1
+power = power << 1
+return bits
+
+def getRandomNumber(N, randfunc):
+"""getRandomNumber(N:int, randfunc:callable):long
+Return an N-bit random number."""
+
+S = randfunc(N/8)
+odd_bits = N % 8
+if odd_bits != 0:
+char = ord(randfunc(1)) >> (8-odd_bits)
+S = chr(char) + S
+value = bytes_to_long(S)
+value |= 2L ** (N-1)# Ensure high bit is set
+assert size(value) >= N
+return value
+
+def GCD(x,y):
+"""GCD(x:long, y:long): long
+Return the GCD of x and y.
+"""
+x = abs(x) ; y = abs(y)
+while x > 0:
+x, y = y % x, x
+return y
+
+def inverse(u, v):
+"""inverse(u:long, u:long):long
+Return the inverse of u mod v.
+"""
+u3, v3 = long(u), long(v)
+u1, v1 = 1L, 0L
+while v3 > 0:
+q=u3 / v3
+u1, v1 = v1, u1 - v1*q
+u3, v3 = v3, u3 - v3*q
+while u1<0:
+u1 = u1 + v
+return u1
+
+# Given a number of bits to generate and a random generation function,
+# find a prime number of the appropriate size.
+
+def getPrime(N, randfunc):
+"""getPrime(N:int, randfunc:callable):long
+Return a random N-bit prime number.
+"""
+
+number=getRandomNumber(N, randfunc) | 1
+while (not isPrime(number)):
+number=number+2
+return number
+
+def isPrime(N):
+"""isPrime(N:long):bool
+Return true if N is prime.
+"""
+if N == 1:
+return 0
+if N in sieve:
+return 1
+for i in sieve:
+if (N % i)==0:
+return 0
+
+# Use the accelerator if available
+if _fastmath is not None:
+return _fastmath.isPrime(N)
+
+# Compute the highest bit that's set in N
+N1 = N - 1L
+n = 1L
+while (n> 1L
+
+# Rabin-Miller test
+for c in sieve[:7]:
+a=long(c) ; d=1L ; t=n
+while (t):  # Iterate over the bits in N1
+x=(d*d) % N
+if x==1L and d!=1L and d!=N1:
+return 0  # Square root of 1 found
+if N1 & t:
+d=(x*a) % N
+else:
+d=x
+t = t >> 1L
+if d!=1L:
+return 0
+return 1
+
+# Small primes used for checking primality; these are all the primes
+# less than 256.  This should be enough to eliminate most of the odd
+# numbers before needing to do a Rabin-Miller test at all.
+
+sieve=[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59,
+   61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127,
+   131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193,
+   197, 199, 211, 223, 227, 229, 233, 239, 241, 251]
+
+# Improved conversion functions contributed by Barry Warsaw, after
+# careful benchmarking
+
+import struct
+
+def long_to_bytes(n, blocksize=0):
+"""long_to_bytes(n:long, blocksize:int) : string
+Convert a long integer to a byte string.
+
+If optional blocksize is given and greater than zero, pad the front of the
+byte string with binary zeros so that the length is a multiple of
+blocksize.
+"""
+# after much testing, this algorithm was deemed to be the fastest
+s = ''
+n = long(n)
+pack = struct.pack
+while n > 0:
+s = pack('>I', n & 0xL) + s
+n = n >> 32
+# strip off leading zeros
+for i in range(len(s)):
+if s[i] != '\000':
+ 

[53/80] [abbrv] incubator-hawq git commit: HAWQ-764. Remove CTranslatorPlStmtToDXL Deadcode [#119102697]

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/752a98cd/src/backend/gpopt/utils/COptTasks.cpp
--
diff --git a/src/backend/gpopt/utils/COptTasks.cpp 
b/src/backend/gpopt/utils/COptTasks.cpp
index 6ff6556..4d6e2f7 100644
--- a/src/backend/gpopt/utils/COptTasks.cpp
+++ b/src/backend/gpopt/utils/COptTasks.cpp
@@ -41,7 +41,6 @@
 #include "gpopt/translate/CTranslatorExprToDXL.h"
 #include "gpopt/translate/CTranslatorUtils.h"
 #include "gpopt/translate/CTranslatorQueryToDXL.h"
-#include "gpopt/translate/CTranslatorPlStmtToDXL.h"
 #include "gpopt/translate/CTranslatorDXLToPlStmt.h"
 #include "gpopt/translate/CTranslatorDXLToQuery.h"
 #include "gpopt/translate/CContextDXLToPlStmt.h"
@@ -1234,64 +1233,6 @@ COptTasks::PvOptimizeMinidumpTask
return NULL;
 }
 
-
-//---
-// @function:
-// COptTasks::PvDXLFromPlstmtTask
-//
-// @doc:
-// task that does the translation from planned stmt to XML
-//
-//---
-void*
-COptTasks::PvDXLFromPlstmtTask
-   (
-   void *pv
-   )
-{
-   GPOS_ASSERT(NULL != pv);
-
-   SOptContext *poctx = SOptContext::PoptctxtConvert(pv);
-
-   GPOS_ASSERT(NULL != poctx->m_pplstmt);
-   GPOS_ASSERT(NULL == poctx->m_szPlanDXL);
-
-   AUTO_MEM_POOL(amp);
-   IMemoryPool *pmp = amp.Pmp();
-
-   CIdGenerator idgtor(1);
-
-   // relcache MD provider
-   CMDProviderRelcache *pmdpr = GPOS_NEW(pmp) CMDProviderRelcache(pmp);
-
-   {
-   CAutoMDAccessor amda(pmp, pmdpr, sysidDefault);
-
-   CMappingParamIdScalarId mapps(pmp);
-
-   CTranslatorPlStmtToDXL tplstmtdxl(pmp, amda.Pmda(), , 
(PlannedStmt*) poctx->m_pplstmt, );
-   CDXLNode *pdxlnPlan = tplstmtdxl.PdxlnFromPlstmt();
-
-   GPOS_ASSERT(NULL != pdxlnPlan);
-
-   CWStringDynamic str(pmp);
-   COstreamString oss();
-
-   // get chosen plan number
-   ULLONG ullPlanId =  (ULLONG) optimizer_plan_id;
-   CWStringDynamic *pstrDXL = CDXLUtils::PstrSerializePlan(pmp, 
pdxlnPlan, ullPlanId, 0 /*ullPlanSpaceSize*/, true /*fSerializeHeaderFooter*/, 
true /*fIndent*/);
-
-   poctx->m_szPlanDXL = SzFromWsz(pstrDXL->Wsz());
-
-   // cleanup
-   GPOS_DELETE(pstrDXL);
-   pdxlnPlan->Release();
-   }
-
-   return NULL;
-}
-
-
 //---
 // @function:
 // COptTasks::PvPlstmtFromDXLTask
@@ -1773,34 +1714,6 @@ COptTasks::SzDXL
 
 //---
 // @function:
-// COptTasks::SzDXL
-//
-// @doc:
-// serializes planned stmt to DXL
-//
-//---
-char *
-COptTasks::SzDXL
-   (
-   PlannedStmt *pplstmt
-   )
-{
-   Assert(pplstmt);
-
-   SOptContext octx;
-   octx.m_pplstmt = pplstmt;
-   octx.m_fSerializePlanDXL = true;
-   Execute(, );
-
-   // clean up context
-   octx.Free(octx.epinPlStmt, octx.epinPlanDXL);
-
-   return octx.m_szPlanDXL;
-}
-
-
-//---
-// @function:
 // COptTasks::PqueryFromXML
 //
 // @doc:

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/752a98cd/src/backend/gpopt/utils/funcs.cpp
--
diff --git a/src/backend/gpopt/utils/funcs.cpp 
b/src/backend/gpopt/utils/funcs.cpp
index c36a7e3..dbecb60 100644
--- a/src/backend/gpopt/utils/funcs.cpp
+++ b/src/backend/gpopt/utils/funcs.cpp
@@ -64,8 +64,6 @@ PG_FUNCTION_INFO_V1(DumpPlan);
 PG_FUNCTION_INFO_V1(RestorePlan);
 PG_FUNCTION_INFO_V1(DumpPlanToFile);
 PG_FUNCTION_INFO_V1(RestorePlanFromFile);
-PG_FUNCTION_INFO_V1(DumpPlanDXL);
-PG_FUNCTION_INFO_V1(DumpPlanToDXLFile);
 PG_FUNCTION_INFO_V1(RestorePlanDXL);
 PG_FUNCTION_INFO_V1(RestorePlanFromDXLFile);
 PG_FUNCTION_INFO_V1(DumpMDObjDXL);
@@ -381,37 +379,6 @@ DumpQueryToFile(PG_FUNCTION_ARGS)
 
 //---
 // @function:
-// DumpPlanDXL
-//
-// @doc:
-// Plan a query and dump out plan as xml text.
-// Input: sql query text
-// Output: plan in dxl
-//
-//---
-
-extern "C" {
-Datum
-DumpPlanDXL(PG_FUNCTION_ARGS)
-{
-   char *szSqlText = textToString(PG_GETARG_TEXT_P(0));
-
-   PlannedStmt *pplstmt = planQuery(szSqlText);
-
-   Assert(pplstmt);
-
-   char *szXmlString = COptTasks::SzDXL(pplstmt);
-   if (NULL == 

[16/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-port.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-port.h
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-port.h
deleted file mode 100644
index dc4fe0c..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-port.h
+++ /dev/null
@@ -1,1947 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: w...@google.com (Zhanyong Wan)
-//
-// Low-level types and utilities for porting Google Test to various
-// platforms.  They are subject to change without notice.  DO NOT USE
-// THEM IN USER CODE.
-//
-// This file is fundamental to Google Test.  All other Google Test source
-// files are expected to #include this.  Therefore, it cannot #include
-// any other Google Test header.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
-#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_
-
-// The user can define the following macros in the build script to
-// control Google Test's behavior.  If the user doesn't define a macro
-// in this list, Google Test will define it.
-//
-//   GTEST_HAS_CLONE  - Define it to 1/0 to indicate that clone(2)
-//  is/isn't available.
-//   GTEST_HAS_EXCEPTIONS - Define it to 1/0 to indicate that exceptions
-//  are enabled.
-//   GTEST_HAS_GLOBAL_STRING  - Define it to 1/0 to indicate that ::string
-//  is/isn't available (some systems define
-//  ::string, which is different to std::string).
-//   GTEST_HAS_GLOBAL_WSTRING - Define it to 1/0 to indicate that ::string
-//  is/isn't available (some systems define
-//  ::wstring, which is different to std::wstring).
-//   GTEST_HAS_POSIX_RE   - Define it to 1/0 to indicate that POSIX regular
-//  expressions are/aren't available.
-//   GTEST_HAS_PTHREAD- Define it to 1/0 to indicate that 
-//  is/isn't available.
-//   GTEST_HAS_RTTI   - Define it to 1/0 to indicate that RTTI is/isn't
-//  enabled.
-//   GTEST_HAS_STD_WSTRING- Define it to 1/0 to indicate that
-//  std::wstring does/doesn't work (Google Test can
-//  be used where std::wstring is unavailable).
-//   GTEST_HAS_TR1_TUPLE  - Define it to 1/0 to indicate tr1::tuple
-//  is/isn't available.
-//   GTEST_HAS_SEH- Define it to 1/0 to indicate whether the
-//  compiler supports Microsoft's "Structured
-//  Exception Handling".
-//   GTEST_HAS_STREAM_REDIRECTION
-//- Define it to 1/0 to indicate whether the
-//  platform supports I/O stream redirection using
-//  dup() and dup2().
-//   GTEST_USE_OWN_TR1_TUPLE  - Define it to 1/0 to indicate whether Google
-//  Test's own tr1 tuple implementation should be
-//  used.  Unused when the user sets
-//  

[22/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h.pump
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h.pump
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h.pump
deleted file mode 100644
index 2dc9303..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/gtest-param-test.h.pump
+++ /dev/null
@@ -1,487 +0,0 @@
-$$ -*- mode: c++; -*-
-$var n = 50  $$ Maximum length of Values arguments we want to support.
-$var maxtuple = 10  $$ Maximum number of Combine arguments we want to support.
-// Copyright 2008, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: vl...@google.com (Vlad Losev)
-//
-// Macros and functions for implementing parameterized tests
-// in Google C++ Testing Framework (Google Test)
-//
-// This file is generated by a SCRIPT.  DO NOT EDIT BY HAND!
-//
-#ifndef GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
-#define GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
-
-
-// Value-parameterized tests allow you to test your code with different
-// parameters without writing multiple copies of the same test.
-//
-// Here is how you use value-parameterized tests:
-
-#if 0
-
-// To write value-parameterized tests, first you should define a fixture
-// class. It is usually derived from testing::TestWithParam (see below for
-// another inheritance scheme that's sometimes useful in more complicated
-// class hierarchies), where the type of your parameter values.
-// TestWithParam is itself derived from testing::Test. T can be any
-// copyable type. If it's a raw pointer, you are responsible for managing the
-// lifespan of the pointed values.
-
-class FooTest : public ::testing::TestWithParam {
-  // You can implement all the usual class fixture members here.
-};
-
-// Then, use the TEST_P macro to define as many parameterized tests
-// for this fixture as you want. The _P suffix is for "parameterized"
-// or "pattern", whichever you prefer to think.
-
-TEST_P(FooTest, DoesBlah) {
-  // Inside a test, access the test parameter with the GetParam() method
-  // of the TestWithParam class:
-  EXPECT_TRUE(foo.Blah(GetParam()));
-  ...
-}
-
-TEST_P(FooTest, HasBlahBlah) {
-  ...
-}
-
-// Finally, you can use INSTANTIATE_TEST_CASE_P to instantiate the test
-// case with any set of parameters you want. Google Test defines a number
-// of functions for generating test parameters. They return what we call
-// (surprise!) parameter generators. Here is a  summary of them, which
-// are all in the testing namespace:
-//
-//
-//  Range(begin, end [, step]) - Yields values {begin, begin+step,
-//   begin+step+step, ...}. The values do not
-//   include end. step defaults to 1.
-//  Values(v1, v2, ..., vN)- Yields values {v1, v2, ..., vN}.
-//  ValuesIn(container)- Yields values from a C-style array, an STL
-//  ValuesIn(begin,end)  container, or an iterator range [begin, end).
-//  Bool() - Yields sequence {false, true}.
-//  Combine(g1, g2, ..., gN)   - Yields all combinations (the Cartesian product
-//   for the math savvy) of the values generated
-//   by the N generators.
-//
-// For more details, see 

[10/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/samples/sample1_unittest.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/samples/sample1_unittest.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/samples/sample1_unittest.cc
deleted file mode 100644
index aefc4f1..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/samples/sample1_unittest.cc
+++ /dev/null
@@ -1,153 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-// A sample program demonstrating using Google C++ testing framework.
-//
-// Author: w...@google.com (Zhanyong Wan)
-
-
-// This sample shows how to write a simple unit test for a function,
-// using Google C++ testing framework.
-//
-// Writing a unit test using Google C++ testing framework is easy as 1-2-3:
-
-
-// Step 1. Include necessary header files such that the stuff your
-// test logic needs is declared.
-//
-// Don't forget gtest.h, which declares the testing framework.
-
-#include 
-#include "sample1.h"
-#include "gtest/gtest.h"
-
-
-// Step 2. Use the TEST macro to define your tests.
-//
-// TEST has two parameters: the test case name and the test name.
-// After using the macro, you should define your test logic between a
-// pair of braces.  You can use a bunch of macros to indicate the
-// success or failure of a test.  EXPECT_TRUE and EXPECT_EQ are
-// examples of such macros.  For a complete list, see gtest.h.
-//
-// 
-//
-// In Google Test, tests are grouped into test cases.  This is how we
-// keep test code organized.  You should put logically related tests
-// into the same test case.
-//
-// The test case name and the test name should both be valid C++
-// identifiers.  And you should not use underscore (_) in the names.
-//
-// Google Test guarantees that each test you define is run exactly
-// once, but it makes no guarantee on the order the tests are
-// executed.  Therefore, you should write your tests in such a way
-// that their results don't depend on their order.
-//
-// 
-
-
-// Tests Factorial().
-
-// Tests factorial of negative numbers.
-TEST(FactorialTest, Negative) {
-  // This test is named "Negative", and belongs to the "FactorialTest"
-  // test case.
-  EXPECT_EQ(1, Factorial(-5));
-  EXPECT_EQ(1, Factorial(-1));
-  EXPECT_GT(Factorial(-10), 0);
-
-  // 
-  //
-  // EXPECT_EQ(expected, actual) is the same as
-  //
-  //   EXPECT_TRUE((expected) == (actual))
-  //
-  // except that it will print both the expected value and the actual
-  // value when the assertion fails.  This is very helpful for
-  // debugging.  Therefore in this case EXPECT_EQ is preferred.
-  //
-  // On the other hand, EXPECT_TRUE accepts any Boolean expression,
-  // and is thus more general.
-  //
-  // 
-}
-
-// Tests factorial of 0.
-TEST(FactorialTest, Zero) {
-  EXPECT_EQ(1, Factorial(0));
-}
-
-// Tests factorial of positive numbers.
-TEST(FactorialTest, Positive) {
-  EXPECT_EQ(1, Factorial(1));
-  EXPECT_EQ(2, Factorial(2));
-  EXPECT_EQ(6, Factorial(3));
-  EXPECT_EQ(40320, Factorial(8));
-}
-
-
-// Tests IsPrime()
-
-// Tests negative input.
-TEST(IsPrimeTest, Negative) {
-  // This test belongs to the IsPrimeTest test case.
-
-  EXPECT_FALSE(IsPrime(-1));
-  EXPECT_FALSE(IsPrime(-2));
-  EXPECT_FALSE(IsPrime(INT_MIN));
-}
-
-// Tests some trivial cases.
-TEST(IsPrimeTest, Trivial) 

[17/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-param-util-generated.h.pump
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-param-util-generated.h.pump
 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-param-util-generated.h.pump
deleted file mode 100644
index 009206f..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/include/gtest/internal/gtest-param-util-generated.h.pump
+++ /dev/null
@@ -1,301 +0,0 @@
-$$ -*- mode: c++; -*-
-$var n = 50  $$ Maximum length of Values arguments we want to support.
-$var maxtuple = 10  $$ Maximum number of Combine arguments we want to support.
-// Copyright 2008 Google Inc.
-// All Rights Reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: vl...@google.com (Vlad Losev)
-
-// Type and function utilities for implementing parameterized tests.
-// This file is generated by a SCRIPT.  DO NOT EDIT BY HAND!
-//
-// Currently Google Test supports at most $n arguments in Values,
-// and at most $maxtuple arguments in Combine. Please contact
-// googletestframew...@googlegroups.com if you need more.
-// Please note that the number of arguments to Combine is limited
-// by the maximum arity of the implementation of tr1::tuple which is
-// currently set at $maxtuple.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_
-#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_
-
-// scripts/fuse_gtest.py depends on gtest's own header being #included
-// *unconditionally*.  Therefore these #includes cannot be moved
-// inside #if GTEST_HAS_PARAM_TEST.
-#include "gtest/internal/gtest-param-util.h"
-#include "gtest/internal/gtest-port.h"
-
-#if GTEST_HAS_PARAM_TEST
-
-namespace testing {
-
-// Forward declarations of ValuesIn(), which is implemented in
-// include/gtest/gtest-param-test.h.
-template 
-internal::ParamGenerator<
-  typename ::testing::internal::IteratorTraits::value_type>
-ValuesIn(ForwardIterator begin, ForwardIterator end);
-
-template 
-internal::ParamGenerator ValuesIn(const T ()[N]);
-
-template 
-internal::ParamGenerator ValuesIn(
-const Container& container);
-
-namespace internal {
-
-// Used in the Values() function to provide polymorphic capabilities.
-template 
-class ValueArray1 {
- public:
-  explicit ValueArray1(T1 v1) : v1_(v1) {}
-
-  template 
-  operator ParamGenerator() const { return ValuesIn(_, _ + 1); }
-
- private:
-  // No implementation - assignment is unsupported.
-  void operator=(const ValueArray1& other);
-
-  const T1 v1_;
-};
-
-$range i 2..n
-$for i [[
-$range j 1..i
-
-template <$for j, [[typename T$j]]>
-class ValueArray$i {
- public:
-  ValueArray$i($for j, [[T$j v$j]]) : $for j, [[v$(j)_(v$j)]] {}
-
-  template 
-  operator ParamGenerator() const {
-const T array[] = {$for j, [[static_cast(v$(j)_)]]};
-return ValuesIn(array);
-  }
-
- private:
-  // No implementation - assignment is unsupported.
-  void operator=(const ValueArray$i& other);
-
-$for j [[
-
-  const T$j v$(j)_;
-]]
-
-};
-
-]]
-
-# if GTEST_HAS_COMBINE
-// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
-//
-// Generates values from the Cartesian product of values produced
-// by the argument generators.
-//
-$range i 2..maxtuple
-$for i [[
-$range j 1..i
-$range k 2..i
-
-template <$for j, [[typename 

[30/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/ltmain.sh
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/ltmain.sh 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/ltmain.sh
deleted file mode 100644
index c2852d8..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/ltmain.sh
+++ /dev/null
@@ -1,9661 +0,0 @@
-
-# libtool (GNU libtool) 2.4.2
-# Written by Gordon Matzigkeit , 1996
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
-# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
-# This is free software; see the source for copying conditions.  There is NO
-# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-# GNU Libtool is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# As a special exception to the GNU General Public License,
-# if you distribute this file as part of a program or library that
-# is built using GNU Libtool, you may include this file under the
-# same distribution terms that you use for the rest of that program.
-#
-# GNU Libtool is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Libtool; see the file COPYING.  If not, a copy
-# can be downloaded from http://www.gnu.org/licenses/gpl.html,
-# or obtained by writing to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-# Usage: $progname [OPTION]... [MODE-ARG]...
-#
-# Provide generalized library-building support services.
-#
-#   --config show all configuration variables
-#   --debug  enable verbose shell tracing
-#   -n, --dry-rundisplay commands without modifying any files
-#   --features   display basic configuration information and exit
-#   --mode=MODE  use operation mode MODE
-#   --preserve-dup-deps  don't remove duplicate dependency libraries
-#   --quiet, --silentdon't print informational messages
-#   --no-quiet, --no-silent
-#print informational messages (default)
-#   --no-warndon't display warning messages
-#   --tag=TAGuse configuration variables from tag TAG
-#   -v, --verboseprint more informational messages than default
-#   --no-verbose don't print the extra informational messages
-#   --versionprint version information
-#   -h, --help, --help-all   print short, long, or detailed help message
-#
-# MODE must be one of the following:
-#
-# clean  remove files from the build directory
-# compilecompile a source file into a libtool object
-# executeautomatically set library path, then run a program
-# finish complete the installation of libtool libraries
-# installinstall libraries or executables
-# link   create a library or an executable
-# uninstall  remove libraries from an installed directory
-#
-# MODE-ARGS vary depending on the MODE.  When passed as first option,
-# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
-# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
-#
-# When reporting a bug, please describe a test case to reproduce it and
-# include the following information:
-#
-# host-triplet:$host
-# shell:   $SHELL
-# compiler:$LTCC
-# compiler flags:  $LTCFLAGS
-# linker:  $LD (gnu? $with_gnu_ld)
-# $progname:   (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
-# automake:$automake_version
-# autoconf:$autoconf_version
-#
-# Report bugs to .
-# GNU libtool home page: .
-# General help using GNU software: .
-
-PROGRAM=libtool
-PACKAGE=libtool
-VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
-TIMESTAMP=""
-package_revision=1.3337
-
-# Be Bourne compatible
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 

[69/80] [abbrv] incubator-hawq git commit: HAWQ-743. Update gradle version and fixed permission handling in PXF tomcat dir

2016-06-28 Thread cjcjameson
HAWQ-743. Update gradle version and fixed permission handling in PXF tomcat dir


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

Branch: refs/heads/HAWQ-537
Commit: 8086a2470d89913ff7146d3bce515d78a3c89767
Parents: 752a98c
Author: Shivram Mani 
Authored: Fri Jun 24 15:14:54 2016 -0700
Committer: Shivram Mani 
Committed: Fri Jun 24 15:14:54 2016 -0700

--
 pxf/build.gradle |  8 
 pxf/gradle/wrapper/gradle-wrapper.properties |  2 +-
 pxf/tomcat/src/scripts/post-install.sh   | 21 -
 pxf/tomcat/src/scripts/pre-install.sh|  3 +++
 4 files changed, 8 insertions(+), 26 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8086a247/pxf/build.gradle
--
diff --git a/pxf/build.gradle b/pxf/build.gradle
index 00278aa..23d688f 100644
--- a/pxf/build.gradle
+++ b/pxf/build.gradle
@@ -474,14 +474,14 @@ task tomcatRpm(type: Rpm) {
 permissionGroup = 'root'
 
 preInstall file('tomcat/src/scripts/pre-install.sh')
-postInstall file('tomcat/src/scripts/post-install.sh')
 
 from("${tomcatTargetDir}/${tomcatName}") {
-user 'root'
-permissionGroup 'root'
+user 'tomcat'
+permissionGroup 'tomcat'
+addParentDirs false
 into "/opt/pivotal/${tomcatName}"
 }
-
+
 link("/opt/pivotal/${packageName}", "${tomcatName}")
 }
 }

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8086a247/pxf/gradle/wrapper/gradle-wrapper.properties
--
diff --git a/pxf/gradle/wrapper/gradle-wrapper.properties 
b/pxf/gradle/wrapper/gradle-wrapper.properties
index 9e56abb..ef410fd 100644
--- a/pxf/gradle/wrapper/gradle-wrapper.properties
+++ b/pxf/gradle/wrapper/gradle-wrapper.properties
@@ -20,4 +20,4 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=http\://services.gradle.org/distributions/gradle-2.11-all.zip
+distributionUrl=http\://services.gradle.org/distributions/gradle-2.13-all.zip

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8086a247/pxf/tomcat/src/scripts/post-install.sh
--
diff --git a/pxf/tomcat/src/scripts/post-install.sh 
b/pxf/tomcat/src/scripts/post-install.sh
deleted file mode 100644
index 11783ec..000
--- a/pxf/tomcat/src/scripts/post-install.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Post installation script
-
-chown -R tomcat:tomcat /opt/pivotal/apache-tomcat*

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8086a247/pxf/tomcat/src/scripts/pre-install.sh
--
diff --git a/pxf/tomcat/src/scripts/pre-install.sh 
b/pxf/tomcat/src/scripts/pre-install.sh
index a500f1f..0385c85 100644
--- a/pxf/tomcat/src/scripts/pre-install.sh
+++ b/pxf/tomcat/src/scripts/pre-install.sh
@@ -30,3 +30,6 @@ getent group $group > /dev/null || $groupadd -r $group
 
 # Create system user tomcat if doens't exist
 getent passwd $user > /dev/null || $useradd --comment "tomcat server user" -M 
-r -g $group $user
+
+# Create base directory
+mkdir -p /opt/pivotal
\ No newline at end of file



[65/80] [abbrv] incubator-hawq git commit: HAWQ-855. Make resource manager ask for cluster report quickly when YARN is detected down

2016-06-28 Thread cjcjameson
HAWQ-855. Make resource manager ask for cluster report quickly when YARN is 
detected down


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

Branch: refs/heads/HAWQ-537
Commit: 48a79cc270bb8817d9f58b64fd5abb61f8ef0643
Parents: 2c87cdc
Author: YI JIN 
Authored: Thu Jun 23 13:31:32 2016 +1000
Committer: YI JIN 
Committed: Thu Jun 23 13:31:32 2016 +1000

--
 src/backend/resourcemanager/include/resourcepool.h | 2 +-
 src/backend/resourcemanager/resourcemanager.c  | 2 +-
 src/backend/resourcemanager/resourcepool.c | 6 +-
 3 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/48a79cc2/src/backend/resourcemanager/include/resourcepool.h
--
diff --git a/src/backend/resourcemanager/include/resourcepool.h 
b/src/backend/resourcemanager/include/resourcepool.h
index 4caf139..f23e77b 100644
--- a/src/backend/resourcemanager/include/resourcepool.h
+++ b/src/backend/resourcemanager/include/resourcepool.h
@@ -617,7 +617,7 @@ void timeoutIdleGRMResourceToRB(void);
 void forceReturnGRMResourceToRB(void);
 
 /* Check if some hosts are not updated from GRM cluster report. */
-bool hasSegmentGRMCapacityNotUpdated(void);
+bool requireInstantClusterReport(void);
 bool allSegmentHasNoGRMContainersAllocated(void);
 
 int addOrderedResourceAllocTreeIndexByRatio(uint32_t ratio, BBST *tree);

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/48a79cc2/src/backend/resourcemanager/resourcemanager.c
--
diff --git a/src/backend/resourcemanager/resourcemanager.c 
b/src/backend/resourcemanager/resourcemanager.c
index 6e9e365..e511b97 100644
--- a/src/backend/resourcemanager/resourcemanager.c
+++ b/src/backend/resourcemanager/resourcemanager.c
@@ -2882,7 +2882,7 @@ void processResourceBrokerTasks(void)
if ( (PRESPOOL->Segments.NodeCount > 0 ) &&
 (curtime - PRESPOOL->LastUpdateTime  >
  rm_cluster_report_period * 100LL ||
- hasSegmentGRMCapacityNotUpdated() ) &&
+ requireInstantClusterReport() ) &&
 (curtime - PRESPOOL->LastRequestTime > 5LL * 
100LL) )
{
double  maxcap  = 0.0;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/48a79cc2/src/backend/resourcemanager/resourcepool.c
--
diff --git a/src/backend/resourcemanager/resourcepool.c 
b/src/backend/resourcemanager/resourcepool.c
index dc48e70..567b295 100644
--- a/src/backend/resourcemanager/resourcepool.c
+++ b/src/backend/resourcemanager/resourcepool.c
@@ -3711,7 +3711,7 @@ void timeoutIdleGRMResourceToRBByRatio(int
 ratioindex,
validateResourcePoolStatus(false);
 }
 
-bool hasSegmentGRMCapacityNotUpdated(void)
+bool requireInstantClusterReport(void)
 {
if (DRMGlobalInstance->ImpType == NONE_HAWQ2)
{
@@ -3741,6 +3741,10 @@ bool hasSegmentGRMCapacityNotUpdated(void)
res = true;
break;
}
+   else if ( segresource->Stat->StatusDesc & 
SEG_STATUS_NO_GRM_NODE_REPORT ) {
+   res = true;
+   break;
+   }
}
freePAIRRefList(&(PRESPOOL->Segments), );
return res;



[01/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq [Forced Update!]

2016-06-28 Thread cjcjameson
Repository: incubator-hawq
Updated Branches:
  refs/heads/HAWQ-537 f0f61de11 -> 857fb48c5 (forced update)


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-printers_test.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-printers_test.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-printers_test.cc
deleted file mode 100644
index c2beca7..000
--- 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/test/gtest-printers_test.cc
+++ /dev/null
@@ -1,1566 +0,0 @@
-// Copyright 2007, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-
-// Google Test - The Google C++ Testing Framework
-//
-// This file tests the universal value printer.
-
-#include "gtest/gtest-printers.h"
-
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-#include 
-
-#include "gtest/gtest.h"
-
-// hash_map and hash_set are available under Visual C++.
-#if _MSC_VER
-# define GTEST_HAS_HASH_MAP_ 1  // Indicates that hash_map is available.
-# include // NOLINT
-# define GTEST_HAS_HASH_SET_ 1  // Indicates that hash_set is available.
-# include // NOLINT
-#endif  // GTEST_OS_WINDOWS
-
-// Some user-defined types for testing the universal value printer.
-
-// An anonymous enum type.
-enum AnonymousEnum {
-  kAE1 = -1,
-  kAE2 = 1
-};
-
-// An enum without a user-defined printer.
-enum EnumWithoutPrinter {
-  kEWP1 = -2,
-  kEWP2 = 42
-};
-
-// An enum with a << operator.
-enum EnumWithStreaming {
-  kEWS1 = 10
-};
-
-std::ostream& operator<<(std::ostream& os, EnumWithStreaming e) {
-  return os << (e == kEWS1 ? "kEWS1" : "invalid");
-}
-
-// An enum with a PrintTo() function.
-enum EnumWithPrintTo {
-  kEWPT1 = 1
-};
-
-void PrintTo(EnumWithPrintTo e, std::ostream* os) {
-  *os << (e == kEWPT1 ? "kEWPT1" : "invalid");
-}
-
-// A class implicitly convertible to BiggestInt.
-class BiggestIntConvertible {
- public:
-  operator ::testing::internal::BiggestInt() const { return 42; }
-};
-
-// A user-defined unprintable class template in the global namespace.
-template 
-class UnprintableTemplateInGlobal {
- public:
-  UnprintableTemplateInGlobal() : value_() {}
- private:
-  T value_;
-};
-
-// A user-defined streamable type in the global namespace.
-class StreamableInGlobal {
- public:
-  virtual ~StreamableInGlobal() {}
-};
-
-inline void operator<<(::std::ostream& os, const StreamableInGlobal& /* x */) {
-  os << "StreamableInGlobal";
-}
-
-void operator<<(::std::ostream& os, const StreamableInGlobal* /* x */) {
-  os << "StreamableInGlobal*";
-}
-
-namespace foo {
-
-// A user-defined unprintable type in a user namespace.
-class UnprintableInFoo {
- public:
-  UnprintableInFoo() : z_(0) { memcpy(xy_, "\xEF\x12\x0\x0\x34\xAB\x0\x0", 8); 
}
- private:
-  char xy_[8];
-  double z_;
-};
-
-// A user-defined printable type in a user-chosen namespace.
-struct PrintableViaPrintTo {
-  PrintableViaPrintTo() : value() {}
-  int value;
-};
-
-void PrintTo(const PrintableViaPrintTo& x, ::std::ostream* os) {
-  *os << "PrintableViaPrintTo: " << x.value;
-}
-
-// A type with a user-defined << for printing its pointer.
-struct PointerPrintable {
-};
-
-::std::ostream& operator<<(::std::ostream& os,
-   const 

[57/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/test/testdata.py
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/test/testdata.py 
b/tools/bin/pythonSrc/pycrypto-2.0.1/test/testdata.py
new file mode 100644
index 000..7b9fb64
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/test/testdata.py
@@ -0,0 +1,681 @@
+#
+#  testdata.py : Test data for the various algorithms
+#
+# Part of the Python Cryptography Toolkit
+#
+# Distribute and use freely; there are no restrictions on further
+# dissemination and usage except those imposed by the laws of your
+# country of residence.  This software is provided "as is" without
+# warranty of fitness for use or suitability for any purpose, express
+# or implied. Use at your own risk or not at all.
+#
+
+#  Data for encryption algorithms is saved as (key, plaintext,
+# ciphertext) tuples.  Hashing algorithm test data is simply
+# (text, hashvalue) pairs.
+
+# MD2 validation data
+
+md2= [
+ ("", "8350e5a3e24c153df2275c9f80692773"),
+ ("a", "32ec01ec4a6dac72c0ab96fb34c0b5d1"),
+ ("abc", "da853b0d3f88d99b30283a69e6ded6bb"),
+ ("message digest", "ab4f496bfb2a530b219ff33031fe06b0"),
+ ("abcdefghijklmnopqrstuvwxyz", "4e8ddff3650292ab5a4108c3aa47940b"),
+ ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
+  "da33def2a42df13975352846c30338cd"),
+ 
("12345678901234567890123456789012345678901234567890123456789012345678901234567890",
+  "d5976f79d83d3a0dc9806c3c66f3efd8")
+ ]
+
+# MD4 validation data
+
+md4= [
+  ('', "31d6cfe0d16ae931b73c59d7e0c089c0"),
+  ("a",   "bde52cb31de33e46245e05fbdbd6fb24"),
+  ("abc",   "a448017aaf21d8525fc10ae87aa6729d"),
+  ("message digest",   "d9130a8164549fe818874806e1c7014b"),
+  ("abcdefghijklmnopqrstuvwxyz",   "d79e1c308aa5bbcdeea8ed63df412da9"),
+  ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
+   "043f8582f241db351ce627e153e7f0e4"),
+  
("12345678901234567890123456789012345678901234567890123456789012345678901234567890",
+  "e33b4ddc9c38f2199c3e7b164fcc0536"),
+ ]
+
+# MD5 validation data
+
+md5= [
+('',  "d41d8cd98f00b204e9800998ecf8427e"),
+('a', "0cc175b9c0f1b6a831c399e269772661"),
+('abc', "900150983cd24fb0d6963f7d28e17f72"),
+('message digest', "f96b697d7cb7938d525a2f31aaf161d0"),
+('abcdefghijklmnopqrstuvwxyz', "c3fcd3d76192e4007dfb496cca67e13b"),
+('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
+   "d174ab98d277d9f5a5611c2c9f419d9f"),
+('12345678901234567890123456789012345678901234567890123456789'
+ '012345678901234567890', "57edf4a22be3c955ac49da2e2107b67a")
+ ]
+
+# Test data for SHA, the Secure Hash Algorithm.
+
+sha = [
+   ('abc', "a9993e364706816aba3e25717850c26c9cd0d89d"),
+   ('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq',
+"84983e441c3bd26ebaae4aa1f95129e5e54670f1"),
+   (100 * 'a', '34aa973cd4c4daa4f61eeb2bdbad27316534016f'),
+  ]
+
+sha256 = [
+   ('abc', 
"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"),
+   ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
+"248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"),
+   
("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
 
+"cf5b16a778af8380036ce59e7b0492370b249b11e8f07a51afac45037afee9d1"),
+   ("Four score and seven years ago our fathers brought forth on this 
continent, a new nation, conceived in Liberty, and dedicated to the proposition 
that all men are created equal.  Now we are engaged in a great civil war, 
testing whether that nation, or any nation so conceived and so dedicated, can 
long endure. We are met on a great battlefield of that war.  We have come to 
dedicate a portion of that field, as a final resting place for those who here 
gave their lives that that nation might live.  It is altogether fitting and 
proper that we should do this.  But, in a larger sense, we can not dedicate--we 
can not consecrate--we can not hallow--this ground.  The brave men, living and 
dead, who struggled here, have consecrated it, far above our poor power to add 
or detract.  The world will little note, nor long remember what we say here, 
but it can never forget what they did here.  It is for us the living, rather, 
to be dedicated here to the unfinished work which they who fought h
 ere have thus far so nobly advanced.  It is rather for us to be here dedicated 
to the great task remaining before us--that from these honored dead we take 
increased devotion to that cause for which they gave the last full measure of 
devotion--that we here highly resolve that these dead shall not have died in 
vain--that this nation, under God, shall have a new birth of freedom--and that 
government of the 

[59/80] [abbrv] incubator-hawq git commit: HAWQ-863. Add python module pycrypto

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2c87cdcb/tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c
--
diff --git a/tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c 
b/tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c
new file mode 100644
index 000..aa53c59
--- /dev/null
+++ b/tools/bin/pythonSrc/pycrypto-2.0.1/src/MD2.c
@@ -0,0 +1,118 @@
+
+/*
+ *  md2.c : MD2 hash algorithm.
+ *
+ * Part of the Python Cryptography Toolkit
+ *
+ * Distribute and use freely; there are no restrictions on further 
+ * dissemination and usage except those imposed by the laws of your 
+ * country of residence.
+ *
+ */
+  
+
+#include 
+#include "Python.h"
+
+#define MODULE_NAME MD2
+#define DIGEST_SIZE 16
+
+typedef unsigned char U8;
+typedef unsigned int U32;
+
+typedef struct {
+   U8 C[16], X[48];
+   int count;
+   U8 buf[16];
+} hash_state;
+
+static void hash_init (hash_state *ptr)
+{
+   memset(ptr->X, 0, 48);
+   memset(ptr->C, 0, 16);
+   ptr->count=0;
+}
+
+static U8 S[256] = {
+   41, 46, 67, 201, 162, 216, 124, 1, 61, 54, 84, 161, 236, 240, 6,
+   19, 98, 167, 5, 243, 192, 199, 115, 140, 152, 147, 43, 217, 188,
+   76, 130, 202, 30, 155, 87, 60, 253, 212, 224, 22, 103, 66, 111, 24,
+   138, 23, 229, 18, 190, 78, 196, 214, 218, 158, 222, 73, 160, 251,
+   245, 142, 187, 47, 238, 122, 169, 104, 121, 145, 21, 178, 7, 63,
+   148, 194, 16, 137, 11, 34, 95, 33, 128, 127, 93, 154, 90, 144, 50,
+   39, 53, 62, 204, 231, 191, 247, 151, 3, 255, 25, 48, 179, 72, 165,
+   181, 209, 215, 94, 146, 42, 172, 86, 170, 198, 79, 184, 56, 210,
+   150, 164, 125, 182, 118, 252, 107, 226, 156, 116, 4, 241, 69, 157,
+   112, 89, 100, 113, 135, 32, 134, 91, 207, 101, 230, 45, 168, 2, 27,
+   96, 37, 173, 174, 176, 185, 246, 28, 70, 97, 105, 52, 64, 126, 15,
+   85, 71, 163, 35, 221, 81, 175, 58, 195, 92, 249, 206, 186, 197,
+   234, 38, 44, 83, 13, 110, 133, 40, 132, 9, 211, 223, 205, 244, 65,
+   129, 77, 82, 106, 220, 55, 200, 108, 193, 171, 250, 36, 225, 123,
+   8, 12, 189, 177, 74, 120, 136, 149, 139, 227, 99, 232, 109, 233,
+   203, 213, 254, 59, 0, 29, 57, 242, 239, 183, 14, 102, 88, 208, 228,
+   166, 119, 114, 248, 235, 117, 75, 10, 49, 68, 80, 180, 143, 237,
+   31, 26, 219, 153, 141, 51, 159, 17, 131, 20
+};
+
+static void
+hash_copy(hash_state *src, hash_state *dest)
+{
+   dest->count=src->count;  
+   memcpy(dest->buf, src->buf, dest->count);
+   memcpy(dest->X, src->X, 48);
+   memcpy(dest->C, src->C, 16);
+}
+
+
+static void hash_update (hash_state *self, const U8 *buf, U32 len)
+{
+   U32 L;
+   while (len) 
+   {
+   L=(16-self->count) < len ? (16-self->count) : len;
+   memcpy(self->buf+self->count, buf, L);
+   self->count+=L;
+   buf+=L;
+   len-=L;
+   if (self->count==16) 
+   {
+   U8 t;
+   int i,j;
+ 
+   self->count=0;
+   memcpy(self->X+16, self->buf, 16);
+   t=self->C[15];
+   for(i=0; i<16; i++)
+   {
+   self->X[32+i]=self->X[16+i]^self->X[i];
+   t=self->C[i]^=S[self->buf[i]^t];
+   }
+ 
+   t=0;
+   for(i=0; i<18; i++)
+   {
+   for(j=0; j<48; j++)
+   t=self->X[j]^=S[t];
+   t=(t+i) & 0xFF;
+   }
+   }
+   }
+}
+
+static PyObject *
+hash_digest (const hash_state *self)
+{
+   U8 padding[16];
+   U32 padlen;
+   hash_state temp;
+   int i;
+  
+   memcpy(, self, sizeof(hash_state));
+   padlen= 16-self->count;
+   for(i=0; i

[79/80] [abbrv] incubator-hawq git commit: HAWQ-835. Fix snapshot during transaction processing for cannot retrieve tuple from temp table created in function

2016-06-28 Thread cjcjameson
HAWQ-835. Fix snapshot during transaction processing for cannot retrieve tuple 
from temp table created in function


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

Branch: refs/heads/HAWQ-537
Commit: 09dba2e178070bf82f0e90cc1d57e0af5dfffcb4
Parents: 5d4c8d0
Author: Ruilong Huo 
Authored: Tue Jun 28 10:53:35 2016 +0800
Committer: Ruilong Huo 
Committed: Tue Jun 28 15:11:33 2016 +0800

--
 src/backend/cdb/cdbdatalocality.c | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/09dba2e1/src/backend/cdb/cdbdatalocality.c
--
diff --git a/src/backend/cdb/cdbdatalocality.c 
b/src/backend/cdb/cdbdatalocality.c
index adcc3b8..c56232c 100644
--- a/src/backend/cdb/cdbdatalocality.c
+++ b/src/backend/cdb/cdbdatalocality.c
@@ -854,7 +854,10 @@ int64 
get_block_locations_and_claculte_table_size(split_to_segment_mapping_conte
 
MemoryContextSwitchTo(context->datalocality_memorycontext);
 
-   ActiveSnapshot = GetTransactionSnapshot();
+   if (ActiveSnapshot == NULL)
+   {
+   ActiveSnapshot = GetTransactionSnapshot();
+   }
ActiveSnapshot = CopySnapshot(ActiveSnapshot);
ActiveSnapshot->curcid = GetCurrentCommandId();
 



[25/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest.h
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest.h 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest.h
deleted file mode 100644
index 4f3804f..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/fused-src/gtest/gtest.h
+++ /dev/null
@@ -1,20061 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan)
-//
-// The Google C++ Testing Framework (Google Test)
-//
-// This header file defines the public API for Google Test.  It should be
-// included by any test program that uses Google Test.
-//
-// IMPORTANT NOTE: Due to limitation of the C++ language, we have to
-// leave some internal implementation details in this header file.
-// They are clearly marked by comments like this:
-//
-//   // INTERNAL IMPLEMENTATION - DO NOT USE IN A USER PROGRAM.
-//
-// Such code is NOT meant to be used by a user directly, and is subject
-// to CHANGE WITHOUT NOTICE.  Therefore DO NOT DEPEND ON IT in a user
-// program!
-//
-// Acknowledgment: Google Test borrowed the idea of automatic test
-// registration from Barthelemy Dagenais' (barthel...@prologique.com)
-// easyUnit framework.
-
-#ifndef GTEST_INCLUDE_GTEST_GTEST_H_
-#define GTEST_INCLUDE_GTEST_GTEST_H_
-
-#include 
-#include 
-#include 
-
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: w...@google.com (Zhanyong Wan), eef...@gmail.com (Sean Mcafee)
-//
-// The Google C++ Testing Framework (Google Test)
-//
-// This header file declares functions and macros used internally by
-// Google Test.  They are subject to change without notice.
-
-#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
-#define 

[77/80] [abbrv] incubator-hawq git commit: HAWQ-868. Add some useful links in README.md

2016-06-28 Thread cjcjameson
HAWQ-868. Add some useful links in README.md


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

Branch: refs/heads/HAWQ-537
Commit: 5a8622707749cfe98c61188ab212a61c83778998
Parents: 10f778c
Author: Ming LI 
Authored: Tue Jun 28 12:24:53 2016 +0800
Committer: Ming LI 
Committed: Tue Jun 28 12:24:53 2016 +0800

--
 README.md | 10 ++
 1 file changed, 10 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/5a862270/README.md
--
diff --git a/README.md b/README.md
index 22b690c..6f23e8b 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,13 @@
+![HAWQ](http://hawq.incubator.apache.org/images/logo-hawq.png)
+
+[Website](http://hawq.incubator.apache.org/) |
+[Wiki](https://cwiki.apache.org/confluence/display/HAWQ/Apache+HAWQ+Home) |
+[Documentation](http://hdb.docs.pivotal.io/) |
+[Devolper Mailing List](mailto://d...@hawq.incubator.apache.org) |
+[User Mailing List](mailto://u...@hawq.incubator.apache.org) |
+[Q 
Collections](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=65144284)
 |
+[Open Defect](https://issues.apache.org/jira/browse/HAWQ) |
+
 # Apache HAWQ
 ---
 Apache HAWQ is a Hadoop native SQL query engine that combines the key 
technological advantages of MPP database with the scalability and convenience 
of Hadoop. HAWQ reads data from and writes data to HDFS natively. HAWQ delivers 
industry-leading performance and linear scalability. It provides users the 
tools to confidently and successfully interact with petabyte range data sets. 
HAWQ provides users with a complete, standards compliant SQL interface. More 
specifically, HAWQ has the following features:



[73/80] [abbrv] incubator-hawq git commit: HAWQ-835. Fix cannot retrieve tuple from temp table created in function

2016-06-28 Thread cjcjameson
HAWQ-835. Fix cannot retrieve tuple from temp table created in function


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

Branch: refs/heads/HAWQ-537
Commit: 56fa20678cdc9b474fda284fbf8cb0916137094e
Parents: b74baf5
Author: Ruilong Huo 
Authored: Mon Jun 27 11:00:16 2016 +0800
Committer: Ruilong Huo 
Committed: Mon Jun 27 11:03:47 2016 +0800

--
 src/backend/cdb/cdbdatalocality.c | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/56fa2067/src/backend/cdb/cdbdatalocality.c
--
diff --git a/src/backend/cdb/cdbdatalocality.c 
b/src/backend/cdb/cdbdatalocality.c
index 2fffc31..1d14e80 100644
--- a/src/backend/cdb/cdbdatalocality.c
+++ b/src/backend/cdb/cdbdatalocality.c
@@ -857,6 +857,7 @@ int64 
get_block_locations_and_claculte_table_size(split_to_segment_mapping_conte
 
MemoryContextSwitchTo(context->datalocality_memorycontext);
 
+   ActiveSnapshot = GetTransactionSnapshot();
ActiveSnapshot = CopySnapshot(ActiveSnapshot);
ActiveSnapshot->curcid = GetCurrentCommandId();
 



[55/80] [abbrv] incubator-hawq git commit: HAWQ-856 Explicitly initialize GPOPT and its dependencies.

2016-06-28 Thread cjcjameson
HAWQ-856 Explicitly initialize GPOPT and its dependencies.


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

Branch: refs/heads/HAWQ-537
Commit: 0f6ac20a9c687c70cac136f55e44022f8476792f
Parents: 752a98c
Author: Venkatesh (Venky) Raghavan 
Authored: Wed Jun 22 15:14:38 2016 -0700
Committer: Venkatesh (Venky) Raghavan 
Committed: Wed Jun 22 15:14:38 2016 -0700

--
 depends/thirdparty/gporca  |  2 +-
 depends/thirdparty/gpos|  2 +-
 src/backend/gpopt/CGPOptimizer.cpp | 67 -
 src/backend/gpopt/ivy.xml  |  4 +-
 src/backend/utils/init/postinit.c  | 14 +++
 src/include/gpopt/CGPOptimizer.h   |  7 
 6 files changed, 91 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0f6ac20a/depends/thirdparty/gporca
--
diff --git a/depends/thirdparty/gporca b/depends/thirdparty/gporca
index f0532b1..0d83756 16
--- a/depends/thirdparty/gporca
+++ b/depends/thirdparty/gporca
@@ -1 +1 @@
-Subproject commit f0532b19c22c86e6959ae35fb9568096b7d666f9
+Subproject commit 0d837569e61182f68bf1b92038c6616401790a16

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0f6ac20a/depends/thirdparty/gpos
--
diff --git a/depends/thirdparty/gpos b/depends/thirdparty/gpos
index 91fa636..6af760f 16
--- a/depends/thirdparty/gpos
+++ b/depends/thirdparty/gpos
@@ -1 +1 @@
-Subproject commit 91fa636d53ad71d56a4beae55e3ed1fb6d6f8f92
+Subproject commit 6af760fb96f5bd48783e8644e7d63c39132b8c08

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0f6ac20a/src/backend/gpopt/CGPOptimizer.cpp
--
diff --git a/src/backend/gpopt/CGPOptimizer.cpp 
b/src/backend/gpopt/CGPOptimizer.cpp
index c0eaa3e..db3cab8 100644
--- a/src/backend/gpopt/CGPOptimizer.cpp
+++ b/src/backend/gpopt/CGPOptimizer.cpp
@@ -48,7 +48,7 @@
 void
 CGPOptimizer::TouchLibraryInitializers()
 {
-   void (*gpos)() = gpos_init;
+   void (*gpos)(gpos_init_params*) = gpos_init;
void (*dxl)() = gpdxl_init;
void (*opt)() = gpopt_init;
 }
@@ -90,6 +90,39 @@ CGPOptimizer::SzDXLPlan
return COptTasks::SzOptimize(pquery);
 }
 
+//---
+// @function:
+// InitGPOPT()
+//
+// @doc:
+// Initialize GPTOPT and dependent libraries
+//
+//---
+void
+CGPOptimizer::InitGPOPT ()
+{
+  // Use GPORCA's default allocators
+  struct gpos_init_params params = { NULL, NULL };
+  gpos_init();
+  gpdxl_init();
+  gpopt_init();
+}
+
+//---
+// @function:
+// TerminateGPOPT()
+//
+// @doc:
+// Terminate GPOPT and dependent libraries
+//
+//---
+void
+CGPOptimizer::TerminateGPOPT ()
+{
+  gpopt_terminate();
+  gpdxl_terminate();
+  gpos_terminate();
+}
 
 //---
 // @function:
@@ -130,4 +163,36 @@ char *SzDXLPlan
 }
 }
 
+//---
+// @function:
+// InitGPOPT()
+//
+// @doc:
+// Initialize GPTOPT and dependent libraries
+//
+//---
+extern "C"
+{
+void InitGPOPT ()
+{
+   return CGPOptimizer::InitGPOPT();
+}
+}
+
+//---
+// @function:
+// TerminateGPOPT()
+//
+// @doc:
+// Terminate GPOPT and dependent libraries
+//
+//---
+extern "C"
+{
+void TerminateGPOPT ()
+{
+   return CGPOptimizer::TerminateGPOPT();
+}
+}
+
 // EOF

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0f6ac20a/src/backend/gpopt/ivy.xml
--
diff --git a/src/backend/gpopt/ivy.xml b/src/backend/gpopt/ivy.xml
index a9d08aa..43423eb 100644
--- a/src/backend/gpopt/ivy.xml
+++ b/src/backend/gpopt/ivy.xml
@@ -38,8 +38,8 @@ under the License.
 
 
 
-  
-  
+  
+  
   
 
 


[29/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/missing
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/missing 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/missing
deleted file mode 100644
index 86a8fc3..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/build-aux/missing
+++ /dev/null
@@ -1,331 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2012-01-06.13; # UTC
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
-# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard , 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see .
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
-  echo 1>&2 "Try \`$0 --help' for more information"
-  exit 1
-fi
-
-run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
-  configure_ac=configure.ac
-else
-  configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case $1 in
---run)
-  # Try to run requested program, and just exit if it succeeds.
-  run=
-  shift
-  "$@" && exit 0
-  # Exit code 63 means version mismatch.  This often happens
-  # when the user try to use an ancient version of a tool on
-  # a file that requires a minimum version.  In this case we
-  # we should proceed has if the program had been absent, or
-  # if --run hadn't been passed.
-  if test $? = 63; then
-run=:
-msg="probably too old"
-  fi
-  ;;
-
-  -h|--h|--he|--hel|--help)
-echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
-  -h, --help  display this help and exit
-  -v, --version   output version information and exit
-  --run   try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
-  aclocal  touch file \`aclocal.m4'
-  autoconf touch file \`configure'
-  autoheader   touch file \`config.h.in'
-  autom4te touch the output file, or create a stub one
-  automake touch all \`Makefile.in' files
-  bisoncreate \`y.tab.[ch]', if possible, from existing .[ch]
-  flex create \`lex.yy.c', if possible, from existing .c
-  help2man touch the output file
-  lex  create \`lex.yy.c', if possible, from existing .c
-  makeinfo touch the output file
-  yacc create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
-\`g' are ignored when checking the name.
-
-Send bug reports to ."
-exit $?
-;;
-
-  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
-echo "missing $scriptversion (GNU Automake)"
-exit $?
-;;
-
-  -*)
-echo 1>&2 "$0: Unknown \`$1' option"
-echo 1>&2 "Try \`$0 --help' for more information"
-exit 1
-;;
-
-esac
-
-# normalize program name to check for.
-program=`echo "$1" | sed '
-  s/^gnu-//; t
-  s/^gnu//; t
-  s/^g//; t'`
-
-# Now exit if we have it, but it failed.  Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program).  This is about non-GNU programs, so use $1 not
-# $program.
-case $1 in
-  lex*|yacc*)
-# Not GNU programs, they don't have --version.
-;;
-
-  *)
-if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
-   # We have it, but it failed.
-   exit 1
-elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
-   # Could not run --version or --help.  This is probably someone
-   # running `$TOOL --version' or `$TOOL --help' to check whether
-   # $TOOL exists and not knowing $TOOL uses missing.
-   exit 1
-fi
-;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated 

[08/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-death-test.cc
--
diff --git 
a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-death-test.cc 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-death-test.cc
deleted file mode 100644
index a6023fc..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/gtest/src/gtest-death-test.cc
+++ /dev/null
@@ -1,1344 +0,0 @@
-// Copyright 2005, Google Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Author: w...@google.com (Zhanyong Wan), vl...@google.com (Vlad Losev)
-//
-// This file implements death tests.
-
-#include "gtest/gtest-death-test.h"
-#include "gtest/internal/gtest-port.h"
-
-#if GTEST_HAS_DEATH_TEST
-
-# if GTEST_OS_MAC
-#  include 
-# endif  // GTEST_OS_MAC
-
-# include 
-# include 
-# include 
-
-# if GTEST_OS_LINUX
-#  include 
-# endif  // GTEST_OS_LINUX
-
-# include 
-
-# if GTEST_OS_WINDOWS
-#  include 
-# else
-#  include 
-#  include 
-# endif  // GTEST_OS_WINDOWS
-
-# if GTEST_OS_QNX
-#  include 
-# endif  // GTEST_OS_QNX
-
-#endif  // GTEST_HAS_DEATH_TEST
-
-#include "gtest/gtest-message.h"
-#include "gtest/internal/gtest-string.h"
-
-// Indicates that this translation unit is part of Google Test's
-// implementation.  It must come before gtest-internal-inl.h is
-// included, or there will be a compiler error.  This trick is to
-// prevent a user from accidentally including gtest-internal-inl.h in
-// his code.
-#define GTEST_IMPLEMENTATION_ 1
-#include "src/gtest-internal-inl.h"
-#undef GTEST_IMPLEMENTATION_
-
-namespace testing {
-
-// Constants.
-
-// The default death test style.
-static const char kDefaultDeathTestStyle[] = "fast";
-
-GTEST_DEFINE_string_(
-death_test_style,
-internal::StringFromGTestEnv("death_test_style", kDefaultDeathTestStyle),
-"Indicates how to run a death test in a forked child process: "
-"\"threadsafe\" (child process re-executes the test binary "
-"from the beginning, running only the specific death test) or "
-"\"fast\" (child process runs the death test immediately "
-"after forking).");
-
-GTEST_DEFINE_bool_(
-death_test_use_fork,
-internal::BoolFromGTestEnv("death_test_use_fork", false),
-"Instructs to use fork()/_exit() instead of clone() in death tests. "
-"Ignored and always uses fork() on POSIX systems where clone() is not "
-"implemented. Useful when running under valgrind or similar tools if "
-"those do not support clone(). Valgrind 3.3.1 will just fail if "
-"it sees an unsupported combination of clone() flags. "
-"It is not recommended to use this flag w/o valgrind though it will "
-"work in 99% of the cases. Once valgrind is fixed, this flag will "
-"most likely be removed.");
-
-namespace internal {
-GTEST_DEFINE_string_(
-internal_run_death_test, "",
-"Indicates the file, line number, temporal index of "
-"the single death test to run, and a file descriptor to "
-"which a success code may be sent, all separated by "
-"the '|' characters.  This flag is specified if and only if the current "
-"process is a sub-process launched for running a thread-safe "
-"death test.  FOR INTERNAL USE ONLY.");
-}  // namespace internal
-
-#if GTEST_HAS_DEATH_TEST
-
-namespace internal {
-
-// Valid only for fast death tests. Indicates the code is running in the

[42/80] [abbrv] [partial] incubator-hawq git commit: HAWQ-849. Remove apache orc codebase from hawq

2016-06-28 Thread cjcjameson
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/64dce1a8/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/missing
--
diff --git a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/missing 
b/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/missing
deleted file mode 100644
index 86a8fc3..000
--- a/depends/thirdparty/orc/c++/libs/gmock-1.7.0/build-aux/missing
+++ /dev/null
@@ -1,331 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2012-01-06.13; # UTC
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
-# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard , 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see .
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
-  echo 1>&2 "Try \`$0 --help' for more information"
-  exit 1
-fi
-
-run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
-  configure_ac=configure.ac
-else
-  configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case $1 in
---run)
-  # Try to run requested program, and just exit if it succeeds.
-  run=
-  shift
-  "$@" && exit 0
-  # Exit code 63 means version mismatch.  This often happens
-  # when the user try to use an ancient version of a tool on
-  # a file that requires a minimum version.  In this case we
-  # we should proceed has if the program had been absent, or
-  # if --run hadn't been passed.
-  if test $? = 63; then
-run=:
-msg="probably too old"
-  fi
-  ;;
-
-  -h|--h|--he|--hel|--help)
-echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
-  -h, --help  display this help and exit
-  -v, --version   output version information and exit
-  --run   try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
-  aclocal  touch file \`aclocal.m4'
-  autoconf touch file \`configure'
-  autoheader   touch file \`config.h.in'
-  autom4te touch the output file, or create a stub one
-  automake touch all \`Makefile.in' files
-  bisoncreate \`y.tab.[ch]', if possible, from existing .[ch]
-  flex create \`lex.yy.c', if possible, from existing .c
-  help2man touch the output file
-  lex  create \`lex.yy.c', if possible, from existing .c
-  makeinfo touch the output file
-  yacc create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
-\`g' are ignored when checking the name.
-
-Send bug reports to ."
-exit $?
-;;
-
-  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
-echo "missing $scriptversion (GNU Automake)"
-exit $?
-;;
-
-  -*)
-echo 1>&2 "$0: Unknown \`$1' option"
-echo 1>&2 "Try \`$0 --help' for more information"
-exit 1
-;;
-
-esac
-
-# normalize program name to check for.
-program=`echo "$1" | sed '
-  s/^gnu-//; t
-  s/^gnu//; t
-  s/^g//; t'`
-
-# Now exit if we have it, but it failed.  Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program).  This is about non-GNU programs, so use $1 not
-# $program.
-case $1 in
-  lex*|yacc*)
-# Not GNU programs, they don't have --version.
-;;
-
-  *)
-if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
-   # We have it, but it failed.
-   exit 1
-elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
-   # Could not run --version or --help.  This is probably someone
-   # running `$TOOL --version' or `$TOOL --help' to check whether
-   # $TOOL exists and not knowing $TOOL uses missing.
-   exit 1
-fi
-;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate 

[54/80] [abbrv] incubator-hawq git commit: HAWQ-764. Remove CTranslatorPlStmtToDXL Deadcode [#119102697]

2016-06-28 Thread cjcjameson
HAWQ-764. Remove CTranslatorPlStmtToDXL Deadcode [#119102697]


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

Branch: refs/heads/HAWQ-537
Commit: 752a98cdab62d40d46c66b0cb1abe1dcfb7860d7
Parents: 817249a
Author: Venkatesh (Venky) Raghavan 
Authored: Wed Jun 22 10:56:49 2016 -0700
Committer: Venkatesh (Venky) Raghavan 
Committed: Wed Jun 22 10:56:49 2016 -0700

--
 .../gpopt/translate/CTranslatorPlStmtToDXL.cpp  | 2541 --
 .../gpopt/translate/CTranslatorQueryToDXL.cpp   |1 -
 .../gpopt/translate/CTranslatorScalarToDXL.cpp  |  178 --
 src/backend/gpopt/translate/Makefile|3 +-
 src/backend/gpopt/utils/COptTasks.cpp   |   87 -
 src/backend/gpopt/utils/funcs.cpp   |   66 -
 src/backend/gpopt/utils/load.sql|6 -
 .../gpopt/translate/CTranslatorPlStmtToDXL.h|  270 --
 src/include/gpopt/utils/COptTasks.h |8 -
 9 files changed, 1 insertion(+), 3159 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/752a98cd/src/backend/gpopt/translate/CTranslatorPlStmtToDXL.cpp
--
diff --git a/src/backend/gpopt/translate/CTranslatorPlStmtToDXL.cpp 
b/src/backend/gpopt/translate/CTranslatorPlStmtToDXL.cpp
deleted file mode 100644
index 7657d4d..000
--- a/src/backend/gpopt/translate/CTranslatorPlStmtToDXL.cpp
+++ /dev/null
@@ -1,2541 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-//---
-// @filename:
-// CTranslatorPlStmtToDXL.cpp
-//
-// @doc:
-// Implementation of the methods for translating GPDB's 
PlannedStmt into DXL Tree.
-// All translator methods allocate memory in the provided memory 
pool, and
-// the caller is responsible for freeing it
-//
-// @test:
-//
-//
-//---
-
-#include "postgres.h"
-
-#include "nodes/plannodes.h"
-#include "nodes/parsenodes.h"
-#include "access/sysattr.h"
-#include "optimizer/walkers.h"
-
-#include "gpos/base.h"
-#include "gpos/string/CWStringDynamic.h"
-
-#include "gpopt/mdcache/CMDAccessor.h"
-#include "gpopt/translate/CTranslatorPlStmtToDXL.h"
-#include "gpopt/translate/CTranslatorUtils.h"
-#include "gpopt/translate/CMappingVarColId.h"
-
-#include "naucrates/dxl/CDXLUtils.h"
-#include "naucrates/dxl/xml/dxltokens.h"
-#include "naucrates/dxl/operators/CDXLNode.h"
-#include "naucrates/dxl/gpdb_types.h"
-
-#include "naucrates/md/IMDScalarOp.h"
-#include "naucrates/md/IMDRelation.h"
-#include "naucrates/md/IMDIndex.h"
-
-#include "gpopt/gpdbwrappers.h"
-
-using namespace gpdxl;
-using namespace gpos;
-using namespace gpopt;
-
-#define DEFAULT_QUERY_LEVEL 0
-
-//---
-// @function:
-// CTranslatorPlStmtToDXL::CTranslatorPlStmtToDXL
-//
-// @doc:
-// Constructor
-//
-//---
-CTranslatorPlStmtToDXL::CTranslatorPlStmtToDXL
-   (
-   IMemoryPool *pmp,
-   CMDAccessor *pmda,
-   CIdGenerator *pulIdGenerator,
-   PlannedStmt *pplstmt,
-   CMappingParamIdScalarId *pmapps
-   )
-   :
-   m_pmp(pmp),
-   m_pmda(pmda),
-   m_pidgtor(pulIdGenerator),
-   m_pplstmt(pplstmt),
-   m_pparammapping(pmapps)
-{
-   GPOS_ASSERT(NULL != m_pplstmt);
-   m_psctranslator = GPOS_NEW(m_pmp)
-   CTranslatorScalarToDXL
-   (
-   m_pmp,
-

  1   2   >