-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Transpose cells across columns into Rows BUGS with blank cells? #5229
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
Comments
@fabiolinus it would have never worked with blank (empty cells) (prior to 3.0+ null cell changes and prior back before 2.7) because we made no changes to that part of the code and it is only checking @ostephens what do you think of keeping the handling as-is and updating the label to coincide with the current code of only null handling, or do we indeed make it slightly more useful to include both empty string and null cell handling with 2 check boxes? We probably need some tests added for transpose. CORRECTION: We definitely need tests added - there are NONE ! |
We should definitely make sure the terminology here aligns with our use elsewhere - we should always use 'blank' to mean "either empty string (string with length zero) or null" across OpenRefine for consistency. In terms of the behaviour here I don't have strong opinion. The usual approach we take is to give the user the choice of:
However - I suspect for the majority of users this distinction isn't one that is meaningful (hence having the 'blank' concept in the first place!). We've had other transpose behaviour issues arising before (e.g. #3781) and the behaviour seems difficult to understand. Given your comment about tests I wonder if this is an area which needs some investment - both in terms of understanding what users actually need in terms of transpose functionality, and making sure the code and options support it! So two suggestions:
Obviously if 2 isn't possible in a reasonable timescale we should get someone to write test cases for the current behaviour to prevent regressions! |
I do have an old project attached to issue #1230 that may/may not help with a test for regression (circa 2017 with OpenRefine 2.7) |
Hey,i am Ayushi an outreachy 2023 applicant, can i have this issue assigned to me? |
Hi ayushrai. Please, see the attached csv file. Try to load it on openrefine in both ways. In other words select and deselect an option called 'Store blank cells as nulls': In the first case you have a null cell (missing value), in the other case you have an empty cell (''). Then use 'Transpose cells across columns into Rows' with checked 'Ignore blank cells'. You can see two different behaviours. I think this is not correct because blank is null OR empty so It should work anyway. I hope it is clear. Thanks a lot, Fabio |
@fabiolinus , @thadguidry I would like to attempt to fix this, but I don't think we've concluded on what change we would like to make, and I'm a bit scared as there is no test. What is the conclusion? |
Hi. I am not a programmer. I have no news but I wrote some details about it in my last comment . How can I help you? |
Hi. I saw this issue that thought it would be a good issue to work on. May I be assigned to it? Also just to clarify, do we want to change the label from "Ignore blank cells" to "Ignore null cells" or should we change the if statement to include blank/empty strings? Thanks in advance for your help. |
I think both approaches would be appropriate, so it's up to you! |
Hi. I was wondering if someone can give me some advice on how to write some test cases for the transpose columns into rows functionality. I would like to write test cases to make sure the correct behavior is being executed with both a null and empty cell. Thanks. |
The approach you have taken in #5862 looks very good to me. |
* Fixed the issue with transpose where it didnt treat blank cells as null * Ran command to format java file * Cleaned up null and empty string checking for transpose Closes #5229
* Fixed the issue with transpose where it didnt treat blank cells as null * Ran command to format java file * Cleaned up null and empty string checking for transpose Closes #5229
Hi. Today I used a menu called 'Transpose cells across columns into Rows'. I checked on 'Ignore blank cells' but it failed. I think that the mistake is on the label. It works with null cells but not with empty cells. So It can't work with blank cells whis is empty OR null. Can you verify it? Thanks a lot, Fabio

The text was updated successfully, but these errors were encountered: