Skip to content

Commit 631c370

Browse files
authored
use config.getLong to access dpl.pth_06.batch.size.totalObjectCountLimit so that it is properly converted to long instead of float (#730)
1 parent cceb334 commit 631c370

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/com/teragrep/pth_10/datasources/DPLDatasource.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ private Dataset<Row> archiveStreamConsumerDataset(ArchiveQuery query, boolean is
177177
}
178178

179179
if (config.hasPath("dpl.pth_06.batch.size.totalObjectCountLimit")) {
180+
final long totalObjectCountLimit = config.getLong("dpl.pth_06.batch.size.totalObjectCountLimit");
181+
180182
reader = reader
181-
.option(
182-
"batch.size.totalObjectCountLimit",
183-
config.getString("dpl.pth_06.batch.size.totalObjectCountLimit")
183+
.option("batch.size.totalObjectCountLimit", String.valueOf(totalObjectCountLimit)
184+
184185
);
185186
}
186187

0 commit comments

Comments
 (0)