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

clickhouse_loader.py : support schema overrides in yaml #323

Open
aadant opened this issue Oct 20, 2023 · 2 comments
Open

clickhouse_loader.py : support schema overrides in yaml #323

aadant opened this issue Oct 20, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request p1
Milestone

Comments

@aadant
Copy link
Collaborator

aadant commented Oct 20, 2023

We should be able to override the schema using a yaml file

  • data type mapping

  • default table settings

  • default type conversion

    • choice between LowCardinality versus String
    • choice how to convert binary types hex / base64
  • custom table settings per regex / table

    • sort key
    • column data type
    • partitioning key
    • table settings
    • table engine
  • filtering out a table from migration / replication

    • include via list and regex
    • exclude via list and regex
@subkanthi
Copy link
Collaborator

Filtering
filtering out a table from migration / replication

include via list and regex
exclude via list and regex
This is already supported in Debezium using table.include.list and table.exclude.list.

@subkanthi
Copy link
Collaborator

default_column_datatype_mapping:
    # we are no longer turning Date/DateTime/Timestamp as a String
    transaction_id: String
    exchange_transaction_id: String
    unique_transaction_id: String
    account_ref: String
    otm_identifier: String
    tag_reserved_4: String
    initiator: String

databases:
    dbo:
         tables:
           tr_live:
                partition_by: tr_date_id
                primary_key: gmt_time
                settings: allow_nullable_key=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p1
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants