Skip to content

Commit

Permalink
Fixed #782
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenHilferink committed Oct 1, 2024
1 parent 98a5092 commit bd04989
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions clc/dll/src/Subset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,21 @@ struct CollectWithAttrOperator : public BinaryOperator
continue;
subDataItem->UpdateMetaInfo();
if (!sourceDomain->UnifyDomain(subDataItem->GetAbstrDomainUnit()))
{
if (m_CollectMode == collect_mode::org_rel)
reportF(SeverityTypeID::ST_Warning, "%s: image of org_rel is %s, which is incompatible with the domain of attribute %s, which is %s"
, GetGroup()->GetNameStr()
, subDataItem->GetFullName().c_str()
, subDataItem->GetAbstrDomainUnit()->GetFullName().c_str()
);
else
reportF(SeverityTypeID::ST_Warning, "%s: domain of condition is %s, which is incompatible with the domain of attribute %s, which is %s"
, GetGroup()->GetNameStr()
, subDataItem->GetFullName().c_str()
, subDataItem->GetAbstrDomainUnit()->GetFullName().c_str()
);
continue;
}
auto resSub = CreateDataItem(resultHolder, subDataID, domainA, subDataItem->GetAbstrValuesUnit(), subDataItem->GetValueComposition());

SharedStr collectExpr;
Expand Down

0 comments on commit bd04989

Please sign in to comment.