valtenhyl opened a new issue, #8400: URL: https://github.com/apache/seatunnel/issues/8400
### Search before asking - [X] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement. ### Description ### JsonPath 支持 map<string, string> 和array<string>,不支持 array<map<string, string>>,有别的方式可以实现存入 Elasticsearch 的是 nested 的对象,而不是转义的 json 字符串吗 ``` env { parallelism = 4 job.mode = "BATCH" } source{ Jdbc { url = "jdbc:dm://192.168.1.1:5236" driver = "dm.jdbc.driver.DmDriver" connection_check_timeout_sec = 100 user = "xxx" password = "xxx" query = "SELECT sfzh, CONCAT('[',LISTAGG(json, ','),']') json_data FROM (SELECT sfzh, JSON_OBJECT('sfzh', sfzh, 'school', school, 'stex', stex) AS json FROM PICS.TB_EDU_INFO GROUP BY sfzh" result_table_name = "input_t" fetch_size = 1000 } } transform { JsonPath { source_table_name = "input_t" result_table_name = "input_t2" columns = [ { "src_field" = "json_data" "path" = "$" "dest_field" = "edu" "dest_type" = "array<map<string, string>>" } ] } Filter { source_table_name = "input_t2" result_table_name = "input_t3" fields = [sfzh, edu] } } sink { Elasticsearch { hosts = ["http://192.168.1.1:9200"] source_table_name = "input_t3" index = "index_user" primary_keys = ["sfzh"] bulk_flush_max_actions = 1000 bulk_flush_interval = 2000 schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST" data_save_mode = "APPEND_DATA" } } ``` ### Usage Scenario _No response_ ### Related issues _No response_ ### Are you willing to submit a 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]
