[Fix] filter to only StringParameters in joining of GenericReport
This commit is contained in:
parent
c0bf2ae428
commit
3bcd2075d3
|
@ -467,7 +467,12 @@ public class GenericReport extends ReportPolicy {
|
||||||
"Invalid join definition value: " + joinP.getValue() + " on: " + joinP.getLocator() + " as "
|
"Invalid join definition value: " + joinP.getValue() + " on: " + joinP.getLocator() + " as "
|
||||||
+ dependency.getLocator() + " has no ParameterBag " + BAG_RELATIONS);
|
+ dependency.getLocator() + " has no ParameterBag " + BAG_RELATIONS);
|
||||||
|
|
||||||
List<Parameter<?>> relationParams = relationsBag.getParametersByInterpretationAndUom(interpretation, joinType);
|
List<Parameter<?>> relationParams = relationsBag //
|
||||||
|
.getParametersByInterpretationAndUom(interpretation, joinType) //
|
||||||
|
.stream() //
|
||||||
|
.filter(s -> s.getType().equals(StrolchValueType.STRING.getType())) //
|
||||||
|
.collect(Collectors.toList()); //
|
||||||
|
|
||||||
if (relationParams.isEmpty()) {
|
if (relationParams.isEmpty()) {
|
||||||
throw new IllegalStateException(
|
throw new IllegalStateException(
|
||||||
"Found no relation parameters with UOM " + joinType + " on dependency " + dependency.getLocator());
|
"Found no relation parameters with UOM " + joinType + " on dependency " + dependency.getLocator());
|
||||||
|
|
Loading…
Reference in New Issue