cyanzheng2926 commented on code in PR #6563:
URL: https://github.com/apache/hive/pull/6563#discussion_r3491162258


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/create/show/ShowCreateTableOperation.java:
##########
@@ -54,7 +54,7 @@ public int execute() throws HiveException {
       DDLPlanUtils ddlObj = new DDLPlanUtils();
       String command;
       if (table.isView()) {
-        command = ddlObj.getCreateViewCommand(table, desc.isRelative());
+        command = ddlObj.getCreateViewCommand(table, 
desc.isRelative()).replace("\t", "\\t");

Review Comment:
   Thanks for catching this, that makes sense. I'll update the fix and replace 
the <tab> with space for maintaining the correct syntax outside of string 
literals, and escape tabs with \t within the string literals for pattern 
matching. This should address the truncation without breaking syntax or pattern 
matching.



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