Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destination Bigquery / Bigquery-denormalized: Only override dataset ID if stream namespace is null/empty #17054

Merged
merged 7 commits into from
Sep 22, 2022

Conversation

edgao
Copy link
Contributor

@edgao edgao commented Sep 22, 2022

As title. This is causing us to push data into tables in the wrong datasets when the default dataset ID differs from the stream namespace.

Tested manually by configuring bq / bq-denorm syncs, with edgao_default_dataset as the default dataset ID, and syncing two streams (edgao_test.table2 and public.table2). These are visible in the integration test project with the correct dataset - https://console.cloud.google.com/bigquery?project=prod-ab-cloud-proj&ws=!1m5!1m4!4m3!1sdataline-integration-testing!2spublic!3stable2 and search for table2

@github-actions github-actions bot added the area/connectors Connector related issues label Sep 22, 2022
@github-actions
Copy link
Contributor

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to run corresponding integration tests:

  • destination-bigquery-denormalized
  • destination-bigquery

@edgao

This comment was marked as outdated.

@edgao

This comment was marked as outdated.

@github-actions
Copy link
Contributor

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to run corresponding integration tests:

  • destination-bigquery
  • destination-bigquery-denormalized

@github-actions
Copy link
Contributor

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to run corresponding integration tests:

  • destination-bigquery
  • destination-bigquery-denormalized

@edgao
Copy link
Contributor Author

edgao commented Sep 22, 2022

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/3107482397

@edgao
Copy link
Contributor Author

edgao commented Sep 22, 2022

/test connector=connectors/destination-bigquery-denormalized

🕑 connectors/destination-bigquery-denormalized https://github.com/airbytehq/airbyte/actions/runs/3107482825

@edgao edgao changed the title stop overriding namespace? Destination Bigquery / Bigquery-denormalized: Only override dataset ID if stream namespace is null/empty Sep 22, 2022
@edgao edgao marked this pull request as ready for review September 22, 2022 17:40
Copy link
Contributor

@ChristopheDuong ChristopheDuong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good and in sync with

LOGGER.error("Namespace Format cannot be blank for Stream {}. Falling back to default namespace from destination settings",

@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Sep 22, 2022
@github-actions
Copy link
Contributor

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to run corresponding integration tests:

  • destination-bigquery
  • destination-bigquery-denormalized

@edgao
Copy link
Contributor Author

edgao commented Sep 22, 2022

just going to publish these, since that runs tests anyway

@edgao
Copy link
Contributor Author

edgao commented Sep 22, 2022

/publish connector=connectors/destination-bigquery,connectors/destination-bigquery-denormalized parallel=true

🕑 Publishing the following connectors:
connectors/destination-bigquery,connectors/destination-bigquery-denormalized
https://github.com/airbytehq/airbyte/actions/runs/3107616757


Connector Did it publish? Were definitions generated?
connectors/destination-bigquery-denormalized
connectors/destination-bigquery

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@edgao
Copy link
Contributor Author

edgao commented Sep 22, 2022

/publish connector=connectors/destination-bigquery-denormalized

🕑 Publishing the following connectors:
connectors/destination-bigquery-denormalized
https://github.com/airbytehq/airbyte/actions/runs/3108015251


Connector Did it publish? Were definitions generated?
connectors/destination-bigquery-denormalized

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@github-actions
Copy link
Contributor

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to run corresponding integration tests:

  • destination-bigquery-denormalized
  • destination-bigquery

@edgao edgao temporarily deployed to more-secrets September 22, 2022 18:59 Inactive
@edgao edgao merged commit 23c8efa into master Sep 22, 2022
@edgao edgao deleted the edgao/destination_bigquery_respect_namespace branch September 22, 2022 19:41
robbinhan pushed a commit to robbinhan/airbyte that referenced this pull request Sep 29, 2022
…D if stream namespace is null/empty (airbytehq#17054)

* stop overriding namespace?

* set namespace if needed

* also check for empty namespace

* version bump + changelog

* auto-bump connector version [ci skip]

* sanitize dataset id

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
…D if stream namespace is null/empty (airbytehq#17054)

* stop overriding namespace?

* set namespace if needed

* also check for empty namespace

* version bump + changelog

* auto-bump connector version [ci skip]

* sanitize dataset id

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/destination/bigquery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants