harbor run -t openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0147harbor download openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0147Task: Implement an in-memory, test-oriented helpers.cluster API
Goal Create a Python package (or module) named helpers (located under /app/helpers/ or as /app/helpers.py) that provides a simulated ClickHouseCluster and Node objects used by the provided pytest code. The implementation must be self-contained, deterministic, and capable of executing the subset of SQL commands used in the tests, producing the expected results without requiring real Docker containers or a real ClickHouse server.
What to implement
Public API and signatures
class ClickHouseCluster:
class Node:
Behavior and data model (for the simulated cluster)
SQL parsing rules (subset used by tests)
Implementation notes and constraints
Deliverable
This implementation will enable the provided pytest code to run against a self-contained, simulated ClickHouse cluster without external dependencies.