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

   ### 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
   
   {
       "status": "fail",
       "message": "ErrorCode:[API-01], ErrorDescription:[Configuration item 
validate failed] - PluginName: jdbc, PluginType: source, Message: 
org.apache.seatunnel.connectors.seatunnel.jdbc.exception.JdbcConnectorException:
 ErrorCode:[COMMON-06], ErrorDescription:[Illegal argument] - The current field 
is DecimalType containing decimals: 18 Unable to support"
   }
   
   ### SeaTunnel Version
   
   2.3.3
   
   ### SeaTunnel Config
   
   ```conf
   {
        "env": {
                "parallelism": 4,
                "job.mode": "batch",
                "checkpoint.interval": 10000
        },
        "source": [{
                    "plugin_name": "jdbc",
                        "url": "jdbc:oracle:thin:@xxx.xxx.11.181:1521:orcl",
                        "driver": "oracle.jdbc.OracleDriver",
                        "connection_check_timeout_sec": 100,
                        "user": "xxx",
                        "password": "xxx",
                        "query": "select * from  table1",
                        "partition_column": "id",
                        "split.size": 10000
                
        }],
       "transform": [{
           "plugin_name": "Copy",
           "source_table_name": "xxxxx",
            "result_talbe_name": "xxxx2",
             "fields": {
                  "id" : "xxxxx"
             }
            
       }
   
       ],
                "sink": [{
                "plugin_name": "Jdbc",
                        "url": "jdbc:postgresql://xxx.xxx.11.xxx:5432/ptest",
                        "driver": "org.postgresql.Driver",
                        "user": "test",
                        "password": "test",
                        "generate_sink_sql": true,
                        "database": "ptest",
                        "table": "public.xxxx2",
                        "schema_save_mode": "CREATE_SCHEMA_WHEN_NOT_EXIST",
                        "data_save_mode": "APPEND_DATA",
                        "primary_keys": ["id"]
   
                
        }]
   }
   ```
   
   
   ### Running Command
   
   ```shell
   {
        "env": {
                "parallelism": 4,
                "job.mode": "batch",
                "checkpoint.interval": 10000
        },
        "source": [{
                    "plugin_name": "jdbc",
                        "url": "jdbc:oracle:thin:@xxx.xxx.11.181:1521:orcl",
                        "driver": "oracle.jdbc.OracleDriver",
                        "connection_check_timeout_sec": 100,
                        "user": "xxx",
                        "password": "xxx",
                        "query": "select * from  table1",
                        "partition_column": "id",
                        "split.size": 10000
                
        }],
       "transform": [{
           "plugin_name": "Copy",
           "source_table_name": "xxxxx",
            "result_talbe_name": "xxxx2",
             "fields": {
                  "id" : "xxxxx"
             }
            
       }
   
       ],
                "sink": [{
                "plugin_name": "Jdbc",
                        "url": "jdbc:postgresql://xxx.xxx.11.xxx:5432/ptest",
                        "driver": "org.postgresql.Driver",
                        "user": "test",
                        "password": "test",
                        "generate_sink_sql": true,
                        "database": "ptest",
                        "table": "public.xxxx2",
                        "schema_save_mode": "CREATE_SCHEMA_WHEN_NOT_EXIST",
                        "data_save_mode": "APPEND_DATA",
                        "primary_keys": ["id"]
   
                
        }]
   }
   ```
   
   
   ### Error Exception
   
   ```log
   {
       "status": "fail",
       "message": "ErrorCode:[API-01], ErrorDescription:[Configuration item 
validate failed] - PluginName: jdbc, PluginType: source, Message: 
org.apache.seatunnel.connectors.seatunnel.jdbc.exception.JdbcConnectorException:
 ErrorCode:[COMMON-06], ErrorDescription:[Illegal argument] - The current field 
is DecimalType containing decimals: 18 Unable to support"
   }
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   Zeta
   
   ### Java or Scala Version
   
   java 1.8
   
   ### 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