title: Pull query in KSQL Python client reaching StopIteration after query description
body: <p>I wanted to make the following pull query in Kafka's Python KSQL client:</p>
  <p><code>SELECT * FROM EQUIPMENT_TABLE;</code></p>
  <p>The results that I want, which I get when executing in <code>ksql</code> are:</p>
  <p>ksql&gt; SELECT * FROM EQUIPMENT_TABLE;</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>EQUIPMENT</th>
  <th>AVERAGE POWER</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>MICROWAVE</td>
  <td>10</td>
  </tr>
  <tr>
  <td>FRIDGE</td>
  <td>20</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Query terminated</p>
  <p>That is one line for each equipment, column which is the primary key of the table.</p>
  <p>However, when I try to execute the following code in Python, I get only the query's description, <code>ITEM [{&quot;header&quot;:{&quot;queryId&quot;:&quot;query_1645553401214&quot;,&quot;schema&quot;:&quot;`EQUIPMENT` STRING KEY, `AVG_POWER` DOUBLE&quot;}}]</code>, and then a StopIteration exception.</p>
  <pre><code>ksql_string = &quot;SELECT * FROM EQUIPMENT_TABLE;&quot;
  streamProperties = {
      &quot;ksql.streams.auto.offset.reset&quot;: &quot;earliest&quot;, 
      &quot;ksql.query.pull.table.scan.enabled&quot;: &quot;true&quot;
  }
  query = client.query(ksql_string, stream_properties=streamProperties)
  
  for item in query:
      try:
          print(&quot;ITEM&quot;, item)
      except:
          print(&quot;unable to read data&quot;)
  </code></pre>
  <p>As I know the number of equipment, I managed to solve by adding <code>EMIT CHANGES</code> to the query and iterating through the items with a bounded for-loop like the following:</p>
  <pre><code>for i in range(0,3):
      try:
          item = next(query)
          print(&quot;ITEM&quot;, item)
      except:
          print(&quot;unable to read data&quot;)
  
  </code></pre>
  <p>Is there a better way that doesn't require previous knowledge about the number of rows?</p>