-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Labels of table columns with "custom sql" can not be changed #30040
Comments
Hey @torbenw! I'm here to help with any bugs, questions, or contributions you have for the project. Let's squash those bugs together! 🤖 I found a similar open issue that might be relevant to your problem: Can't use cross-filtering on a column from a table whose name has been overridden. The suggested solution in that issue is to allow for a UI-only change in the "Customize column" section instead of renaming the columns in SQL. This approach could potentially address the problem you're facing with the column labels not updating in the table view. Additionally, there are existing unit tests that cover the functionality of renaming column labels in the "custom sql" tab. These tests ensure that the label updates correctly when switching to the SQL tab and saving the changes. You can find these tests in the following files:
The key differences between the "simple" column mode and the "custom sql" mode in terms of label customization and display are as follows:
The column label update process in the context of the "custom sql" tab is implemented using the You might want to check if the label update process is correctly implemented in your setup and if the UI-only change approach could be a viable solution for your issue. |
It works when you add a space in the "custom sql" window. Like if the column is called "date" you have to save "date " in that text window. Looks like a bug to me. |
I guess this is already fixed in 4.1.0 with PR #29420: https://github.com/apache/superset/blob/4.1.0rc1/CHANGELOG/4.1.0.md |
Bug description
A chart of type "table" allows to edit columns. The column edit view has a tab "custom sql". When this tab is active changing the label of the column becomes available. After saving the changes and updating the column the table does not show the new label, it is still showing the name of the column from the data set.
Being able to rename column labels in "simple" column mode would also be helpful.
How to reproduce the bug
Screenshots/recordings
Superset version
4.0.2
Python version
I don't know
Node version
I don't know
Browser
Firefox
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: