MCPcopy Create free account
hub / github.com/apache/impala / _build_query_string

Method _build_query_string

shell/impala_shell/impala_shell.py:477–483  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 13

do_alterMethod · 0.95
do_createMethod · 0.95
do_dropMethod · 0.95
do_loadMethod · 0.95
do_selectMethod · 0.95
do_computeMethod · 0.95
do_valuesMethod · 0.95
do_withMethod · 0.95
do_useMethod · 0.95
do_showMethod · 0.95
__do_describeMethod · 0.95
__do_dmlMethod · 0.95

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected