hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubertzh...@apache.org
Subject incubator-hawq git commit: HAWQ-477. Copy table to file do not real execute for lineitem.
Date Wed, 02 Mar 2016 02:36:01 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master a6f366578 -> fa3ad0b2e


HAWQ-477. Copy table to file do not real execute for lineitem.


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

Branch: refs/heads/master
Commit: fa3ad0b2e02e705029cc56834944aacd9b14c7a4
Parents: a6f3665
Author: hubertzhang <hzhang@pivotal.io>
Authored: Tue Mar 1 17:35:28 2016 +0800
Committer: hubertzhang <hzhang@pivotal.io>
Committed: Tue Mar 1 17:35:28 2016 +0800

----------------------------------------------------------------------
 src/backend/commands/copy.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/fa3ad0b2/src/backend/commands/copy.c
----------------------------------------------------------------------
diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c
index 35a2c0d..e78c1ca 100644
--- a/src/backend/commands/copy.c
+++ b/src/backend/commands/copy.c
@@ -1660,8 +1660,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
 			Assert(Gp_role == GP_ROLE_EXECUTE);
 			if (RelationIsAoRows(cstate->rel) || RelationIsParquet(cstate->rel))
 			{
-				cstate->splits = GetFileSplitsOfSegment(stmt->scantable_splits,
-								cstate->rel->rd_id, GetQEIndex());
+				cstate->splits = stmt->scantable_splits;
 			}
 			else
 			{
@@ -2274,7 +2273,9 @@ CopyTo(CopyState cstate)
 				MemTupleBinding *mt_bind = create_memtuple_binding(tupDesc);
 
 				aoscandesc = appendonly_beginscan(rel, ActiveSnapshot, 0, NULL);
-				aoscandesc->splits = cstate->splits;
+				aoscandesc->splits = GetFileSplitsOfSegment(cstate->splits,
+												rel->rd_id, GetQEIndex());
+
 
 				while ((tuple = appendonly_getnext(aoscandesc, ForwardScanDirection, slot)) != NULL)
 				{


Mime
View raw message