Mayankaggarwal8055 commented on PR #38689: URL: https://github.com/apache/superset/pull/38689#issuecomment-4073054382
Hi, I was able to reproduce this issue locally and spent some time digging into it. It looks like the problem comes from how `columns_by_name` is constructed in `get_sqla_query()`. Right now, `verbose_name` can end up overriding `column_name` in the mapping, which leads to incorrect column resolution when filters are applied. I’ve made a small change to ensure that `column_name` always stays as the primary key, and `verbose_name` is only used as an alias when there’s no conflict. This seems to fix the filtering behavior. I’ve opened a PR with the fix: #38689 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
