Skip to content

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

Merged
erezrokah merged 2 commits intomainfrom
fix/make_pk_component_validation_warning
Jan 7, 2025
Merged

fix: Log warning instead of erroring out of PK component validation failure#2039
erezrokah merged 2 commits intomainfrom
fix/make_pk_component_validation_warning

Conversation

@erezrokah
Copy link
Copy Markdown
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 review from a team and 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
@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