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: Expose num of bytes, num of rows in TableInfo/Table #4259

Closed
chouclee opened this issue Dec 26, 2018 · 1 comment
Closed

BigQuery: Expose num of bytes, num of rows in TableInfo/Table #4259

chouclee opened this issue Dec 26, 2018 · 1 comment
Assignees
Labels
api: bigquery Issues related to the BigQuery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@chouclee
Copy link

Feature request

How can we get the latest number of rows by reloading the table?

   // https://github.com/googleapis/google-cloud-java/blob/master/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java#L177
   TableField field1 = TableField.LAST_MODIFIED_TIME;
   TableField field2 = TableField.NUM_ROWS;
   Table latestTable = table.reload(TableOption.fields(field1, field2));

Table/TableInfo hasn't exposed method to get numRows and numBytes
Python library has exposed those fields in
https://github.com/googleapis/google-cloud-python/blob/master/bigquery/google/cloud/bigquery/table.py#L500

@chouclee chouclee changed the title BigQuery: Expose table bytes, row numbers in TableInfo BigQuery: Expose num of bytes, num of rows in TableInfo/Table Dec 26, 2018
@chouclee
Copy link
Author

Currently all those info are exposed through StandardTableDefinition.

@pmakani pmakani added api: bigquery Issues related to the BigQuery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Dec 27, 2018
@pmakani pmakani self-assigned this Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants