Skip to content

Filter column names fix #1253

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kmehomiyski
Copy link

Fix column based filters (either by column name or by column value) by using the original column names, instead of lower case version, when getting table's column list from TableColumnList class. The column list is used in Filter.couldIncludeFromColumnFilters() method and only there, which forces the method to always use lower case version of the column. On the other hand, the Filter.includes() method uses the original column names as reported by "RowMap.getData()" method. This leads to inconsistent syntex requirement for the filters, which in turn brakes column based filtering.

Kostadin Mehomiyski added 3 commits May 20, 2019 14:58
…y using the original column names, instead of lower case version, when getting table's column list from TableColumnList class. The column list is used in Filter.couldIncludeFromColumnFilters() method and only there, which forces the method to always use lower case version of the column. On the other hand, the Filter.includes() method uses the original column names as reported by "RowMap.getData()" method. This leads to inconsistent syntex requirement for the filters, which in turn brakes column based filtering.
…y using the original column names, instead of lower case version, when getting table's column list from TableColumnList class. The column list is used in Filter.couldIncludeFromColumnFilters() method and only there, which forces the method to always use lower case version of the column. On the other hand, the Filter.includes() method uses the original column names as reported by "RowMap.getData()" method. This leads to inconsistent syntex requirement for the filters, which in turn brakes column based filtering.
@osheroff
Copy link
Collaborator

Hi.

Column names are not case sensitive anywhere in mysql, so I think a better fix here would be to lower-case the column names whenever we're using them in the filter.

@kmehomiyski
Copy link
Author

Hi,

OK I will into it today and change the MR. Thanks for the feedback!

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.

2 participants