Skip to content

feat(cli): Support V2 sources and V1 destinations#10785

Merged
kodiakhq[bot] merged 6 commits intomainfrom
cli/pbsourcev2
May 15, 2023
Merged

feat(cli): Support V2 sources and V1 destinations#10785
kodiakhq[bot] merged 6 commits intomainfrom
cli/pbsourcev2

Conversation

@yevgenypats
Copy link
Copy Markdown
Contributor

@yevgenypats yevgenypats commented May 14, 2023

Related but not blocked as SDK and proto-pb-go are now decoupled cloudquery/plugin-sdk#864 .

This PR should be merged and released first

@yevgenypats yevgenypats requested a review from disq May 14, 2023 17:09
@cq-bot cq-bot added the cli label May 14, 2023
@yevgenypats
Copy link
Copy Markdown
Contributor Author

I've no idea what's up with the lints. will try to figure out tomorrow.

@yevgenypats yevgenypats requested a review from hermanschaaf May 15, 2023 09:51
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf left a comment

Choose a reason for hiding this comment

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

Some suggestions around the error messages, but the changes here LGTM

yevgenypats and others added 2 commits May 15, 2023 14:37
Co-authored-by: Kemal <223029+disq@users.noreply.github.com>
Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
@yevgenypats yevgenypats added the automerge Automatically merge once required checks pass label May 15, 2023
@kodiakhq kodiakhq bot merged commit e01db3b into main May 15, 2023
@kodiakhq kodiakhq bot deleted the cli/pbsourcev2 branch May 15, 2023 11:43
kodiakhq bot pushed a commit that referenced this pull request May 15, 2023
🤖 I have created a release *beep* *boop*
---


## [3.3.0](cli-v3.2.1...cli-v3.3.0) (2023-05-15)


### Features

* **cli:** Support V2 sources and V1 destinations ([#10785](#10785)) ([e01db3b](e01db3b))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot pushed a commit to cloudquery/plugin-sdk that referenced this pull request May 15, 2023
Few notes:

- Most of the code here was removed in #854 to prevent accidental use before it was ready
- Sources moved to use the new `schema.Table` which means use of `arrow.DataType` instead of our old `ValueType`
- Protocol in sources and destinations are upgraded to use native arrow format (sources v2 and dest v1) - https://github.com/cloudquery/plugin-pb-go
- Introduces a new `scalar` package which is mostly used by our "managed" sources and basically our old cqtypes just now using arrow types (which also support nesting). This will hopefully go upstream one day but I don't think we should block on that as the upstream package is not a fit right now and will take time for such refactor to make it upstream. 

Follow-up PRs with example sources and dest will follow soon.

IMPORTANT: all destinations should be released first as we decided new sources will work only with new destination to avoid un-necessary backward compatibility maintenance.  

Example PRs:
- PostgreSQL: cloudquery/cloudquery#10783
- GCP: cloudquery/cloudquery#10784
- CLI: cloudquery/cloudquery#10785
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants