Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Indexed
TsFileDataFramereads currently retain every prepared series until the runtime closes and use a fixed descriptor-cache capacity. Applications cannot set these cache limits through the public constructor.This adds keyword-only
max_prepared_series,descriptor_cache_size,max_open_files,query_workers, andquery_parallel_min_rowsoptions foruse_index=True. Explicit arguments override the correspondingTSFILE_DATAFRAME_*environment variables, followed by built-in defaults. Options are validated before opening dataset resources and fixed for each runtime; subsets share their parent's configuration.Prepared-series metadata now uses an LRU cache with a default capacity of 4096. Query leases and dependency tracking protect active handles and shared aligned-time metadata during eviction. Closing the cache waits for preparation, active queries, and native-handle cleanup. Cache capacities of zero disable retention; active queries can temporarily exceed the configured entry limit.
The English and Chinese README sections document the options, defaults, indexed-mode requirement, and per-runtime resource semantics.
Validation
rc/2.5.0on macOS arm64 with Python 3.12.PYTHONPATH=. python -m pytest tests/test_dataset_read_options.py tests/test_dataset_index.py tests/test_tsfile_dataset.py -q: 193 passed, including 53 new cases for configuration precedence, validation, small/disabled caches, aligned reads, concurrent access, and shutdown races.git diff --checkpassed.