wowzx commented on PR #5346:
URL: https://github.com/apache/seatunnel/pull/5346#issuecomment-1687383136
> Could you add a test case for this bug fixed? To make sure this bug will
not regression.
create sql
```sql
create table test(
`field1` String,
`field2` String,
`field3` String,
`field4` String
)engine=Memory;
```
config file
```conf
env {
execution.parallelism = 1
job.mode = "BATCH"
}
source {
FakeSource {
source_table_name = "fake"
schema = {
fields {
field1 = string
field2 = string
field3 = string
field4 = string
}
}
rows = [
{
kind = INSERT
fields = ["v_1", "v_2", "v_3","v_4"]
}
]
}
}
transform {
FieldMapper {
source_table_name = "fake"
result_table_name = "test"
field_mapper = {
field2 = field2
field4 = field4
field3 = field3
field1 = field1
}
}
}
sink {
Clickhouse {
source_table_name = "test"
host = "127.0.0.1:8123"
database = "Test"
table = "test"
username = "default"
password = ""
bulk_size = 1
}
}
```
before fix

after fix

--
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]