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

Function execute_using_jdbc

tests/performance/query_exec_functions.py:186–192  ·  view source on GitHub ↗

Executes a query using JDBC

(query, query_config)

Source from the content-addressed store, hash-verified

184
185
186def execute_using_jdbc(query, query_config):
187 """Executes a query using JDBC"""
188 query_string = query.query_str + ';'
189 if query.db:
190 query_string = 'use %s; %s' % (query.db, query_string)
191 cmd = query_config.jdbc_client_cmd + " -q \"%s\"" % query_string
192 return run_query_capture_results(cmd, query)
193
194
195def parse_jdbc_query_results(stdout, query):

Callers 2

exec_with_jdbcMethod · 0.90

Calls 1

Tested by 2

exec_with_jdbcMethod · 0.72