dutyu commented on code in PR #22646:
URL: https://github.com/apache/doris/pull/22646#discussion_r1296688180


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/hive/event/MetastoreEvent.java:
##########
@@ -70,7 +71,7 @@ protected MetastoreEvent(long eventId, String catalogName, 
String dbName, String
 
     protected MetastoreEvent(NotificationEvent event, String catalogName) {
         this.event = event;
-        this.dbName = event.getDbName();
+        this.dbName = event.getDbName().toLowerCase(Locale.ROOT);
         this.tblName = event.getTableName();

Review Comment:
   this.tblName = event.getTableName().toLowerCase(Locale.ROOT);



##########
fe/fe-core/src/main/java/org/apache/doris/datasource/hive/event/AlterTableEvent.java:
##########
@@ -64,6 +65,7 @@ private AlterTableEvent(NotificationEvent event, String 
catalogName) {
                     (JSONAlterTableMessage) 
MetastoreEventsProcessor.getMessageDeserializer(event.getMessageFormat())
                             .getAlterTableMessage(event.getMessage());
             tableAfter = 
Preconditions.checkNotNull(alterTableMessage.getTableObjAfter());
+            
tableAfter.setTableName(tableAfter.getTableName().toLowerCase(Locale.ROOT));

Review Comment:
   Better not change the `tableTame` field of `tableAfter`, just use a string 
object such as `afterTableName` to save the lower case table name.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to