Skip to content

Unexpected behavior. "ratatool BigDiffy ..." command ignores the "--project" argument. #561

Description

@nvmalovichko

I have found an unexpected behavior while setting a specific --project argument. If I set a project using a gcloud command gcloud config set project example-project, the command ratatool bigDiffy ... --project XYZ surprisingly ignores the input --project argument and tries to use a example-project project.

It can be fixed by setting the project using gcloud: gcloud config set project XYZ

The error messages:

[main] INFO org.apache.beam.sdk.extensions.gcp.options.GcpOptions$DefaultProjectFactory - Inferred default GCP project 'example-project' from gcloud. If this is the incorrect project, please cancel this Pipeline and specify the command-line argument --project.
Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
GET https://bigquery.googleapis.com/bigquery/v2/projects/example-project/...
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "Not found: Dataset example-project: ...",
    "reason" : "notFound"
  } ],
  "message" : "Not found: Dataset example-project: ...",
  "status" : "NOT_FOUND"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions