-
Notifications
You must be signed in to change notification settings - Fork 83
refactor!: rename ScanData
to ScanMetadata
#817
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 @@
## main #817 +/- ##
==========================================
+ Coverage 84.87% 84.89% +0.02%
==========================================
Files 83 83
Lines 20311 20316 +5
Branches 20311 20316 +5
==========================================
+ Hits 17239 17248 +9
+ Misses 2221 2219 -2
+ Partials 851 849 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ScanData
to ScanFiles
ScanData
to ScanMetadata
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.
nice. Just a few more places where we call this "scan data":
kernel/tests/golden_tables.rs
276: let mut scan_metadata = scan.scan_metadata(&engine).expect("scan data");
292: let scan_metadata: Vec<_> = scan.scan_metadata(&engine).expect("scan data").collect();
kernel/src/table_changes/scan_file.rs
81:/// for res in scan_metadata { // scan data table_changes_scan.scan_metadata()
kernel/src/table_changes/scan.rs
183: /// deletion vectors present in the commit. The engine data in each scan data is guaranteed
ffi/src/scan.rs
178:/// Call the provided `engine_visitor` on the next scan data item. The visitor will be provided with
kernel/src/table_changes/log_replay.rs
30:/// Scan data for a Change Data Feed query. This holds metadata that is needed to read data rows.
ffi/examples/read-table/read_table.c
86:// For each chunk of scan data (which may contain multiple files to scan), kernel will call this
297: print_error("Failed to construct scan data iterator.", (Error*)data_iter_res.err);
304: print_diag("\nIterating scan data\n");
311: print_error("Failed to iterate scan data.", (Error*)ok_res.err);
315: print_diag("Scan data iterator done\n");
kernel/src/scan/state.rs
155:/// for res in scan_metadata { // scan data from scan.scan_metadata()
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.
looks good, found some neglected architecture doc that i had no idea existed
delta-kernel-rs/doc/architecture.md
Line 89 in 8961e97
ScanFileIterator --> ScanDataIterator |
What changes are proposed in this pull request?
Rename
ScanData
toScanMetadata
andScan::scan_data
toScan::scan_metadata
(and corresponding FFI). Additionally, renamesTableChangesScanData
toTableChangesScanMetadata
. Additional docs/refactor coming in #768This PR affects the following public APIs
breaking changes:
ScanData
toScanMetadata
Scan::scan_data()
toScan::scan_metadata()
free_kernel_scan_data()
tofree_scan_metadata_iter()
kernel_scan_data_next()
toscan_metadata_next()
visit_scan_data()
tovisit_scan_metadata()
kernel_scan_data_init()
toscan_metadata_iter_init()
KernelScanDataIterator
toScanMetadataIterator
SharedScanDataIterator
toSharedScanMetadataIterator
How was this change tested?
existing
resolves #816