IMPALA-7068: fix test_unsupported_text_compression table location
WAREHOUSE is defined as get_fs_path('/test-warehouse') so we
shouldn't run that through get_fs_path again. Instead, I copied
the TBL_LOCATION format from line 59.
Change-Id: I73f21866d5c2bd7d3f4a5110d4d088a718b56960
Reviewed-on: http://gerrit.cloudera.org:8080/10504
Reviewed-by: Tim Armstrong <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/5f202969
Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/5f202969
Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/5f202969
Branch: refs/heads/master
Commit: 5f20296921ebaef855c3b58c56a671fe508dcd37
Parents: bdad189
Author: Dan Hecht <[email protected]>
Authored: Thu May 24 13:21:39 2018 -0700
Committer: Impala Public Jenkins <[email protected]>
Committed: Fri May 25 00:03:55 2018 +0000
----------------------------------------------------------------------
tests/metadata/test_partition_metadata.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/impala/blob/5f202969/tests/metadata/test_partition_metadata.py
----------------------------------------------------------------------
diff --git a/tests/metadata/test_partition_metadata.py
b/tests/metadata/test_partition_metadata.py
index 99eff1e..e3cc2c1 100644
--- a/tests/metadata/test_partition_metadata.py
+++ b/tests/metadata/test_partition_metadata.py
@@ -165,8 +165,7 @@ class
TestPartitionMetadataUncompressedTextOnly(ImpalaTestSuite):
Should be able to query partitions with supported codecs."""
TBL_NAME = "multi_text_compression"
FQ_TBL_NAME = unique_database + "." + TBL_NAME
- TBL_LOCATION = get_fs_path(
- '{0}/{1}.db/{2}'.format(WAREHOUSE, unique_database, TBL_NAME))
+ TBL_LOCATION = '%s/%s.db/%s' % (WAREHOUSE, unique_database, TBL_NAME)
file_format = vector.get_value('table_format').file_format
# Clean up any existing data in the table directory.