IMPALA-14136: test_charcodec fails with Ozone

A regression for IMPALA-10319 for Ozone environment. A hardcoded
'/test-warehouse' in the path was causing some of the 'test_charcodec'
tests to fail. Turns out the 'makedir' part is not necessary.

Change-Id: If1f74b1ddc481a996d82843041f0f031580f14e5
Reviewed-on: http://gerrit.cloudera.org:8080/23004
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:
Mihaly Szjatinya
2025-06-10 16:19:03 +02:00
committed by Impala Public Jenkins
parent 8a93caf884
commit 2de7b8287d

View File

@@ -223,9 +223,7 @@ class TestCharCodecGen(ImpalaTestSuite):
part_url = os.path.join(
self._get_table_location("{0}.{1}".format(db, tbl_name), vector),
"part={}".format(i))
part_dir = part_url[part_url.index("/test-warehouse"):]
self.filesystem_client.make_dir(part_dir)
self.filesystem_client.copy_from_local(file_paths[i], part_dir)
self.filesystem_client.copy_from_local(file_paths[i], part_url)
self.execute_query("""REFRESH {}.{}""".format(db, tbl_name))
return tbl_name
@@ -309,9 +307,7 @@ class TestCharCodecGenMixed(ImpalaTestSuite):
part_url = os.path.join(
self._get_table_location("{0}.{1}".format(db, tbl_name), vector),
"part={}".format(i))
part_dir = part_url[part_url.index("/test-warehouse"):]
self.filesystem_client.make_dir(part_dir)
self.filesystem_client.copy_from_local(file_paths[i], part_dir)
self.filesystem_client.copy_from_local(file_paths[i], part_url)
self.execute_query("""REFRESH {}.{}""".format(db, tbl_name))
return tbl_name