on master help sign in
fix broken group
commit2fe5d65814341333a43f5df590bb7232e1eb9c43 authorAgentM <agentm@themactionfaction.com> dateThu 7 Dec 2017, 10:12 (9 years ago) parent5b585e7
1 file changed+2−2
src/lib/ProjectM36/Relation.hs+2−2
src/lib/ProjectM36/Relation.hs+2−2
@@ -149,8 +149,8 @@ group groupAttrNames newAttrName rel@(Relation oldAttrs tupleSet) = do
149149--algorithm: self-join with image relation
150150group :: S.Set AttributeName -> AttributeName -> Relation -> Either RelationalError Relation
151151group groupAttrNames newAttrName rel = do
152− let nonGroupAttrNames = A.attributeNamesNotContained groupAttrNames (S.fromList (V.toList (A.attributeNames (attributes rel))))
153− nonGroupProjectionAttributes <- A.projectionAttributesForNames nonGroupAttrNames (attributes rel)
152+ let nonGroupAttrNames = A.nonMatchingAttributeNameSet groupAttrNames (S.fromList (V.toList (A.attributeNames (attributes rel))))
153+ nonGroupProjectionAttributes <- A.projectionAttributesForNames nonGroupAttrNames (attributes rel)
154154 groupProjectionAttributes <- A.projectionAttributesForNames groupAttrNames (attributes rel)
155155 let groupAttr = Attribute newAttrName (RelationAtomType groupProjectionAttributes)
156156 matchingRelTuple tupIn = case imageRelationFor tupIn rel of