-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Labels
20% candidateapi: bigqueryIssues related to the googleapis/java-bigquery API.Issues related to the googleapis/java-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- Specify the API at the beginning of the title. For example, "BigQuery: ...").
General, Core, and Other are also allowed as types - OS type and version: OSX / Linux
- Java version: JDK 11
- bigquery version(s): 1.111.0
Steps to reproduce
- Initialize
BigQueryservice in projectA - Call
getDatasetusing aDatasetIdconsisting of another project (eg, projectB) and a valid dataset in that project - Call
getfor a table ID of a table that exists in that project. - The get returns null, when it should return a
Tableobject
Code example
final String projectA = "...";
final String projectB = "...";
final BigQuery instance = BigQueryOptions
.newBuilder()
.setProjectId(projectA)
.build()
.getService();
final String datasetName = "some_dataset";
final String tableName = "some_table";
final Dataset ds = instance.getDataset(DatasetId.of(projectB, some_dataset));
ds.get(tableName); // <--- this returns null, should notMetadata
Metadata
Assignees
Labels
20% candidateapi: bigqueryIssues related to the googleapis/java-bigquery API.Issues related to the googleapis/java-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.