Skip to content

Conversation

@bbernays
Copy link
Collaborator

@bbernays bbernays commented Jan 18, 2023

Summary

Users can now use the following options to change the destination behavior:

  1. skip_header: default is false which will mean the the first row will be the column headers
  2. delimiter: default value is , but user can specify any single character

closes #6795
closes #6797
closes #6796

@cq-bot cq-bot added the s3 label Jan 18, 2023
@bbernays bbernays marked this pull request as ready for review January 18, 2023 20:51
@bbernays bbernays requested review from a team and hermanschaaf and removed request for a team January 18, 2023 20:51
Copy link
Contributor

@candiduslynx candiduslynx left a comment

Choose a reason for hiding this comment

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

I wonder if we could also add CLRF support to the csv plugin, as encoding/csv.Writer supports it, too. (Bound to another PR).

Copy link
Contributor

@yevgenypats yevgenypats left a comment

Choose a reason for hiding this comment

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

I think we should somehow export this default spec to filetypes library as it will be used in all "file" plugins

Co-authored-by: Erez Rokah <[email protected]>
Co-authored-by: Herman Schaaf <[email protected]>
@bbernays bbernays changed the title feat(s3): Expose New Options !feat(s3): Expose New Options Jan 19, 2023
@bbernays bbernays changed the title !feat(s3): Expose New Options feat(s3)!: Expose New Options Jan 19, 2023
@bbernays bbernays changed the title feat: Use New Filetypes Package feat!: Use New Filetypes Package Jan 27, 2023
@bbernays bbernays changed the title feat!: Use New Filetypes Package feat!: Add ability to override CSV File options (headers and delimiters) Jan 27, 2023
@disq
Copy link
Member

disq commented Jan 27, 2023

Docs wise (e.g. checking here) I don't think format_spec is clear, an example would've been nice.

@bbernays
Copy link
Collaborator Author

Docs wise (e.g. checking here) I don't think format_spec is clear, an example would've been nice.

Can we handle this in a follow up PR?

@bbernays bbernays added the automerge Automatically merge once required checks pass label Jan 27, 2023
@kodiakhq kodiakhq bot merged commit d03819c into main Jan 27, 2023
@kodiakhq kodiakhq bot deleted the update-s3-dest branch January 27, 2023 15:25
kodiakhq bot pushed a commit that referenced this pull request Jan 31, 2023
🤖 I have created a release *beep* *boop*
---


## [2.0.0](plugins-destination-gcs-v1.0.6...plugins-destination-gcs-v2.0.0) (2023-01-31)


### ⚠ BREAKING CHANGES

* Add ability to override CSV File options (headers and delimiters) ([#6958](#6958))

### Features

* Add ability to override CSV File options (headers and delimiters) ([#6958](#6958)) ([d03819c](d03819c))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.29.0 ([#7121](#7121)) ([b7441c9](b7441c9))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.30.0 ([#7222](#7222)) ([73ca21c](73ca21c))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.31.0 ([#7228](#7228)) ([36e8549](36e8549))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.32.0 ([#7334](#7334)) ([b684122](b684122))

---
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 Jan 31, 2023
🤖 I have created a release *beep* *boop*
---


## [2.0.0](plugins-destination-s3-v1.1.1...plugins-destination-s3-v2.0.0) (2023-01-31)


### ⚠ BREAKING CHANGES

* Add ability to override CSV File options (headers and delimiters) ([#6958](#6958))
* **s3:** Clean inputs ([#7116](#7116))

### Features

* Add ability to override CSV File options (headers and delimiters) ([#6958](#6958)) ([d03819c](d03819c))


### Bug Fixes

* **deps:** Update module github.com/aws/aws-sdk-go-v2/feature/s3/manager to v1.11.49 ([#7309](#7309)) ([16da39d](16da39d))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.29.0 ([#7121](#7121)) ([b7441c9](b7441c9))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.30.0 ([#7222](#7222)) ([73ca21c](73ca21c))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.31.0 ([#7228](#7228)) ([36e8549](36e8549))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.32.0 ([#7334](#7334)) ([b684122](b684122))
* **s3:** Clean inputs ([#7116](#7116)) ([0132fb4](0132fb4))

---
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 Jan 31, 2023
🤖 I have created a release *beep* *boop*
---


## [2.0.0](plugins-destination-azblob-v1.0.5...plugins-destination-azblob-v2.0.0) (2023-01-31)


### ⚠ BREAKING CHANGES

* Add ability to override CSV File options (headers and delimiters) ([#6958](#6958))

### Features

* Add ability to override CSV File options (headers and delimiters) ([#6958](#6958)) ([d03819c](d03819c))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.29.0 ([#7121](#7121)) ([b7441c9](b7441c9))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.30.0 ([#7222](#7222)) ([73ca21c](73ca21c))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.31.0 ([#7228](#7228)) ([36e8549](36e8549))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.32.0 ([#7334](#7334)) ([b684122](b684122))

---
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 Jan 31, 2023
🤖 I have created a release *beep* *boop*
---


## [2.0.0](plugins-destination-kafka-v1.0.4...plugins-destination-kafka-v2.0.0) (2023-01-31)


### ⚠ BREAKING CHANGES

* Add ability to override CSV File options (headers and delimiters) ([#6958](#6958))

### Features

* Add ability to override CSV File options (headers and delimiters) ([#6958](#6958)) ([d03819c](d03819c))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.29.0 ([#7121](#7121)) ([b7441c9](b7441c9))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.30.0 ([#7222](#7222)) ([73ca21c](73ca21c))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.31.0 ([#7228](#7228)) ([36e8549](36e8549))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.32.0 ([#7334](#7334)) ([b684122](b684122))

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

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Azureblob to use new functionality Update S3 plugin to use new functionality Update GCS plugin to use new functionality

7 participants