Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.2.x and SQLAlchemy 1.4.x - TypeError: expected bytes, str found #350

Open
martingstall-db1 opened this issue Nov 8, 2024 · 0 comments

Comments

@martingstall-db1
Copy link

Trying to upgrade SQLAlchemy 1.3 to 1.4 and we're getting this error on a previously working query around XX.all()

clickhouse-driver==0.2.9
clickhouse-sqlalchemy==0.2.7

/python/lib/python3.9/site-packages/sqlalchemy/engine/result.py:1129: in all
return self._allrows()
/python/lib/python3.9/site-packages/sqlalchemy/engine/result.py:401: in _allrows
rows = self._fetchall_impl()
/python/lib/python3.9/site-packages/sqlalchemy/engine/result.py:1813: in _fetchall_impl
return list(self.iterator)
/python/lib/python3.9/site-packages/sqlalchemy/orm/loading.py:147: in chunks
fetch = cursor._raw_all_rows()
/python/lib/python3.9/site-packages/sqlalchemy/engine/result.py:393: in _raw_all_rows
return [make_row(row) for row in rows]

.0 = <list_iterator object at 0xffff82dd2eb0>

return [make_row(row) for row in rows]
E TypeError: expected bytes, str found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant