Title: Identify a BigQuery dataset · Issue #310 · googleapis/google-cloud-java · GitHub
Open Graph Title: Identify a BigQuery dataset · Issue #310 · googleapis/google-cloud-java
X Title: Identify a BigQuery dataset · Issue #310 · googleapis/google-cloud-java
Description: A BigQuery dataset has an id field of the form projectId:datasetId and a datasetReference field: "datasetReference": { "datasetId": string, "projectId": string } this suggests that a user should be able to init a DatasetId object as: Dat...
Open Graph Description: A BigQuery dataset has an id field of the form projectId:datasetId and a datasetReference field: "datasetReference": { "datasetId": string, "projectId": string } this suggests that a user should be...
X Description: A BigQuery dataset has an id field of the form projectId:datasetId and a datasetReference field: "datasetReference": { "datasetId": string, "projectId": string } this ...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/310
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Identify a BigQuery dataset","articleBody":"A [BigQuery dataset](https://cloud.google.com/bigquery/docs/reference/v2/datasets?hl=en) has an `id` field of the form `projectId:datasetId` and a `datasetReference` field:\n\n\u003e \"datasetReference\": {\n\u003e \"datasetId\": string,\n\u003e \"projectId\": string\n\u003e }\n\nthis suggests that a user should be able to init a `DatasetId` object as: `DatasetId.of(\"projectId\", \"datasetId\")`. \n\nHowever, a `ServiceOptions` object is already tied to a specific project (and hence project id) so this makes me think that the user should not be allowed to access datasets for projects other than the one of the `ServiceOptions` object he is using. And also we should avoid asking a user to provide the project id every time he wants to instantiate a dataset object. This leads to something like `DatasetId.of(\"projectId\")` and for every remote operation `projectId` is taken from `ServiceOptions`.\nBut I think this is undesirable as our API representation would make no distinction between datasets of different projects or cause weird situations like:\n\n``` java\nDatasetId remoteId = bigqueryService.get(\"someId\").id(); // includes projectId\nDatasetId localId = DatasetId.of(\"someId\"); // does not include projectId\nremoteId.equals(localId); // false\n```\n\nThoughts?\n\nA workaround I see is having a factory method in `bigqueryService` that takes a string `datasetId` and sets the `projectId` by fetching it from `ServiceOptions`.\n","author":{"url":"https://github.com/mziccard","@type":"Person","name":"mziccard"},"datePublished":"2015-10-29T19:30:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/310/google-cloud-java/issues/310"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6afd2635-4ec0-dfd8-af92-2e38ceed60ec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A28A:247EB:CFF8F0:118EBFE:6A4D5899 |
| html-safe-nonce | 09c500803493b242f1b8387fd3e0275d7fc135a4c7ad1beea833edfe2614b460 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjhBOjI0N0VCOkNGRjhGMDoxMThFQkZFOjZBNEQ1ODk5IiwidmlzaXRvcl9pZCI6IjIyMjMzODM2MzMyMzM1MzMwODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 24a28ad79f3e734988e90e2eb8c4a86cfc55cba0596157f4fe61a9a07c1d130b |
| hovercard-subject-tag | issue:114128549 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/310/issue_layout |
| twitter:image | https://opengraph.githubassets.com/759126cb930aa3c15911d4d9bc1291c453eeebf50a865ed9faf944901bc176b6/googleapis/google-cloud-java/issues/310 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/759126cb930aa3c15911d4d9bc1291c453eeebf50a865ed9faf944901bc176b6/googleapis/google-cloud-java/issues/310 |
| og:image:alt | A BigQuery dataset has an id field of the form projectId:datasetId and a datasetReference field: "datasetReference": { "datasetId": string, "projectId": string } this suggests that a user should be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mziccard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width