summaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/sql2yql/test_sql_negative.py
diff options
context:
space:
mode:
authorvitya-smirnov <[email protected]>2025-09-03 16:23:37 +0300
committervitya-smirnov <[email protected]>2025-09-03 16:53:40 +0300
commit1a6fddffd17953f4ed4d20de9fdd5c010166acd1 (patch)
tree1f90d4097dccbfa041bc9ef3ce695e75f51a3ed3 /yql/essentials/tests/sql/sql2yql/test_sql_negative.py
parentdb0b30ed142b14352bba1fb6e67768928da20d49 (diff)
YQL-20189: Track warnings as errors
There was an issue that a query with warnings as errors passed translation. commit_hash:890d18853380b5ad669e9684553cdb6991827cff
Diffstat (limited to 'yql/essentials/tests/sql/sql2yql/test_sql_negative.py')
-rw-r--r--yql/essentials/tests/sql/sql2yql/test_sql_negative.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yql/essentials/tests/sql/sql2yql/test_sql_negative.py b/yql/essentials/tests/sql/sql2yql/test_sql_negative.py
index 8f8ac58361b..208d76ea636 100644
--- a/yql/essentials/tests/sql/sql2yql/test_sql_negative.py
+++ b/yql/essentials/tests/sql/sql2yql/test_sql_negative.py
@@ -3,7 +3,7 @@ import pytest
import yatest.common
from yql_utils import get_supported_providers, get_param
-from test_utils import pytest_generate_tests_for_run, get_config, SQLRUN_PATH
+from test_utils import pytest_generate_tests_for_run, get_config, SQLRUN_PATH, SQL_FLAGS
NEGATIVE_TEMPLATE = '.sqlx'
DATA_PATH = yatest.common.source_path('yql/essentials/tests/sql/suites')
@@ -27,6 +27,10 @@ def run_sql2yql(program_sql, out_dir, err_file_path):
'--syntax-version=1',
'/dev/stdin',
]
+
+ if SQL_FLAGS:
+ cmd_sql.append('--flags=%s' % ','.join(SQL_FLAGS))
+
with open(program_sql) as f:
sql_res = yatest.common.process.execute(cmd_sql, check_exit_code=False, stdin=f, env={'YQL_DETERMINISTIC_MODE': '1'})