sj15600520109 commented on issue #7961:
URL: https://github.com/apache/seatunnel/issues/7961#issuecomment-2464371501

   可以了,explode好像必须得接收array类型的输入,感谢。
   ```transform {
     JsonPath {
       source_table_name = "fake"
       result_table_name = "fake1"
       columns = [
         {
           "src_field" = "data"
           "path" = "$.cpe_nodes"
           "dest_field" = "cpe_nodes"
           "dest_type" = "array<string>"
         }
       ]
     }
   
   Sql {
       source_table_name = "fake1"
       result_table_name = "fake2"
       query = "SELECT cpe_nodes FROM fake1  LATERAL VIEW OUTER 
EXPLODE(cpe_nodes) as cpe_nodes"
     }
   
   }
   
   sink {
     Console {
       source_table_name = "fake2"
     }
   }


-- 
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