Called to build a query string based on the parts output by parseline(): the leading comment, the command name and the arguments to the command.
(self, leading_comment, cmd, args)
| 475 | print("\t%s: %s" % (x, self.__dict__[self.VALID_SHELL_OPTIONS[x][1]])) |
| 476 | |
| 477 | def _build_query_string(self, leading_comment, cmd, args): |
| 478 | """Called to build a query string based on the parts output by parseline(): |
| 479 | the leading comment, the command name and the arguments to the command.""" |
| 480 | # In order to deduce the correct cmd, parseline stripped the leading comment. |
| 481 | # To preserve the original query, the leading comment (if exists) will be |
| 482 | # prepended when constructing the query sent to the Impala front-end. |
| 483 | return "{0}{1} {2}".format(leading_comment or '', cmd or '', args) |
| 484 | |
| 485 | def do_shell(self, args): |
| 486 | """Run a command on the shell |
no test coverage detected