code: def get_query_details(self, query_id, format='text'):
      
      return self._get("impalaQueries/" + query_id, ApiImpalaQueryDetailsResponse,
          params=dict(format=format), api_version=4)
docs: Get the query details
  
      @param query_id: The query ID
      @param format: The format of the response ('text' or 'thrift_encoded')
      @return: The details text
      @since: API v4