Closed
Description
temikus λ ipython
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
...
In [1]: import csv
...:
...: from gcloud import bigquery
...: from gcloud.bigquery import SchemaField
...:
In [2]: bgq = bigquery.Client()
In [3]: qry_str = """SELECT CAST(source_year AS string) AS year,
...: COUNT(is_male) AS birth_count
...: FROM [publicdata:samples.natality]
...: GROUP BY year
...: ORDER BY year
...: DESC
...: LIMIT 15"""
In [4]: qry = bgq.run_sync_query(qry_str)
In [5]: qry.maximum_billing_tier = 3
In [6]: qry.run()
...
However, there's no actual parameter of maximum_billing_tier
in the code:
class _SyncQueryConfiguration(object):
"""User-settable configuration options for synchronous query jobs.
Values which are ``None`` -> server defaults.
"""
_default_dataset = None
_dry_run = None
_max_results = None
_timeout_ms = None
_preserve_nulls = None
_use_query_cache = None
_use_legacy_sql = None
This is bad and leads to user confusion, this needs to be fixed ASAP. I'll create a separate bug on supporting maximum_billing_tier
.
λ pip show gcloud (1)
Name: gcloud
Version: 0.18.3
Summary: API Client library for Google Cloud
Home-page: https://github.com/GoogleCloudPlatform/gcloud-python
Author: Google Cloud Platform
Author-email: [email protected]
License: Apache 2.0
Location: /Users/temikus/Code/python/lib/python2.7/site-packages
Requires: httplib2, grpc-google-pubsub-v1, google-gax, six, gax-google-logging-v2, protobuf, grpcio, oauth2client, googleapis-common-protos, grpc-google-logging-v2, gax-google-pubsub-v1