-
Notifications
You must be signed in to change notification settings - Fork 547
fix: Update to SDK v2.3.7, remove release calls #10209
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: Update to SDK v2.3.7, remove release calls #10209
Conversation
| } | ||
|
|
||
| func reverseTransform(table *arrow.Schema, values []any) (arrow.Record, error) { | ||
| recordBuilder := array.NewRecordBuilder(memory.DefaultAllocator, table) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default allocator is the Go one, so I don't think we need a release here
|
|
||
| func reverseTransform(table *arrow.Schema, values []any) (arrow.Record, error) { | ||
| recordBuilder := array.NewRecordBuilder(memory.DefaultAllocator, table) | ||
| defer recordBuilder.Release() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here it's fine just because the builder is only used in this function scope. we can later try and test if it has any effect on memory vs not using it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default allocator is the Go one so I thought this is a no op. I can keep it if needed but removed to avoid confusion for someone who's later reading the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately Release is not a no-op in the Go allocator. But I think it's fine to remove it here and let the garbage collector clean it up for the sake of consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good either way. I worried that using Release might leak into other places in the code if we use it here.
But I don't feel strongly about it.
I pushed a commit to add it back e5e1f6d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted the commit until we reach a conclusion
e5e1f6d to
64589fe
Compare
4e608a0 to
17c5a6c
Compare
🤖 I have created a release *beep* *boop* --- ## [2.0.0](plugins-destination-mysql-v1.0.5...plugins-destination-mysql-v2.0.0) (2023-04-20) ### ⚠ BREAKING CHANGES * This release introduces an internal change to our type system to use [Apache Arrow](https://arrow.apache.org/). This should not have any visible breaking changes, however due to the size of the change we are introducing it under a major version bump to communicate that it might have some bugs that we weren't able to catch during our internal tests. If you encounter an issue during the upgrade, please submit a [bug report](https://github.com/cloudquery/cloudquery/issues/new/choose). * Timestamp fields type changed from `datetime` to `datetime(6)` to avoid losing fractional data * Mac Address and Inet column type changed from `nvarchar(255)` to `text` as we cannot assume `nvarchar(255)` columns represent valid Mac Address or Inet * Float fields type changed from `float` to `double` for increased precision ### Features * Float fields type changed from `float` to `double` for increased precision ([c5d3508](c5d3508)) * Mac Address and Inet column type changed from `nvarchar(255)` to `text` as we cannot assume `nvarchar(255)` columns represent valid Mac Address or Inet ([c5d3508](c5d3508)) * Timestamp fields type changed from `datetime` to `datetime(6)` to avoid losing fractional data ([c5d3508](c5d3508)) * Update to plugin SDK v2 ([c5d3508](c5d3508)) * Update to use [Apache Arrow](https://arrow.apache.org/) type system ([c5d3508](c5d3508)) ### Bug Fixes * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.45.0 ([#9863](#9863)) ([2799d62](2799d62)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.6 ([#10208](#10208)) ([91c80a7](91c80a7)) * Update to SDK v2.3.7, remove release calls ([#10209](#10209)) ([5442837](5442837)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
Follow up to cloudquery/plugin-sdk#810