title: How can I tell if there is more data after a query with LIMIT?
body: <p>I am using <code>LIMIT</code> and <code>OFFSET</code> in InfluxQL queries to handle pagination.</p>
  
  <p>For example, in a measurement with 3 rows.</p>
  
  <pre><code>&gt; SELECT *::field FROM i2QYtZBVSnuXjLhQhuAV6w;
  name: i2QYtZBVSnuXjLhQhuAV6w
  time                 hello
  ----                 -----
  2018-02-23T18:00:00Z 1000
  2018-02-23T18:30:00Z 1200
  2018-02-23T19:00:00Z 990
  </code></pre>
  
  <p>Supposing I read the rows one by one using <code>LIMIT</code> and <code>OFFSET</code>:</p>
  
  <pre><code>&gt; SELECT *::field FROM i2QYtZBVSnuXjLhQhuAV6w LIMIT 1;
  name: i2QYtZBVSnuXjLhQhuAV6w
  time                 hello
  ----                 -----
  2018-02-23T18:00:00Z 1000
  &gt; SELECT *::field FROM i2QYtZBVSnuXjLhQhuAV6w LIMIT 1 OFFSET 1;
  name: i2QYtZBVSnuXjLhQhuAV6w
  time                 hello
  ----                 -----
  2018-02-23T18:30:00Z 1200
  &gt; SELECT *::field FROM i2QYtZBVSnuXjLhQhuAV6w LIMIT 1 OFFSET 2;
  name: i2QYtZBVSnuXjLhQhuAV6w
  time                 hello
  ----                 -----
  2018-02-23T19:00:00Z 990
  </code></pre>
  
  <p>Is there a way to know that there is no more data after that without performing an additional query? </p>
  
  <p>EDIT: My use case is generating a "next page token" for a user-facing REST API. I'd like to avoid giving the user a token that will just return an empty row set.</p>