YuriyGavrilov commented on issue #7743:
URL: https://github.com/apache/seatunnel/issues/7743#issuecomment-2375141463
Hi @wuwu20048 This works for me on seatunnel v 2.3.8.
```
CREATE TABLE default.sink_table
(
id int, name String, out String
)
ENGINE = MergeTree ORDER BY id
```
```
# Set the basic configuration of the task to be performed
env {
parallelism = 1
job.mode = "BATCH"
}
source {
FakeSource {
row.num = 6
schema = {
fields {
id = "int"
name = "string"
out = "string"
}
}
rows = [
{fields = [1, "Jia Fan", "ffrrr"], kind = INSERT}
{fields = [2, "Hailin Wang", "ddd"], kind = INSERT}
{fields = [3, "Tomas", "vfs"], kind = INSERT}
{fields = [4, "Eric", "kfkd"], kind = INSERT}
{fields = [5, "Guangdong Liu", "pew"], kind = INSERT}
{fields = [6, "Юрий Гаврилов", "szs"], kind = INSERT}
]
}
}
#transform {
#}
sink {
Clickhouse {
host = "some-clickhouse-server:8123"
database = "default"
table = "sink_table"
username = ""
password = ""
bulk_size = 1000
# source_table_name = "gateway_logs"
clickhouse.config = {
max_rows_to_read = "100"
read_overflow_mode = "throw"
}
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]