@@ -172,7 +172,7 @@ def is_statement_definition(line):
172172 return line .startswith ("statement" )
173173
174174
175- def format_yql_statement (lines_or_statement , table_path_prefix ):
175+ def patch_yql_statement (lines_or_statement , table_path_prefix ):
176176 if not isinstance (lines_or_statement , list ):
177177 lines_or_statement = [lines_or_statement ]
178178 statement = "\n " .join (
@@ -255,7 +255,6 @@ def setup_class(cls):
255255 )
256256 cls .cluster .start ()
257257 cls .table_path_prefix = None
258- cls .table_path_prefix_ne = None
259258 cls .driver = ydb .Driver (ydb .DriverConfig (
260259 database = "/Root" ,
261260 endpoint = "%s:%s" % (cls .cluster .nodes [1 ].host , cls .cluster .nodes [1 ].port )))
@@ -279,7 +278,6 @@ def run_sql_suite(self, kind, *path_pieces):
279278 self .plan = (kind == 'plan' )
280279 self .query_id = itertools .count (start = 1 )
281280 self .table_path_prefix = "/Root/%s" % '_' .join (list (path_pieces ) + [kind ])
282- self .table_path_prefix_ne = self .table_path_prefix + "_ne"
283281 for parsed_statement in get_statements (get_source_path (* path_pieces ), os .path .join (* path_pieces )):
284282 self .assert_statement (parsed_statement )
285283 return self .files
@@ -418,7 +416,7 @@ def assert_statement_stream_query(self, statement):
418416 if self .plan :
419417 return
420418
421- yql_text = format_yql_statement (statement .text , self .table_path_prefix )
419+ yql_text = patch_yql_statement (statement .text , self .table_path_prefix )
422420 yql_text = "--!syntax_v1\n " + yql_text + "\n \n "
423421 result = self .execute_scan_query (yql_text )
424422 file_name = statement .suite_name .split ('/' )[1 ] + '.out'
@@ -445,7 +443,7 @@ def execute_ydb_ok(self, statement_text):
445443 self .execute_query (statement_text )
446444
447445 def explain (self , query ):
448- yql_text = format_yql_statement (query , self .table_path_prefix )
446+ yql_text = patch_yql_statement (query , self .table_path_prefix )
449447 # seems explain not working with query service ?
450448 """
451449 result_sets = self.pool.execute_with_retries(yql_text, exec_mode=ydb.query.base.QueryExecMode.EXPLAIN)
@@ -458,14 +456,12 @@ def explain(self, query):
458456 return self .legacy_pool .retry_operation_sync (lambda s : s .explain (yql_text )).query_plan
459457
460458 def execute_scheme (self , statement_text ):
461- yql_text = format_yql_statement (statement_text , self .table_path_prefix )
462- self .pool .execute_with_retries (yql_text )
463- yql_text = format_yql_statement (statement_text , self .table_path_prefix_ne )
459+ yql_text = patch_yql_statement (statement_text , self .table_path_prefix )
464460 self .pool .execute_with_retries (yql_text )
465461 return None
466462
467463 def execute_query (self , statement_text ):
468- yql_text = format_yql_statement (statement_text , self .table_path_prefix )
464+ yql_text = patch_yql_statement (statement_text , self .table_path_prefix )
469465 result = self .pool .execute_with_retries (yql_text )
470466
471467 if len (result ) == 1 :
0 commit comments