Feature/tsfile dataframe runtime - #911
Open
ColinLeeo wants to merge 2 commits into
Open
Conversation
ColinLeeo
force-pushed
the
feature/tsfile-dataframe-runtime
branch
3 times, most recently
from
August 19, 2026 11:50
9d69427 to
279c351
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #911 +/- ##
===========================================
+ Coverage 61.21% 61.24% +0.02%
===========================================
Files 740 746 +6
Lines 50571 51533 +962
Branches 8141 8341 +200
===========================================
+ Hits 30959 31562 +603
- Misses 18125 18356 +231
- Partials 1487 1615 +128 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ColinLeeo
force-pushed
the
feature/tsfile-dataframe-runtime
branch
2 times, most recently
from
August 19, 2026 16:00
5571775 to
ad746dc
Compare
ColinLeeo
force-pushed
the
feature/tsfile-dataframe-runtime
branch
3 times, most recently
from
August 20, 2026 06:19
4b409cb to
f3f84d7
Compare
ColinLeeo
force-pushed
the
feature/tsfile-dataframe-runtime
branch
from
August 20, 2026 06:52
f3f84d7 to
3cb8342
Compare
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.
TsFileDataFrame Runtime
Problem
When querying a dataset containing multiple TsFiles, the previous path repeatedly opened files, scanned metadata, and assembled results in Python. Query latency and process memory therefore increased with the number of files. Dataset-level schema validation and file-change detection were also incomplete, which could lead to incorrect merges or reads from stale files.
This PR introduces a persistent Dataset Index and a process-local Runtime. Dataset-level routing, schema information, and file generations are materialized once, while multiple processes can share the read-only index pages through mmap.
Core mechanisms
Persistent Dataset Index
SeriesLocatoridentifies the corresponding series metadata in a TsFile. The standard TsFile Reader remains responsible for parsingChunkMeta.TableSchemadefinitions, and timestamp uniqueness.Process-local Runtime
Query and Python integration
_mergeextension no longer links against C++libtsfile, avoiding dynamic-library lookup issues from the subpackage directory.Wheel packaging
Linux, macOS, and Windows wheel builds use bundled C++ dependencies:
This prevents macOS wheels from including Homebrew libraries with an incompatible deployment target and prevents Windows wheels from missing LZ4, LZMA, or zlib runtime dependencies.
Compatibility
TableSchemadefinitions are not silently merged by field union; they are kept as distinct schema variants or reported as conflicts.Validation
760 passed, 1 skipped196 passedgit diff --check: passed