code: private void cleanupViewStates() {
          completeRequestSpan(currentRequest());
          finishedDecoding();
          viewInfoObservable = null;
          viewRowObservable = null;
          viewErrorObservable = null;
          viewParsingState = QUERY_STATE_INITIAL;
      }
docs: Clean up the query states after all rows have been consumed.