-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigQuery: Adds client.get_dataset() and removes dataset.reload() #3973
BigQuery: Adds client.get_dataset() and removes dataset.reload() #3973
Conversation
@@ -166,6 +166,20 @@ def dataset(self, dataset_name, project=None): | |||
|
|||
return DatasetReference(project, dataset_name) | |||
|
|||
def get_dataset(self, dataset_ref): | |||
"""API call: refresh dataset properties via a GET request. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -127,6 +127,15 @@ def dataset_id(self): | |||
""" | |||
return self._dataset_id | |||
|
|||
@property | |||
def path(self): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
bigquery/tests/unit/test_client.py
Outdated
creds = _make_credentials() | ||
http = object() | ||
client = self._make_one(project=project, credentials=creds, _http=http) | ||
DS_ID = '%s:%s' % (project, dataset_id) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
* BigQuery: Adds client.get_dataset() and removes dataset.reload() * BigQuery: changes dataset.name to dataset.dataset_id in test * fixes client.get_dataset() docstring and removes unnecessary test variable
* BigQuery: Adds client.get_dataset() and removes dataset.reload() * BigQuery: changes dataset.name to dataset.dataset_id in test * fixes client.get_dataset() docstring and removes unnecessary test variable
* BigQuery: Adds client.get_dataset() and removes dataset.reload() * BigQuery: changes dataset.name to dataset.dataset_id in test * fixes client.get_dataset() docstring and removes unnecessary test variable
No description provided.