-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
column indexing issue with joined tables #16287
Comments
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) Practical example with steps to reproduce issue:
At that stage, you should clearly see the sorting occurs not the header your clicking but the one to its right, that is "By Village_Suoy" in this specific case. |
Author Name: Minoru Akagi (@minorua) Fixed in changeset "3959f94f8c1db15273d6acc5696bb94405129f24".
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) Minoru, thanks for working on fixing this issue. I will test out the committed patches.
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 7271
Affected QGIS version: master
I've spotted a pretty serious bug with joined columns in the attributes table window and symbology classification. Basically, all of the columns following the column which is used to join two tables will be wrongly indexed by not taking into account the removed column which was joined.
Shapefile Table:
id | name | date
To be joined by this XLS Table:
shared_id | extra_a | extra_b | extra_c
When joined, the resulting table would be:
id | name | date | extra_a | extra_b | extra_c
The shared_id column is merged with id, and therefore doesn't show. What seems to happen however is that the QGIS' table column index still takes into account shared_id. So when the user open the attribute table window and try to sort extra_a by clicking on its header, it'll end up sorting extra_b as the extra_a header refers to an index which takes into account shared_id.
Similarly, when doing symbology's graduated / categorized classification by selecting a joined column, the same shift happens.
The text was updated successfully, but these errors were encountered: