-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Separate file parts #154
Conversation
) | ||
|
||
type Client struct { | ||
spec *FileSpec | ||
|
||
types.FileType |
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.
This is used for all interactions with the underlying writer. For read tests, separate Clients are used which are still below.
csv/write.go
Outdated
|
||
var _ types.Handle = (*Handle)(nil) | ||
|
||
func (cl *Client) WriteHeader(w io.Writer, s *arrow.Schema) (types.Handle, error) { |
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.
In this particular format/package, the csv header is written with the first call to .Write
(and not in this fn) so the name might be misleading. Maybe rename the interface method to 'Begin' etc?
5b45f8e
to
8260f76
Compare
efd328f
to
c274bcb
Compare
7a1d607
to
5b43e44
Compare
🤖 I have created a release *beep* *boop* --- ## [3.2.0](v3.1.6...v3.2.0) (2023-06-14) ### Features * Separate file parts ([#154](#154)) ([3798fab](3798fab)) ### Bug Fixes * **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 4d76231 ([#198](#198)) ([aafa961](aafa961)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v3 to v3.10.5 ([#201](#201)) ([0c8519c](0c8519c)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v3 to v3.10.6 ([#202](#202)) ([a94a865](a94a865)) * Use buffered writing mode in parquet ([#203](#203)) ([5ad67f3](5ad67f3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This is 100% compatible with the 'old ways' because it still implements
WriteTableBatchFile
with unchanged signature.Read
is not refactored due to the interface differences between parquet and the other types.