influxdata / influxdb-java

Java client for InfluxDB
MIT License
1.19k stars 478 forks source link

Should contain 0 #959

Open GLM00-max opened 1 year ago

GLM00-max commented 1 year ago

public Select limit(int limit, long offSet) { if (limit > 0 && offSet > 0L) { this.limit = Optional.of(limit); this.offSet = Optional.of(offSet); return this; } else { throw new IllegalArgumentException("Invalid LIMIT and OFFSET Value, must be strictly positive"); } }

influxdb allow ” limit = 0 and offset =0 “