57fbe30c01490a89ea330e9402016fbcc741fe3f,bigquery/cloud-client/sync_query.py,,sync_query,#Any#,32
Before Change
query_results.run()
// Drain the query results by requesting a page at a time.
page_token = None
while True:
rows, total_rows, page_token = query_results.fetch_data(
max_results=10,
page_token=page_token)
for row in rows:
print(row)
if not page_token:
break
// [END sync_query]
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
After Change
query_results.run()
rows = query_results.fetch_data(max_results=10)
for row in rows:
print(row)
// [END sync_query]
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 22
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 57fbe30c01490a89ea330e9402016fbcc741fe3f
Time: 2017-06-27
Author: dpebot@google.com
File Name: bigquery/cloud-client/sync_query.py
Class Name:
Method Name: sync_query
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 57fbe30c01490a89ea330e9402016fbcc741fe3f
Time: 2017-06-27
Author: dpebot@google.com
File Name: bigquery/cloud-client/simple_app.py
Class Name:
Method Name: query_shakespeare
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 57fbe30c01490a89ea330e9402016fbcc741fe3f
Time: 2017-06-27
Author: dpebot@google.com
File Name: bigquery/cloud-client/user_credentials.py
Class Name:
Method Name: run_query