IMPALA-6615: CTE query in Impala shell does not show query web links

This patch is to show query submitted and query progress web links in
Impala shell for CTE queries.

Testing:
- Ran end-to-end shell tests

Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Reviewed-on: http://gerrit.cloudera.org:8080/9537
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Impala Public Jenkins
This commit is contained in:
Fredy wijaya
2018-03-07 13:11:18 -08:00
committed by Impala Public Jenkins
parent b50aaff399
commit 2186c692ee
2 changed files with 8 additions and 2 deletions

View File

@@ -1128,7 +1128,7 @@ class ImpalaShell(object, cmd.Cmd):
is_dml = False
tokens = list(lexer)
if filter(self.DML_REGEX.match, tokens): is_dml = True
return self._execute_stmt(query, is_dml=is_dml)
return self._execute_stmt(query, is_dml=is_dml, print_web_link=True)
def do_use(self, args):
"""Executes a USE... query"""