hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xunzh...@apache.org
Subject incubator-hawq git commit: HAWQ-1167. Fix parquet format estimate column width for bpchar type.
Date Tue, 22 Nov 2016 06:49:51 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master d8d597499 -> 68570a720


HAWQ-1167. Fix parquet format estimate column width for bpchar type.


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

Branch: refs/heads/master
Commit: 68570a7205ea8979dcc1e1c211cb2df3ba4a8f22
Parents: d8d5974
Author: xunzhang <xunzhangthu@gmail.com>
Authored: Tue Nov 22 11:13:22 2016 +0800
Committer: xunzhang <xunzhangthu@gmail.com>
Committed: Tue Nov 22 12:48:57 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbparquetstoragewrite.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/68570a72/src/backend/cdb/cdbparquetstoragewrite.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbparquetstoragewrite.c b/src/backend/cdb/cdbparquetstoragewrite.c
index e57e875..4baf16e 100644
--- a/src/backend/cdb/cdbparquetstoragewrite.c
+++ b/src/backend/cdb/cdbparquetstoragewrite.c
@@ -721,12 +721,11 @@ void estimateColumnWidth(int *columnWidths,
 
 		/* variable length type */
 		case HAWQ_TYPE_CHAR:
-		case HAWQ_TYPE_BPCHAR:
 			/* for char(n), atttypmod is n + 4 */
 			Assert(att->atttypmod > 4);
 			columnWidths[(*colidx)++] = att->atttypmod;
 			break;
-			break;
+		case HAWQ_TYPE_BPCHAR:
 		case HAWQ_TYPE_VARCHAR:
 		case HAWQ_TYPE_TEXT:
 		case HAWQ_TYPE_XML:


Mime
View raw message