Skip to content

Commit 5ba4433

Browse files
authored
Check output table attrs in dq/hybrid tests (#20532)
1 parent 5367fd8 commit 5ba4433

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

ydb/library/yql/tests/sql/dq_file.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,12 @@ def run_test(suite, case, cfg, tmpdir, what, yql_http_file_server):
9999
'%(dq_result_name)s table:\n %(dq_table_yson)s\n\n' \
100100
'%(yqlrun_result_name)s table:\n %(yqlrun_table_yson)s\n' % locals()
101101

102+
yqlrun_table_attr = yqlrun_tables_res[table].attr
103+
dq_table_attr = tables_res[table].attr
104+
assert yqlrun_table_attr == dq_table_attr, \
105+
'OUT_TABLE_ATTR_DIFFER: %(table)s\n' \
106+
'%(dq_result_name)s table attrs:\n %(dq_table_attr)s\n\n' \
107+
'%(yqlrun_result_name)s table attrs:\n %(yqlrun_table_attr)s\n' % locals()
108+
102109
else:
103110
assert False, "Unexpected test mode %(what)s"

ydb/library/yql/tests/sql/hybrid_file.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ def run_test(suite, case, cfg, tmpdir, what, yql_http_file_server):
7777
'%(hybrid_result_name)s table:\n %(hybrid_table_yson)s\n\n' \
7878
'%(yqlrun_result_name)s table:\n %(yqlrun_table_yson)s\n' % locals()
7979

80+
yqlrun_table_attr = yqlrun_tables_res[table].attr
81+
dq_table_attr = tables_res[table].attr
82+
assert yqlrun_table_attr == dq_table_attr, \
83+
'OUT_TABLE_ATTR_DIFFER: %(table)s\n' \
84+
'%(dq_result_name)s table attrs:\n %(dq_table_attr)s\n\n' \
85+
'%(yqlrun_result_name)s table attrs:\n %(yqlrun_table_attr)s\n' % locals()
86+
8087
else:
8188
assert False, "Unexpected test mode %(what)s"
8289

0 commit comments

Comments
 (0)