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

fix: Log warning instead of erroring out of PK component validation failure #2039

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

erezrokah
Copy link
Member

Summary

Follow up to #2037.
Gave it another thought and instead of erroring out might be better to log a warning (for starts) so we can fix the issues instead of breaking tables in the AWS plugin.

Even when a PK component has a null value CQ ID will still be calculated with the null value, so the data can be inserted (opposed to a missing PK where in the case of DB destinations the insertion will fail)


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@erezrokah erezrokah requested a review from a team as a code owner December 24, 2024 10:04
@erezrokah erezrokah requested a review from dcelasun December 24, 2024 10:04
@github-actions github-actions bot added the fix label Dec 24, 2024
@erezrokah erezrokah requested review from bbernays and disq December 24, 2024 10:04
@erezrokah erezrokah merged commit c98b5c5 into main Jan 7, 2025
9 checks passed
@erezrokah erezrokah deleted the fix/make_pk_component_validation_warning branch January 7, 2025 10:38
kodiakhq bot pushed a commit that referenced this pull request Jan 7, 2025
🤖 I have created a release *beep* *boop*
---


## [4.72.6](v4.72.5...v4.72.6) (2025-01-07)


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.26.4 ([#2044](#2044)) ([c7bd2d2](c7bd2d2))
* **deps:** Update module github.com/goccy/go-json to v0.10.4 ([#2040](#2040)) ([f6e0201](f6e0201))
* **deps:** Update module google.golang.org/protobuf to v1.36.1 ([#2043](#2043)) ([13437c2](13437c2))
* **deps:** Update opentelemetry-go monorepo ([#2042](#2042)) ([e6123c3](e6123c3))
* Log warning instead of erroring out of PK component validation failure ([#2039](#2039)) ([c98b5c5](c98b5c5))
* Validate missing PK components ([#2037](#2037)) ([d2cff6b](d2cff6b))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants