Skip to content

Commit be0d69d

Browse files
authored
Better test result normalization YQL-17397 (#804)
1 parent 2c05227 commit be0d69d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ def normalize_res(res, sort):
5252
for data in r['Write']:
5353
if sort and 'Data' in data:
5454
data['Data'] = sorted(data['Data'])
55+
if 'Ref' in data:
56+
data['Ref'] = []
57+
data['Truncated'] = True
58+
if 'Data' in data and len(data['Data']) == 0:
59+
del data['Data']
60+
# return res # TODO: uncomment it in future
5561

5662
program_sql = os.path.join(DATA_PATH, suite, '%s.sql' % case)
5763
with codecs.open(program_sql, encoding='utf-8') as program_file_descr:

0 commit comments

Comments
 (0)