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

Method send_cmd

tests/shell/util.py:282–288  ·  view source on GitHub ↗

Send a single command to the shell. This method adds the end-of-query terminator (';').

(self, cmd)

Source from the content-addressed store, hash-verified

280 return self.shell_process.pid
281
282 def send_cmd(self, cmd):
283 """Send a single command to the shell. This method adds the end-of-query
284 terminator (';'). """
285 self.shell_process.stdin.write("%s;\n" % cmd)
286 self.shell_process.stdin.flush()
287 # Allow fluent-style chaining of commands
288 return self
289
290 def wait_for_query_start(self):
291 """If this shell was started with the '-q' option, this mathod will block until the

Calls 2

writeMethod · 0.45
flushMethod · 0.45