deniskuzZ commented on code in PR #5010:
URL: https://github.com/apache/hive/pull/5010#discussion_r1461794898


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/functions/OnRenameFunction.java:
##########
@@ -132,12 +134,12 @@ public Void execute(MultiDataSourceJdbcResource 
jdbcResource) throws MetaExcepti
     }
 
     MapSqlParameterSource paramSource = new MapSqlParameterSource()
-        .addValue("oldDbName", StringUtils.lowerCase(oldDbName))
-        .addValue("newDbName", StringUtils.lowerCase(newDbName))
-        .addValue("oldTableName", StringUtils.lowerCase(oldTabName))
-        .addValue("newTableName", StringUtils.lowerCase(newTabName))
-        .addValue("oldPartName", oldPartName)
-        .addValue("newPartName", newPartName);
+        .addValue("oldDbName", StringUtils.lowerCase(oldDbName), Types.VARCHAR)

Review Comment:
   why don't we apply `lowerCase()` in `OnRenameFunction` constructor?



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