hqbhoho commented on PR #7852:
URL: https://github.com/apache/gravitino/pull/7852#issuecomment-3160148131

   @diqiu50  In current version, I will warp with `UnparseExpression` like this
   ```
      int_col_2 integer WITH ( default = 'UnparsedExpression(rand())' )
   ```
   So it is better to support `SHOW CREATE TABLE` and `CREATE TABLE` only for 
constant default values,  even if it differs from the actual definition in 
MySQL, we can document this limitation.
   
   Another question, if default value is null,`SHOW CREATE TABLE` whether to 
display null value like this
   ```
   int_col_2 integer WITH ( default = 'NULL' )
   ```
   I think this is bloated code.
   
   Boolean-type constants, May need server support, I will check and file a PR 
later.
   


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