NganWave opened a new pull request, #11496:
URL: https://github.com/apache/seatunnel/pull/11496
## Description:
### Background & Problem
When integrating SeaTunnel with Airflow, I found that users cannot pass
complex connection properties (e.g., mysql_properties) via the -i command-line
parameter because the current parser does not support JSON strings for map
types.
### Solution
This PR adds support for parsing JSON strings as map-type parameters in the
CLI. It extends the existing parameter parsing logic, which already supports
comma-containing strings and arrays, to now also handle JSON objects. For
example:
```
-i
mysql_properties='\{\"connectTimeout\":\"5000\",\"serverTimezone\":\"UTC\",\"useSSL\":\"false\",\"allowPublicKeyRetrieval\":\"true\"\}'
```
### Verification
Added unit tests to cover the new JSON parsing logic.
Updated the documentation to explain the new usage.
### Note: Nested JSON structures are not supported yet.
--
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]