Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

NPE when calling com.google.cloud.bigquery.BigQuery.getTable(...) #1131

Copy link
Copy link

Description

@mtagle
Issue body actions

Relevant part of the exception:

    at com.google.cloud.bigquery.StandardTableDefinition$StreamingBuffer.fromPb(StandardTableDefinition.java:113)
    at com.google.cloud.bigquery.StandardTableDefinition$Builder.<init>(StandardTableDefinition.java:147)
    at com.google.cloud.bigquery.StandardTableDefinition$Builder.<init>(StandardTableDefinition.java:119)
    at com.google.cloud.bigquery.StandardTableDefinition.fromPb(StandardTableDefinition.java:283)
    at com.google.cloud.bigquery.TableDefinition.fromPb(TableDefinition.java:172)
    at com.google.cloud.bigquery.TableInfo$BuilderImpl.<init>(TableInfo.java:157)
    at com.google.cloud.bigquery.Table.fromPb(Table.java:348)
    at com.google.cloud.bigquery.BigQueryImpl.getTable(BigQueryImpl.java:353)

We suspect this is happening because the table we are trying to get seems to have a streaming buffer that is empty. Here is what some of the table info looks like:

...
 "numBytes": "85168232",
 "numLongTermBytes": "0",
 "numRows": "144534",
 "creationTime": "1468884348851",
 "lastModifiedTime": "1469135551174",
 "type": "TABLE",
 "location": "US",
 "streamingBuffer": {
  "estimatedRows": "0",
  "estimatedBytes": "0"
 }

From all the documentation it looks like this maybe isn't supposed to happen at all. But, it seems to be happening here, and resulting in an NPE.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.