ch-backup
ch-backup copied to clipboard
Bugfix: order parts after backup for ReplacingMergeTree
Test that reproduce problem was added.
When we execute query on clickhouse02 # tests/integration/steps/clickhouse.py:106 0.006s
"""
SELECT id, visits FROM test_db.hits FINAL ORDER BY id FORMAT Vertical;
"""
Then we get response # tests/integration/steps/clickhouse.py:132 0.000s
"""
Row 1:
──────
id: 1
visits: 106
"""
Assertion Failed:
Expected: 'Row 1:\n──────\nid: 1\nvisits: 106'
but: was 'Row 1:\n──────\nid: 1\nvisits: 105'