JingsongLi commented on code in PR #7007: URL: https://github.com/apache/paimon/pull/7007#discussion_r2681379469
########## paimon-python/pypaimon/catalog/rest/rest_token_file_io.py: ########## @@ -18,27 +18,38 @@ import logging import threading import time +from pathlib import Path from typing import Optional +import pyarrow +import pyarrow.fs +from pypaimon.common.options.config import CatalogOptions, OssOptions from pyarrow._fs import FileSystem from pypaimon.api.rest_api import RESTApi +from pypaimon.common.options import Options +from pypaimon.api.rest_util import RESTUtil from pypaimon.catalog.rest.rest_token import RESTToken from pypaimon.common.file_io import FileIO from pypaimon.common.identifier import Identifier -from pypaimon.common.options import Options -from pypaimon.common.options.config import CatalogOptions, OssOptions + +from cachetools import TTLCache class RESTTokenFileIO(FileIO): Review Comment: Maybe we should do a refactor? FileIO should be an interface. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
