Skip to content

Conversation

@hermanschaaf
Copy link
Member

@hermanschaaf hermanschaaf commented Apr 12, 2023

This change does the following:

  • updates to the new plugin SDK v2 and filetypes v2. There are no user-facing changes for CSV or JSON, but the format of UUID and Datetime fields changes for Parquet.
  • adds a new path parameter to allow for more flexible naming of the output files. The old directory parameter is still supported, but will be removed in a future version and for now a warning is logged when it is used. When upgrading to v2.0.0, please consider changing from directory to path as well.

BEGIN_COMMIT_OVERRIDE
feat: Update to use Apache Arrow type system
feat: Introduce path parameter with placeholder variables to replace directory. Please consider updating your config to use path instead of directory.

BREAKING-CHANGE: This release introduces an internal change to our type system to use Apache Arrow. This should not have any visible breaking changes for CSV or JSON output formats, however the Parquet output changes for UUID columns, which now have dashes, and timestamps, which now uses the default Arrow time format (e.g. 2023-01-02 12:23:45). If you encounter an issue during the upgrade, please submit a bug report.

END_COMMIT_OVERRIDE

Closes #10114

@cq-bot cq-bot added the file label Apr 12, 2023
@hermanschaaf
Copy link
Member Author

This PR is now almost ready - it works in local testing, but the tests warn us about some memory leaks that I need to track down next.

@hermanschaaf hermanschaaf changed the title fix: Migrate file destination to SDK v2 fix(file): Migrate file destination to SDK v2 Apr 20, 2023
@hermanschaaf hermanschaaf marked this pull request as ready for review April 20, 2023 08:41
@hermanschaaf hermanschaaf requested review from a team and amanenk and removed request for a team April 20, 2023 08:41
@hermanschaaf hermanschaaf changed the title fix(file): Migrate file destination to SDK v2 fix!: Migrate file destination to SDK v2 Apr 20, 2023
@hermanschaaf hermanschaaf added the automerge Automatically merge once required checks pass label Apr 21, 2023
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.

feat: Migrate plugin/destination/file to github.com/cloudquery/plugin-sdk/v2

6 participants