notAprogrammer-0 opened a new issue, #6228:
URL: https://github.com/apache/seatunnel/issues/6228

   ### 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
   
   **Question:**
   I want to use the UDF function to split the rows array in the kafka message 
and integrate it into objects. In this way, I can insert each object into 
hbase. But I don't know how to define the object returned in the UDF. Can you 
give me some help?
   **the message from kafka:**
   ```
   
{"hasSignal":0,"kpiId":"EVEN_MACH_CLOSE_SIGNAL","rows":[["2333.0","1680560413360"],["2334.0","1680560419860"],["2333.0","1680560446360"],["2334.0","1680560452860"],["2333.0","1680560462860"],["2334.0","1680560466360"],["2334.0","1680560996860"]],"state":0,"step":0.0}
   ```
   **I use udf to split it into**
   ```
   2024-01-16 09:38:32,462 INFO  
org.apache.seatunnel.connectors.seatunnel.console.sink.ConsoleSinkWriter - 
subtaskIndex=0  rowIndex=5499:  SeaTunnelRow#tableId= SeaTunnelRow#kind=INSERT 
: [SqlData{dataType='', hasSignal='0', kpiId='EVEN_MACH_CLOSE_SIGNAL', 
state='0', step='0.0', dTime=1975-05-28 11:03:00.005, value=0.0}, 
SqlData{dataType='', hasSignal='0', 
kpiId='CCM2_EVEN_MACH_COWATER_ELECVALV2_MOTOR_CLOSE_SIGNAL', state='0', 
step='0.0', dTime=1975-05-28 11:03:06.005, value=0.0}, SqlData{dataType='', 
hasSignal='0', kpiId='EVEN_MACH_CLOSE_SIGNAL', state='0', step='0.0', 
dTime=1975-05-28 11:03:36.005, value=0.0}, SqlData{dataType='', hasSignal='0', 
kpiId='EVEN_MACH_CLOSE_SIGNAL', state='0', step='0.0', dTime=1975-05-28 
11:03:42.005, value=0.0}, SqlData{dataType='', hasSignal='0', 
kpiId='EVEN_MACH_CLOSE_SIGNAL', state='0', step='0.0', dTime=1975-05-28 
11:03:48.005, value=0.0}, SqlData{dataType='', hasSignal='0', 
kpiId='EVEN_MACH_CLOSE_SIGNAL', state='0', step='0.0', dTime=2024-01-09 1
 4:39:00.054, value=0.0}]
   ```
   **How can i split the whole array into the separate object?**
   
   ### Usage Scenario
   
   More convenient to process messages in kafka.
   
   ### 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]

Reply via email to