Title: Missing configuration for dryRun jobs causes NPE · Issue #525 · googleapis/google-cloud-java · GitHub
Open Graph Title: Missing configuration for dryRun jobs causes NPE · Issue #525 · googleapis/google-cloud-java
X Title: Missing configuration for dryRun jobs causes NPE · Issue #525 · googleapis/google-cloud-java
Description: A query job created with dryRun = true has no configuration field. The following is the response I get from Jobs: insert. { "kind": "bigquery#job", "etag": "\"Bop49sEVg6UBKwr7tLdL8AavHaw/LRPbO11E3VlTAE5UxM2F_Mfu01M\"", "jobReference": { ...
Open Graph Description: A query job created with dryRun = true has no configuration field. The following is the response I get from Jobs: insert. { "kind": "bigquery#job", "etag": "\"Bop49sEVg6UBKwr7tLdL8AavHaw/LRPbO11E3V...
X Description: A query job created with dryRun = true has no configuration field. The following is the response I get from Jobs: insert. { "kind": "bigquery#job", "etag": "\&quo...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/525
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing configuration for dryRun jobs causes NPE","articleBody":"A query job created with `dryRun = true` has no `configuration` field. The following is the response I get from [Jobs: insert](https://cloud.google.com/bigquery/docs/reference/v2/jobs/insert).\n\n``` json\n{\n \"kind\": \"bigquery#job\",\n \"etag\": \"\\\"Bop49sEVg6UBKwr7tLdL8AavHaw/LRPbO11E3VlTAE5UxM2F_Mfu01M\\\"\",\n \"jobReference\": {\n \"projectId\": \"gcloud-devel\"\n },\n \"status\": {\n \"state\": \"DONE\"\n },\n \"statistics\": {\n \"creationTime\": \"1452067884640\",\n \"totalBytesProcessed\": \"26\",\n \"query\": {\n \"totalBytesProcessed\": \"26\",\n \"totalBytesBilled\": \"0\",\n \"cacheHit\": false\n }\n }\n}\n```\n\nWhile if I create the same job with `dryRun = false` the configuration is present instead:\n\n``` json\n{\n \"kind\": \"bigquery#job\",\n \"etag\": \"\\\"Bop49sEVg6UBKwr7tLdL8AavHaw/OI0lGTx2GlKc0VoAAYS-fIXHWok\\\"\",\n \"id\": \"gcloud-devel:job_nixqXTMu-mS9U26Ixnxr9KZxCyc\",\n \"selfLink\": \"https://www.googleapis.com/bigquery/v2/projects/gcloud-devel/jobs/job_nixqXTMu-mS9U26Ixnxr9KZxCyc\",\n \"jobReference\": {\n \"projectId\": \"gcloud-devel\",\n \"jobId\": \"job_nixqXTMu-mS9U26Ixnxr9KZxCyc\"\n },\n \"configuration\": {\n \"query\": {\n \"query\": \"select StringField from gcloud_test_dataset_temp_6c127c49_9574_4e17_ad2b_8e85071997aa.testing_table\",\n \"destinationTable\": {\n \"projectId\": \"gcloud-devel\",\n \"datasetId\": \"_6bb2fc157573f6bd0fed98f3b039c1e71f26d7d1\",\n \"tableId\": \"anon5f489e91b602aaed3dc62a46d51ba3c070e5d03f\"\n },\n \"createDisposition\": \"CREATE_IF_NEEDED\",\n \"writeDisposition\": \"WRITE_TRUNCATE\"\n },\n \"dryRun\": false\n },\n \"status\": {\n \"state\": \"RUNNING\"\n },\n \"statistics\": {\n \"creationTime\": \"1452070358348\",\n \"startTime\": \"1452070358585\"\n },\n \"user_email\": \"...\"\n}\n```\n\nWhile this does not affect the functionality itself I was wondering whether configuration should be returned also for dry-run jobs for consistency? /cc @jcondit @jtigani\n\nFor what concerns `gcloud-java` the absence of a configuration causes a NPE to be thrown at [JobInfo:297](https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/JobInfo.java#L297).\n","author":{"url":"https://github.com/mziccard","@type":"Person","name":"mziccard"},"datePublished":"2016-01-06T09:24:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/525/google-cloud-java/issues/525"}
| 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:3f859728-919f-bb17-e9a3-1c1e22dbd6f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC52:15BB0E:10B11ED:16B0193:6A4D67D7 |
| html-safe-nonce | 53509e5c35bb9fb34e7eab111673cfafea4c1cbc98bdf7f0bdf574518ded5fc7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzUyOjE1QkIwRToxMEIxMUVEOjE2QjAxOTM6NkE0RDY3RDciLCJ2aXNpdG9yX2lkIjoiMTM2NjA3Njk0OTQyNDU5Njk1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0a441251edbdaaf580e4f9f17c1114a9ea951c00b5a164c6684d51bb95870872 |
| hovercard-subject-tag | issue:125140661 |
| 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/525/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f823360542653afdc83f219e3597f06e95540ae8384d3ff68bd959d7f1c7f725/googleapis/google-cloud-java/issues/525 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f823360542653afdc83f219e3597f06e95540ae8384d3ff68bd959d7f1c7f725/googleapis/google-cloud-java/issues/525 |
| og:image:alt | A query job created with dryRun = true has no configuration field. The following is the response I get from Jobs: insert. { "kind": "bigquery#job", "etag": "\"Bop49sEVg6UBKwr7tLdL8AavHaw/LRPbO11E3V... |
| 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 | 7db3950e3f59095e20a9789440c3dd554efc62d434882ead06ae05b5815605b9 |
| 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 | cd8f6a71db61d6012a0cbb134be844fdbe9b8a45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width