-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: display correct record number for records having too many fields #127
Conversation
WalkthroughThe changes update how CSV reading is configured and validated. Test files modify the instantiation of the Changes
Sequence Diagram(s)sequenceDiagram
participant T as Test
participant RP as RecordParser
participant CP as CsvProfile
participant DR as CsvDataReader
T->>RP: Instantiate RecordParser with updated CsvProfile parameters
RP->>CP: Configure with (delimiter, double quote, escape, recordSeparator, etc.)
T->>DR: Initiate CSV read process
DR->>RP: Parse CSV record
RP-->>CP: Apply CSV configuration
DR->>DR: Check field count and detect unexpected fields
DR->>T: Throw exception with adjusted row count in error message
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
👮 Files not reviewed due to content moderation or server errors (3)
🔇 Additional comments (21)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #127 +/- ##
==========================================
+ Coverage 79.44% 79.77% +0.32%
==========================================
Files 68 68
Lines 1703 1691 -12
Branches 326 326
==========================================
- Hits 1353 1349 -4
+ Misses 230 222 -8
Partials 120 120 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Bug Fixes
Refactor