haiyin-liu opened a new issue, #9649:
URL: https://github.com/apache/seatunnel/issues/9649

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   source {
     Oracle-CDC {
       username = "xxx"
       password = "xxxx"
       database-names=["ORCL"]
       schema-names=["xx"]
         table-names = [
           "ORCL.xxx.xq"
         ]
       base-url = "jdbc:oracle:thin:@2.2.2.2:1521:ORCL"
       source.reader.close.timeout=120000
     
       plugin_output = "oracle_cdc_source"
     }
   }
   
   ### SeaTunnel Version
   
   2.3.11
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     Oracle-CDC {
       username = "xxx"
       password = "xxxx"
       database-names=["ORCL"]
       schema-names=["xx"]
         table-names = [
           "ORCL.xxx.xq"
         ]
       base-url = "jdbc:oracle:thin:@2.2.2.2:1521:ORCL"
       source.reader.close.timeout=120000
     
       plugin_output = "oracle_cdc_source"
     }
   }
   
   transform {
     TableFilter{
       plugin_input = "oracle_cdc_source"
       plugin_output = "table_filter"
       database_pattern = "xxxx"
       table_pattern = "xhp_dwml"
       pattern_mode = "EXCLUDE"
     }
   
     FilterRowKind {
       plugin_input = "table_filter"
       plugin_output = "filter_row_kind"
       exclude_kinds = ["UPDATE_BEFORE"]
     }
   
     RowKindExtractor {
       plugin_input = "filter_row_kind"
       custom_field_name = "row_kind"
       transform_type = FULL
       plugin_output = "with_row_kind"
     }
   
     # 添加dt字段 - 使用当前日期
     # 注意: dt必须是DATE类型, doris中自动分区字段必须是DATE类型
     Sql {
       plugin_input = "with_row_kind"
       query = """
         SELECT
           *,
           CURRENT_DATE as dt,
           CURRENT_TIMESTAMP as ct
         FROM with_row_kind
       """
       plugin_output = "trans_result"
     }
   }
   
   sink {
     Doris {
       plugin_input = "trans_result"
       fenodes = "1.7.1.1:8030"
       username = "root"
       password = "111*o@111"
       database = "mysql_${database_name}"
       table = "ods_${table_name}"
       save_mode_create_template = """
         CREATE TABLE IF NOT EXISTS `${database}`.`${table_name}` (
           ${rowtype_primary_key},
           dt DATE NOT NULL COMMENT 'dt',
           ct DATETIME NOT NULL COMMENT 'ct',
           ${rowtype_fields}
         ) ENGINE=OLAP
         DUPLICATE KEY (${rowtype_primary_key}, dt)
         COMMENT '${comment}'
         AUTO PARTITION BY RANGE (date_trunc(`dt`, 'year')) ()
         DISTRIBUTED BY HASH (${rowtype_primary_key}) BUCKETS 5
         PROPERTIES (
           "replication_num" = "1",
           "storage_format" = "V2",
           "light_schema_change" = "true",
           "disable_auto_compaction" = "false"
         )
       """
       sink.enable-2pc = "true"
       sink.enable-delete = "false"
       doris.config {
         format = "json"
         read_json_by_line = "true"
       }
     }
   }
   ```
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config  xxx.conf  --async -n job1
   ```
   
   ### Error Exception
   
   ```log
   无
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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