Skip to content
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: Use TableListItem for table listing. #4427

Merged
merged 6 commits into from
Nov 20, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions bigquery/google/cloud/bigquery/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,21 @@ def _build_resource(self, filter_fields):


class TableListItem(object):
"""Read-only table resource object with a subset of table properties.
"""A read-only table resource from a list operation.

For performance reasons, the BigQuery API only includes some of the table
properties when listing tables. Notably,
:attr:`google.cloud.bigquery.table.Table.schema` and
:attr:`google.cloud.bigquery.table.Table.num_rows` are missing.

This comment was marked as spam.


For a full list of the properties that the BigQuery API returns, see the
`REST documentation for tables.list
<https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/list>`.

This comment was marked as spam.

This comment was marked as spam.


See
https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/list

Args:
resource (dict): A table resource object from a table list response.
resource (dict):
A table-like resource object from a table list response.
"""

def __init__(self, resource):
Expand Down