8000 BigQuery: Expose num of bytes, num of rows in TableInfo/Table · Issue #4259 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

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

@chouclee

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

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

    0