Skip to content
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

Partition chart mixes up results #10586

Open
jeremy-ecoenergy opened this issue Aug 12, 2020 · 14 comments
Open

Partition chart mixes up results #10586

jeremy-ecoenergy opened this issue Aug 12, 2020 · 14 comments
Labels
!deprecated-label:bug Deprecated label - Use #bug instead viz:charts:partition Related to the Partition chart

Comments

@jeremy-ecoenergy
Copy link

I've set up a partition chart with multiple levels of groupings:

shop -> sales owner -> sale/goal

Screenshot 2020-08-11 at 4 29 13 PM

Superset is not rendering this data correctly, despite the raw results being accurate.

Screenshot 2020-08-12 at 2 09 09 PM

Expected results

A partition chart with the following:

Karachi | Wali Mukhtar | Goal (some number)
| Adnan Shamim | Goal (some number)
| Jeremy Higgs | Sale (some mumber)

Actual results

Instead, entries from other sale owners are getting mixed in.

Screenshot 2020-08-12 at 2 07 37 PM

Screenshots

Added inline.

How to reproduce the bug

Config given above.

Environment

Running on Preset.

@jeremy-ecoenergy jeremy-ecoenergy added the !deprecated-label:bug Deprecated label - Use #bug instead label Aug 12, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.77. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@junlincc
Copy link
Member

🏷 chart

@stale
Copy link

stale bot commented Oct 22, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Oct 22, 2020
@McHollands
Copy link

McHollands commented Dec 17, 2020

I was able to fix this by reverting the changes to PartitionViz.nest_values made in this MR #9943. Changing the dims input from a tuple to a list means it isn't getting concatenated correctly and so when evaluating partiiton charts with greater than 2 levels it breaks

@stale stale bot removed the inactive Inactive for >= 30 days label Dec 17, 2020
@junlincc junlincc added viz:charts:partition Related to the Partition chart and removed chart labels Jan 2, 2021
@guang
Copy link

guang commented Apr 1, 2021

rip partition charts

@etr2460
Copy link
Member

etr2460 commented Apr 21, 2021

Looks like this was fixed, so i'm going to close it

@etr2460 etr2460 closed this as completed Apr 21, 2021
@guang
Copy link

guang commented Apr 21, 2021

@etr2460 where are you seeing the fix? i just upgraded to 1.1.0 and still see the same bug (the image im using is here https://hub.docker.com/r/amancevice/superset/)

@mengdaxing
Copy link

mengdaxing commented Jul 20, 2021

This Bug is still on. When the group num is larger than 2, then the last partition group will be wrong.
Please reopen this issue.

@bluestarfish-t1d
Copy link

This issue is still occurring. Has there been any movement regarding a fix?

@matiere57
Copy link

reopen issue, svp

@alpika19186
Copy link

Can you please reopen this issue? Still having this problem for 3 levels! Thank you! :)

@WulfH
Copy link

WulfH commented Aug 15, 2023

@etr2460 Can you please reopen this issue? The problem still exists and makes the partition graph useless for GROUP BYs > 2.

@sfirke sfirke reopened this Aug 29, 2023
@qoega
Copy link

qoega commented Sep 4, 2023

My guess issue is here:

// Perform sort by weight
root.sort((a, b) => {
const v = b.value - a.value;
if (v === 0) {
return b.name > a.name ? 1 : -1;
}

It sorts globally based on weight, but it should sort only within previous group. Some fix like taking weight as a tuple of all weights from root to current node should be enough. But I need to find out how to setup and debug superset locally.

UPD:

  • There is also an issue with skipping with partition limit(sum is not recomputed).
  • And partition threshold never worked as it is parsed as int = 0.

@rusackas
Copy link
Member

rusackas commented Mar 8, 2024

Is this still an issue in 3.x and is anyone willing to take it on? It's at risk of being closed as stale again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead viz:charts:partition Related to the Partition chart
Projects
None yet
Development

No branches or pull requests