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

   ### 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
   
   Oracle version: 11.2
   
   1.数据库设置number,报错,如error exception所示。debug如下所示:
   <img width="923" alt="企业微信截图_6ed2a3df-30e4-4e9b-a515-2d50ca1337e7" 
src="https://github.com/apache/seatunnel/assets/15081645/1b25857a-68a3-43ab-b8fe-1928dae4cf63";>
   2.数据库设置number(*,0),报错,如error exception所示。debug如下所示:
   <img width="756" alt="image" 
src="https://github.com/apache/seatunnel/assets/15081645/bcbc6090-f9e3-4340-840e-db8f83a8abdc";>
   3.数据库设置number(20),报错,如error exception所示。
   4.数据库设置number(18),成功执行。
   
   ### SeaTunnel Version
   
   DEV branch
   
   ### SeaTunnel Config
   
   ```conf
   env {
     # You can set flink configuration here
     job.mode = "BATCH"
   }
   source{
       Jdbc {
   url = "jdbc:oracle:thin:@XXXX/XXXX"
   driver = "oracle.jdbc.OracleDriver"
   connection_check_timeout_sec = 100
   user = "XXX"
   password = "XXX"
           partition_column = "ID"
   partition_num = 20
   fetch_size = 5000
   query = "select * from indicator_bigdata"
   parallelism = 5
       }
   }
   
   sink {
       jdbc {
   url = "jdbc:postgresql://XXX:5432/XXX"
   driver = "org.postgresql.Driver"
   user = "XXX"
   password = "XXX"
   batch_size = 5000
   batch_inteval_ms = 0
   database = public
   table = indicator_bigdata
   generate_sink_sql = true
   }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config oracle2pg.template -e local
   ```
   
   
   ### Error Exception
   
   ```log
   The current field is DecimalType containing decimals: 18 Unable to support
   ```
   
   
   ### 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