Skip to content

Commit e2eb473

Browse files
committed
Fix invalid recovery stage column name
Aliases cannot be referred to in WHERE clauses. Fixes #840
1 parent 54bbfb1 commit e2eb473

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Changelog
22

33
## Unreleased
4+
- Fixed a failing SQL statement during `ctk info cluster`
45

5-
## 2026/06/17 v0.0.49
6+
## 2026/06/17 v0.0.49
67
- Stopped leaking password to log output in `ctk cfr jobstats collect`.
78
Thanks, @hammerhead.
89
- Stopped failing `ctk cfr jobstats ui` when job statistics recordings are empty.

cratedb_toolkit/info/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ class Shards:
504504
COUNT(*) AS count
505505
FROM
506506
sys.shards
507-
WHERE recovery_stage != 'DONE'
507+
WHERE recovery['stage'] != 'DONE'
508508
GROUP BY table_name, schema_name, recovery_stage;
509509
""",
510510
description="Information about rebalancing progress.",

0 commit comments

Comments
 (0)