[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-543
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:
-// CTranslatorDXLToQuery::PqueryFromDXL
-//
-// @doc:
-//   

[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:
-// CTranslatorDXLToQuery::PqueryFromDXL
-//
-// @doc:
-//