@@ -73,7 +73,7 @@ class UploadClusterBase(UploadSuiteBase):
73
73
__gross_time = 0
74
74
75
75
@classmethod
76
- def __get_path (cls ) -> str :
76
+ def get_path (cls ) -> str :
77
77
pass
78
78
79
79
@classmethod
@@ -93,7 +93,7 @@ def __compaction_complete_for_table(self, table_full_path: str) -> bool:
93
93
return result .result_set .rows [0 ][0 ] == 0
94
94
95
95
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 ()):
97
97
if not self .__compaction_complete_for_table (table ):
98
98
return False
99
99
return True
@@ -102,7 +102,7 @@ def __get_tables_size_bytes(self) -> tuple[int, int]:
102
102
sth = ScenarioTestHelper (None )
103
103
raw_bytes = 0
104
104
bytes = 0
105
- for table in YdbCluster .get_tables (self .__get_path ()):
105
+ for table in YdbCluster .get_tables (self .get_path ()):
106
106
table_raw_bytes , table_bytes = sth .get_volumes_columns (table , '' )
107
107
raw_bytes += table_raw_bytes
108
108
bytes += table_bytes
@@ -147,14 +147,14 @@ def save_result_additional_info(self, result: YdbCliHelper.WorkloadRunResult):
147
147
148
148
class UploadTpchBase (UploadClusterBase ):
149
149
@classmethod
150
- def __get_path (cls ):
150
+ def get_path (cls ):
151
151
return f'upload/tpch/s{ cls .scale } '
152
152
153
153
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' ])
155
155
156
156
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 )])
158
158
159
159
160
160
class TestUploadTpch1 (UploadTpchBase ):
0 commit comments