Skip to content

Commit df2d331

Browse files
committed
The initTable method should clear out parsedTable rows first
1 parent e584a31 commit df2d331

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/imsweb/staging/StagingDataProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ public static StagingSchema initSchema(StagingSchema schema) {
161161
public static StagingTable initTable(StagingTable table) {
162162
Set<String> extraInputs = new HashSet<String>();
163163

164+
// empty out the parsed rows
165+
table.setTableRows(new ArrayList<StagingTableRow>());
166+
164167
if (table.getRawRows() != null) {
165168
for (List<String> row : table.getRawRows()) {
166169
StagingTableRow tableRowEntity = new StagingTableRow();

0 commit comments

Comments
 (0)