Comments (4)
@tellienne which Postgres version is it ?
from clickhouse-sink-connector.
See https://groups.google.com/g/debezium/c/NroAVr2saxU
from clickhouse-sink-connector.
@tellienne which Postgres version is it ?
v.14
from clickhouse-sink-connector.
thanks for the link, but it looks like we have a different problem.
In Postgres we create a table using a query
CREATE TABLE public.table_master (
guid varchar(100) NOT NULL,
id uuid NOT NULL,
store_id varchar(100) NOT NULL,
day_updated_at timestamptz NOT NULL,
base_unit varchar(50) NULL,
vat numeric(16, 4) NULL,
price_with(16, 4) NOT NULL,
price_without(16, 4) NOT NULL,
remains numeric(16, 4) NOT NULL,
updated_at timestamptz NOT NULL DEFAULT now(),
CONSTRAINT pk_product_source PRIMARY KEY (guid, id, store_id, day_updated_at)
)
PARTITION BY RANGE (day_updated_at);
After this we have one master table with many table sections that look like
table_2023_03
table_2023_04
table_2023_05
table_2023_06
table_2023_07
table_2023_08 etc
When the connector runs, it treats table sections as separate tables and creates them with a query:
CREATE TABLE db_name.table_2023_03
(
`guid` String,
`id` UUID,
`store_id` String,
`day_updated_at` DateTime64(6),
`base_unit` Nullable(String),
`vat` Nullable(Decimal(16, 4)),
`price_with` Decimal(16, 4),
`price_without` Decimal(16, 4),
`remains` Decimal(16, 4),
`updated_at` DateTime64(6),
`_sign` Int8,
`_version` UInt64
)
ENGINE = ReplacingMergeTree(_version)
PRIMARY KEY (guid,
id,
store_id,
day_updated_at)
ORDER BY (guid,
id,
store_id,
day_updated_at)
SETTINGS index_granularity = 8192;
As a result, in clickhouse, instead of one master table with data, we see many tables, each of which is equal to a partition in Postgres.
from clickhouse-sink-connector.
Related Issues (20)
- Distributed and Cluster Support HOT 6
- new table in Postgresql
- Grafana credentials - document steps to setup a secure Grafana account
- Remove log4j 1.x dependencies
- Request: Support MergeTree with version timestamp. HOT 2
- Unclear docker images and releases strategy for lightweight version
- Add ps to sink connector lightweight images - for debugging
- Total records in one table doubled when i just update or create new one record HOT 7
- Constraints are not replicated on table creation but are replicated on new additions HOT 1
- Add junit test report in github actions HOT 1
- Refactor DbWriter and DBKafkaOffsetWriter tests HOT 1
- Postgres: Error retrieving status metrics
- Values of the generated columns in MySQL are not transfered to the ClickHouse table HOT 4
- Partitions for some MySQL tables are not migrated to ClickHouse HOT 4
- Creating a Table With PRIMARY KEY in MySQL With DATETIME Column Results in a Wrong Precision Value in ClickHouse HOT 3
- the sink-connector lightweight should retry on failures HOT 1
- Kafka Sink Connector auto create for ClickHouse tables using ReplacingMergeTree Engine with _sign or is_deleted parameter HOT 7
- MySQL DATETIME values under year 100 are converted incorrectly to ClickHouse's DateTime64. HOT 3
- Add ReplicatedReplacingMergeTree table engine to sink connector
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse-sink-connector.