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

   ## Summary
   
   - Add unsupported column types for OceanBase, StarRocks, and Hudi catalogs 
in the web UI config
   - Support optional precision for `time`, `timestamp`, and `timestamp_tz` 
types in the column type component
   - Fix defaultValue empty value handling: when a literal type's value is 
empty/null, set it to `'NULL'` instead of sending an empty string to the backend
   
   ## Changes
   
   ### 1. Unsupported column types (`web-v2/web/src/config/index.js`)
   - **jdbc-oceanbase**: Added `boolean`, `fixed`, `struct`, `list`, `map`, 
`interval_day`, `interval_year`, `union`, `uuid`
   - **jdbc-starrocks**: Added `fixed`, `timestamp_tz`, `interval_day`, 
`interval_year`, `union`, `uuid`
   - **lakehouse-hudi**: Added `byte`, `char`, `fixed`, `interval_day`, 
`interval_year`, `short`, `time`, `timestamp_tz`, `union`, `uuid`, `varchar`
   
   ### 2. Optional precision for time/timestamp types 
(`web-v2/web/src/components/ColumnTypeComponent.js`)
   - Added `ColumnWithPrecisionType` config for `time`, `timestamp`, 
`timestamp_tz`
   - Added precision input field (InputNumber, range 0-12) for these types
   - Type string is constructed as `time(3)` or `timestamp(6)` when precision 
is set, or just `time`/`timestamp` when omitted
   
   ### 3. Fix defaultValue empty value handling 
(`web-v2/web/src/app/catalogs/rightContent/CreateTableDialog.js`)
   - When `defaultValue.value` is empty/null for a literal type, set it to 
`'NULL'` instead of sending an empty string to the backend
   
   🤖 Generated with CodeArts Agent


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