Ignore non-`.parquet` (suffixed) paths for now during tsdb fs-indexing

fix_deribit_hist_queries
Nelson Torres 2025-01-29 23:50:27 +00:00
parent 77b56c5001
commit 149e03813a
1 changed files with 6 additions and 1 deletions

View File

@ -161,7 +161,12 @@ class NativeStorageClient:
def index_files(self): def index_files(self):
for path in self._datadir.iterdir(): for path in self._datadir.iterdir():
if path.name in {'borked', 'expired',}: if (
path.name in {'borked', 'expired',}
or
'.parquet' not in str(path)
):
# ignore all non-apache files (for now)
continue continue
key: str = path.name.rstrip('.parquet') key: str = path.name.rstrip('.parquet')