Skip to content
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

Adapter Extensions for Clickhouse #1183

Open
Pipboyguy opened this issue Apr 3, 2024 · 0 comments
Open

Adapter Extensions for Clickhouse #1183

Pipboyguy opened this issue Apr 3, 2024 · 0 comments
Labels
destination Issue related to new destinations enhancement New feature or request tech-debt Leftovers from previous sprint that should be fixed over time

Comments

@Pipboyguy
Copy link
Collaborator

Feature description

The Clickhouse adapter is limited, and should be extended to include, among others settings:

  • Storage policy
  • Compression codec
  • Sorting key
  • Clustering key
  • Partitioning key

Are you a dlt user?

Yes, I'm already a dlt user.

Use case

Suppose the user wants to specify details around the example_table resource, in order to compress message column, partition on timestamp:

CREATE TABLE example_table
(
    timestamp DateTime,
    user_id UInt32,
    message String CODEC(ZSTD),
)
ENGINE = ReplicatedMergeTree
ORDER BY (user_id, timestamp)
PARTITION BY toYYYYMM(timestamp)

Proposed solution

clickhouse_adapter(
	data, 
	compression_codec={"message": "ZSTD"}, 
	partition="col2"
)

Related issues

See this community comment: #1055 (comment)

@Pipboyguy Pipboyguy added enhancement New feature or request tech-debt Leftovers from previous sprint that should be fixed over time destination Issue related to new destinations labels Apr 3, 2024
@Pipboyguy Pipboyguy mentioned this issue Apr 3, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
destination Issue related to new destinations enhancement New feature or request tech-debt Leftovers from previous sprint that should be fixed over time
Projects
Status: Todo
Development

No branches or pull requests

1 participant