We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a28d906 commit b9fc3b7Copy full SHA for b9fc3b7
fsspec/parquet.py
@@ -595,9 +595,4 @@ def _parquet_byte_ranges(
595
596
597
def _cmp(name, column_set):
598
- lname = len(name)
599
- return any(
600
- (len(_) >= lname and all(a == b for a, b in zip(name, _)))
601
- or (len(_) < lname and all(a == b for a, b in zip(_, name)))
602
- for _ in column_set
603
- )
+ return any(all(a == b for a, b in zip(name, _)) for _ in column_set)
0 commit comments