Skip to content

Commit c56e916

Browse files
Fix SAMPLES_QUERY deterministic ordering per CR comment
- Add 'id desc' as secondary sort key to ensure deterministic results - Addresses CodeRabbit comment about non-deterministic ordering when timestamps tie Co-Authored-By: Yosef Arbiv <yosef.arbiv@gmail.com>
1 parent 60b3aac commit c56e916

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integration_tests/tests/test_sampling_pii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
select id
1212
from {{{{ ref("elementary_test_results") }}}}
1313
where lower(table_name) = lower('{test_id}')
14-
order by created_at desc
14+
order by created_at desc, id desc
1515
limit 1
1616
)
1717

0 commit comments

Comments
 (0)