mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 01:48:54 +00:00
BigQuery: remove print statement.
This commit is contained in:
parent
ddbbe1267a
commit
6edfdfba63
@ -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'])})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user