summaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/common/test_framework/test_file_common.py
diff options
context:
space:
mode:
authorvvvv <[email protected]>2025-04-17 20:30:53 +0300
committervvvv <[email protected]>2025-04-17 20:45:47 +0300
commit0a8e48ae59cc09eb277be603227998ee075b80b4 (patch)
tree6b1f4582bd4893996f4538b14beb648bcb964fde /yql/essentials/tests/common/test_framework/test_file_common.py
parent7d1f3b52f8aac55aac0df0556f91ce54e949d454 (diff)
YQL-19864 sql flag + test with explicit flag & by version
commit_hash:902cfa0c1b574c1addb5df96a4b38c792ae82258
Diffstat (limited to 'yql/essentials/tests/common/test_framework/test_file_common.py')
-rw-r--r--yql/essentials/tests/common/test_framework/test_file_common.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/yql/essentials/tests/common/test_framework/test_file_common.py b/yql/essentials/tests/common/test_framework/test_file_common.py
index 240182e0056..9c91f8a1671 100644
--- a/yql/essentials/tests/common/test_framework/test_file_common.py
+++ b/yql/essentials/tests/common/test_framework/test_file_common.py
@@ -88,7 +88,7 @@ def get_sql_query(provider, suite, case, config, data_path=None, template='.sql'
def run_file_no_cache(provider, suite, case, cfg, config, yql_http_file_server,
yqlrun_binary=None, extra_args=[], force_blocks=False, allow_llvm=True, data_path=None,
- run_sql=True, cfg_postprocess=None):
+ run_sql=True, cfg_postprocess=None, langver=None):
check_provider(provider, config)
sql_query = get_sql_query(provider, suite, case, config, data_path, template='.sql' if run_sql else '.yqls')
@@ -119,7 +119,8 @@ def run_file_no_cache(provider, suite, case, cfg, config, yql_http_file_server,
gateway_config=get_gateways_config(http_files, yql_http_file_server, force_blocks=force_blocks, is_hybrid=is_hybrid(provider), allow_llvm=allow_llvm,
postprocess_func=cfg_postprocess),
extra_args=extra_args,
- udfs_dir=yql_binary_path('yql/essentials/tests/common/test_framework/udfs_deps')
+ udfs_dir=yql_binary_path('yql/essentials/tests/common/test_framework/udfs_deps'),
+ langver=langver
)
res, tables_res = execute(
@@ -156,12 +157,14 @@ def run_file_no_cache(provider, suite, case, cfg, config, yql_http_file_server,
def run_file(provider, suite, case, cfg, config, yql_http_file_server, yqlrun_binary=None,
- extra_args=[], force_blocks=False, allow_llvm=True, data_path=None, run_sql=True, cfg_postprocess=None):
+ extra_args=[], force_blocks=False, allow_llvm=True, data_path=None, run_sql=True,
+ cfg_postprocess=None, langver=None):
if (suite, case, cfg) not in run_file.cache:
run_file.cache[(suite, case, cfg)] = \
run_file_no_cache(provider, suite, case, cfg, config, yql_http_file_server,
yqlrun_binary, extra_args, force_blocks=force_blocks, allow_llvm=allow_llvm,
- data_path=data_path, run_sql=run_sql, cfg_postprocess=cfg_postprocess)
+ data_path=data_path, run_sql=run_sql, cfg_postprocess=cfg_postprocess,
+ langver=langver)
return run_file.cache[(suite, case, cfg)]