[ZEPPELIN-1982] When using the 'Select * ...' statement doesn't show the response In %sql interpreter

This commit is contained in:
Chin Tzulin 2017-01-25 14:34:28 +09:00 committed by Jeff Zhang
parent 7486ce15af
commit 043b03baaf
2 changed files with 4 additions and 2 deletions

View file

@ -293,7 +293,9 @@ public class ZeppelinContext {
}
if (rows.length > maxResult) {
msg.append("\n<font color=red>Results are limited by " + maxResult + ".</font>");
msg.append("<!--TABLE_COMMENT-->");
msg.append("\n");
msg.append("<font color=red>Results are limited by " + maxResult + ".</font>");
}
sc.clearJobGroup();
return msg.toString();

View file

@ -42,7 +42,7 @@ export default class TableData {
continue;
}
if (textRow === '') {
if (textRow === '<!--TABLE_COMMENT-->') {
if (rows.length > 0) {
commentRow = true;
}