hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject incubator-hawq git commit: HAWQ-32. Add a copy function for ResultRelSegFileInfo
Date Sat, 10 Oct 2015 06:25:54 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master d6ac62b7c -> fda0245fc


HAWQ-32. Add a copy function for ResultRelSegFileInfo


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

Branch: refs/heads/master
Commit: fda0245fcefa018faa3cf0cdb4bea0cc634d92f1
Parents: d6ac62b
Author: Lirong Jian <jianlirong@gmail.com>
Authored: Sat Oct 10 13:27:27 2015 +0800
Committer: Lirong Jian <jianlirong@gmail.com>
Committed: Sat Oct 10 13:27:27 2015 +0800

----------------------------------------------------------------------
 src/backend/nodes/copyfuncs.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/fda0245f/src/backend/nodes/copyfuncs.c
----------------------------------------------------------------------
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
index 66586dc..a179d41 100644
--- a/src/backend/nodes/copyfuncs.c
+++ b/src/backend/nodes/copyfuncs.c
@@ -466,6 +466,8 @@ _copyExternalScan(ExternalScan *from)
 	COPY_SCALAR_FIELD(rejLimit);
 	COPY_SCALAR_FIELD(rejLimitInRows);
 	COPY_SCALAR_FIELD(fmterrtbl);
+	COPY_NODE_FIELD(errAosegnos);
+	COPY_NODE_FIELD(err_aosegfileinfos);
 	COPY_SCALAR_FIELD(encoding);
 	COPY_SCALAR_FIELD(scancounter);
 
@@ -4177,6 +4179,21 @@ _copyAlterTypeStmt(AlterTypeStmt *from)
 	return newnode;
 }
 
+static ResultRelSegFileInfo *
+_copyResultRelSegFileInfo(ResultRelSegFileInfo *from)
+{
+  ResultRelSegFileInfo *newnode = makeNode(ResultRelSegFileInfo);
+
+  COPY_SCALAR_FIELD(segno);
+  COPY_SCALAR_FIELD(varblock);
+  COPY_SCALAR_FIELD(tupcount);
+  COPY_SCALAR_FIELD(numfiles);
+  COPY_POINTER_FIELD(eof, from->numfiles * sizeof(uint64));
+  COPY_POINTER_FIELD(uncompressed_eof, from->numfiles * sizeof(uint64));
+
+  return newnode;
+}
+
 static CaQLSelect *
 _copyCaQLSelect(const CaQLSelect *from)
 {
@@ -5110,6 +5127,9 @@ copyObject(void *from)
 		case T_AlterTypeStmt:
 			retval = _copyAlterTypeStmt(from);
 			break;
+		case T_ResultRelSegFileInfo:
+		  retval = _copyResultRelSegFileInfo(from);
+		  break;
 
 		case T_DenyLoginInterval:
 			retval = _copyDenyLoginInterval(from);


Mime
View raw message