mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
IMPALA-11233: Unset all query option
When using jdbc connection pool, a connection set some query options, after query finished, connection is closed and put back to the connection pool. When connection used again, the last query option also come into effect. We need a feature that a set statement can reset all query option without recreating a new connection. Support UNSET statements in SQL dialect. UNSET ALL can unset all query option. Testing: - add unset all query option in test_hs2.py Change-Id: Iabf23622daab733ddab20dd3ca73af6c9bd5c250 Reviewed-on: http://gerrit.cloudera.org:8080/18430 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
f19f21def9
commit
f5fc085733
@@ -700,6 +700,16 @@ class TestImpalaShellInteractive(ImpalaTestSuite):
|
||||
# Verify that query options under [impala] override those under [impala.query_options]
|
||||
assert "\tDEFAULT_FILE_FORMAT: avro" in result.stdout
|
||||
|
||||
# unset all query options
|
||||
cmds = "unset all;set all;"
|
||||
result = run_impala_shell_interactive(vector, cmds, shell_args=args)
|
||||
assert "\tMT_DOP: " in result.stdout
|
||||
assert "\tMAX_ERRORS: [100]" in result.stdout
|
||||
assert "\tEXPLAIN_LEVEL: [STANDARD]" in result.stdout
|
||||
assert "INVALID_QUERY_OPTION is not supported for the impalad being connected to, "\
|
||||
"ignoring." in result.stdout
|
||||
assert "\tDEFAULT_FILE_FORMAT: [TEXT]" in result.stdout
|
||||
|
||||
def test_commandline_flag_disable_live_progress(self, vector):
|
||||
"""Test the command line flag disable_live_progress with live_progress."""
|
||||
if vector.get_value('strict_hs2_protocol'):
|
||||
|
||||
Reference in New Issue
Block a user