Skip to content

[BigQuery] TableId.setProjectId ignored if non-null value exists #3283

Closed
@MMMarcy

Description

@MMMarcy

As per the title, calling setProjectId to an existing tableId instance is ignored if the existing projectId is not null.

Suggested changing this to:

  TableId setProjectId(String projectId) {
    Preconditions.checkArgument(!Strings.isNullOrEmpty(projectId), "ErrorMSG");
    return TableId.of(projectId, getDataset(), getTable());
  }

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions