From 7bca07f63709738532bb28e7044d431b5e20775b Mon Sep 17 00:00:00 2001 From: Steven Yeung Date: Fri, 25 Feb 2022 18:06:51 +0800 Subject: [PATCH] fix: Use block.get_rows() instead of block.rows clickhouse-driver 0.1.3 removed @property rows. --- aioch/result.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aioch/result.py b/aioch/result.py index a5b9344..52417fd 100644 --- a/aioch/result.py +++ b/aioch/result.py @@ -24,7 +24,7 @@ def store(self, packet): return # Header block contains no rows. Pick columns from it. - if block.rows: + if block.get_rows(): if self.columnar: columns = block.get_columns() if self.data: diff --git a/setup.py b/setup.py index cd2c01f..3d67f9d 100644 --- a/setup.py +++ b/setup.py @@ -83,7 +83,7 @@ def read_version(): packages=['aioch'], install_requires=[ - 'clickhouse-driver>=0.1.2' + 'clickhouse-driver>=0.1.3' ], test_suite='nose.collector', tests_require=[