influxdata / influxdb-java

Java client for InfluxDB
MIT License
1.18k stars 477 forks source link

Should contain 0 #959

Open GLM00-max opened 11 months ago

GLM00-max commented 11 months 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 “