GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Missing configuration for dryRun jobs causes NPE · Issue #525 · googleapis/google-cloud-java

Missing configuration for dryRun jobs causes NPE #525

New issue
Copy link
New issue
Copy link
Closed
Closed
Missing configuration for dryRun jobs causes NPE#525
Copy link
Assignees
garrettjonesgoogle
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.
Milestone
BigQuery GA

Description

@mziccard
mziccard
opened on Jan 6, 2016
Issue body actions

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": {
  "projectId": "gcloud-devel"
 },
 "status": {
  "state": "DONE"
 },
 "statistics": {
  "creationTime": "1452067884640",
  "totalBytesProcessed": "26",
  "query": {
   "totalBytesProcessed": "26",
   "totalBytesBilled": "0",
   "cacheHit": false
  }
 }
}

While if I create the same job with dryRun = false the configuration is present instead:

{
 "kind": "bigquery#job",
 "etag": "\"Bop49sEVg6UBKwr7tLdL8AavHaw/OI0lGTx2GlKc0VoAAYS-fIXHWok\"",
 "id": "gcloud-devel:job_nixqXTMu-mS9U26Ixnxr9KZxCyc",
 "selfLink": "https://www.googleapis.com/bigquery/v2/projects/gcloud-devel/jobs/job_nixqXTMu-mS9U26Ixnxr9KZxCyc",
 "jobReference": {
  "projectId": "gcloud-devel",
  "jobId": "job_nixqXTMu-mS9U26Ixnxr9KZxCyc"
 },
 "configuration": {
  "query": {
   "query": "select StringField from gcloud_test_dataset_temp_6c127c49_9574_4e17_ad2b_8e85071997aa.testing_table",
   "destinationTable": {
    "projectId": "gcloud-devel",
    "datasetId": "_6bb2fc157573f6bd0fed98f3b039c1e71f26d7d1",
    "tableId": "anon5f489e91b602aaed3dc62a46d51ba3c070e5d03f"
   },
   "createDisposition": "CREATE_IF_NEEDED",
   "writeDisposition": "WRITE_TRUNCATE"
  },
  "dryRun": false
 },
 "status": {
  "state": "RUNNING"
 },
 "statistics": {
  "creationTime": "1452070358348",
  "startTime": "1452070358585"
 },
 "user_email": "..."
}

While 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

For what concerns gcloud-java the absence of a configuration causes a NPE to be thrown at JobInfo:297.

Activity

Next
  1. mziccard
    added
    api: bigqueryIssues related to the BigQuery API.
    on Jan 6, 2016
  2. jcondit commented on Jan 6, 2016

    @jcondit
    jcondit
    on Jan 6, 2016
    More actions

    Yeah, looks like a bug on our end. Thanks for the report!

  3. aozarov
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Jan 6, 2016
  4. aozarov
    assigned
    mziccard
    on Jan 6, 2016
  5. aozarov
    added this to the This milestone has been deleted milestone on Jan 6, 2016
  6. polleyg commented on Jan 12, 2017

    @polleyg
    polleyg
    on Jan 12, 2017
    More actions

    Is there any ETA on a roll-out for this fix? I've just hit this bug.

    http://stackoverflow.com/questions/41604995/bigquery-client-library-throwing-npe-when-setting-dryrun-to-true

  7. jcondit commented on Jan 12, 2017

    @jcondit
    jcondit
    on Jan 12, 2017
    More actions

    I've pinged our internal bug to see if we can get the API behavior straightened out.

    In the meantime, perhaps we can fix the NPE in the client library independently? @tswast

  8. jcondit commented on Jan 18, 2017

    @jcondit
    jcondit
    on Jan 18, 2017
    More actions

    We've submitted a fix for this issue on the backend. It'll take a week or two to roll out.

  9. danoscarmike
    added
    bug/security
    on Feb 7, 2017
  10. tswast
    added
    blocking GA
    on Feb 10, 2017
  11. tswast commented on Feb 10, 2017

    @tswast
    tswast
    on Feb 10, 2017
    Contributor
    More actions

    Marking as blocking GA, just to make sure we double check that this is working and close this out. Sorry I didn't have time to make a quick fix.

  12. danoscarmike
    added
    release-blocking
    Status: Release Blocking
    and removed
    bug/security
    release-blocking
    on Feb 20, 2017
  13. 22 remaining items

  14. suztomo
    added a commit that references this issue on Feb 1, 2023

    chore(main): release 1.6.13-SNAPSHOT (#525)

    9910c1a
  15. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore(deps): update dependency com.google.cloud:google-cloud-logging …

    2853f13
  16. chingor13
    added a commit that references this issue on Jan 22, 2026

    build(java): update renovate config to mark conformance tests as a te…

    75c4ed8
  17. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore: release 0.23.0 (#525)

    c76766e
  18. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-logging …

    b8852b3
  19. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore: release 0.23.0 (#525)

    83585d5
  20. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    deps: update dependency com.google.cloud:google-cloud-spanner-bom to …

    b64fd58

    chore: release 2.2.6 (googleapis#527)

    024f118
  21. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v1.1…

    06e9db2

    chore: release 0.122.13 (#529)

    ab269f1
  22. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v1.1…

    f33b326

    chore: release 0.122.13 (#529)

    451fc1f
  23. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore: regenerate README (#525)

    8680602

    chore: regenerate README (#525)

    7e0f599
  24. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore: release 1.17.4-SNAPSHOT (googleapis#525)

    63d3255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

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

    • BigQuery GA

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.