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

   <!--
   1. Title: [#<issue>] <type>(<scope>): <subject>
      Reference: https://www.conventionalcommits.org/en/v1.0.0/
   2. If the PR is unfinished, please mark this PR as draft.
   -->
   
   ### What changes were proposed in this pull request?
   
   Changed the `CURRENT_TIMESTAMP` comparison in 
`MysqlColumnDefaultValueConverter` from case-sensitive `startsWith` to 
case-insensitive `StringUtils.startsWithIgnoreCase`.
   
   ### Why are the changes needed?
   
   MariaDB returns default values with different casing (e.g., 
`current_timestamp` in lowercase) compared to MySQL (e.g., `CURRENT_TIMESTAMP` 
in uppercase). The existing `String.startsWith()` check is case-sensitive, 
which causes it to fail when connecting to a MariaDB database via the MySQL 
catalog, resulting in incorrect default value parsing.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No user-facing API changes. This fix ensures MariaDB users can correctly use 
the MySQL catalog with proper default value handling.
   
   ### How was this patch tested?
   
   Manually tested by connecting the MySQL catalog to a MariaDB instance and 
verifying that columns with `CURRENT_TIMESTAMP` as default value are correctly 
parsed.
   


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