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
   
![image](https://github.com/apache/seatunnel/assets/48906844/3264d4b7-1c11-4e0d-8f7c-48f62c83a8c7)
   
   after fix
   
![image](https://github.com/apache/seatunnel/assets/48906844/cc218fff-191e-4e5c-8a26-abd96fcb1792)
   
   
   


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

Reply via email to