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


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/catalog/desc/DescCatalogFormatter.java:
##########
@@ -66,27 +66,24 @@ static class TextDescCatalogFormatter extends 
DescCatalogFormatter {
     void showCatalogDescription(DataOutputStream out, String catalog, String 
comment, String location,
         int createTime) throws HiveException {
       try {
-        writeLine(out, "Catalog Name", catalog);
+        out.write(catalog.getBytes(StandardCharsets.UTF_8));
+        out.write(Utilities.tabCode);
         if (comment != null) {
-          writeLine(out, "Comment", HiveStringUtils.escapeJava(comment));
+          
out.write(HiveStringUtils.escapeJava(comment).getBytes(StandardCharsets.UTF_8));
         }
+        out.write(Utilities.tabCode);
         if (location != null) {
-          writeLine(out, "Location", location);
+          out.write(location.getBytes(StandardCharsets.UTF_8));
         }
+        out.write(Utilities.tabCode);
         if (createTime != 0) {
           String createTimeStr = CalendarUtils.formatTimestamp((long) 
createTime * 1000, true);
-          writeLine(out, "CreateTime", createTimeStr);
+          out.write(createTimeStr.getBytes(StandardCharsets.UTF_8));

Review Comment:
   i don't see creation timestamp in any of new output samples. is the 
`createTime` set to 0?



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