-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add delimiter parameter to readDelimStr #743
Conversation
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.
Yes! I missed that parameter too. Looks like TC still fails, but after the test is fixed, should be good to go
@@ -46,7 +46,8 @@ class Write : TestBase() { | |||
@Test | |||
fun writeCsvStr() { | |||
// SampleStart | |||
val csvStr = df.toCsv(CSVFormat.DEFAULT.withDelimiter(';').withRecordSeparator(System.lineSeparator())) | |||
val format = CSVFormat.DEFAULT.builder().setDelimiter(';').setRecordSeparator(System.lineSeparator()).build() |
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.
long line, but the linter will fix all these soon anyway
6eb1efc
to
f7ba97c
Compare
f7ba97c
to
3c9201b
Compare
Generated sources will be updated after merging this PR. |
Little comment, maybe since this is a function to especially read delimeters, it might be useful to have an override that takes in a Regex as a delimiter... this might be used for command line output tables that are usually space separated but sometimes inside a column value there might be a single space, so I need to use "\s\s+" to correctly read it in. |
@dave08 sounds like a good idea :) could you make an issue for that? |
Just opened one: #746 |
No description provided.