Skip to content

feat!: Upgrade to SDK V3 make Column.Type an arrow.DataType#854

Merged
hermanschaaf merged 4 commits intomainfrom
feat/sdkv3
May 9, 2023
Merged

feat!: Upgrade to SDK V3 make Column.Type an arrow.DataType#854
hermanschaaf merged 4 commits intomainfrom
feat/sdkv3

Conversation

@yevgenypats
Copy link
Contributor

@yevgenypats yevgenypats commented May 9, 2023

This upgrades the SDK to v3 so schema.Column.Type now holds arrow.DataType and removes all CQTypes.

This also removes `source plugins because this will come in a follow-up PR (This will ensure this sdk wont be merged into sources).

Instead of #832

@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Patch coverage: 16.66% and project coverage change: +0.62 🎉

Comparison is base (ea90e4e) 47.46% compared to head (42d4164) 48.09%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #854      +/-   ##
==========================================
+ Coverage   47.46%   48.09%   +0.62%     
==========================================
  Files          59       29      -30     
  Lines        6611     2439    -4172     
==========================================
- Hits         3138     1173    -1965     
+ Misses       3065     1164    -1901     
+ Partials      408      102     -306     
Impacted Files Coverage Δ
schema/arrow.go 0.00% <0.00%> (-13.10%) ⬇️
schema/column.go 15.18% <0.00%> (-32.96%) ⬇️
schema/convert.go 0.00% <ø> (-35.30%) ⬇️
schema/errors.go 0.00% <ø> (ø)
schema/meta.go 7.14% <0.00%> (ø)
schema/resource.go 0.00% <0.00%> (-39.29%) ⬇️
schema/table.go 33.11% <0.00%> (-9.86%) ⬇️
schema/testdata.go 0.00% <0.00%> (ø)
serve/destination.go 54.61% <ø> (ø)
transformers/struct.go 73.70% <70.58%> (+1.80%) ⬆️
... and 1 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link

github-actions bot commented May 9, 2023

⏱️ Benchmark results

Comparing with ea90e4e

  • Glob-2 ns/op: 219.6 ⬆️ 3.92% increase vs. ea90e4e

@github-actions github-actions bot added breaking and removed feat labels May 9, 2023
@hermanschaaf hermanschaaf merged commit 1265554 into main May 9, 2023
@hermanschaaf hermanschaaf deleted the feat/sdkv3 branch May 9, 2023 15:02
kodiakhq bot pushed a commit that referenced this pull request May 11, 2023
🤖 I have created a release *beep* *boop*
---


## [3.0.0](v2.7.0...v3.0.0) (2023-05-09)


### ⚠ BREAKING CHANGES

* Upgrade to SDK V3 make Column.Type an arrow.DataType ([#854](#854))

### Features

* Upgrade to SDK V3 make Column.Type an arrow.DataType ([#854](#854)) ([1265554](1265554))

---
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 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants