Expose option to set line terminator for CSV writer#9617
Conversation
alamb
left a comment
There was a problem hiding this comment.
Looks good to me -- thank you @svranesevic
I have one request to reduce the size of this PR by reducing redundany in the tests, but otherwise I think this one is ready to go
| } | ||
|
|
||
| #[test] | ||
| fn test_write_csv_with_lf_terminator() { |
There was a problem hiding this comment.
these tests are quite repetitive (they are like 20 lines long but the only difference is 2 lines -- the terminaor and the expected output)
Can you please refactor them into a common harness so that it is easier for (me, a human) to review them and ensure coverage is adequate?
Thank you
There was a problem hiding this comment.
I am trying to clear up the PR review queue, so I took the liberty of pushing a commit that reduces the test replication and merged up from main
There was a problem hiding this comment.
Thank you! Is there anything else for me to take care of?
|
run benchmarks csv_writer |
|
🤖 Arrow criterion benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 9571_arrow-csv_custom_line_terminator (21f3146) to 61b5763 (merge-base) diff File an issue against this benchmark runner |
|
🤖 Arrow criterion benchmark completed (GKE) | trigger Instance: CPU Details (lscpu)Details
Resource Usagebase (merge-base)
branch
File an issue against this benchmark runner |
|
run benchmarks csv_writer |
|
🤖 Arrow criterion benchmark running (GKE) | trigger CPU Details (lscpu)Comparing 9571_arrow-csv_custom_line_terminator (21f3146) to 61b5763 (merge-base) diff File an issue against this benchmark runner |
|
🤖 Arrow criterion benchmark completed (GKE) | trigger Instance: CPU Details (lscpu)Details
Resource Usagebase (merge-base)
branch
File an issue against this benchmark runner |
|
Performance results look good to me (no change) |
Which issue does this PR close?
Rationale for this change
Enable configuring line terminator for CSV writer.
What changes are included in this PR?
See above.
Are these changes tested?
Yes, added tests.
Are there any user-facing changes?
Yes, expose option to set line terminator for CSV writer.