leekeiabstraction opened a new issue, #2204:
URL: https://github.com/apache/fluss/issues/2204

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and 
found nothing similar.
   
   
   ### Description
   
   Schemas currently have to be written manually by user, 
[example](https://github.com/ververica/ververica-fluss-examples/blob/main/fluss-food-delivery/src/main/java/com/ververica/models/FoodDeliveryDomain.java#L50):
   
   ```
               return Schema.newBuilder()
                       .column("orderId", DataTypes.STRING())
                       .column("courierId", DataTypes.STRING())
                       .column("restaurantId", DataTypes.STRING())
                       .column("destinationLatitude", DataTypes.DOUBLE())
                       .column("destinationLongitude", DataTypes.DOUBLE())
                       .column("estimatedPrepTimeSeconds", DataTypes.BIGINT())
                       .column("estimatedTravelTimeSeconds", DataTypes.BIGINT())
                       .column("eventTimestamp", DataTypes.TIMESTAMP())
                       .build();
   ```
   
   We can improve user experience by introducing helper method for this. For 
example, a method can be added under `Schema` 
   
   ```
   Schema.fromClass(Class<?> class)
   ```
   
   ### Willingness to contribute
   
   - [x] I'm willing to submit a PR!


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