-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
fix(pivot_table_v2): Pivot table cannot validly group rows and keep ordering #20588
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️
We hope to see you in our Slack community too!
/testenv up |
@zhaoyongjie Container image not yet published for this PR. Please try again when build is complete. |
@zhaoyongjie Ephemeral environment creation failed. Please check the Actions logs for details. |
@comdiv Thanks for the fixing. It can not work when I populate a column and select |
As in previous version you should sum whole row, not just 'Abigail' because 'value order' means 'row value order'. Because you cannot express that Abigail column should be sorted while Alicia not. Sum of values used |
closing/reopening to see if this'll pass CI. It also still needs a review, of course. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20588 +/- ##
==========================================
+ Coverage 66.85% 68.74% +1.88%
==========================================
Files 1753 1918 +165
Lines 65825 84047 +18222
Branches 7006 12771 +5765
==========================================
+ Hits 44010 57781 +13771
- Misses 20030 23468 +3438
- Partials 1785 2798 +1013
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This comment was marked as outdated.
This comment was marked as outdated.
1 similar comment
/testenv up |
/testenv up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testenv is not working for some reason, but I tested locally and it's working great! Was not able to break it, code also looks good.
@comdiv Would you mind rebasing your PR on the latest master? Maybe that will unblock the CI |
Also, for the sake of completeness, could you add before/after screenshots or recordings to the description? |
There are a bunch of CI tasks not running. Let's kick-start it by closing/reopening and see if that gets us through the full list. Then hopefully the ephemeral will work ¯_(ツ)_/¯ |
SUMMARY
Fix and improve
value_a_z
,value_z_a
sort order for pivot tableTESTING INSTRUCTIONS
Create any pivot v2 table with
ADDITIONAL INFORMATION
Known issue - not tested for non monotonic summable aggregates with natural order (sum, count, avg).
It's because it collect raw subtotals sumarrizing internal values.
Some aggregate function (min, max for) could have unexpected behavior in sorting.