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


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/create/show/ShowCreateTableOperation.java:
##########
@@ -74,4 +74,39 @@ public int execute() throws HiveException {
       throw new HiveException(e);
     }
   }
+
+  private static String escapeSqlTabs(String sql) {
+    if (sql == null || sql.indexOf('\t') < 0) {
+      return sql;
+    }
+    StringBuilder result = new StringBuilder(sql.length());
+    char quote = 0;
+    for (int i = 0; i < sql.length(); i++) {
+      char c = sql.charAt(i);
+      if (quote == 0) { // outside string literal
+        if (c == '\'' || c == '"') {

Review Comment:
   I think hive supports ` as well, can u validate if it works with backtics



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