Repository: ibis-project/ibis

Issue:
Conflicts with clickhouse-driver 0.1.2
First it raises an error requesting tzlocal. after install tzlocal it raises the follow error:

```
Traceback (most recent call last):
  File "/ibis/ci/datamgr.py", line 625, in <module>
    cli(auto_envvar_prefix='IBIS_TEST')
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/ibis/ci/datamgr.py", line 477, in clickhouse
    insert(engine, table, df)
  File "/ibis/ci/datamgr.py", line 125, in insert
    engine.execute(t.insert(), rows)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2179, in execute
    return connection.execute(statement, *multiparams, **params)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute
    return meth(self, multiparams, params)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
    distilled_params,
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1253, in _execute_context
    e, statement, parameters, cursor, context
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1475, in _handle_dbapi_exception
    util.reraise(*exc_info)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 153, in reraise
    raise value
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1229, in _execute_context
    cursor, statement, parameters, context
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/clickhouse_sqlalchemy/drivers/base.py", line 586, in do_executemany
    cursor.executemany(statement, parameters, context=context)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/clickhouse_sqlalchemy/drivers/native/connector.py", line 171, in executemany
    self._process_response(response, context)
  File "/opt/conda/envs/ibis-env/lib/python3.6/site-packages/clickhouse_sqlalchemy/drivers/native/connector.py", line 241, in _process_response
    rows, columns_with_types = response
TypeError: 'int' object is not iterable
```

with clickhouse-driver 0.1.1 works fine.


Discussion:

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,10 @@
     omniscidb_requires = ['pymapd>=0.12.0']
 kerberos_requires = ['requests-kerberos']
 visualization_requires = ['graphviz']
-clickhouse_requires = ['clickhouse-driver>=0.0.8', 'clickhouse-cityhash']
+clickhouse_requires = [
+    'clickhouse-driver>=0.0.8,<0.1.2',
+    'clickhouse-cityhash',
+]
 bigquery_requires = ['google-cloud-bigquery>=1.0.0', 'pydata-google-auth']
 hdf5_requires = ['tables>=3.0.0']
 


Test patch: