Skip to content
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

feat: Implement an unordered scanner for append mode #3598

Merged
merged 8 commits into from
Mar 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: update mermaid
  • Loading branch information
evenyag committed Mar 29, 2024
commit 368d7b85c44859f23c4c965d8e1804bb181ed680
17 changes: 14 additions & 3 deletions src/mito2/src/read/scan_region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ impl Scanner {
}
}

// TODO(yingwen): Update mermaid
#[cfg_attr(doc, aquamarine::aquamarine)]
/// Helper to scans a region by [ScanRequest].
///
Expand All @@ -104,15 +103,23 @@ impl Scanner {
/// class Scanner {
/// <<enumeration>>
/// SeqScan
/// UnorderedScan
/// +scan() SendableRecordBatchStream
/// }
/// class SeqScan {
/// -ScanInput input
/// +build() SendableRecordBatchStream
/// }
/// class UnorderedScan {
/// -ScanInput input
/// +build() SendableRecordBatchStream
/// }
/// class ScanInput {
/// -ProjectionMapper mapper
/// -Option~TimeRange~ time_range
/// -Option~Predicate~ predicate
/// -Vec~MemtableRef~ memtables
/// -Vec~FileHandle~ files
/// +build() SendableRecordBatchStream
/// }
/// class ProjectionMapper {
/// ~output_schema() SchemaRef
Expand All @@ -121,9 +128,13 @@ impl Scanner {
/// ScanRegion -- Scanner
/// ScanRegion o-- ScanRequest
/// Scanner o-- SeqScan
/// Scanner o-- UnorderedScan
/// SeqScan o-- ScanInput
/// UnorderedScan o-- ScanInput
/// Scanner -- SendableRecordBatchStream
/// SeqScan o-- ProjectionMapper
/// ScanInput o-- ProjectionMapper
/// SeqScan -- SendableRecordBatchStream
/// UnorderedScan -- SendableRecordBatchStream
/// ```
pub(crate) struct ScanRegion {
/// Version of the region at scan.
Expand Down