-
Notifications
You must be signed in to change notification settings - Fork 143
Description
Hi @tototoshi!
It's really great you have created the parser and constantly adding updates on fixing/updating it's functionality!
As an employee of the company, we have run into certain issues, where multiple clients are sending csv files containing the specific data in predefined format, however, the only thing to take into account - are the delimiters, since we are able to assign only one delimiter (default one: is a ,).
Thus, we are unable to parse client's imported document, since each of them may contain , or # or ; delimiter/separator characters (of course, it parses data wrongly, or even worse, results in crash, e.g.: while trying to parse the following line:
"hello world"
;123,321
I have seen an example of assigning(overriding default one) custom delimiter character:
implicit object MyFormat extends DefaultCSVFormat {
override val delimiter = '#'
}
However, as I can understand, the parser does not support the functionality of supporting multiple delimiters, e.g.:
implicit object MyFormat extends DefaultCSVFormat {
override val delimiterHashset = HashSet(";", ",", "#")
}
I would appreciate if we could discuss about possible solutions for solving that issue!
Thank you for your time! Looking for your prompt reply!
Best Regards,
Olgierd Jankovski