diff --git a/python/pylibcudf/pylibcudf/interop.pyx b/python/pylibcudf/pylibcudf/interop.pyx index f7fa3b69e9d..7a102cf0c88 100644 --- a/python/pylibcudf/pylibcudf/interop.pyx +++ b/python/pylibcudf/pylibcudf/interop.pyx @@ -285,12 +285,7 @@ def _table_to_schema(Table tbl, metadata): if metadata is None: metadata = [_maybe_create_nested_column_metadata(col) for col in tbl.columns()] else: - metadata = [ - _maybe_create_nested_column_metadata(m) - if isinstance(m, str) - else m - for m in metadata - ] + metadata = [ColumnMetadata(m) if isinstance(m, str) else m for m in metadata] cdef vector[column_metadata] c_metadata c_metadata.reserve(len(metadata))