You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More examples and snippets can be found in our tests [flink-connector-clickhouse-1.17](flink-connector-clickhouse-1.17/src/test/java/org/apache/flink/connector/clickhouse/sink) and [flink-connector-clickhouse-2.0.0](flink-connector-clickhouse-2.0.0/src/test/java/org/apache/flink/connector/clickhouse/sink)
110
+
33
111
### Example
34
112
113
+
We have created maven based example for easy start with ClickHouse Sink
114
+
Different versions for Flink
115
+
116
+
-[Flink 1.17+](examples/maven/flink-v1.7/covid)
117
+
-[Flink 2.0.0+](examples/maven/flink-v2/covid)
118
+
119
+
For more detailed instructions, see the [Example Guide](examples#readme)
35
120
36
121
## Table API
37
122
123
+
Table API is planned for a future release. This section will be updated once available.
124
+
38
125
### Snippet
39
126
127
+
Planned for a future release — this section will provide a usage snippet for configuring the Table API.
128
+
40
129
### Example
41
130
131
+
Planned for a future release — a complete end-to-end example will be added once the Table API becomes available.
132
+
133
+
## Supported ClickHouse Types
134
+
135
+
| Java Type | ClickHouse Type | Supported | Serialize Method |
| maxBatchSize | Maximum number of records inserted in a single batch | N/A |
194
+
| maxInFlightRequests | The maximum number of in flight requests allowed before the sink applies backpressure | N/A |
195
+
| maxBufferedRequests | The maximum number of records that may be buffered in the sink before backpressure is applied | N/A |
196
+
| maxBatchSizeInBytes | The maximum size (in bytes) a batch may become. All batches sent will be smaller than or equal to this size | N/A |
197
+
| maxTimeInBufferMS | The maximum time a record may stay in the sink before being flushed | N/A |
198
+
| maxRecordSizeInBytes | The maximum record size that the sink will accept, records larger than this will be automatically rejected | N/A |
199
+
200
+
## Limitations
201
+
202
+
* Currently the sink does not support exactly-once semantics
203
+
204
+
42
205
## Compatibility
43
206
44
207
- All projects in this repo are tested with all [active LTS versions](https://github.com/ClickHouse/ClickHouse/pulls?q=is%3Aopen+is%3Apr+label%3Arelease) of ClickHouse.
Copy file name to clipboardExpand all lines: flink-connector-clickhouse-1.17/src/test/java/org/apache/flink/connector/clickhouse/sink/ClickHouseSinkTests.java
Copy file name to clipboardExpand all lines: flink-connector-clickhouse-1.17/src/test/java/org/apache/flink/connector/clickhouse/sink/convertor/SimplePOJOConvertor.java
Copy file name to clipboardExpand all lines: flink-connector-clickhouse-1.17/src/test/java/org/apache/flink/connector/clickhouse/sink/pojo/SimplePOJO.java
0 commit comments