Skip to content

limit offset param maybe is number 0 #160

@gemron

Description

@gemron

Expected behavior:
limit offset maybe is number 0

Actual behavior:
when i set this offset param 0 value , throw a Exception like this:

Caused by: java.lang.IllegalArgumentException: Expecting a positive number for The number of records to skip
at com.influxdb.Arguments.checkPositiveNumber(Arguments.java:123)
at com.influxdb.query.dsl.functions.LimitFlux.withOffset(LimitFlux.java:81)
at com.influxdb.query.dsl.Flux.limit(Flux.java:989)

Specifications:

  • Client Version: 1.12.0
  • InfluxDB Version: 2.0.0.rc0
  • JDK Version: 1.8
  • Platform: macos

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions