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

   ### 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
   
   After reading data from a table in the database, converting and filtering 
the data, and outputting it to two tables, the data in both tables is correct, 
but only the data quantity in one table is counted as successful, while the 
data quantity in the other table is counted as failed.
   
   ### SeaTunnel Version
   
   2.3.3
   
   ### SeaTunnel Config
   
   ```conf
   env {
       job.mode="BATCH"
       execution.parallelism=5
   }
   source {
       Jdbc {
           url="jdbc:oracle:thin:@//xxx.xxx.xxx.xxx:1521/xxx",
           driver="oracle.jdbc.OracleDriver",
           user="xxx",
           password="xxx",
           query="select * from xxx.xxx",
           fetch_size=1000
           result_table_name = "jdbc_dq"
       }
   }
   transform  {
       Sql {
           source_table_name = "jdbc_dq"
           result_table_name = "dq_result"
           query = "select xxx,udf(ID) as CONDITION from jdbc_dq"
       }
       Sql {
           source_table_name = "dq_result"
           result_table_name = "success_to"
           query = "select xxx from dq_result where CONDITION='true'"
       }
       Sql {
           source_table_name = "dq_result"
           result_table_name = "fail_to"
           query = "select xxx from dq_result where CONDITION='false'"
       }
   }
   sink {
       Jdbc {
           source_table_name = ["success_to"]
           url="jdbc:oracle:thin:@//xxx.xxx.xxx.xxx:1521/HBI",
           driver="oracle.jdbc.OracleDriver",
           user="xxx",
           password="xxx",
           generate_sink_sql=true,
           database="xxx",
           table="xxx.xxx_1"
           result_table_name="success_http"
       }
       Jdbc {
           source_table_name = ["fail_to"]
           url="jdbc:oracle:thin:@//xxx.xxx.xxx.xxx:1521/HBI",
           driver="oracle.jdbc.OracleDriver",
           user="xxx",
           password="xxx",
           generate_sink_sql=true,
           database="xxx",
           table="xxx.xxx_2"
           result_table_name="fail_http"
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   run in org.apache.seatunnel.example.engine.SeaTunnelEngineExample
   ```
   
   
   ### Error Exception
   
   ```log
   ***********************************************
              Job Statistic Information
   ***********************************************
   Start Time                : 2023-12-28 11:01:29
   End Time                  : 2023-12-28 11:01:36
   Total Time(s)             :                   7
   Total Read Count          :                   8
   Total Write Count         :                   5
   Total Failed Count        :                   3
   ***********************************************
   
   After the final task is completed, there are 5 pieces of data in the success 
table(xxx.xxx_1) and 3 pieces of data in the failure table(xxx.xxx_2), which do 
not match the statistics data
   ```
   
   
   ### 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