2e5d57c30af1f23a6369dda419ad60ce991093fd,bigquery/samples/sync_query.py,,main,#Any#Any#Any#Any#,33

Before Change



// [START run]
def main(project_id, query, timeout, num_retries):
    service = get_service()
    response = sync_query(service,
                          project_id,
                          query,
                          timeout,

After Change


def main(project_id, query, timeout, num_retries):
    // [START build_service]
    // Grab the application"s default credentials from the environment.
    credentials = GoogleCredentials.get_application_default()

    // Construct the service object for interacting with the BigQuery API.
    bigquery = discovery.build("bigquery", "v2", credentials=credentials)
    // [END build_service]

    query_job = sync_query(
        bigquery,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2e5d57c30af1f23a6369dda419ad60ce991093fd
Time: 2015-09-15
Author: jon.wayne.parrott@gmail.com
File Name: bigquery/samples/sync_query.py
Class Name:
Method Name: main


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2e5d57c30af1f23a6369dda419ad60ce991093fd
Time: 2015-09-15
Author: jon.wayne.parrott@gmail.com
File Name: bigquery/samples/async_query.py
Class Name:
Method Name: main


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2e5d57c30af1f23a6369dda419ad60ce991093fd
Time: 2015-09-15
Author: jon.wayne.parrott@gmail.com
File Name: bigquery/samples/streaming.py
Class Name:
Method Name: main