Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4268 Rework coordinator buffering to buffer more data
  3. IMPALA-558

HS2::FetchResults sets hasMoreRows in many cases where no more rows are to be returned

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • Impala 1.1
    • None
    • Clients

    Description

      The first call to FetchResults always sets hasMoreRows even when 0 rows should be returned. The next call correctly sets hasMoreRows == False. The upshot is there's always an extra round-trip, although correctness isn't affected.

          execute_statement_req = TCLIService.TExecuteStatementReq()
          execute_statement_req.sessionHandle = resp.sessionHandle
          execute_statement_req.statement = "SELECT COUNT(*) FROM functional.alltypes WHERE 1 = 2"
          execute_statement_resp = self.hs2_client.ExecuteStatement(execute_statement_req)
          
          fetch_results_req = TCLIService.TFetchResultsReq()
          fetch_results_req.operationHandle = execute_statement_resp.operationHandle
          fetch_results_req.maxRows = 100
          fetch_results_resp = self.hs2_client.FetchResults(fetch_results_req)
          
          assert not fetch_results_resp.hasMoreRows # Fails
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              henryr Henry Robinson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: