

def query(self, query, max_results=None, timeout=0, dry_run=False):
    "Submit a query to BigQuery.\n\n        Parameters\n        ----------\n        query : str\n            BigQuery query string\n        max_results : int, optional\n            The maximum number of rows to return per page of results.\n        timeout : float, optional\n            How long to wait for the query to complete, in seconds before\n            the request times out and returns.\n        dry_run : bool, optional\n            If True, the query isn't actually run. A valid query will return an\n            empty response, while an invalid one will return the same error\n            message it would if it wasn't a dry run.\n\n        Returns\n        -------\n        tuple\n            (job id, query results) if the query completed. If dry_run is True,\n            job id will be None and results will be empty if the query is valid\n            or a ``dict`` containing the response if invalid.\n\n        Raises\n        ------\n        BigQueryTimeoutException\n            on timeout\n        "
    logger.debug(('Executing query: %s' % query))
    query_data = {
        'query': query,
        'timeoutMs': (timeout * 1000),
        'dryRun': dry_run,
        'maxResults': max_results,
    }
    return query._submit_query_job(query_data)

dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py BigQueryClient.query/VarMisuse@68/445 `self`->`query`