[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 "
|
||||
+ 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()) {
|
||||
throw new IllegalStateException(
|
||||
"Found no relation parameters with UOM " + joinType + " on dependency " + dependency.getLocator());
|
||||
|
|
Loading…
Reference in New Issue