hefeng199010 opened a new issue, #9583:
URL: https://github.com/apache/seatunnel/issues/9583

   ### 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
   
   <img width="1397" height="868" alt="Image" 
src="https://github.com/user-attachments/assets/4fbfb4b2-8e70-4107-b271-b13f13fe61f7";
 />
   
   加上transform table_filter后就报错,
   
   <img width="2403" height="1148" alt="Image" 
src="https://github.com/user-attachments/assets/07c3343b-c3a2-45c0-871b-0922245b2658";
 />
   
   经过调试源码,发现加了transform后,sink就不在map里面
   
   <img width="1560" height="753" alt="Image" 
src="https://github.com/user-attachments/assets/cef8797f-5599-4b10-afd9-a11ab27f81ab";
 />
   
   ### SeaTunnel Version
   
   目前数影seatunnel2.3.11
   
   ### SeaTunnel Config
   
   ```conf
   #
   # Licensed to the Apache Software Foundation (ASF) under one or more
   # contributor license agreements.  See the NOTICE file distributed with
   # this work for additional information regarding copyright ownership.
   # The ASF licenses this file to You under the Apache License, Version 2.0
   # (the "License"); you may not use this file except in compliance with
   # the License.  You may obtain a copy of the License at
   #
   #    http://www.apache.org/licenses/LICENSE-2.0
   #
   # Unless required by applicable law or agreed to in writing, software
   # distributed under the License is distributed on an "AS IS" BASIS,
   # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   # See the License for the specific language governing permissions and
   # limitations under the License.
   #
   ######
   ###### This config file is a demonstration of streaming processing in 
SeaTunnel config
   ######
   
   env {
     # You can set SeaTunnel environment configuration here
        parallelism = 1
       job.mode = "STREAMING"
       checkpoint.interval = 5000
       read_limit.bytes_per_second=70000000
       read_limit.rows_per_second=100000
   }
   
   source {
   MySQL-CDC {
        server-id = 11
       username = "root"
       password = "root%123"
        database-names = [""]
       table-pattern = "test2.*\\.*.*"
       base-url = "jdbc:mysql://hadoop001:3306/test2"
       startup.mode="INITIAL"
        snapshot.split.size     = 8096
        snapshot.fetch.size=4096
        server-time-zone="Asia/Shanghai"
        exactly_once=true
       schema-changes.enabled = true
       plugin_output = "source1"
        }
   }
   
   transform {
       TableFilter {
           plugin_input = "source1"
           plugin_output = "transform_1"
           database_pattern = "test2"
           table_pattern = "test2.student"
           pattern_mode = "EXCLUDE"
       }
   }
   
   sink {
    StarRocks {
    plugin_input = "transform_1"
       nodeUrls = []
       base-url = "jdbc:mysql://xx:xxx"
       username = xxx
       password = "xxx"
       database = "xxx"
        max_retries=10
       batch_max_rows = 100000
        schema_save_mode="CREATE_SCHEMA_WHEN_NOT_EXIST"
       starrocks.config = {
         format = "JSON"
         strip_outer_array = true
       }
        enable_upsert_delete = true
        save_mode_create_template = """
       CREATE TABLE IF NOT EXISTS xxx.`${table_name}` (
           ${rowtype_primary_key},
           ${rowtype_fields}
           ) ENGINE=OLAP
           PRIMARY KEY (${rowtype_primary_key})
           DISTRIBUTED BY HASH (${rowtype_primary_key})
           PROPERTIES (
                   "replication_num" = "2",
                   "in_memory" = "false",
                   "enable_persistent_index" = "true",
                   "replicated_storage" = "true",
                   "compression" = "LZ4"
             )
       """
     }
   }
   ```
   
   ### Running Command
   
   ```shell
   idea本地运行
   ```
   
   ### Error Exception
   
   ```log
   Exception in thread "main" 
org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel 
job executed failed
        at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:228)
        at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
        at 
org.apache.seatunnel.example.engine.SeaTunnelEngineLocalExample.main(SeaTunnelEngineLocalExample.java:49)
   Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:659)
        at java.util.ArrayList.get(ArrayList.java:435)
        at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.tryGenerateMultiTableSink(MultipleTableJobConfigParser.java:642)
        at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSink(MultipleTableJobConfigParser.java:605)
        at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:240)
        at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:123)
        at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:191)
        at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:165)
   ```
   
   ### 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