BigQuery: remove print statement.

This commit is contained in:
Arik Fraimovich 2017-05-15 16:49:10 +03:00
parent ddbbe1267a
commit 6edfdfba63

View File

@ -1,11 +1,11 @@
from base64 import b64decode
import datetime import datetime
import json import json
import httplib2
import logging import logging
import sys import sys
import time import time
from base64 import b64decode
import httplib2
import requests import requests
from redash import settings from redash import settings
@ -222,7 +222,6 @@ class BigQuery(BaseQueryRunner):
tables = service.tables().list(projectId=project_id, datasetId=dataset_id).execute() tables = service.tables().list(projectId=project_id, datasetId=dataset_id).execute()
for table in tables.get('tables', []): for table in tables.get('tables', []):
table_data = service.tables().get(projectId=project_id, datasetId=dataset_id, tableId=table['tableReference']['tableId']).execute() table_data = service.tables().get(projectId=project_id, datasetId=dataset_id, tableId=table['tableReference']['tableId']).execute()
print table_data
schema.append({'name': table_data['id'], 'columns': map(lambda r: r['name'], table_data['schema']['fields'])}) schema.append({'name': table_data['id'], 'columns': map(lambda r: r['name'], table_data['schema']['fields'])})