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

   ### 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
   
   When I use the HTTP source to read data from an endpoint.
   
   I got an error because a time field parse failed.
   ```
   Caused by: java.time.format.DateTimeParseExceptionreate breakpoint : Text 
2023-08-18 10:52:19'could not be parsed at index 10
   ```
   I find we don't support to set the time format at HTTP source config, so 
when we have a specific time string, we can only use string as the field type.
   
   Furthermore, I find in some other connector, we support to config a time 
format which will be used to parse the time field.
   
   But this cannot work when we have different time formats in one schema.
   
   Can we set this under the field level?
   
   ```
   schema {
       field {
           id {
               type = int
               xx
           }
           createTime {
               type = timestamp
               format_type = "yyyyMMdd HH:mm:ss"
           }
      }
   
   
   }
   
   ```
   
   ### 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]

Reply via email to