Skip to content

Commit

Permalink
fix(OwlInput): extra null line in output :squirrel:
Browse files Browse the repository at this point in the history
  • Loading branch information
johncurcio committed Dec 5, 2018
1 parent f1aac3f commit 700bb05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,13 @@ private void putOutRow(Object[] inputRow, OwlInputStepMeta meta, OwlInputStepDat
outputRow = new Object[4];
}

for (String arg : var) {
outputRow = RowDataUtil.addValueData(outputRow, outputRowPos++, arg);
}

putRow(data.outputRowMeta, outputRow);
if (outputRow != null){
for (String arg : var) {
outputRow = RowDataUtil.addValueData(outputRow, outputRowPos++, arg);
}

putRow(data.outputRowMeta, outputRow);
}
}

private RowMetaInterface getInputRowMeta(boolean hasInputRow) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,7 @@ public void getFields(RowMetaInterface row, String origin, RowMetaInterface[] in
uriName.setOrigin(origin);
uriName.setLength(190);
row.addValueMeta(uriName);

ValueMetaInterface ontologyType = new ValueMetaString("property");
ontologyType.setOrigin(origin);
ontologyType.setLength(165);
row.addValueMeta(ontologyType);

ValueMetaInterface ontologyObject = new ValueMetaString("type");
ontologyObject.setOrigin(origin);
ontologyObject.setLength(110);
row.addValueMeta(ontologyObject);

}

public void check(List<CheckResultInterface> remarks, TransMeta transmeta, StepMeta stepMeta, RowMetaInterface prev,
Expand Down

0 comments on commit 700bb05

Please sign in to comment.