env {
  execution.parallelism = 1
  job.mode = "BATCH"
  checkpoint.interval = 5000
  #execution.checkpoint.data-uri = "hdfs://localhost:9000/checkpoint"
}

source {
  jdbc{
    result_table_name = "fake1"
    url = "jdbc:mysql://localhost:3306/digital_operation"
    driver = "com.mysql.cj.jdbc.Driver"
    connection_check_timeout_sec = 100
    user = "root"
    password = "123456"
    query = "select * from test_copy"
  }
}

transform {
    FieldCondition {
             source_table_name = "fake"
             result_table_name = "fake1"
             field_condition = [
                              	    {
                                     "field":"id",
                                     "operateType":"GT",
                                     "value":2,
                                     "sdf":""
                                    }
                              ]
            connect_type="AND"
           }
}

sink {
  jdbc {
    source_table_name = "fake"
    url = "jdbc:mysql://localhost:3306/testdb"
    driver = "com.mysql.cj.jdbc.Driver"
    user = "root"
    password = "123456"
    query = "insert into test_copy(id, name, address, sex, age) values(?, ?, ?, ?, ?)"
    batch_size = 1000
  }
}
