Partition Chart renders subcategories incorrectly when using more than two dimensions #32042
Open
2 of 3 tasks
Labels
preset:bounty:bug
Bugs that have been selected by Preset and have a bounty attached.
preset:bounty
Issues that have been selected by Preset and have a bounty attached.
viz:charts:partition
Related to the Partition chart
Bug description
Description
When creating a Partition Chart with more than two dimensions (e.g.,
category
,subcategory
,sub_subcategory
), the chart renders entries incorrectly. Specifically:a.1.1
) are being grouped under unrelated categories (a.a.2
), which is incorrect.How to reproduce the bug
SELECT 'a' AS category, 'a.1' AS subcategory, 'a.1.1' AS sub_subcategory UNION SELECT 'a' AS category, 'a.2' AS subcategory, 'a.2.1' AS sub_subcategory UNION SELECT 'a' AS category, 'a.2' AS subcategory, 'a.2.2' AS sub_subcategory
COUNT(*)
as the metric.category
,subcategory
, andsub_subcategory
as dimensions.Expected results
Subcategories (
a.1.1
) should appear under their respective parentsubcategory
(e.g.,a.1
).Actual results
a.1.1
entry incorrectly shows up undera.a.2
.Known Workarounds
No workarounds are currently known
Screenshots/recordings
Superset version
master / latest-dev
Python version
3.9
Node version
18 or greater
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: