Skip to content

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

Closed

Description

@chouclee

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

Activity

  1. changed the title [-]BigQuery: Expose table bytes, row numbers in TableInfo[/-] [+]BigQuery: Expose num of bytes, num of rows in TableInfo/Table[/+] on Dec 26, 2018
  2. chouclee commented on Dec 27, 2018

    @chouclee
    Author

    Currently all those info are exposed through StandardTableDefinition.

  3. added
    api: bigqueryIssues related to the BigQuery API.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Dec 27, 2018
  4. self-assigned this
    on Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions