-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Fix for ARFF reader regression (#10232) #10233
Fix for ARFF reader regression (#10232) #10233
Conversation
vnmabus
commented
May 29, 2019
- Quoted nominal values are now properly unquoted.
- A regression test has been added.
* Quoted nominal values are now properly unquoted. * A regression test has been added.
It seems that for some reasons the test fails on some versions and works in others. I am not sure why. |
I can confirm that it does solve the issue for me. Strictly speaking, stripping quotes leads to different values being returned compared to versions prior to 1.3, but most of the time it would make sense to do this. I noticed that your code accounts for situations where the first or last character is a quote, but not both. I strongly suggest to add a test case for this too. |
I found a slightly esoteric setup hat still results in an exception:
also results in How about using |
* Add tests to check that spaces between quotes are preserved, but spaces between csv elements are not.
Thanks for the changes @vnmabus, everything works as expected on my end. |
The one CI failure on Azure is real. A bit puzzling though,
|
So, in some environments, the data do not have the quotes stripped but the attribute values do, in spite of using the same function for reading them. Any suggestion on which difference is the important one between the affected versions, and how can I test this error locally? 😅 |
Ok, it seems to be that some versions do not have this patch applied: |
Nice catch. That patch is pretty recent it looks like, so there'll be quite some users that won't have it. If a workaround isn't too hard, then yes that sounds good. |
Nice, that fixed it! One more minor CI issue:
|
Sorry for bothering you @rgommers but I am not sure if these commits should be also pushed to master. I opened this PR against the maintenance branch, and I am realizing now that maybe that was not right. |
Oh thanks for pointing that out, I totally missed that. I'll forward-port them. |
@vnmabus: For future reference, as a general rule everything should go to master first. |