yuqi1129 opened a new issue, #9637:
URL: https://github.com/apache/gravitino/issues/9637

   ### Describe the feature
   
   Currently, `AlterTableAddColumnsRequest` only supports passing a SQL string 
when adding new columns
   
   ```
   public class AlterTableAddColumnsRequest {
     public static final String JSON_PROPERTY_ID = "id";
     @Nullable
     private List<String> id = new ArrayList();
     public static final String JSON_PROPERTY_NEW_COLUMNS = "new_columns";
     @Nonnull
     private List<NewColumnTransform> newColumns = new ArrayList();
   
     public AlterTableAddColumnsRequest() {
     }
   
   
   public class NewColumnTransform {
     public static final String JSON_PROPERTY_NAME = "name";
     @Nonnull
     private String name;
     public static final String JSON_PROPERTY_EXPRESSION = "expression";
     @Nonnull
     private String expression;
   
     public NewColumnTransform() {
     }
   }
   ```
   
   Then SQL expresison can be `CAST(NULL AS int)`, `cast((id + 1) as int)`
   
   ### Motivation
   
   _No response_
   
   ### Describe the solution
   
   _No response_
   
   ### Additional context
   
   _No response_


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