-
Notifications
You must be signed in to change notification settings - Fork 430
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
Fixed issue with SQLServerBulkCopy from CSV with setEscapeColumnDelimerts set to true #2575
Conversation
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerBulkCSVFileRecord.java
Outdated
Show resolved
Hide resolved
src/test/java/com/microsoft/sqlserver/jdbc/bulkCopy/BulkCopyCSVTest.java
Outdated
Show resolved
Hide resolved
Hi @machavan |
Yes, bulk Copy offers a significant performance advantage. Please refer: and Bulk Copy API for Batch Insert: https://learn.microsoft.com/en-us/sql/connect/jdbc/use-bulk-copy-api-batch-insert-operation?view=sql-server-ver16 |
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.
see comment re test cleanup
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerBulkCSVFileRecord.java
Outdated
Show resolved
Hide resolved
Hi @machavan can you please let us know when this will be available for us to consume also whats the plan will this fix be available with the next version release? if so can you please let us know when is that planned also will it be a minor version upgrade or a major version upgrade? |
Hi @machavan can you please provide clarification for the concern I have mentioned in the previous comment or provide any ETA for the same? |
We will look to include this fix in the next release, will update you shortly on the timeline for the same. |
6adfc61
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2575 +/- ##
============================================
+ Coverage 51.22% 51.24% +0.02%
- Complexity 3953 3968 +15
============================================
Files 147 147
Lines 33657 33657
Branches 5624 5624
============================================
+ Hits 17241 17248 +7
- Misses 13999 14003 +4
+ Partials 2417 2406 -11 ☔ View full report in Codecov by Sentry. |
ADO tests passed for this PR. |
Description:
The method
SQLServerBulkCSVFileRecord::readLineEscapeDelimiters
introduced for supporting newline characters as part of field values ( #2338) missed to handle the case of CSV file not having a newline character at the end of the last row in CSV file, resulting into skipping the last record when setEscapeColumnDelimerts is set to true.Tests: