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

TypeError: unhashable type: 'list' #205

Open
igor-kremin opened this issue Jun 19, 2024 · 0 comments
Open

TypeError: unhashable type: 'list' #205

igor-kremin opened this issue Jun 19, 2024 · 0 comments

Comments

@igor-kremin
Copy link

in tableprocessor.py
for db in res:
if not res[db]:
# no tables in db, try to add all tables from DB
tables = self.tables_list(db)
res[db].add(tables)
logging.debug("add {} tables to {} db".format(tables, db))
replace to line
res[db].add(tables) => res[db].update(tables)
as self.tables_list(db) returns list object

=============
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/clickhouse_mysql/main.py", line 134, in run
migrator.migrate_all_tables(self.config.is_dst_create_table())
File "/usr/local/lib/python3.12/site-packages/clickhouse_mysql/tablemigrator.py", line 127, in migrate_all_tables
dbs = self.dbs_tables_lists()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/clickhouse_mysql/tableprocessor.py", line 92, in dbs_tables_lists
res[db].add(tables)
TypeError: unhashable type: 'list'

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