ChangjiGuo commented on a change in pull request #2024:
URL: https://github.com/apache/hive/pull/2024#discussion_r583522422
##########
File path:
metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreUtils.java
##########
@@ -201,7 +201,7 @@ static public Deserializer getDeserializer(Configuration
conf,
private static final String FROM_SERIALIZER = "from deserializer";
private static String determineFieldComment(String comment) {
- return (comment == null) ? FROM_SERIALIZER : comment;
+ return ("".equals(comment)) ? null : comment;
Review comment:
I think we should not specify a value if the comment is null, so I
modified the unit test.
Is my understanding right?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]