haneeshpld commented on issue #5700:
URL: https://github.com/apache/seatunnel/issues/5700#issuecomment-1900262148
@EricJoy2048
im suspecting the issue is, when the config is read from the file in working
scenario it is transformed to the below format
```
{
"env": {
"job.mode": "BATCH",
"job.name": "SeaTunnel_Job"
},
"source": [
{
"password": "xxxx",
"driver": "com.mysql.cj.jdbc.Driver",
"parallelism": 1,
"query": "SELECT `id`, `name`, `owner`, `species`, `sex`,
`birth`, `death` FROM `seatunnel`.`pet`",
"connection_check_timeout_sec": 30,
"result_table_name": "Table12261518544768",
"plugin_name": "Jdbc",
"user": "user",
"url": "xxxx"
}
],
"transform": [],
"sink": [
{
"batch_size": 1000,
"max_retries": "10",
"source_table_name": "Table12261518544768",
"max_commit_attempts": 3,
"auto_commit": "true",
"plugin_name": "Jdbc",
"url": "xxx",
"is_exactly_once": "false",
"database": "seasink",
"password": "xxx",
"transaction_timeout_sec": -1,
"driver": "com.mysql.cj.jdbc.Driver",
"support_upsert_by_query_primary_key_exist": "false",
"connection_check_timeout_sec": 30,
"generate_sink_sql": true,
"user": "xxxx",
"table": "pet"
}
]
}
```
in a non working scenario it is trtransformed to below format(which is how
it is stored in the file without any change in syntax)
```
{
"transform": {},
"sink": {
"Jdbc": {
"batch_size": 1000,
"max_retries": "10",
"source_table_name": "Table12307350135360",
"max_commit_attempts": 3,
"auto_commit": "true",
"url": "jdbc:mysql://9.30.79.170:3306/seatunnel",
"is_exactly_once": "false",
"database": "seasink",
"password": "password",
"transaction_timeout_sec": -1,
"driver": "com.mysql.cj.jdbc.Driver",
"support_upsert_by_query_primary_key_exist": "false",
"connection_check_timeout_sec": 30,
"generate_sink_sql": true,
"user": "sanjay",
"table": "pet"
}
},
"source": {
"Jdbc": {
"password": "password",
"driver": "com.mysql.cj.jdbc.Driver",
"parallelism": 1,
"query": "SELECT `id`, `name`, `owner`, `species`, `sex`,
`birth`, `death` FROM `seatunnel`.`pet`",
"connection_check_timeout_sec": 30,
"result_table_name": "Table12307350135360",
"user": "sanjay",
"url": "jdbc:mysql://9.30.79.170:3306/seatunnel"
}
},
"env": {
"job.mode": "BATCH",
"job.name": "SeaTunnel_Job"
}
}
```
--
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]