connector(filesystem): Refactor and bundle readers and implementations - #160
Conversation
|
@coderabbitai review |
✅ Action performedReview finished.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #160 +/- ##
==========================================
+ Coverage 51.89% 51.93% +0.03%
==========================================
Files 193 197 +4
Lines 9139 9145 +6
==========================================
+ Hits 4743 4749 +6
Misses 4396 4396 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
WalkthroughFilesystem source code is reorganized: reader-resolution logic and path utilities move from adapter.py, model.py, and router.py into new format/registry.py, format/settings.py, impl/core.py, and impl/util.py modules. Import paths across api.py, local.py, remote.py, and tests are updated accordingly. ChangesFilesystem module restructuring
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant LocalFilesystemSource
participant GCSSource
participant core as impl.core.resource_for_reader
participant readers as filesystem.readers
LocalFilesystemSource->>core: resource_for_reader(bucket_url, credentials, file_glob, reader_name, column_types)
GCSSource->>core: resource_for_reader(bucket_url, credentials, file_glob, reader_name, column_types)
alt reader_name == read_csv_headless
core->>core: build read_csv_headless_with_cols transformer
else other reader_name
core->>readers: readers(bucket_url, credentials, file_glob).with_resources(reader_name)
end
core-->>LocalFilesystemSource: configured resource
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
About
Group all ingredients related to filesystem format readers and filesystem implementations. Continue to discriminate between "local" and "remote" filesystems.
References