You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "nzzl6 (via GitHub)" <gi...@apache.org> on 2025/02/10 03:44:05 UTC

[I] [Feature][Transform] converting JSON list to multiple rows [seatunnel]

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

   ### 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
   
   If parsing a JSON list and converting it into multiple rows to store in MySQL, for example, each message in kafka is a list [{"a": 1, "b": "test1"}, {"a": 2, "b": "test2"}], stored in testTable (a int, b varchar(100))
   
   ### 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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature][Transform] converting JSON list to multiple rows [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8635:
URL: https://github.com/apache/seatunnel/issues/8635#issuecomment-2723006085

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature][Transform] converting JSON list to multiple rows [seatunnel]

Posted by "CosmosNi (via GitHub)" <gi...@apache.org>.
CosmosNi commented on issue #8635:
URL: https://github.com/apache/seatunnel/issues/8635#issuecomment-2647499173

   Try using EXPLODE combined with jsonpath


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature][Transform] converting JSON list to multiple rows [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8635:
URL: https://github.com/apache/seatunnel/issues/8635#issuecomment-3066302646

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature][Transform] converting JSON list to multiple rows [seatunnel]

Posted by "CosmosNi (via GitHub)" <gi...@apache.org>.
CosmosNi commented on issue #8635:
URL: https://github.com/apache/seatunnel/issues/8635#issuecomment-2649626662

   `  Sql {
          plugin_input = "fake2"
          plugin_output = "fake3"
          query = "select * from dual LATERAL VIEW  EXPLODE(array_field) as map_data"
      }
          JsonPath {
            plugin_input = "fake2"
            plugin_output = "fake3"
            row_error_handle_way = SKIP
            columns = [
             {
                "src_field" = "map_data"
                "path" = "$.a"
                "dest_field" = "a"
             },
             {
                "src_field" = "map_data"
                "path" = "$.b"
                "dest_field" = "b"
             }
            ]
          }
   
   `


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature][Transform] converting JSON list to multiple rows [seatunnel]

Posted by "FrommyMind (via GitHub)" <gi...@apache.org>.
FrommyMind commented on issue #8635:
URL: https://github.com/apache/seatunnel/issues/8635#issuecomment-2647217036

   Could you kindly provide the following details to help us investigate the issue more efficiently?  
   1. **Seatunnel Version**: The specific version of the component you are currently using.  
   2. **Reproduction Steps**: A detailed list of the steps you executed prior to encountering the issue.  
   3. **Environment Context**: Any relevant configurations or dependencies involved.  


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature][Transform] converting JSON list to multiple rows [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8635: [Feature][Transform] converting JSON list to multiple rows
URL: https://github.com/apache/seatunnel/issues/8635


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org