Skip to content

Conversation

marianogappa
Copy link
Contributor

@marianogappa marianogappa commented Aug 14, 2024

I implemented a PoC destination plugin in Python to prove it already supports destination plugins.

It does support them, but I encountered a small bug when processing fields with no metadata. This line errors:

primary_key = metadata.get(arrow.METADATA_PRIMARY_KEY) == arrow.METADATA_TRUE

By simply adding an or {}, that error is gone.

I was able to implement a file destination in Python and sync XKCD into it:
Screenshot 2024-08-14 at 16 33 18

$ cli sync cloudquery-config                            ⏱ 15:58:33
Loading spec(s) from cloudquery-config
Starting sync for: xkcd (cloudquery/xkcd@v1.0.6) -> [file-python (grpc@localhost:7777)]
Sync completed successfully. Resources: 2970, Errors: 0, Warnings: 0, Time: 11s

@marianogappa marianogappa requested review from a team and erezrokah and removed request for a team August 14, 2024 15:34
Copy link
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

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

🚀

@marianogappa marianogappa merged commit aac99a9 into main Aug 14, 2024
@marianogappa marianogappa deleted the mariano/enable-destination-plugins branch August 14, 2024 16:12
kodiakhq bot pushed a commit that referenced this pull request Aug 14, 2024
🤖 I have created a release *beep* *boop*
---


## [0.1.33](v0.1.32...v0.1.33) (2024-08-14)


### Bug Fixes

* dont error when field has no metadata. ([#221](#221)) ([aac99a9](aac99a9))

---
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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants