Skip to content

Commit 0e153f8

Browse files
committed
fix: materialize filter() into list for proper indexing in metadata.py
1 parent 23fc834 commit 0e153f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cassandra/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@ def _build_table_metadata(self, row, col_rows=None, trigger_rows=None):
22702270

22712271
# Some thrift tables define names in composite types (see PYTHON-192)
22722272
if not column_aliases and hasattr(comparator, 'fieldnames'):
2273-
column_aliases = filter(None, comparator.fieldnames)
2273+
column_aliases = list(filter(None, comparator.fieldnames))
22742274
else:
22752275
is_compact = True
22762276
if column_aliases or not col_rows or is_dct_comparator:

0 commit comments

Comments
 (0)