yuqi1129 opened a new pull request, #14609:
URL: https://github.com/apache/gravitino/pull/14609

   ### What changes were proposed in this pull request?
   
   Parse Spark default SQL using Spark's parser and convert supported literals 
to typed Gravitino literals. Preserve DROP DEFAULT and reject unsupported 
expressions/functions instead of storing their SQL as text.
   
   ### Why are the changes needed?
   
   ALTER COLUMN SET DEFAULT currently wraps the entire SQL expression in a 
string literal, corrupting strings and numeric defaults.
   
   Fixes #14608.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Literal defaults retain their values and types. Nonliteral defaults fail 
explicitly; no raw SQL is forwarded.
   
   ### How was this patch tested?
   
   TestTransformTableChange passes on Spark 3.5 and 4.0 (12 tests per version), 
covering strings, integers, negative numbers, decimals, booleans, dates, NULL, 
empty strings, DROP DEFAULT and rejected expressions.
   


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