Skip to content

Commit d0f81a0

Browse files
authored
Merge b98eb67 into 208ff8d
2 parents 208ff8d + b98eb67 commit d0f81a0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import ydb.tests.olap.load.lib.upload as upload
22
from ydb.tests.functional.tpc.lib.conftest import FunctionalTestBase
3+
from ydb.tests.olap.lib.ydb_cluster import YdbCluster
34

45

56
class TestUploadTpchS1(upload.TestUploadTpch1, FunctionalTestBase):
67
@classmethod
78
def setup_class(cls) -> None:
9+
YdbCluster._tables_path = ''
810
cls.setup_cluster()
911
upload.TestUploadTpch1.setup_class()

ydb/tests/olap/load/lib/upload.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class UploadClusterBase(UploadSuiteBase):
7373
__gross_time = 0
7474

7575
@classmethod
76-
def __get_path(cls) -> str:
76+
def get_path(cls) -> str:
7777
pass
7878

7979
@classmethod
@@ -93,7 +93,7 @@ def __compaction_complete_for_table(self, table_full_path: str) -> bool:
9393
return result.result_set.rows[0][0] == 0
9494

9595
def __compaction_complete(self) -> bool:
96-
for table in YdbCluster.get_tables(self.__get_path()):
96+
for table in YdbCluster.get_tables(self.get_path()):
9797
if not self.__compaction_complete_for_table(table):
9898
return False
9999
return True
@@ -102,7 +102,7 @@ def __get_tables_size_bytes(self) -> tuple[int, int]:
102102
sth = ScenarioTestHelper(None)
103103
raw_bytes = 0
104104
bytes = 0
105-
for table in YdbCluster.get_tables(self.__get_path()):
105+
for table in YdbCluster.get_tables(self.get_path()):
106106
table_raw_bytes, table_bytes = sth.get_volumes_columns(table, '')
107107
raw_bytes += table_raw_bytes
108108
bytes += table_bytes
@@ -147,14 +147,14 @@ def save_result_additional_info(self, result: YdbCliHelper.WorkloadRunResult):
147147

148148
class UploadTpchBase(UploadClusterBase):
149149
@classmethod
150-
def __get_path(cls):
150+
def get_path(cls):
151151
return f'upload/tpch/s{cls.scale}'
152152

153153
def init(self):
154-
yatest.common.execute(YdbCliHelper.get_cli_command() + ['workload', 'tpch', '-p', YdbCluster.get_tables_path(self.__get_path()), 'init', '--store=column'])
154+
yatest.common.execute(YdbCliHelper.get_cli_command() + ['workload', 'tpch', '-p', YdbCluster.get_tables_path(self.get_path()), 'init', '--store=column'])
155155

156156
def import_data(self):
157-
yatest.common.execute(YdbCliHelper.get_cli_command() + ['workload', 'tpch', '-p', YdbCluster.get_tables_path(self.__get_path()), 'import', 'generator', '--scale', str(self.scale)])
157+
yatest.common.execute(YdbCliHelper.get_cli_command() + ['workload', 'tpch', '-p', YdbCluster.get_tables_path(self.get_path()), 'import', 'generator', '--scale', str(self.scale)])
158158

159159

160160
class TestUploadTpch1(UploadTpchBase):

0 commit comments

Comments
 (0)