Skip to content

Table chart : New ad-hoc columns retain the name of previous columns #25592

Open
@ClaraR-BR

Description

@ClaraR-BR

When we create several calculated dimensions in a table chart aggregated, Superset keep the last name given, and not the default value

How to reproduce the bug

  1. Create table chart 'aggregated'
  2. Create a dimension with custom_sql and Name it
  3. Create another one
  4. By default it keep the name of the previous column, and not the value by default
  5. So the new column is not taken in account in the table, because they have the same name

Expected results

Always have the default value when we create a calculated dimension

Actual results

By default it keep the name of the previous column, and not the value by default

Screenshots

New calculated dimensions :
image

Environment

(please complete the following information):

  • browser type and version: Google Chrome Version 117.0.5938.149
  • superset version: 2.1.0
  • node.js version: node -v
  • any feature flags active: Table Chart

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    exploreNamespace | Anything related to Exploregood first issueGood first issues for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions