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

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   使用dev最新分支打包编译,使用 jsonpath报错,
   
   数据结构
   `{
      "head": {
       "deviceId": "100766",
       "deviceName": "ZS_DS_D001",
       "msgType": "action",
       "orgId": 1,
       "productId": 224,
       "requestId": "7dc8de0e-44e3-48ed-92f9-39e6c7405df8",
       "requestTime": 1701758557182,
       "rootOrgId": 1,
       "tenantId": 1
     }
   }`
   
   ### SeaTunnel Version
   
   dev
   
   ### SeaTunnel Config
   
   ```conf
   env {
   parallelism = 1
   job.mode = "BATCH" 
   checkpoint.interval = 900000 
   }
   source {
     Kafka {
       format = json
       field_delimiter = ","
       format_error_handle_way = "skip"
       topic = "kv_info"
       consumer.group = "kv_info_client_2"
       start_mode = "timestamp"
       start_mode.timestamp = 1701758677192
       bootstrap.servers = "bd212:9092,bd213:9092,bd214:9092"
        result_table_name = "yundee_source0"  
       kafka.config = {
         client.id = kv_info_client_2
         max.poll.records = 500
         auto.offset.reset = "earliest"
         enable.auto.commit = "false"
       }
     }  
   }
   transform {
     JsonPath {
       source_table_name = "yundee_source0"
       columns = [
        {
           "src_field" = "head"
           "path" = "$.head.deviceId"
           "dest_field" = "deviceId"
                "dest_type" = "string"
        },
        {
           "src_field" = "head"
           "path" = "$.head.deviceName"
           "dest_field" = "deviceName"
           "dest_type" = "string"
        },
        {
           "src_field" = "head"
           "path" = "$.head.msgType"
           "dest_field" = "msgType"
           "dest_type" = "string"
        },
        {
           "src_field" = "head"
           "path" = "$.head.orgId"
           "dest_field" = "orgId"
           "dest_type" = "int"
        },
        {
           "src_field" = "head"
           "path" = "$.head.productId"
           "dest_field" = "productId"
           "dest_type" = "int"
        },
         {
            "src_field" = "head"
            "path" = "$.head.requestId"
            "dest_field" = "requestId"
            "dest_type" = "string"
         },
         {
            "src_field" = "head"
            "path" = "$.head.requestTime"
            "dest_field" = "requestTime"
            "dest_type" = "bigint"
         },
         {
            "src_field" = "head"
            "path" = "$.head.rootOrgId"
            "dest_field" = "rootOrgId"
            "dest_type" = "int"
         },
               {
            "src_field" = "head"
            "path" = "$.head.tenantId"
            "dest_field" = "tenantId"
            "dest_type" = "int"        
         }
       ]
     }
   }
   sink {
     Console {
       } 
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh -c ./config/bb.conf
   ```
   
   
   ### Error Exception
   
   ```log
   escription:[The input field 'body' of 'JsonPath' transform not found in 
upstream schema]
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   Zeta
   
   ### Java or Scala Version
   
   jdk1.8
   
   ### Screenshots
   
   
![96482dc18cdc1bddf5e4b75b8b7b2a8](https://github.com/apache/seatunnel/assets/44901627/8c003f83-af9d-47a7-a074-aa4240222a07)
   
   
   ### Are you willing to submit 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