mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-01 12:59:18 -06:00
Merge branch 'main' of https://github.com/nosqlbench/nosqlbench into main
This commit is contained in:
commit
29b7cb55b1
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -162,6 +162,7 @@ jobs:
|
||||
run: scripts/release-perform.sh
|
||||
continue-on-error: true
|
||||
env:
|
||||
RELEASE_BRANCH_PATTERN: "release"
|
||||
RELEASE_BRANCH_NAME: "main"
|
||||
GIT_RELEASE_BOT_NAME: "nb-droid"
|
||||
GIT_RELEASE_BOT_EMAIL: ${{ secrets.GIT_RELEASE_BOT_EMAIL }}
|
||||
|
@ -65,7 +65,7 @@ public class NBIO implements NBPathsAPI.Facets {
|
||||
|
||||
public static CSVParser readFileDelimCSV(String filename,char delim, String... searchPaths) {
|
||||
Reader reader = NBIO.readReader(filename, searchPaths);
|
||||
CSVFormat format = CSVFormat.newFormat(delim).withFirstRecordAsHeader();
|
||||
CSVFormat format = CSVFormat.DEFAULT.withDelimiter(delim).withFirstRecordAsHeader();
|
||||
try {
|
||||
CSVParser parser = new CSVParser(reader, format);
|
||||
return parser;
|
||||
|
@ -80,7 +80,9 @@ public class WeightedStringsFromCSV implements LongFunction<String> {
|
||||
String value = csvdatum.get(valueColumn);
|
||||
values.add(value);
|
||||
String weight = csvdatum.get(weightColumn);
|
||||
events.add(new EvProbD(values.size() - 1, Double.valueOf(weight)));
|
||||
if(!weight.isEmpty()) {
|
||||
events.add(new EvProbD(values.size() - 1, Double.valueOf(weight)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user