hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ent...@apache.org
Subject incubator-hawq git commit: HAWQ-264. Fix coverity issue 16858
Date Fri, 18 Dec 2015 19:22:03 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master b6cb39c37 -> 8239cb9a1


HAWQ-264. Fix coverity issue 16858


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

Branch: refs/heads/master
Commit: 8239cb9a108e97a8ef48b717526561bf83d158c1
Parents: b6cb39c
Author: Entong Shen <eshen@pivotal.io>
Authored: Fri Dec 18 11:15:57 2015 -0800
Committer: Entong Shen <shenentong@gmail.com>
Committed: Fri Dec 18 11:20:37 2015 -0800

----------------------------------------------------------------------
 src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/8239cb9a/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
----------------------------------------------------------------------
diff --git a/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp b/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
index 946e0ae..be9c077 100644
--- a/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
+++ b/src/backend/gpopt/translate/CTranslatorQueryToDXL.cpp
@@ -2230,9 +2230,10 @@ CTranslatorQueryToDXL::PdxlnUnionAllForGroupingSets
 	)
 {
 	GPOS_ASSERT(NULL != pdrgpbs);
-	GPOS_ASSERT(1 < pdrgpbs->UlLength());
 
 	const ULONG ulGroupingSets = pdrgpbs->UlLength();
+	GPOS_ASSERT(1 < ulGroupingSets);
+
 	CDXLNode *pdxlnUnionAll = NULL;
 	DrgPul *pdrgpulColIdsInner = NULL;
 


Mime
View raw message