Skip to content

Why there are two libraries: com.google.api.services.bigquery and com.google.cloud.bigquery? #1514

Description

@bowen0603

I am running into this problem, and very confused. It seems there are two different libraries I can use.

One is com.google.cloud.bigquery where I see it from this source: https://cloud.google.com/bigquery/docs/reference/libraries#client-libraries-usage-java

The other one is com.google.api.services.bigquery where I see it from this source: https://github.com/googlearchive/bigquery-samples-java/blob/master/src/main/java/com/google/cloud/bigquery/samples/BigQueryJavaGettingStarted.java

The problem I am trying to solve is to set a destination table for the query. Most online QAs point me to use the second source. I followed the first source to set it up, and I am able to connect to the Bigquery now. The only problem is I cannot find a way to set the destination table.

I am super confused about these two libraries, and hope to have some explanations. Thanks!

Activity

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

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions