-
Notifications
You must be signed in to change notification settings - Fork 88
Add TsFileLastReader for retrieving last points in a TsFile #498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #498 +/- ##
===========================================
+ Coverage 65.71% 65.78% +0.06%
===========================================
Files 565 566 +1
Lines 33062 33291 +229
Branches 4611 4651 +40
===========================================
+ Hits 21728 21899 +171
- Misses 10684 10742 +58
Partials 650 650 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| return new MeasurementSchema(measurementUid, tsDataType, encoding, compressionType); | ||
| } | ||
|
|
||
| public TSEncoding getEncoding() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is not used and it may lead to the wrong way of using it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
| TsPrimitiveType.getByType(seriesMeta.getTsDataType(), | ||
| seriesMeta.getStatistics().getLastValue()))); | ||
| } else { | ||
| ChunkMetadata chunkMetadata = (ChunkMetadata) seriesMeta.getChunkMetadataList() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last chunk could be an empty chunk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
(cherry picked from commit 40105d1)
As the title declares