Skip to content

Commit e870f7d

Browse files
committed
Use CaseInsensitiveHashMap for IndexVariantsForMgapStep
1 parent 349f77f commit e870f7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mGAP/src/org/labkey/mgap/pipeline/IndexVariantsForMgapStep.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import htsjdk.samtools.util.Interval;
44
import org.apache.commons.lang3.StringUtils;
55
import org.json.JSONObject;
6+
import org.labkey.api.collections.CaseInsensitiveHashMap;
67
import org.labkey.api.data.Container;
78
import org.labkey.api.data.SimpleFilter;
89
import org.labkey.api.data.TableInfo;
@@ -127,7 +128,7 @@ public void complete(PipelineJob job, List<SequenceOutputFile> inputs, List<Sequ
127128
}
128129

129130
job.getLogger().info("Updating release record");
130-
Map<String, Object> row = ts.getMap();
131+
Map<String, Object> row = new CaseInsensitiveHashMap<>(ts.getMap());
131132
if (!row.containsKey("rowid") || row.get("rowid") == null)
132133
{
133134
job.getLogger().error("Missing rowId, found: ");
@@ -144,7 +145,7 @@ public void complete(PipelineJob job, List<SequenceOutputFile> inputs, List<Sequ
144145
try
145146
{
146147
BatchValidationException bve = new BatchValidationException();
147-
Map<String, Object> oldKeys = Map.of("rowId", row.get("rowid"));
148+
Map<String, Object> oldKeys = new CaseInsensitiveHashMap<>(Map.of("rowid", row.get("rowid")));
148149
ti.getUpdateService().updateRows(job.getUser(), target, Collections.singletonList(row), Collections.singletonList(oldKeys), bve, null, null);
149150
}
150151
catch (BatchValidationException | InvalidKeyException | QueryUpdateServiceException | SQLException e)

0 commit comments

Comments
 (0)