Skip to content
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

Merged
merged 3 commits into from
Jun 19, 2024
Merged

Add delimiter parameter to readDelimStr #743

merged 3 commits into from
Jun 19, 2024

Conversation

koperagen
Copy link
Collaborator

No description provided.

@koperagen koperagen added this to the 0.14.0 milestone Jun 19, 2024
@koperagen koperagen self-assigned this Jun 19, 2024
@Jolanrensen Jolanrensen self-requested a review June 19, 2024 12:52
Copy link
Collaborator

@Jolanrensen Jolanrensen left a 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()
Copy link
Collaborator

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

Copy link
Contributor

Generated sources will be updated after merging this PR.
Please inspect the changes in here.

@koperagen koperagen merged commit acc932d into master Jun 19, 2024
5 checks passed
@dave08
Copy link

dave08 commented Jun 20, 2024

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.

@Jolanrensen
Copy link
Collaborator

@dave08 sounds like a good idea :) could you make an issue for that?

@dave08
Copy link

dave08 commented Jun 20, 2024

Just opened one: #746

@koperagen koperagen deleted the read-csv-update branch August 26, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants