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 — Bug: BigQuery: Need a way to set JobId... · Issue #1257 · googleapis/google-cloud-java

Bug: BigQuery: Need a way to set JobId... #1257

New issue
Copy link
New issue
Copy link
Closed
Closed
Bug: BigQuery: Need a way to set JobId...#1257
Copy link
Assignees
mziccard
Labels
api: bigqueryIssues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@lesv
lesv
opened on Sep 16, 2016
Issue body actions

There doesn't appear to be a way to set the JobId, making cancel(String JobiD) challenging.

Looking at Python L35, The query Job takes a JobId. There doesn't appear to be a similar method for Java. ;(

    client = bigquery.Client()
    query_job = client.run_async_query(str(uuid.uuid4()), query)
    query_job.use_legacy_sql = False
    query_job.begin()

Activity

  1. lesv
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    api: bigqueryIssues related to the BigQuery API.
    on Sep 16, 2016
  2. lesv
    assigned
    mziccard
    on Sep 16, 2016
  3. lesv commented on Sep 16, 2016

    @lesv
    lesv
    on Sep 16, 2016
    ContributorAuthor
    More actions

    @tswast FYI

  4. mziccard commented on Sep 16, 2016

    @mziccard
    mziccard
    on Sep 16, 2016
    Contributor
    More actions

    There doesn't appear to be a way to set the JobId

    Where? and why is cancel challenging?

  5. lesv commented on Sep 17, 2016

    @lesv
    lesv
    on Sep 17, 2016
    ContributorAuthor
    More actions

    Tim's explanation of the string variant of cancel(String "id") is that it is a name provided by the user on create, in the case of the Python samples a UUID. The .jobId() is the other kind. If you can't ever set / create with a name/id, then what's the point of the string method?

    I presume, I could perhaps, use .jobId().toString(), in the snippets, but that just seems weird.

    It's also terribly possible that I'm not understanding something, but Tim couldn't find it either, and wrote another issue for it.

  6. mziccard commented on Sep 17, 2016

    @mziccard
    mziccard
    on Sep 17, 2016
    Contributor
    More actions

    But you can create a job passing your own name:

    String jobName = "my_job";
    JobInfo jobInfo = JobInfo.of(JobId.of(jobName), QueryJobConfiguration.of("SELECT * FROM table"));
  7. mziccard
    closed this as completedon Sep 26, 2016
  8. theacodes
    unassigned
    mziccard
    on Sep 28, 2018
  9. JustinBeckwith
    assigned
    mziccard
    on Feb 1, 2021
  10. github-actions
    added a commit that references this issue on Jul 14, 2022

    deps: update dependency com.google.api.grpc:proto-google-cloud-orgpol…

    c61c0e8
  11. github-actions
    added a commit that references this issue on Aug 9, 2022

    chore(main): release 3.5.0 (#1305)

    974924f
  12. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore(bazel): update protobuf to v3.21.12 (#1257)

    a4db44b
  13. chingor13
    added 2 commits that reference this issue on Jan 6, 2026

    deps: update dependency com.google.cloud:google-cloud-logging to v3.1…

    28c23f6

    chore(main): release 0.131.0-alpha (#1249)

    a9d3935
  14. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    e397dab
  15. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(deps): update dependency org.apache.maven.plugins:maven-gpg-plu…

    a6925ca
  16. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore(bazel): update protobuf to v3.21.12 (googleapis#1257)

    624fce2
  17. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(deps): update dependency org.apache.maven.plugins:maven-gpg-plu…

    5beca9a
  18. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(main): release 2.11.1-SNAPSHOT (googleapis#1257)

    f1b2d0d
  19. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    bfbff94

    chore(main): release 0.127.4 (#1255)

    f7fe836
  20. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    3aaf8be

    chore(main): release 0.127.4 (#1255)

    00ca968
  21. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

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

    20e6fa3

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

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

Metadata

Metadata

Assignees

  • @mziccard
    mziccard

Labels

api: bigqueryIssues related to the BigQuery API.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

    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.